mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-22 14:47:56 +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
|
* @return {mindplot.model.NodeModel} an identical clone of the NodeModel
|
||||||
*/
|
*/
|
||||||
clone(): 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) => {
|
result._children = this._children.map((node) => {
|
||||||
const cnode = node.clone() as NodeModel;
|
const cnode = node.clone() as NodeModel;
|
||||||
cnode._parent = result;
|
cnode._parent = result;
|
||||||
@ -148,7 +148,7 @@ class NodeModel extends INodeModel {
|
|||||||
* @return {mindplot.model.NodeModel}
|
* @return {mindplot.model.NodeModel}
|
||||||
*/
|
*/
|
||||||
deepCopy(): 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) => {
|
result._children = this._children.map((node) => {
|
||||||
const cnode = (node as NodeModel).deepCopy();
|
const cnode = (node as NodeModel).deepCopy();
|
||||||
cnode._parent = result;
|
cnode._parent = result;
|
||||||
|
@ -68,7 +68,7 @@ class Menu extends IMenu {
|
|||||||
const fontSizeBtn = $('#fontSize');
|
const fontSizeBtn = $('#fontSize');
|
||||||
if (fontSizeBtn) {
|
if (fontSizeBtn) {
|
||||||
const fontSizeModel = {
|
const fontSizeModel = {
|
||||||
getValue() {
|
getValue(): number {
|
||||||
const nodes = designerModel.filterSelectedTopics();
|
const nodes = designerModel.filterSelectedTopics();
|
||||||
|
|
||||||
let result = null;
|
let result = null;
|
||||||
@ -82,7 +82,7 @@ class Menu extends IMenu {
|
|||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
},
|
},
|
||||||
setValue(value) {
|
setValue(value: number) {
|
||||||
designer.changeFontSize(value);
|
designer.changeFontSize(value);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user