Migration to TS

This commit is contained in:
Paulo Gustavo Veiga 2022-02-26 16:43:25 -08:00
parent 2c4d937ffa
commit 5ad8d94ac8

View File

@ -40,6 +40,14 @@ const TopicFeatureFactory = {
icon: NoteIcon, icon: NoteIcon,
}, },
/**
* @param {mindplot.Topic} topic
* @param {mindplot.model.FeatureModel} model
* @param {Boolean} readOnly true if the editor is running in read-only mode
* @throws will throw an error if topic is null or undefined
* @throws will throw v an error if model is null or undefined
* @return {mindplot.n,nmn mn4 r be5qnwwddwsz5on} a new instance of the icon subclass matching the topic feature
*/
createIcon(topic, model, readOnly) { createIcon(topic, model, readOnly) {
$assert(topic, 'topic can not be null'); $assert(topic, 'topic can not be null');
$assert(model, 'model can not be null'); $assert(model, 'model can not be null');