mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-25 15:47:55 +01:00
Fix copy and paste.
This commit is contained in:
parent
c4516a7ac1
commit
3119e00b9f
@ -131,7 +131,7 @@ class NodeModel extends INodeModel {
|
||||
* @return {mindplot.model.NodeModel} an identical clone of the NodeModel
|
||||
*/
|
||||
clone(): NodeModel {
|
||||
const result = new NodeModel(this.getType(), this._mindmap, -1);
|
||||
const result = new NodeModel(this.getType(), this._mindmap);
|
||||
result._children = this._children.map((node) => {
|
||||
const cnode = node.clone() as NodeModel;
|
||||
cnode._parent = result;
|
||||
@ -148,7 +148,7 @@ class NodeModel extends INodeModel {
|
||||
* @return {mindplot.model.NodeModel}
|
||||
*/
|
||||
deepCopy(): NodeModel {
|
||||
const result = new NodeModel(this.getType(), this._mindmap, -1);
|
||||
const result = new NodeModel(this.getType(), this._mindmap);
|
||||
result._children = this._children.map((node) => {
|
||||
const cnode = (node as NodeModel).deepCopy();
|
||||
cnode._parent = result;
|
||||
|
@ -68,7 +68,7 @@ class Menu extends IMenu {
|
||||
const fontSizeBtn = $('#fontSize');
|
||||
if (fontSizeBtn) {
|
||||
const fontSizeModel = {
|
||||
getValue() {
|
||||
getValue(): number {
|
||||
const nodes = designerModel.filterSelectedTopics();
|
||||
|
||||
let result = null;
|
||||
@ -82,7 +82,7 @@ class Menu extends IMenu {
|
||||
}
|
||||
return result;
|
||||
},
|
||||
setValue(value) {
|
||||
setValue(value: number) {
|
||||
designer.changeFontSize(value);
|
||||
},
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user