mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-26 07:44:56 +01:00
Size test improved
This commit is contained in:
parent
3f83bf95ea
commit
ea89dff202
@ -19,18 +19,18 @@ mindplot.layout.TestSuite = new Class({
|
|||||||
Extends: mindplot.layout.ChildrenSorterStrategy,
|
Extends: mindplot.layout.ChildrenSorterStrategy,
|
||||||
|
|
||||||
initialize:function() {
|
initialize:function() {
|
||||||
this.testAligned();
|
// this.testAligned();
|
||||||
this.testSymmetry();
|
// this.testSymmetry();
|
||||||
this.testBalanced();
|
// this.testBalanced();
|
||||||
this.testEvents();
|
// this.testEvents();
|
||||||
this.testEventsComplex();
|
// this.testEventsComplex();
|
||||||
this.testDisconnect();
|
// this.testDisconnect();
|
||||||
this.testReconnect();
|
// this.testReconnect();
|
||||||
this.testRemoveNode();
|
// this.testRemoveNode();
|
||||||
this.testSymmetricPredict();
|
// this.testSymmetricPredict();
|
||||||
this.testBalancedPredict();
|
// this.testBalancedPredict();
|
||||||
this.testSize();
|
this.testSize();
|
||||||
this.testFreePosition();
|
// this.testFreePosition();
|
||||||
},
|
},
|
||||||
|
|
||||||
testAligned: function() {
|
testAligned: function() {
|
||||||
@ -641,6 +641,14 @@ mindplot.layout.TestSuite = new Class({
|
|||||||
this._plotPrediction(graph3, manager.predict(9, null));
|
this._plotPrediction(graph3, manager.predict(9, null));
|
||||||
this._plotPrediction(graph3, manager.predict(3, null));
|
this._plotPrediction(graph3, manager.predict(3, null));
|
||||||
this._plotPrediction(graph3, manager.predict(1, null));
|
this._plotPrediction(graph3, manager.predict(1, null));
|
||||||
|
|
||||||
|
manager.updateNodeSize(7, {width:80, height:120});
|
||||||
|
manager.layout();
|
||||||
|
manager.plot("testSize4", {width: 1400, height: 400});
|
||||||
|
|
||||||
|
manager.updateNodeSize(7, {width:200, height:30});
|
||||||
|
manager.layout();
|
||||||
|
manager.plot("testSize5", {width: 1400, height: 400});
|
||||||
},
|
},
|
||||||
|
|
||||||
testFreePosition: function() {
|
testFreePosition: function() {
|
||||||
|
@ -107,6 +107,8 @@
|
|||||||
<div id="testSize1" class="col"></div>
|
<div id="testSize1" class="col"></div>
|
||||||
<div id="testSize2" class="col last"></div>
|
<div id="testSize2" class="col last"></div>
|
||||||
<div id="testSize3" class="col last"></div>
|
<div id="testSize3" class="col last"></div>
|
||||||
|
<div id="testSize4" class="col last"></div>
|
||||||
|
<div id="testSize5" class="col last"></div>
|
||||||
|
|
||||||
<h2>testFreePosition:</h2>
|
<h2>testFreePosition:</h2>
|
||||||
<div id="testFreePosition1" class="col"></div>
|
<div id="testFreePosition1" class="col"></div>
|
||||||
|
Loading…
Reference in New Issue
Block a user