mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 14:17:57 +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,
|
||||
|
||||
initialize:function() {
|
||||
this.testAligned();
|
||||
this.testSymmetry();
|
||||
this.testBalanced();
|
||||
this.testEvents();
|
||||
this.testEventsComplex();
|
||||
this.testDisconnect();
|
||||
this.testReconnect();
|
||||
this.testRemoveNode();
|
||||
this.testSymmetricPredict();
|
||||
this.testBalancedPredict();
|
||||
// this.testAligned();
|
||||
// this.testSymmetry();
|
||||
// this.testBalanced();
|
||||
// this.testEvents();
|
||||
// this.testEventsComplex();
|
||||
// this.testDisconnect();
|
||||
// this.testReconnect();
|
||||
// this.testRemoveNode();
|
||||
// this.testSymmetricPredict();
|
||||
// this.testBalancedPredict();
|
||||
this.testSize();
|
||||
this.testFreePosition();
|
||||
// this.testFreePosition();
|
||||
},
|
||||
|
||||
testAligned: function() {
|
||||
@ -641,6 +641,14 @@ mindplot.layout.TestSuite = new Class({
|
||||
this._plotPrediction(graph3, manager.predict(9, null));
|
||||
this._plotPrediction(graph3, manager.predict(3, 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() {
|
||||
|
@ -107,6 +107,8 @@
|
||||
<div id="testSize1" class="col"></div>
|
||||
<div id="testSize2" 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>
|
||||
<div id="testFreePosition1" class="col"></div>
|
||||
|
Loading…
Reference in New Issue
Block a user