mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 22:27:55 +01:00
Minor fix.
This commit is contained in:
parent
e2da27ebc8
commit
1b2c7b1ce2
@ -1,4 +1,21 @@
|
|||||||
mindplot.collaboration = {};
|
/*
|
||||||
|
* Copyright [2011] [wisemapping]
|
||||||
|
*
|
||||||
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
* "powered by wisemapping" text requirement on every single page;
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the license at
|
||||||
|
*
|
||||||
|
* http://www.wisemapping.org/license
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
mindplot.collaboration.CollaborationManager = new Class({
|
mindplot.collaboration.CollaborationManager = new Class({
|
||||||
initialize:function() {
|
initialize:function() {
|
||||||
this.collaborativeModelReady = false;
|
this.collaborativeModelReady = false;
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
mindplot.collaboration.frameworks = {};
|
|
||||||
|
|
||||||
mindplot.collaboration.frameworks.AbstractCollaborativeFramework = new Class({
|
mindplot.collaboration.frameworks.AbstractCollaborativeFramework = new Class({
|
||||||
initialize: function(model, collaborativeModelFactory) {
|
initialize: function(model, collaborativeModelFactory) {
|
||||||
this._collaborativeModelFactory = collaborativeModelFactory;
|
this._collaborativeModelFactory = collaborativeModelFactory;
|
||||||
|
@ -1,5 +1,24 @@
|
|||||||
|
/*
|
||||||
|
* Copyright [2011] [wisemapping]
|
||||||
|
*
|
||||||
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
* "powered by wisemapping" text requirement on every single page;
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the license at
|
||||||
|
*
|
||||||
|
* http://www.wisemapping.org/license
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
mindplot.collaboration.frameworks.AbstractCollaborativeModelFactory = new Class({
|
mindplot.collaboration.frameworks.AbstractCollaborativeModelFactory = new Class({
|
||||||
initialize:function(){},
|
initialize:function() {
|
||||||
|
},
|
||||||
buildMindMap:function() {
|
buildMindMap:function() {
|
||||||
|
|
||||||
},
|
},
|
||||||
|
@ -1,3 +1,21 @@
|
|||||||
|
/*
|
||||||
|
* Copyright [2011] [wisemapping]
|
||||||
|
*
|
||||||
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
* "powered by wisemapping" text requirement on every single page;
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the license at
|
||||||
|
*
|
||||||
|
* http://www.wisemapping.org/license
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
mindplot.collaboration.frameworks.brix.BrixCollaborativeModelFactory = new Class({
|
mindplot.collaboration.frameworks.brix.BrixCollaborativeModelFactory = new Class({
|
||||||
Extends:mindplot.collaboration.frameworks.AbstractCollaborativeModelFactory,
|
Extends:mindplot.collaboration.frameworks.AbstractCollaborativeModelFactory,
|
||||||
initialize:function(brixFramework) {
|
initialize:function(brixFramework) {
|
||||||
|
@ -1,6 +1,23 @@
|
|||||||
|
/*
|
||||||
|
* Copyright [2011] [wisemapping]
|
||||||
|
*
|
||||||
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||||
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||||
|
* "powered by wisemapping" text requirement on every single page;
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the license at
|
||||||
|
*
|
||||||
|
* http://www.wisemapping.org/license
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
mindplot.collaboration.frameworks.brix.BrixFramework = new Class({
|
mindplot.collaboration.frameworks.brix.BrixFramework = new Class({
|
||||||
Extends: mindplot.collaboration.frameworks.AbstractCollaborativeFramework,
|
Extends: mindplot.collaboration.frameworks.AbstractCollaborativeFramework,
|
||||||
|
|
||||||
initialize: function(model, app) {
|
initialize: function(model, app) {
|
||||||
this._app = app;
|
this._app = app;
|
||||||
var collaborativeModelFactory = new mindplot.collaboration.frameworks.brix.BrixCollaborativeModelFactory(this);
|
var collaborativeModelFactory = new mindplot.collaboration.frameworks.brix.BrixCollaborativeModelFactory(this);
|
||||||
|
@ -15,8 +15,7 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
mindplot.collaboration.frameworks.brix = {};
|
|
||||||
mindplot.collaboration.frameworks.brix.model = {};
|
|
||||||
mindplot.collaboration.frameworks.brix.model.NodeModel = new Class({
|
mindplot.collaboration.frameworks.brix.model.NodeModel = new Class({
|
||||||
Extends: mindplot.model.NodeModel,
|
Extends: mindplot.model.NodeModel,
|
||||||
Attributes: ['text','fontSize','fontFamily','fontStyle','fontColor','fontWeight','borderColor','backgroundColor','shapeType'],
|
Attributes: ['text','fontSize','fontFamily','fontStyle','fontColor','fontWeight','borderColor','backgroundColor','shapeType'],
|
||||||
@ -161,24 +160,20 @@ mindplot.collaboration.frameworks.brix.model.NodeModel = new Class({
|
|||||||
result._backgroundColor = this._backgroundColor;
|
result._backgroundColor = this._backgroundColor;
|
||||||
result._areChildrenShrinked = this._areChildrenShrinked;
|
result._areChildrenShrinked = this._areChildrenShrinked;
|
||||||
return result;
|
return result;
|
||||||
}
|
},
|
||||||
,
|
|
||||||
|
|
||||||
areChildrenShrinked : function() {
|
areChildrenShrinked : function() {
|
||||||
return this._areChildrenShrinked;
|
return this._areChildrenShrinked;
|
||||||
}
|
},
|
||||||
,
|
|
||||||
|
|
||||||
setChildrenShrinked : function(value) {
|
setChildrenShrinked : function(value) {
|
||||||
this._areChildrenShrinked = value;
|
this._areChildrenShrinked = value;
|
||||||
}
|
},
|
||||||
,
|
|
||||||
|
|
||||||
getId : function() {
|
getId : function() {
|
||||||
return this._id;
|
return this._id;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
setId : function(id) {
|
setId : function(id) {
|
||||||
this._id = id;
|
this._id = id;
|
||||||
if (mindplot.model.NodeModel._uuid < id) {
|
if (mindplot.model.NodeModel._uuid < id) {
|
||||||
@ -294,8 +289,7 @@ mindplot.collaboration.frameworks.brix.model.NodeModel = new Class({
|
|||||||
setSize : function(width, height) {
|
setSize : function(width, height) {
|
||||||
this._size.width = width;
|
this._size.width = width;
|
||||||
this._size.height = height;
|
this._size.height = height;
|
||||||
}
|
},
|
||||||
,
|
|
||||||
|
|
||||||
getSize : function() {
|
getSize : function() {
|
||||||
return {width:this._size.width,height:this._size.height};
|
return {width:this._size.width,height:this._size.height};
|
||||||
@ -303,33 +297,27 @@ mindplot.collaboration.frameworks.brix.model.NodeModel = new Class({
|
|||||||
|
|
||||||
getChildren : function() {
|
getChildren : function() {
|
||||||
return this._children;
|
return this._children;
|
||||||
}
|
},
|
||||||
,
|
|
||||||
|
|
||||||
getIcons : function() {
|
getIcons : function() {
|
||||||
return this._icons;
|
return this._icons;
|
||||||
}
|
},
|
||||||
,
|
|
||||||
|
|
||||||
getLinks : function() {
|
getLinks : function() {
|
||||||
return this._links;
|
return this._links;
|
||||||
}
|
},
|
||||||
,
|
|
||||||
|
|
||||||
getNotes : function() {
|
getNotes : function() {
|
||||||
return this._notes;
|
return this._notes;
|
||||||
}
|
},
|
||||||
,
|
|
||||||
|
|
||||||
getParent : function() {
|
getParent : function() {
|
||||||
return this._parent;
|
return this._parent;
|
||||||
}
|
},
|
||||||
,
|
|
||||||
|
|
||||||
getMindmap : function() {
|
getMindmap : function() {
|
||||||
return this._mindmap;
|
return this._mindmap;
|
||||||
}
|
},
|
||||||
,
|
|
||||||
|
|
||||||
setParent : function(parent) {
|
setParent : function(parent) {
|
||||||
$assert(parent != this, 'The same node can not be parent and child if itself.');
|
$assert(parent != this, 'The same node can not be parent and child if itself.');
|
||||||
@ -413,14 +401,6 @@ mindplot.collaboration.frameworks.brix.model.NodeModel = new Class({
|
|||||||
return this._order;
|
return this._order;
|
||||||
},
|
},
|
||||||
|
|
||||||
getShapeType : function() {
|
|
||||||
return this._shapeType;
|
|
||||||
},
|
|
||||||
|
|
||||||
setShapeType : function(type) {
|
|
||||||
this._shapeType = type;
|
|
||||||
},
|
|
||||||
|
|
||||||
setOrder : function(value) {
|
setOrder : function(value) {
|
||||||
this._order = value;
|
this._order = value;
|
||||||
},
|
},
|
||||||
|
@ -16,15 +16,13 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// (C) Copyright 2007 WiseMapping.com. All Rights Reserved
|
|
||||||
// THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF WiseMapping.com
|
|
||||||
// The copyright notice above does not evidence any actual or intended
|
|
||||||
// publication of such source code.
|
|
||||||
// ....................................................................
|
|
||||||
|
|
||||||
var mindplot = {};
|
var mindplot = {};
|
||||||
mindplot.util = {};
|
mindplot.util = {};
|
||||||
mindplot.commands = {};
|
mindplot.commands = {};
|
||||||
mindplot.layout = {};
|
mindplot.layout = {};
|
||||||
mindplot.widget = {};
|
mindplot.widget = {};
|
||||||
mindplot.model = {};
|
mindplot.model = {};
|
||||||
|
mindplot.collaboration = {};
|
||||||
|
mindplot.collaboration.frameworks = {};
|
||||||
|
mindplot.collaboration.frameworks.brix = {};
|
||||||
|
mindplot.collaboration.frameworks.brix.model = {};
|
Loading…
Reference in New Issue
Block a user