mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-15 11:07:57 +01:00
Update copyright headers.
This commit is contained in:
parent
cbaaed7810
commit
04e1f71faa
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
@ -17,41 +17,53 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
mindplot.ControlPoint = new Class({
|
mindplot.ControlPoint = new Class({
|
||||||
initialize:function() {
|
initialize: function () {
|
||||||
var control1 = new web2d.Elipse({width:6, height:6, stroke:'1 solid #6589de',fillColor:'gray', visibility:false});
|
var control1 = new web2d.Elipse({
|
||||||
|
width: 6,
|
||||||
|
height: 6,
|
||||||
|
stroke: '1 solid #6589de',
|
||||||
|
fillColor: 'gray',
|
||||||
|
visibility: false
|
||||||
|
});
|
||||||
control1.setCursor('pointer');
|
control1.setCursor('pointer');
|
||||||
|
|
||||||
var control2 = new web2d.Elipse({width:6, height:6, stroke:'1 solid #6589de',fillColor:'gray', visibility:false});
|
var control2 = new web2d.Elipse({
|
||||||
|
width: 6,
|
||||||
|
height: 6,
|
||||||
|
stroke: '1 solid #6589de',
|
||||||
|
fillColor: 'gray',
|
||||||
|
visibility: false
|
||||||
|
});
|
||||||
control2.setCursor('pointer');
|
control2.setCursor('pointer');
|
||||||
|
|
||||||
this._controlPointsController = [control1,control2];
|
this._controlPointsController = [control1, control2];
|
||||||
this._controlLines = [new web2d.Line({strokeColor:"#6589de", strokeWidth:1, opacity:0.3}),
|
this._controlLines = [new web2d.Line({strokeColor: "#6589de", strokeWidth: 1, opacity: 0.3}),
|
||||||
new web2d.Line({strokeColor:"#6589de", strokeWidth:1, opacity:0.3})];
|
new web2d.Line({strokeColor: "#6589de", strokeWidth: 1, opacity: 0.3})];
|
||||||
|
|
||||||
this._isBinded = false;
|
this._isBinded = false;
|
||||||
var me = this;
|
var me = this;
|
||||||
this._controlPointsController[0].addEvent('mousedown', function(event) {
|
this._controlPointsController[0].addEvent('mousedown', function (event) {
|
||||||
(me._mouseDown)(event, mindplot.ControlPoint.FROM, me);
|
(me._mouseDown)(event, mindplot.ControlPoint.FROM, me);
|
||||||
});
|
});
|
||||||
this._controlPointsController[0].addEvent('click', function(event) {
|
this._controlPointsController[0].addEvent('click', function (event) {
|
||||||
(me._mouseClick)(event);
|
(me._mouseClick)(event);
|
||||||
});
|
});
|
||||||
this._controlPointsController[0].addEvent('dblclick', function(event) {
|
this._controlPointsController[0].addEvent('dblclick', function (event) {
|
||||||
(me._mouseClick)(event);
|
(me._mouseClick)(event);
|
||||||
});
|
});
|
||||||
|
|
||||||
this._controlPointsController[1].addEvent('mousedown', function(event) {
|
this._controlPointsController[1].addEvent('mousedown', function (event) {
|
||||||
(me._mouseDown)(event, mindplot.ControlPoint.TO, me);
|
(me._mouseDown)(event, mindplot.ControlPoint.TO, me);
|
||||||
});
|
});
|
||||||
this._controlPointsController[1].addEvent('click', function(event) {
|
this._controlPointsController[1].addEvent('click', function (event) {
|
||||||
(me._mouseClick)(event);
|
(me._mouseClick)(event);
|
||||||
});
|
});
|
||||||
this._controlPointsController[1].addEvent('dblclick', function(event) {
|
this._controlPointsController[1].addEvent('dblclick', function (event) {
|
||||||
(me._mouseClick)(event);
|
(me._mouseClick)(event);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
setLine : function(line) {
|
setLine: function (line) {
|
||||||
if ($defined(this._line)) {
|
if ($defined(this._line)) {
|
||||||
this._removeLine();
|
this._removeLine();
|
||||||
}
|
}
|
||||||
@ -65,12 +77,12 @@ mindplot.ControlPoint = new Class({
|
|||||||
this._endPoint[1] = this._line.getLine().getTo().clone();
|
this._endPoint[1] = this._line.getLine().getTo().clone();
|
||||||
},
|
},
|
||||||
|
|
||||||
redraw : function() {
|
redraw: function () {
|
||||||
if ($defined(this._line))
|
if ($defined(this._line))
|
||||||
this._createControlPoint();
|
this._createControlPoint();
|
||||||
},
|
},
|
||||||
|
|
||||||
_createControlPoint : function() {
|
_createControlPoint: function () {
|
||||||
this._controls = this._line.getLine().getControlPoints();
|
this._controls = this._line.getLine().getControlPoints();
|
||||||
var pos = this._line.getLine().getFrom();
|
var pos = this._line.getLine().getFrom();
|
||||||
this._controlPointsController[0].setPosition(this._controls[mindplot.ControlPoint.FROM].x + pos.x, this._controls[mindplot.ControlPoint.FROM].y + pos.y - 3);
|
this._controlPointsController[0].setPosition(this._controls[mindplot.ControlPoint.FROM].x + pos.x, this._controls[mindplot.ControlPoint.FROM].y + pos.y - 3);
|
||||||
@ -83,19 +95,19 @@ mindplot.ControlPoint = new Class({
|
|||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
_removeLine : function() {
|
_removeLine: function () {
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
_mouseDown : function(event, point, me) {
|
_mouseDown: function (event, point, me) {
|
||||||
if (!this._isBinded) {
|
if (!this._isBinded) {
|
||||||
this._isBinded = true;
|
this._isBinded = true;
|
||||||
this._mouseMoveFunction = function(event) {
|
this._mouseMoveFunction = function (event) {
|
||||||
(me._mouseMoveEvent)(event, point, me);
|
(me._mouseMoveEvent)(event, point, me);
|
||||||
};
|
};
|
||||||
|
|
||||||
this._workspace.getScreenManager().addEvent('mousemove', this._mouseMoveFunction);
|
this._workspace.getScreenManager().addEvent('mousemove', this._mouseMoveFunction);
|
||||||
this._mouseUpFunction = function(event) {
|
this._mouseUpFunction = function (event) {
|
||||||
(me._mouseUp)(event, point, me);
|
(me._mouseUp)(event, point, me);
|
||||||
};
|
};
|
||||||
this._workspace.getScreenManager().addEvent('mouseup', this._mouseUpFunction);
|
this._workspace.getScreenManager().addEvent('mouseup', this._mouseUpFunction);
|
||||||
@ -105,19 +117,21 @@ mindplot.ControlPoint = new Class({
|
|||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
|
|
||||||
_mouseMoveEvent : function(event, point) {
|
_mouseMoveEvent: function (event, point) {
|
||||||
var screen = this._workspace.getScreenManager();
|
var screen = this._workspace.getScreenManager();
|
||||||
var pos = screen.getWorkspaceMousePosition(event);
|
var pos = screen.getWorkspaceMousePosition(event);
|
||||||
var topic = null;
|
|
||||||
|
var cords;
|
||||||
if (point == 0) {
|
if (point == 0) {
|
||||||
var cords = mindplot.util.Shape.calculateRelationShipPointCoordinates(this._line.getSourceTopic(), pos);
|
cords = mindplot.util.Shape.calculateRelationShipPointCoordinates(this._line.getSourceTopic(), pos);
|
||||||
this._line.setFrom(cords.x, cords.y);
|
this._line.setFrom(cords.x, cords.y);
|
||||||
this._line.setSrcControlPoint(new core.Point(pos.x - cords.x, pos.y - cords.y));
|
this._line.setSrcControlPoint(new core.Point(pos.x - cords.x, pos.y - cords.y));
|
||||||
} else {
|
} else {
|
||||||
var cords = mindplot.util.Shape.calculateRelationShipPointCoordinates(this._line.getTargetTopic(), pos);
|
cords = mindplot.util.Shape.calculateRelationShipPointCoordinates(this._line.getTargetTopic(), pos);
|
||||||
this._line.setTo(cords.x, cords.y);
|
this._line.setTo(cords.x, cords.y);
|
||||||
this._line.setDestControlPoint(new core.Point(pos.x - cords.x, pos.y - cords.y));
|
this._line.setDestControlPoint(new core.Point(pos.x - cords.x, pos.y - cords.y));
|
||||||
}
|
}
|
||||||
|
|
||||||
this._controls[point].x = (pos.x - cords.x);
|
this._controls[point].x = (pos.x - cords.x);
|
||||||
this._controls[point].y = (pos.y - cords.y);
|
this._controls[point].y = (pos.y - cords.y);
|
||||||
this._controlPointsController[point].setPosition(pos.x - 5, pos.y - 3);
|
this._controlPointsController[point].setPosition(pos.x - 5, pos.y - 3);
|
||||||
@ -127,7 +141,7 @@ mindplot.ControlPoint = new Class({
|
|||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
_mouseUp : function(event, point) {
|
_mouseUp: function (event, point) {
|
||||||
this._workspace.getScreenManager().removeEvent('mousemove', this._mouseMoveFunction);
|
this._workspace.getScreenManager().removeEvent('mousemove', this._mouseMoveFunction);
|
||||||
this._workspace.getScreenManager().removeEvent('mouseup', this._mouseUpFunction);
|
this._workspace.getScreenManager().removeEvent('mouseup', this._mouseUpFunction);
|
||||||
|
|
||||||
@ -136,13 +150,13 @@ mindplot.ControlPoint = new Class({
|
|||||||
this._isBinded = false;
|
this._isBinded = false;
|
||||||
},
|
},
|
||||||
|
|
||||||
_mouseClick : function(event) {
|
_mouseClick: function (event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
|
|
||||||
setVisibility : function(visible) {
|
setVisibility: function (visible) {
|
||||||
if (visible) {
|
if (visible) {
|
||||||
this._controlLines[0].moveToFront();
|
this._controlLines[0].moveToFront();
|
||||||
this._controlLines[1].moveToFront();
|
this._controlLines[1].moveToFront();
|
||||||
@ -155,7 +169,7 @@ mindplot.ControlPoint = new Class({
|
|||||||
this._controlLines[1].setVisibility(visible);
|
this._controlLines[1].setVisibility(visible);
|
||||||
},
|
},
|
||||||
|
|
||||||
addToWorkspace : function(workspace) {
|
addToWorkspace: function (workspace) {
|
||||||
this._workspace = workspace;
|
this._workspace = workspace;
|
||||||
workspace.append(this._controlPointsController[0]);
|
workspace.append(this._controlPointsController[0]);
|
||||||
workspace.append(this._controlPointsController[1]);
|
workspace.append(this._controlPointsController[1]);
|
||||||
@ -163,7 +177,7 @@ mindplot.ControlPoint = new Class({
|
|||||||
workspace.append(this._controlLines[1]);
|
workspace.append(this._controlLines[1]);
|
||||||
},
|
},
|
||||||
|
|
||||||
removeFromWorkspace : function(workspace) {
|
removeFromWorkspace: function (workspace) {
|
||||||
this._workspace = null;
|
this._workspace = null;
|
||||||
workspace.removeChild(this._controlPointsController[0]);
|
workspace.removeChild(this._controlPointsController[0]);
|
||||||
workspace.removeChild(this._controlPointsController[1]);
|
workspace.removeChild(this._controlPointsController[1]);
|
||||||
@ -171,15 +185,15 @@ mindplot.ControlPoint = new Class({
|
|||||||
workspace.removeChild(this._controlLines[1]);
|
workspace.removeChild(this._controlLines[1]);
|
||||||
},
|
},
|
||||||
|
|
||||||
getControlPoint : function(index) {
|
getControlPoint: function (index) {
|
||||||
return this._controls[index];
|
return this._controls[index];
|
||||||
},
|
},
|
||||||
|
|
||||||
getOriginalEndPoint : function(index) {
|
getOriginalEndPoint: function (index) {
|
||||||
return this._endPoint[index];
|
return this._endPoint[index];
|
||||||
},
|
},
|
||||||
|
|
||||||
getOriginalCtrlPoint : function(index) {
|
getOriginalCtrlPoint: function (index) {
|
||||||
return this._orignalCtrlPoint[index];
|
return this._orignalCtrlPoint[index];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
@ -212,7 +212,7 @@ mindplot.Designer = new Class(/** @lends Designer */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {width:Number, height:Number} size
|
* @param {{width:Number, height:Number}} size
|
||||||
* sets width and height of the workspace
|
* sets width and height of the workspace
|
||||||
*/
|
*/
|
||||||
setViewPort: function (size) {
|
setViewPort: function (size) {
|
||||||
@ -647,9 +647,10 @@ mindplot.Designer = new Class(/** @lends Designer */{
|
|||||||
this._relPivot.start(nodes[0], pos);
|
this._relPivot.start(nodes[0], pos);
|
||||||
},
|
},
|
||||||
|
|
||||||
/** @return the zoom */
|
/** @return {{zoom:Number}} the zoom */
|
||||||
getMindmapProperties: function () {
|
getMindmapProperties: function () {
|
||||||
return {zoom: this.getModel().getZoom()};
|
var model = this.getModel();
|
||||||
|
return {zoom: model.getZoom()};
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -842,7 +843,7 @@ mindplot.Designer = new Class(/** @lends Designer */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {mindplot.model.Topic} node the topic to remove
|
* @param {mindplot.Topic} node the topic to remove
|
||||||
* removes the given topic and its children from Workspace, DesignerModel and NodeModel
|
* removes the given topic and its children from Workspace, DesignerModel and NodeModel
|
||||||
*/
|
*/
|
||||||
removeTopic: function (node) {
|
removeTopic: function (node) {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
@ -17,7 +17,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
mindplot.DesignerActionRunner = new Class({
|
mindplot.DesignerActionRunner = new Class({
|
||||||
initialize:function (commandContext, notifier) {
|
initialize: function (commandContext, notifier) {
|
||||||
$assert(commandContext, "commandContext can not be null");
|
$assert(commandContext, "commandContext can not be null");
|
||||||
|
|
||||||
this._undoManager = new mindplot.DesignerUndoManager();
|
this._undoManager = new mindplot.DesignerUndoManager();
|
||||||
@ -25,7 +25,7 @@ mindplot.DesignerActionRunner = new Class({
|
|||||||
this._notifier = notifier;
|
this._notifier = notifier;
|
||||||
},
|
},
|
||||||
|
|
||||||
execute:function (command) {
|
execute: function (command) {
|
||||||
$assert(command, "command can not be null");
|
$assert(command, "command can not be null");
|
||||||
command.execute(this._context);
|
command.execute(this._context);
|
||||||
this._undoManager.enqueue(command);
|
this._undoManager.enqueue(command);
|
||||||
@ -34,20 +34,20 @@ mindplot.DesignerActionRunner = new Class({
|
|||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
undo:function () {
|
undo: function () {
|
||||||
this._undoManager.execUndo(this._context);
|
this._undoManager.execUndo(this._context);
|
||||||
this.fireChangeEvent();
|
this.fireChangeEvent();
|
||||||
mindplot.EventBus.instance.fireEvent(mindplot.EventBus.events.DoLayout);
|
mindplot.EventBus.instance.fireEvent(mindplot.EventBus.events.DoLayout);
|
||||||
},
|
},
|
||||||
|
|
||||||
redo:function () {
|
redo: function () {
|
||||||
this._undoManager.execRedo(this._context);
|
this._undoManager.execRedo(this._context);
|
||||||
this.fireChangeEvent();
|
this.fireChangeEvent();
|
||||||
mindplot.EventBus.instance.fireEvent(mindplot.EventBus.events.DoLayout);
|
mindplot.EventBus.instance.fireEvent(mindplot.EventBus.events.DoLayout);
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
fireChangeEvent:function () {
|
fireChangeEvent: function () {
|
||||||
var event = this._undoManager.buildEvent();
|
var event = this._undoManager.buildEvent();
|
||||||
this._notifier.fireEvent("modelUpdate", event);
|
this._notifier.fireEvent("modelUpdate", event);
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
@ -17,49 +17,52 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
mindplot.StandaloneActionDispatcher = new Class(/** @lends StandaloneActionDispatcher */{
|
mindplot.StandaloneActionDispatcher = new Class(/** @lends StandaloneActionDispatcher */{
|
||||||
Extends:mindplot.ActionDispatcher,
|
Extends: mindplot.ActionDispatcher,
|
||||||
/**
|
/**
|
||||||
* @extends mindplot.ActionDispatcher
|
* @extends mindplot.ActionDispatcher
|
||||||
* @constructs
|
* @constructs
|
||||||
* @param {mindplot.CommandContext} commandContext
|
* @param {mindplot.CommandContext} commandContext
|
||||||
*/
|
*/
|
||||||
initialize:function (commandContext) {
|
initialize: function (commandContext) {
|
||||||
this.parent(commandContext);
|
this.parent(commandContext);
|
||||||
this._actionRunner = new mindplot.DesignerActionRunner(commandContext, this);
|
this._actionRunner = new mindplot.DesignerActionRunner(commandContext, this);
|
||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
addTopics:function (models, parentTopicsId) {
|
addTopics: function (models, parentTopicsId) {
|
||||||
var command = new mindplot.commands.AddTopicCommand(models, parentTopicsId);
|
var command = new mindplot.commands.AddTopicCommand(models, parentTopicsId);
|
||||||
this.execute(command);
|
this.execute(command);
|
||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
addRelationship:function (model) {
|
addRelationship: function (model) {
|
||||||
var command = new mindplot.commands.AddRelationshipCommand(model);
|
var command = new mindplot.commands.AddRelationshipCommand(model);
|
||||||
this.execute(command);
|
this.execute(command);
|
||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
deleteEntities:function (topicsIds, relIds) {
|
deleteEntities: function (topicsIds, relIds) {
|
||||||
var command = new mindplot.commands.DeleteCommand(topicsIds, relIds);
|
var command = new mindplot.commands.DeleteCommand(topicsIds, relIds);
|
||||||
this.execute(command);
|
this.execute(command);
|
||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
dragTopic:function (topicId, position, order, parentTopic) {
|
dragTopic: function (topicId, position, order, parentTopic) {
|
||||||
var command = new mindplot.commands.DragTopicCommand(topicId, position, order, parentTopic);
|
var command = new mindplot.commands.DragTopicCommand(topicId, position, order, parentTopic);
|
||||||
this.execute(command);
|
this.execute(command);
|
||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
moveTopic:function (topicId, position) {
|
moveTopic: function (topicId, position) {
|
||||||
$assert($defined(topicId), "topicsId can not be null");
|
$assert($defined(topicId), "topicsId can not be null");
|
||||||
$assert($defined(position), "position can not be null");
|
$assert($defined(position), "position can not be null");
|
||||||
|
|
||||||
var commandFunc = function (topic, value) {
|
var commandFunc = function (topic, value) {
|
||||||
var result = topic.getPosition();
|
var result = topic.getPosition();
|
||||||
mindplot.EventBus.instance.fireEvent(mindplot.EventBus.events.NodeMoveEvent, {node:topic.getModel(), position:value});
|
mindplot.EventBus.instance.fireEvent(mindplot.EventBus.events.NodeMoveEvent, {
|
||||||
|
node: topic.getModel(),
|
||||||
|
position: value
|
||||||
|
});
|
||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -68,13 +71,13 @@ mindplot.StandaloneActionDispatcher = new Class(/** @lends StandaloneActionDispa
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
moveControlPoint:function (ctrlPoint, point) {
|
moveControlPoint: function (ctrlPoint, point) {
|
||||||
var command = new mindplot.commands.MoveControlPointCommand(ctrlPoint, point);
|
var command = new mindplot.commands.MoveControlPointCommand(ctrlPoint, point);
|
||||||
this.execute(command);
|
this.execute(command);
|
||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
changeFontStyleToTopic:function (topicsIds) {
|
changeFontStyleToTopic: function (topicsIds) {
|
||||||
|
|
||||||
var commandFunc = function (topic) {
|
var commandFunc = function (topic) {
|
||||||
var result = topic.getFontStyle();
|
var result = topic.getFontStyle();
|
||||||
@ -88,7 +91,7 @@ mindplot.StandaloneActionDispatcher = new Class(/** @lends StandaloneActionDispa
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
changeTextToTopic:function (topicsIds, text) {
|
changeTextToTopic: function (topicsIds, text) {
|
||||||
$assert($defined(topicsIds), "topicsIds can not be null");
|
$assert($defined(topicsIds), "topicsIds can not be null");
|
||||||
|
|
||||||
var commandFunc = function (topic, value) {
|
var commandFunc = function (topic, value) {
|
||||||
@ -96,14 +99,14 @@ mindplot.StandaloneActionDispatcher = new Class(/** @lends StandaloneActionDispa
|
|||||||
topic.setText(value);
|
topic.setText(value);
|
||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
commandFunc.commandType = "changeTextToTopic";
|
commandFunc.commandType = "changeTextToTopic";
|
||||||
|
|
||||||
var command = new mindplot.commands.GenericFunctionCommand(commandFunc, topicsIds, text);
|
var command = new mindplot.commands.GenericFunctionCommand(commandFunc, topicsIds, text);
|
||||||
this.execute(command);
|
this.execute(command);
|
||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
changeFontFamilyToTopic:function (topicIds, fontFamily) {
|
changeFontFamilyToTopic: function (topicIds, fontFamily) {
|
||||||
$assert(topicIds, "topicIds can not be null");
|
$assert(topicIds, "topicIds can not be null");
|
||||||
$assert(fontFamily, "fontFamily can not be null");
|
$assert(fontFamily, "fontFamily can not be null");
|
||||||
|
|
||||||
@ -121,7 +124,7 @@ mindplot.StandaloneActionDispatcher = new Class(/** @lends StandaloneActionDispa
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
changeFontColorToTopic:function (topicsIds, color) {
|
changeFontColorToTopic: function (topicsIds, color) {
|
||||||
$assert(topicsIds, "topicIds can not be null");
|
$assert(topicsIds, "topicIds can not be null");
|
||||||
$assert(color, "color can not be null");
|
$assert(color, "color can not be null");
|
||||||
|
|
||||||
@ -137,7 +140,7 @@ mindplot.StandaloneActionDispatcher = new Class(/** @lends StandaloneActionDispa
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
changeBackgroundColorToTopic:function (topicsIds, color) {
|
changeBackgroundColorToTopic: function (topicsIds, color) {
|
||||||
$assert(topicsIds, "topicIds can not be null");
|
$assert(topicsIds, "topicIds can not be null");
|
||||||
$assert(color, "color can not be null");
|
$assert(color, "color can not be null");
|
||||||
|
|
||||||
@ -153,7 +156,7 @@ mindplot.StandaloneActionDispatcher = new Class(/** @lends StandaloneActionDispa
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
changeBorderColorToTopic:function (topicsIds, color) {
|
changeBorderColorToTopic: function (topicsIds, color) {
|
||||||
$assert(topicsIds, "topicIds can not be null");
|
$assert(topicsIds, "topicIds can not be null");
|
||||||
$assert(color, "topicIds can not be null");
|
$assert(color, "topicIds can not be null");
|
||||||
|
|
||||||
@ -169,7 +172,7 @@ mindplot.StandaloneActionDispatcher = new Class(/** @lends StandaloneActionDispa
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
changeFontSizeToTopic:function (topicsIds, size) {
|
changeFontSizeToTopic: function (topicsIds, size) {
|
||||||
$assert(topicsIds, "topicIds can not be null");
|
$assert(topicsIds, "topicIds can not be null");
|
||||||
$assert(size, "size can not be null");
|
$assert(size, "size can not be null");
|
||||||
|
|
||||||
@ -186,7 +189,7 @@ mindplot.StandaloneActionDispatcher = new Class(/** @lends StandaloneActionDispa
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
changeShapeTypeToTopic:function (topicsIds, shapeType) {
|
changeShapeTypeToTopic: function (topicsIds, shapeType) {
|
||||||
$assert(topicsIds, "topicsIds can not be null");
|
$assert(topicsIds, "topicsIds can not be null");
|
||||||
$assert(shapeType, "shapeType can not be null");
|
$assert(shapeType, "shapeType can not be null");
|
||||||
|
|
||||||
@ -201,7 +204,7 @@ mindplot.StandaloneActionDispatcher = new Class(/** @lends StandaloneActionDispa
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
changeFontWeightToTopic:function (topicsIds) {
|
changeFontWeightToTopic: function (topicsIds) {
|
||||||
$assert(topicsIds, "topicsIds can not be null");
|
$assert(topicsIds, "topicsIds can not be null");
|
||||||
|
|
||||||
var commandFunc = function (topic) {
|
var commandFunc = function (topic) {
|
||||||
@ -218,7 +221,7 @@ mindplot.StandaloneActionDispatcher = new Class(/** @lends StandaloneActionDispa
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
shrinkBranch:function (topicsIds, collapse) {
|
shrinkBranch: function (topicsIds, collapse) {
|
||||||
$assert(topicsIds, "topicsIds can not be null");
|
$assert(topicsIds, "topicsIds can not be null");
|
||||||
|
|
||||||
var commandFunc = function (topic, isShrink) {
|
var commandFunc = function (topic, isShrink) {
|
||||||
@ -231,25 +234,25 @@ mindplot.StandaloneActionDispatcher = new Class(/** @lends StandaloneActionDispa
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
addFeatureToTopic:function (topicId, featureType, attributes) {
|
addFeatureToTopic: function (topicId, featureType, attributes) {
|
||||||
var command = new mindplot.commands.AddFeatureToTopicCommand(topicId, featureType, attributes);
|
var command = new mindplot.commands.AddFeatureToTopicCommand(topicId, featureType, attributes);
|
||||||
this.execute(command);
|
this.execute(command);
|
||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
changeFeatureToTopic:function (topicId, featureId, attributes) {
|
changeFeatureToTopic: function (topicId, featureId, attributes) {
|
||||||
var command = new mindplot.commands.ChangeFeatureToTopicCommand(topicId, featureId, attributes);
|
var command = new mindplot.commands.ChangeFeatureToTopicCommand(topicId, featureId, attributes);
|
||||||
this.execute(command);
|
this.execute(command);
|
||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
removeFeatureFromTopic:function (topicId, featureId) {
|
removeFeatureFromTopic: function (topicId, featureId) {
|
||||||
var command = new mindplot.commands.RemoveFeatureFromTopicCommand(topicId, featureId);
|
var command = new mindplot.commands.RemoveFeatureFromTopicCommand(topicId, featureId);
|
||||||
this.execute(command);
|
this.execute(command);
|
||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
execute:function (command) {
|
execute: function (command) {
|
||||||
this._actionRunner.execute(command);
|
this._actionRunner.execute(command);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -260,13 +263,13 @@ mindplot.CommandContext = new Class(/** @lends CommandContext */{
|
|||||||
* @constructs
|
* @constructs
|
||||||
* @param {mindplot.Designer} designer
|
* @param {mindplot.Designer} designer
|
||||||
*/
|
*/
|
||||||
initialize:function (designer) {
|
initialize: function (designer) {
|
||||||
$assert(designer, "designer can not be null");
|
$assert(designer, "designer can not be null");
|
||||||
this._designer = designer;
|
this._designer = designer;
|
||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
findTopics:function (topicsIds) {
|
findTopics: function (topicsIds) {
|
||||||
$assert($defined(topicsIds), "topicsIds can not be null");
|
$assert($defined(topicsIds), "topicsIds can not be null");
|
||||||
if (!(topicsIds instanceof Array)) {
|
if (!(topicsIds instanceof Array)) {
|
||||||
topicsIds = [topicsIds];
|
topicsIds = [topicsIds];
|
||||||
@ -287,67 +290,70 @@ mindplot.CommandContext = new Class(/** @lends CommandContext */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
deleteTopic:function (topic) {
|
deleteTopic: function (topic) {
|
||||||
this._designer.removeTopic(topic);
|
this._designer.removeTopic(topic);
|
||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
createTopic:function (model) {
|
createTopic: function (model) {
|
||||||
$assert(model, "model can not be null");
|
$assert(model, "model can not be null");
|
||||||
return this._designer.nodeModelToNodeGraph(model);
|
return this._designer.nodeModelToNodeGraph(model);
|
||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
createModel:function () {
|
createModel: function () {
|
||||||
var mindmap = this._designer.getMindmap();
|
var mindmap = this._designer.getMindmap();
|
||||||
return mindmap.createNode(mindplot.NodeModel.MAIN_TOPIC_TYPE);
|
return mindmap.createNode(mindplot.NodeModel.MAIN_TOPIC_TYPE);
|
||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
addTopic:function (topic) {
|
addTopic: function (topic) {
|
||||||
var mindmap = this._designer.getMindmap();
|
var mindmap = this._designer.getMindmap();
|
||||||
return mindmap.addBranch(topic.getModel());
|
return mindmap.addBranch(topic.getModel());
|
||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
connect:function (childTopic, parentTopic) {
|
connect: function (childTopic, parentTopic) {
|
||||||
childTopic.connectTo(parentTopic, this._designer._workspace);
|
childTopic.connectTo(parentTopic, this._designer._workspace);
|
||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
disconnect:function (topic) {
|
disconnect: function (topic) {
|
||||||
topic.disconnect(this._designer._workspace);
|
topic.disconnect(this._designer._workspace);
|
||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
addRelationship:function (model) {
|
addRelationship: function (model) {
|
||||||
$assert(model, "model cannot be null");
|
$assert(model, "model cannot be null");
|
||||||
return this._designer.addRelationship(model);
|
return this._designer.addRelationship(model);
|
||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
deleteRelationship:function (relationship) {
|
deleteRelationship: function (relationship) {
|
||||||
this._designer.deleteRelationship(relationship);
|
this._designer.deleteRelationship(relationship);
|
||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
findRelationships:function (relIds) {
|
findRelationships: function (relIds) {
|
||||||
$assert($defined(relIds), "relId can not be null");
|
$assert($defined(relIds), "relId can not be null");
|
||||||
if (!(relIds instanceof Array)) {
|
if (!(relIds instanceof Array)) {
|
||||||
relIds = [relIds];
|
relIds = [relIds];
|
||||||
}
|
}
|
||||||
|
|
||||||
var designerRel = this._designer.getModel().getRelationships();
|
var designerRel = this._designer.getModel().getRelationships();
|
||||||
return designerRel.filter(function (rel) {
|
return designerRel.filter(function (rel) {
|
||||||
return relIds.contains(rel.getId());
|
return relIds.contains(rel.getId());
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
moveTopic:function (topic, position) {
|
moveTopic: function (topic, position) {
|
||||||
$assert(topic, "topic cannot be null");
|
$assert(topic, "topic cannot be null");
|
||||||
$assert(position, "position cannot be null");
|
$assert(position, "position cannot be null");
|
||||||
mindplot.EventBus.instance.fireEvent(mindplot.EventBus.events.NodeMoveEvent, {node:topic.getModel(), position:position});
|
mindplot.EventBus.instance.fireEvent(mindplot.EventBus.events.NodeMoveEvent, {
|
||||||
|
node: topic.getModel(),
|
||||||
|
position: position
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
@ -17,14 +17,14 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
mindplot.Topic = new Class(/** @lends Topic */{
|
mindplot.Topic = new Class(/** @lends Topic */{
|
||||||
Extends:mindplot.NodeGraph,
|
Extends: mindplot.NodeGraph,
|
||||||
/**
|
/**
|
||||||
* @extends mindplot.NodeGraph
|
* @extends mindplot.NodeGraph
|
||||||
* @constructs
|
* @constructs
|
||||||
* @param model
|
* @param model
|
||||||
* @param options
|
* @param options
|
||||||
*/
|
*/
|
||||||
initialize:function (model, options) {
|
initialize: function (model, options) {
|
||||||
this.parent(model, options);
|
this.parent(model, options);
|
||||||
this._children = [];
|
this._children = [];
|
||||||
this._parent = null;
|
this._parent = null;
|
||||||
@ -44,7 +44,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
_registerEvents:function () {
|
_registerEvents: function () {
|
||||||
|
|
||||||
this.setMouseEventsEnabled(true);
|
this.setMouseEventsEnabled(true);
|
||||||
|
|
||||||
@ -63,16 +63,16 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
* @param {String} type the topic shape type
|
* @param {String} type the topic shape type
|
||||||
* @see {@link mindplot.model.INodeModel}
|
* @see {@link mindplot.model.INodeModel}
|
||||||
*/
|
*/
|
||||||
setShapeType:function (type) {
|
setShapeType: function (type) {
|
||||||
this._setShapeType(type, true);
|
this._setShapeType(type, true);
|
||||||
},
|
},
|
||||||
|
|
||||||
/** @return {mindplot.Topic} parent topic */
|
/** @return {mindplot.Topic} parent topic */
|
||||||
getParent:function () {
|
getParent: function () {
|
||||||
return this._parent;
|
return this._parent;
|
||||||
},
|
},
|
||||||
|
|
||||||
_setShapeType:function (type, updateModel) {
|
_setShapeType: function (type, updateModel) {
|
||||||
// Remove inner shape figure ...
|
// Remove inner shape figure ...
|
||||||
var model = this.getModel();
|
var model = this.getModel();
|
||||||
if ($defined(updateModel) && updateModel) {
|
if ($defined(updateModel) && updateModel) {
|
||||||
@ -114,7 +114,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** @return {String} topic shape type */
|
/** @return {String} topic shape type */
|
||||||
getShapeType:function () {
|
getShapeType: function () {
|
||||||
var model = this.getModel();
|
var model = this.getModel();
|
||||||
var result = model.getShapeType();
|
var result = model.getShapeType();
|
||||||
if (!$defined(result)) {
|
if (!$defined(result)) {
|
||||||
@ -123,7 +123,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
return result;
|
return result;
|
||||||
},
|
},
|
||||||
|
|
||||||
_removeInnerShape:function () {
|
_removeInnerShape: function () {
|
||||||
var group = this.get2DElement();
|
var group = this.get2DElement();
|
||||||
var innerShape = this.getInnerShape();
|
var innerShape = this.getInnerShape();
|
||||||
group.removeChild(innerShape);
|
group.removeChild(innerShape);
|
||||||
@ -132,7 +132,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** @return {web2d.Line|web2d.Rect|web2d.Image} inner shape of the topic */
|
/** @return {web2d.Line|web2d.Rect|web2d.Image} inner shape of the topic */
|
||||||
getInnerShape:function () {
|
getInnerShape: function () {
|
||||||
if (!$defined(this._innerShape)) {
|
if (!$defined(this._innerShape)) {
|
||||||
// Create inner box.
|
// Create inner box.
|
||||||
this._innerShape = this._buildShape(mindplot.Topic.INNER_RECT_ATTRIBUTES, this.getShapeType());
|
this._innerShape = this._buildShape(mindplot.Topic.INNER_RECT_ATTRIBUTES, this.getShapeType());
|
||||||
@ -156,7 +156,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
return this._innerShape;
|
return this._innerShape;
|
||||||
},
|
},
|
||||||
|
|
||||||
_buildShape:function (attributes, shapeType) {
|
_buildShape: function (attributes, shapeType) {
|
||||||
$assert(attributes, "attributes can not be null");
|
$assert(attributes, "attributes can not be null");
|
||||||
$assert(shapeType, "shapeType can not be null");
|
$assert(shapeType, "shapeType can not be null");
|
||||||
|
|
||||||
@ -186,9 +186,9 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
result = new web2d.Rect(0.3, attributes);
|
result = new web2d.Rect(0.3, attributes);
|
||||||
}
|
}
|
||||||
else if (shapeType == mindplot.model.TopicShape.LINE) {
|
else if (shapeType == mindplot.model.TopicShape.LINE) {
|
||||||
result = new web2d.Line({strokeColor:"#495879", strokeWidth:1});
|
result = new web2d.Line({strokeColor: "#495879", strokeWidth: 1});
|
||||||
result.setSize = function (width, height) {
|
result.setSize = function (width, height) {
|
||||||
this.size = {width:width, height:height};
|
this.size = {width: width, height: height};
|
||||||
result.setFrom(0, height);
|
result.setFrom(0, height);
|
||||||
result.setTo(width, height);
|
result.setTo(width, height);
|
||||||
|
|
||||||
@ -220,7 +220,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** @param {String} type the cursor type, either 'pointer', 'default' or 'move' */
|
/** @param {String} type the cursor type, either 'pointer', 'default' or 'move' */
|
||||||
setCursor:function (type) {
|
setCursor: function (type) {
|
||||||
var innerShape = this.getInnerShape();
|
var innerShape = this.getInnerShape();
|
||||||
innerShape.setCursor(type);
|
innerShape.setCursor(type);
|
||||||
|
|
||||||
@ -232,7 +232,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** @return outer shape */
|
/** @return outer shape */
|
||||||
getOuterShape:function () {
|
getOuterShape: function () {
|
||||||
if (!$defined(this._outerShape)) {
|
if (!$defined(this._outerShape)) {
|
||||||
var rect = this._buildShape(mindplot.Topic.OUTER_SHAPE_ATTRIBUTES, mindplot.model.TopicShape.ROUNDED_RECT);
|
var rect = this._buildShape(mindplot.Topic.OUTER_SHAPE_ATTRIBUTES, mindplot.model.TopicShape.ROUNDED_RECT);
|
||||||
rect.setPosition(-2, -3);
|
rect.setPosition(-2, -3);
|
||||||
@ -244,7 +244,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** @return text shape */
|
/** @return text shape */
|
||||||
getTextShape:function () {
|
getTextShape: function () {
|
||||||
if (!$defined(this._text)) {
|
if (!$defined(this._text)) {
|
||||||
this._text = this._buildTextShape(false);
|
this._text = this._buildTextShape(false);
|
||||||
|
|
||||||
@ -257,7 +257,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** @return icon group */
|
/** @return icon group */
|
||||||
getOrBuildIconGroup:function () {
|
getOrBuildIconGroup: function () {
|
||||||
if (!$defined(this._iconsGroup)) {
|
if (!$defined(this._iconsGroup)) {
|
||||||
this._iconsGroup = this._buildIconGroup();
|
this._iconsGroup = this._buildIconGroup();
|
||||||
var group = this.get2DElement();
|
var group = this.get2DElement();
|
||||||
@ -268,11 +268,11 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
getIconGroup:function () {
|
getIconGroup: function () {
|
||||||
return this._iconsGroup;
|
return this._iconsGroup;
|
||||||
},
|
},
|
||||||
|
|
||||||
_buildIconGroup:function () {
|
_buildIconGroup: function () {
|
||||||
var textHeight = this.getTextShape().getFontHeight();
|
var textHeight = this.getTextShape().getFontHeight();
|
||||||
var result = new mindplot.IconGroup(this.getId(), textHeight);
|
var result = new mindplot.IconGroup(this.getId(), textHeight);
|
||||||
var padding = mindplot.TopicStyle.getInnerPadding(this);
|
var padding = mindplot.TopicStyle.getInnerPadding(this);
|
||||||
@ -295,7 +295,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
* @param {mindplot.model.FeatureModel} featureModel
|
* @param {mindplot.model.FeatureModel} featureModel
|
||||||
* @return {mindplot.Icon} the icon corresponding to the feature model
|
* @return {mindplot.Icon} the icon corresponding to the feature model
|
||||||
*/
|
*/
|
||||||
addFeature:function (featureModel) {
|
addFeature: function (featureModel) {
|
||||||
var iconGroup = this.getOrBuildIconGroup();
|
var iconGroup = this.getOrBuildIconGroup();
|
||||||
this.closeEditors();
|
this.closeEditors();
|
||||||
|
|
||||||
@ -311,13 +311,13 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
findFeatureById:function (id) {
|
findFeatureById: function (id) {
|
||||||
var model = this.getModel();
|
var model = this.getModel();
|
||||||
return model.findFeatureById(id);
|
return model.findFeatureById(id);
|
||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
removeFeature:function (featureModel) {
|
removeFeature: function (featureModel) {
|
||||||
$assert(featureModel, "featureModel could not be null");
|
$assert(featureModel, "featureModel could not be null");
|
||||||
|
|
||||||
//Removing the icon from MODEL
|
//Removing the icon from MODEL
|
||||||
@ -333,21 +333,21 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
addRelationship:function (relationship) {
|
addRelationship: function (relationship) {
|
||||||
this._relationships.push(relationship);
|
this._relationships.push(relationship);
|
||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
deleteRelationship:function (relationship) {
|
deleteRelationship: function (relationship) {
|
||||||
this._relationships.erase(relationship);
|
this._relationships.erase(relationship);
|
||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
getRelationships:function () {
|
getRelationships: function () {
|
||||||
return this._relationships;
|
return this._relationships;
|
||||||
},
|
},
|
||||||
|
|
||||||
_buildTextShape:function (readOnly) {
|
_buildTextShape: function (readOnly) {
|
||||||
var result = new web2d.Text();
|
var result = new web2d.Text();
|
||||||
var family = this.getFontFamily();
|
var family = this.getFontFamily();
|
||||||
var size = this.getFontSize();
|
var size = this.getFontSize();
|
||||||
@ -371,7 +371,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
setFontFamily:function (value, updateModel) {
|
setFontFamily: function (value, updateModel) {
|
||||||
var textShape = this.getTextShape();
|
var textShape = this.getTextShape();
|
||||||
textShape.setFontFamily(value);
|
textShape.setFontFamily(value);
|
||||||
if ($defined(updateModel) && updateModel) {
|
if ($defined(updateModel) && updateModel) {
|
||||||
@ -382,7 +382,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
setFontSize:function (value, updateModel) {
|
setFontSize: function (value, updateModel) {
|
||||||
|
|
||||||
var textShape = this.getTextShape();
|
var textShape = this.getTextShape();
|
||||||
textShape.setSize(value);
|
textShape.setSize(value);
|
||||||
@ -396,7 +396,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
setFontStyle:function (value, updateModel) {
|
setFontStyle: function (value, updateModel) {
|
||||||
var textShape = this.getTextShape();
|
var textShape = this.getTextShape();
|
||||||
textShape.setStyle(value);
|
textShape.setStyle(value);
|
||||||
if ($defined(updateModel) && updateModel) {
|
if ($defined(updateModel) && updateModel) {
|
||||||
@ -407,7 +407,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
setFontWeight:function (value, updateModel) {
|
setFontWeight: function (value, updateModel) {
|
||||||
var textShape = this.getTextShape();
|
var textShape = this.getTextShape();
|
||||||
textShape.setWeight(value);
|
textShape.setWeight(value);
|
||||||
if ($defined(updateModel) && updateModel) {
|
if ($defined(updateModel) && updateModel) {
|
||||||
@ -418,7 +418,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
getFontWeight:function () {
|
getFontWeight: function () {
|
||||||
var model = this.getModel();
|
var model = this.getModel();
|
||||||
var result = model.getFontWeight();
|
var result = model.getFontWeight();
|
||||||
if (!$defined(result)) {
|
if (!$defined(result)) {
|
||||||
@ -429,7 +429,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
getFontFamily:function () {
|
getFontFamily: function () {
|
||||||
var model = this.getModel();
|
var model = this.getModel();
|
||||||
var result = model.getFontFamily();
|
var result = model.getFontFamily();
|
||||||
if (!$defined(result)) {
|
if (!$defined(result)) {
|
||||||
@ -440,7 +440,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
getFontColor:function () {
|
getFontColor: function () {
|
||||||
var model = this.getModel();
|
var model = this.getModel();
|
||||||
var result = model.getFontColor();
|
var result = model.getFontColor();
|
||||||
if (!$defined(result)) {
|
if (!$defined(result)) {
|
||||||
@ -451,7 +451,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
getFontStyle:function () {
|
getFontStyle: function () {
|
||||||
var model = this.getModel();
|
var model = this.getModel();
|
||||||
var result = model.getFontStyle();
|
var result = model.getFontStyle();
|
||||||
if (!$defined(result)) {
|
if (!$defined(result)) {
|
||||||
@ -462,7 +462,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
getFontSize:function () {
|
getFontSize: function () {
|
||||||
var model = this.getModel();
|
var model = this.getModel();
|
||||||
var result = model.getFontSize();
|
var result = model.getFontSize();
|
||||||
if (!$defined(result)) {
|
if (!$defined(result)) {
|
||||||
@ -473,7 +473,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
setFontColor:function (value, updateModel) {
|
setFontColor: function (value, updateModel) {
|
||||||
var textShape = this.getTextShape();
|
var textShape = this.getTextShape();
|
||||||
textShape.setColor(value);
|
textShape.setColor(value);
|
||||||
if ($defined(updateModel) && updateModel) {
|
if ($defined(updateModel) && updateModel) {
|
||||||
@ -482,7 +482,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
_setText:function (text, updateModel) {
|
_setText: function (text, updateModel) {
|
||||||
var textShape = this.getTextShape();
|
var textShape = this.getTextShape();
|
||||||
textShape.setText(text == null ? mindplot.TopicStyle.defaultText(this) : text);
|
textShape.setText(text == null ? mindplot.TopicStyle.defaultText(this) : text);
|
||||||
|
|
||||||
@ -493,7 +493,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
setText:function (text) {
|
setText: function (text) {
|
||||||
// Avoid empty nodes ...
|
// Avoid empty nodes ...
|
||||||
if (!text || $.trim(text).length == 0) {
|
if (!text || $.trim(text).length == 0) {
|
||||||
text = null;
|
text = null;
|
||||||
@ -504,7 +504,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
getText:function () {
|
getText: function () {
|
||||||
var model = this.getModel();
|
var model = this.getModel();
|
||||||
var result = model.getText();
|
var result = model.getText();
|
||||||
if (!$defined(result)) {
|
if (!$defined(result)) {
|
||||||
@ -514,11 +514,11 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
setBackgroundColor:function (color) {
|
setBackgroundColor: function (color) {
|
||||||
this._setBackgroundColor(color, true);
|
this._setBackgroundColor(color, true);
|
||||||
},
|
},
|
||||||
|
|
||||||
_setBackgroundColor:function (color, updateModel) {
|
_setBackgroundColor: function (color, updateModel) {
|
||||||
var innerShape = this.getInnerShape();
|
var innerShape = this.getInnerShape();
|
||||||
innerShape.setFill(color);
|
innerShape.setFill(color);
|
||||||
|
|
||||||
@ -534,7 +534,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
getBackgroundColor:function () {
|
getBackgroundColor: function () {
|
||||||
var model = this.getModel();
|
var model = this.getModel();
|
||||||
var result = model.getBackgroundColor();
|
var result = model.getBackgroundColor();
|
||||||
if (!$defined(result)) {
|
if (!$defined(result)) {
|
||||||
@ -544,11 +544,11 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
setBorderColor:function (color) {
|
setBorderColor: function (color) {
|
||||||
this._setBorderColor(color, true);
|
this._setBorderColor(color, true);
|
||||||
},
|
},
|
||||||
|
|
||||||
_setBorderColor:function (color, updateModel) {
|
_setBorderColor: function (color, updateModel) {
|
||||||
var innerShape = this.getInnerShape();
|
var innerShape = this.getInnerShape();
|
||||||
innerShape.setAttribute('strokeColor', color);
|
innerShape.setAttribute('strokeColor', color);
|
||||||
|
|
||||||
@ -564,7 +564,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
getBorderColor:function () {
|
getBorderColor: function () {
|
||||||
var model = this.getModel();
|
var model = this.getModel();
|
||||||
var result = model.getBorderColor();
|
var result = model.getBorderColor();
|
||||||
if (!$defined(result)) {
|
if (!$defined(result)) {
|
||||||
@ -573,8 +573,8 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
return result;
|
return result;
|
||||||
},
|
},
|
||||||
|
|
||||||
_buildTopicShape:function () {
|
_buildTopicShape: function () {
|
||||||
var groupAttributes = {width:100, height:100, coordSizeWidth:100, coordSizeHeight:100};
|
var groupAttributes = {width: 100, height: 100, coordSizeWidth: 100, coordSizeHeight: 100};
|
||||||
var group = new web2d.Group(groupAttributes);
|
var group = new web2d.Group(groupAttributes);
|
||||||
this._set2DElement(group);
|
this._set2DElement(group);
|
||||||
|
|
||||||
@ -603,7 +603,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
this._registerDefaultListenersToElement(group, this);
|
this._registerDefaultListenersToElement(group, this);
|
||||||
},
|
},
|
||||||
|
|
||||||
_registerDefaultListenersToElement:function (elem, topic) {
|
_registerDefaultListenersToElement: function (elem, topic) {
|
||||||
var mouseOver = function (event) {
|
var mouseOver = function (event) {
|
||||||
if (topic.isMouseEventsEnabled()) {
|
if (topic.isMouseEventsEnabled()) {
|
||||||
topic.handleMouseOver(event);
|
topic.handleMouseOver(event);
|
||||||
@ -640,13 +640,13 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
areChildrenShrunken:function () {
|
areChildrenShrunken: function () {
|
||||||
var model = this.getModel();
|
var model = this.getModel();
|
||||||
return model.areChildrenShrunken() && !this.isCentralTopic();
|
return model.areChildrenShrunken() && !this.isCentralTopic();
|
||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
isCollapsed:function () {
|
isCollapsed: function () {
|
||||||
var result = false;
|
var result = false;
|
||||||
|
|
||||||
var current = this.getParent();
|
var current = this.getParent();
|
||||||
@ -658,7 +658,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
setChildrenShrunken:function (value) {
|
setChildrenShrunken: function (value) {
|
||||||
// Update Model ...
|
// Update Model ...
|
||||||
var model = this.getModel();
|
var model = this.getModel();
|
||||||
model.setChildrenShrunken(value);
|
model.setChildrenShrunken(value);
|
||||||
@ -693,7 +693,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
getShrinkConnector:function () {
|
getShrinkConnector: function () {
|
||||||
var result = this._connector;
|
var result = this._connector;
|
||||||
if (this._connector == null) {
|
if (this._connector == null) {
|
||||||
this._connector = new mindplot.ShirinkConnector(this);
|
this._connector = new mindplot.ShirinkConnector(this);
|
||||||
@ -705,13 +705,13 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
handleMouseOver:function () {
|
handleMouseOver: function () {
|
||||||
var outerShape = this.getOuterShape();
|
var outerShape = this.getOuterShape();
|
||||||
outerShape.setOpacity(1);
|
outerShape.setOpacity(1);
|
||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
handleMouseOut:function () {
|
handleMouseOut: function () {
|
||||||
var outerShape = this.getOuterShape();
|
var outerShape = this.getOuterShape();
|
||||||
if (!this.isOnFocus()) {
|
if (!this.isOnFocus()) {
|
||||||
outerShape.setOpacity(0);
|
outerShape.setOpacity(0);
|
||||||
@ -719,17 +719,17 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
showTextEditor:function (text) {
|
showTextEditor: function (text) {
|
||||||
this._getTopicEventDispatcher().show(this, {text:text});
|
this._getTopicEventDispatcher().show(this, {text: text});
|
||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
showNoteEditor:function () {
|
showNoteEditor: function () {
|
||||||
|
|
||||||
var topicId = this.getId();
|
var topicId = this.getId();
|
||||||
var model = this.getModel();
|
var model = this.getModel();
|
||||||
var editorModel = {
|
var editorModel = {
|
||||||
getValue:function () {
|
getValue: function () {
|
||||||
var notes = model.findFeatureByType(mindplot.TopicFeature.Note.id);
|
var notes = model.findFeatureByType(mindplot.TopicFeature.Note.id);
|
||||||
var result;
|
var result;
|
||||||
if (notes.length > 0)
|
if (notes.length > 0)
|
||||||
@ -738,7 +738,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
return result;
|
return result;
|
||||||
},
|
},
|
||||||
|
|
||||||
setValue:function (value) {
|
setValue: function (value) {
|
||||||
var dispatcher = mindplot.ActionDispatcher.getInstance();
|
var dispatcher = mindplot.ActionDispatcher.getInstance();
|
||||||
var notes = model.findFeatureByType(mindplot.TopicFeature.Note.id);
|
var notes = model.findFeatureByType(mindplot.TopicFeature.Note.id);
|
||||||
if (!$defined(value)) {
|
if (!$defined(value)) {
|
||||||
@ -747,10 +747,10 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (notes.length > 0) {
|
if (notes.length > 0) {
|
||||||
dispatcher.changeFeatureToTopic(topicId, notes[0].getId(), {text:value});
|
dispatcher.changeFeatureToTopic(topicId, notes[0].getId(), {text: value});
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
dispatcher.addFeatureToTopic(topicId, mindplot.TopicFeature.Note.id, {text:value});
|
dispatcher.addFeatureToTopic(topicId, mindplot.TopicFeature.Note.id, {text: value});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -761,12 +761,12 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** opens a dialog where the user can enter or edit an existing link associated with this topic */
|
/** opens a dialog where the user can enter or edit an existing link associated with this topic */
|
||||||
showLinkEditor:function () {
|
showLinkEditor: function () {
|
||||||
|
|
||||||
var topicId = this.getId();
|
var topicId = this.getId();
|
||||||
var model = this.getModel();
|
var model = this.getModel();
|
||||||
var editorModel = {
|
var editorModel = {
|
||||||
getValue:function () {
|
getValue: function () {
|
||||||
//@param {mindplot.model.LinkModel[]} links
|
//@param {mindplot.model.LinkModel[]} links
|
||||||
var links = model.findFeatureByType(mindplot.TopicFeature.Link.id);
|
var links = model.findFeatureByType(mindplot.TopicFeature.Link.id);
|
||||||
var result;
|
var result;
|
||||||
@ -776,7 +776,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
return result;
|
return result;
|
||||||
},
|
},
|
||||||
|
|
||||||
setValue:function (value) {
|
setValue: function (value) {
|
||||||
var dispatcher = mindplot.ActionDispatcher.getInstance();
|
var dispatcher = mindplot.ActionDispatcher.getInstance();
|
||||||
var links = model.findFeatureByType(mindplot.TopicFeature.Link.id);
|
var links = model.findFeatureByType(mindplot.TopicFeature.Link.id);
|
||||||
if (!$defined(value)) {
|
if (!$defined(value)) {
|
||||||
@ -785,10 +785,10 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (links.length > 0) {
|
if (links.length > 0) {
|
||||||
dispatcher.changeFeatureToTopic(topicId, links[0].getId(), {url:value});
|
dispatcher.changeFeatureToTopic(topicId, links[0].getId(), {url: value});
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
dispatcher.addFeatureToTopic(topicId, mindplot.TopicFeature.Link.id, {url:value});
|
dispatcher.addFeatureToTopic(topicId, mindplot.TopicFeature.Link.id, {url: value});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -800,18 +800,18 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
closeEditors:function () {
|
closeEditors: function () {
|
||||||
this._getTopicEventDispatcher().close(true);
|
this._getTopicEventDispatcher().close(true);
|
||||||
},
|
},
|
||||||
|
|
||||||
_getTopicEventDispatcher:function () {
|
_getTopicEventDispatcher: function () {
|
||||||
return mindplot.TopicEventDispatcher.getInstance();
|
return mindplot.TopicEventDispatcher.getInstance();
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Point: references the center of the rect shape.!!!
|
* Point: references the center of the rect shape.!!!
|
||||||
*/
|
*/
|
||||||
setPosition:function (point) {
|
setPosition: function (point) {
|
||||||
$assert(point, "position can not be null");
|
$assert(point, "position can not be null");
|
||||||
point.x = Math.ceil(point.x);
|
point.x = Math.ceil(point.x);
|
||||||
point.y = Math.ceil(point.y);
|
point.y = Math.ceil(point.y);
|
||||||
@ -838,12 +838,12 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
getOutgoingLine:function () {
|
getOutgoingLine: function () {
|
||||||
return this._outgoingLine;
|
return this._outgoingLine;
|
||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
getIncomingLines:function () {
|
getIncomingLines: function () {
|
||||||
var result = [];
|
var result = [];
|
||||||
var children = this.getChildren();
|
var children = this.getChildren();
|
||||||
for (var i = 0; i < children.length; i++) {
|
for (var i = 0; i < children.length; i++) {
|
||||||
@ -857,7 +857,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
getOutgoingConnectedTopic:function () {
|
getOutgoingConnectedTopic: function () {
|
||||||
var result = null;
|
var result = null;
|
||||||
var line = this.getOutgoingLine();
|
var line = this.getOutgoingLine();
|
||||||
if ($defined(line)) {
|
if ($defined(line)) {
|
||||||
@ -866,7 +866,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
return result;
|
return result;
|
||||||
},
|
},
|
||||||
|
|
||||||
_updateConnectionLines:function () {
|
_updateConnectionLines: function () {
|
||||||
// Update this to parent line ...
|
// Update this to parent line ...
|
||||||
var outgoingLine = this.getOutgoingLine();
|
var outgoingLine = this.getOutgoingLine();
|
||||||
if ($defined(outgoingLine)) {
|
if ($defined(outgoingLine)) {
|
||||||
@ -886,7 +886,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
setBranchVisibility:function (value) {
|
setBranchVisibility: function (value) {
|
||||||
var current = this;
|
var current = this;
|
||||||
var parent = this;
|
var parent = this;
|
||||||
while (parent != null && !parent.isCentralTopic()) {
|
while (parent != null && !parent.isCentralTopic()) {
|
||||||
@ -897,7 +897,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
setVisibility:function (value) {
|
setVisibility: function (value) {
|
||||||
this._setTopicVisibility(value);
|
this._setTopicVisibility(value);
|
||||||
|
|
||||||
// Hide all children...
|
// Hide all children...
|
||||||
@ -914,7 +914,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
moveToBack:function () {
|
moveToBack: function () {
|
||||||
|
|
||||||
// Update relationship lines
|
// Update relationship lines
|
||||||
for (var j = 0; j < this._relationships.length; j++) {
|
for (var j = 0; j < this._relationships.length; j++) {
|
||||||
@ -929,7 +929,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
moveToFront:function () {
|
moveToFront: function () {
|
||||||
|
|
||||||
this.get2DElement().moveToFront();
|
this.get2DElement().moveToFront();
|
||||||
var connector = this.getShrinkConnector();
|
var connector = this.getShrinkConnector();
|
||||||
@ -943,12 +943,12 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
isVisible:function () {
|
isVisible: function () {
|
||||||
var elem = this.get2DElement();
|
var elem = this.get2DElement();
|
||||||
return elem.isVisible();
|
return elem.isVisible();
|
||||||
},
|
},
|
||||||
|
|
||||||
_setRelationshipLinesVisibility:function (value) {
|
_setRelationshipLinesVisibility: function (value) {
|
||||||
_.each(this._relationships, function (relationship) {
|
_.each(this._relationships, function (relationship) {
|
||||||
var sourceTopic = relationship.getSourceTopic();
|
var sourceTopic = relationship.getSourceTopic();
|
||||||
var targetTopic = relationship.getTargetTopic();
|
var targetTopic = relationship.getTargetTopic();
|
||||||
@ -959,7 +959,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
_setTopicVisibility:function (value) {
|
_setTopicVisibility: function (value) {
|
||||||
var elem = this.get2DElement();
|
var elem = this.get2DElement();
|
||||||
elem.setVisibility(value);
|
elem.setVisibility(value);
|
||||||
|
|
||||||
@ -975,7 +975,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
setOpacity:function (opacity) {
|
setOpacity: function (opacity) {
|
||||||
var elem = this.get2DElement();
|
var elem = this.get2DElement();
|
||||||
elem.setOpacity(opacity);
|
elem.setOpacity(opacity);
|
||||||
|
|
||||||
@ -987,7 +987,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
textShape.setOpacity(opacity);
|
textShape.setOpacity(opacity);
|
||||||
},
|
},
|
||||||
|
|
||||||
_setChildrenVisibility:function (isVisible) {
|
_setChildrenVisibility: function (isVisible) {
|
||||||
|
|
||||||
// Hide all children.
|
// Hide all children.
|
||||||
var children = this.getChildren();
|
var children = this.getChildren();
|
||||||
@ -1005,7 +1005,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
invariant:function () {
|
invariant: function () {
|
||||||
var line = this._outgoingLine;
|
var line = this._outgoingLine;
|
||||||
var model = this.getModel();
|
var model = this.getModel();
|
||||||
var isConnected = model.isConnected();
|
var isConnected = model.isConnected();
|
||||||
@ -1017,10 +1017,10 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
setSize:function (size, force) {
|
setSize: function (size, force) {
|
||||||
$assert(size, "size can not be null");
|
$assert(size, "size can not be null");
|
||||||
$assert($defined(size.width), "size seem not to be a valid element");
|
$assert($defined(size.width), "size seem not to be a valid element");
|
||||||
size = {width:Math.ceil(size.width), height:Math.ceil(size.height)};
|
size = {width: Math.ceil(size.width), height: Math.ceil(size.height)};
|
||||||
|
|
||||||
var oldSize = this.getSize();
|
var oldSize = this.getSize();
|
||||||
var hasSizeChanged = oldSize.width != size.width || oldSize.height != size.height;
|
var hasSizeChanged = oldSize.width != size.width || oldSize.height != size.height;
|
||||||
@ -1037,17 +1037,20 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
this._updatePositionOnChangeSize(oldSize, size);
|
this._updatePositionOnChangeSize(oldSize, size);
|
||||||
|
|
||||||
if (hasSizeChanged) {
|
if (hasSizeChanged) {
|
||||||
mindplot.EventBus.instance.fireEvent(mindplot.EventBus.events.NodeResizeEvent, {node:this.getModel(), size:size});
|
mindplot.EventBus.instance.fireEvent(mindplot.EventBus.events.NodeResizeEvent, {
|
||||||
|
node: this.getModel(),
|
||||||
|
size: size
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
_updatePositionOnChangeSize:function () {
|
_updatePositionOnChangeSize: function () {
|
||||||
$assert(false, "this method must be overwrited.");
|
$assert(false, "this method must be overwrited.");
|
||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
disconnect:function (workspace) {
|
disconnect: function (workspace) {
|
||||||
var outgoingLine = this.getOutgoingLine();
|
var outgoingLine = this.getOutgoingLine();
|
||||||
if ($defined(outgoingLine)) {
|
if ($defined(outgoingLine)) {
|
||||||
$assert(workspace, 'workspace can not be null');
|
$assert(workspace, 'workspace can not be null');
|
||||||
@ -1092,19 +1095,19 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
getOrder:function () {
|
getOrder: function () {
|
||||||
var model = this.getModel();
|
var model = this.getModel();
|
||||||
return model.getOrder();
|
return model.getOrder();
|
||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
setOrder:function (value) {
|
setOrder: function (value) {
|
||||||
var model = this.getModel();
|
var model = this.getModel();
|
||||||
model.setOrder(value);
|
model.setOrder(value);
|
||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
connectTo:function (targetTopic, workspace) {
|
connectTo: function (targetTopic, workspace) {
|
||||||
$assert(!this._outgoingLine, 'Could not connect an already connected node');
|
$assert(!this._outgoingLine, 'Could not connect an already connected node');
|
||||||
$assert(targetTopic != this, 'Circular connection are not allowed');
|
$assert(targetTopic != this, 'Circular connection are not allowed');
|
||||||
$assert(targetTopic, 'Parent Graph can not be null');
|
$assert(targetTopic, 'Parent Graph can not be null');
|
||||||
@ -1152,24 +1155,27 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
|
|
||||||
// Fire connection event ...
|
// Fire connection event ...
|
||||||
if (this.isInWorkspace()) {
|
if (this.isInWorkspace()) {
|
||||||
mindplot.EventBus.instance.fireEvent(mindplot.EventBus.events.NodeConnectEvent, {parentNode:targetTopic.getModel(), childNode:this.getModel()});
|
mindplot.EventBus.instance.fireEvent(mindplot.EventBus.events.NodeConnectEvent, {
|
||||||
|
parentNode: targetTopic.getModel(),
|
||||||
|
childNode: this.getModel()
|
||||||
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
append:function (child) {
|
append: function (child) {
|
||||||
var children = this.getChildren();
|
var children = this.getChildren();
|
||||||
children.push(child);
|
children.push(child);
|
||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
removeChild:function (child) {
|
removeChild: function (child) {
|
||||||
var children = this.getChildren();
|
var children = this.getChildren();
|
||||||
children.erase(child);
|
children.erase(child);
|
||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
getChildren:function () {
|
getChildren: function () {
|
||||||
var result = this._children;
|
var result = this._children;
|
||||||
if (!$defined(result)) {
|
if (!$defined(result)) {
|
||||||
this._children = [];
|
this._children = [];
|
||||||
@ -1179,7 +1185,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
removeFromWorkspace:function (workspace) {
|
removeFromWorkspace: function (workspace) {
|
||||||
var elem2d = this.get2DElement();
|
var elem2d = this.get2DElement();
|
||||||
workspace.removeChild(elem2d);
|
workspace.removeChild(elem2d);
|
||||||
var line = this.getOutgoingLine();
|
var line = this.getOutgoingLine();
|
||||||
@ -1191,7 +1197,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
addToWorkspace:function (workspace) {
|
addToWorkspace: function (workspace) {
|
||||||
var elem = this.get2DElement();
|
var elem = this.get2DElement();
|
||||||
workspace.append(elem);
|
workspace.append(elem);
|
||||||
if (!this.isInWorkspace()) {
|
if (!this.isInWorkspace()) {
|
||||||
@ -1200,7 +1206,10 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (this.getModel().isConnected())
|
if (this.getModel().isConnected())
|
||||||
mindplot.EventBus.instance.fireEvent(mindplot.EventBus.events.NodeConnectEvent, {parentNode:this.getOutgoingConnectedTopic().getModel(), childNode:this.getModel()});
|
mindplot.EventBus.instance.fireEvent(mindplot.EventBus.events.NodeConnectEvent, {
|
||||||
|
parentNode: this.getOutgoingConnectedTopic().getModel(),
|
||||||
|
childNode: this.getModel()
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
this._isInWorkspace = true;
|
this._isInWorkspace = true;
|
||||||
@ -1208,12 +1217,12 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
isInWorkspace:function () {
|
isInWorkspace: function () {
|
||||||
return this._isInWorkspace;
|
return this._isInWorkspace;
|
||||||
},
|
},
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
createDragNode:function (layoutManager) {
|
createDragNode: function (layoutManager) {
|
||||||
var result = this.parent(layoutManager);
|
var result = this.parent(layoutManager);
|
||||||
|
|
||||||
// Is the node already connected ?
|
// Is the node already connected ?
|
||||||
@ -1229,7 +1238,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
return result;
|
return result;
|
||||||
},
|
},
|
||||||
|
|
||||||
_adjustShapes:function () {
|
_adjustShapes: function () {
|
||||||
if (this._isInWorkspace) {
|
if (this._isInWorkspace) {
|
||||||
|
|
||||||
var textShape = this.getTextShape();
|
var textShape = this.getTextShape();
|
||||||
@ -1258,7 +1267,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
var height = textHeight + (topicPadding * 2);
|
var height = textHeight + (topicPadding * 2);
|
||||||
var width = textWidth + iconsWidth + (topicPadding * 2);
|
var width = textWidth + iconsWidth + (topicPadding * 2);
|
||||||
|
|
||||||
this.setSize({width:width, height:height});
|
this.setSize({width: width, height: height});
|
||||||
|
|
||||||
// Position node ...
|
// Position node ...
|
||||||
textShape.setPosition(topicPadding + iconsWidth, topicPadding);
|
textShape.setPosition(topicPadding + iconsWidth, topicPadding);
|
||||||
@ -1270,7 +1279,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
_flatten2DElements:function (topic) {
|
_flatten2DElements: function (topic) {
|
||||||
var result = [];
|
var result = [];
|
||||||
|
|
||||||
var children = topic.getChildren();
|
var children = topic.getChildren();
|
||||||
@ -1295,7 +1304,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
* @param childTopic
|
* @param childTopic
|
||||||
* @return {Boolean} true if childtopic is a child topic of this topic or the topic itself
|
* @return {Boolean} true if childtopic is a child topic of this topic or the topic itself
|
||||||
*/
|
*/
|
||||||
isChildTopic:function (childTopic) {
|
isChildTopic: function (childTopic) {
|
||||||
var result = (this.getId() == childTopic.getId());
|
var result = (this.getId() == childTopic.getId());
|
||||||
if (!result) {
|
if (!result) {
|
||||||
var children = this.getChildren();
|
var children = this.getChildren();
|
||||||
@ -1311,7 +1320,7 @@ mindplot.Topic = new Class(/** @lends Topic */{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** @return {Boolean} true if the topic is the central topic of the map */
|
/** @return {Boolean} true if the topic is the central topic of the map */
|
||||||
isCentralTopic:function () {
|
isCentralTopic: function () {
|
||||||
return this.getModel().getType() == mindplot.model.INodeModel.CENTRAL_TOPIC_TYPE;
|
return this.getModel().getType() == mindplot.model.INodeModel.CENTRAL_TOPIC_TYPE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1329,19 +1338,19 @@ mindplot.Topic.CONNECTOR_WIDTH = 6;
|
|||||||
* @type {Object<String, Number>}
|
* @type {Object<String, Number>}
|
||||||
* @default
|
* @default
|
||||||
*/
|
*/
|
||||||
mindplot.Topic.OUTER_SHAPE_ATTRIBUTES = {fillColor:'rgb(252,235,192)', stroke:'1 dot rgb(241,163,39)', x:0, y:0};
|
mindplot.Topic.OUTER_SHAPE_ATTRIBUTES = {fillColor: 'rgb(252,235,192)', stroke: '1 dot rgb(241,163,39)', x: 0, y: 0};
|
||||||
/**
|
/**
|
||||||
* @constant
|
* @constant
|
||||||
* @type {Object<String, Number>}
|
* @type {Object<String, Number>}
|
||||||
* @default
|
* @default
|
||||||
*/
|
*/
|
||||||
mindplot.Topic.OUTER_SHAPE_ATTRIBUTES_FOCUS = {fillColor:'rgb(244,184,45)', x:0, y:0};
|
mindplot.Topic.OUTER_SHAPE_ATTRIBUTES_FOCUS = {fillColor: 'rgb(244,184,45)', x: 0, y: 0};
|
||||||
/**
|
/**
|
||||||
* @constant
|
* @constant
|
||||||
* @type {Object<String>}
|
* @type {Object<String>}
|
||||||
* @default
|
* @default
|
||||||
* */
|
* */
|
||||||
mindplot.Topic.INNER_RECT_ATTRIBUTES = {stroke:'2 solid'};
|
mindplot.Topic.INNER_RECT_ATTRIBUTES = {stroke: '2 solid'};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
@ -25,7 +25,7 @@ mindplot.commands.GenericFunctionCommand = new Class(/** @lends GenericFunctionC
|
|||||||
* @constructs
|
* @constructs
|
||||||
* @param {Function} commandFunc the function the command shall execute
|
* @param {Function} commandFunc the function the command shall execute
|
||||||
* @param {String|Array<String>} topicsIds the ids of the topics affected
|
* @param {String|Array<String>} topicsIds the ids of the topics affected
|
||||||
* @param {Object} value arbitrary value necessary for the execution of the function,
|
* @param {Object} [value] value arbitrary value necessary for the execution of the function,
|
||||||
* e.g. color, font family or text
|
* e.g. color, font family or text
|
||||||
* @extends mindplot.Command
|
* @extends mindplot.Command
|
||||||
*/
|
*/
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright [2012] [wisemapping]
|
/* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2012] [wisemapping]
|
* Copyright [2015] [wisemapping]
|
||||||
*
|
*
|
||||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user