icn3d 3.51.1 → 3.51.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/icn3d.js +3 -1
- package/icn3d.min.js +2 -2
- package/icn3d.module.js +3 -1
- package/package.json +1 -1
package/icn3d.module.js
CHANGED
|
@@ -101886,6 +101886,8 @@ class GetGraph {
|
|
|
101886
101886
|
"#" + ic.hColor.getHexString().toUpperCase();
|
|
101887
101887
|
let pos = node.id.indexOf('.');
|
|
101888
101888
|
let nodeName =(pos == -1) ? node.id : node.id.substr(0, pos);
|
|
101889
|
+
if(nodeName.length > 4) nodeName = nodeName.substr(0, 1) + '..' + nodeName.substr(nodeName.length - 2);
|
|
101890
|
+
|
|
101889
101891
|
let adjustx = 0, adjusty =(setName == 'a') ? -7 : 10;
|
|
101890
101892
|
if(i % 2 == 1) adjusty =(setName == 'a') ? adjusty - 7 : adjusty + 7;
|
|
101891
101893
|
|
|
@@ -136762,7 +136764,7 @@ class iCn3DUI {
|
|
|
136762
136764
|
//even when multiple iCn3D viewers are shown together.
|
|
136763
136765
|
this.pre = this.cfg.divid + "_";
|
|
136764
136766
|
|
|
136765
|
-
this.REVISION = '3.51.
|
|
136767
|
+
this.REVISION = '3.51.1';
|
|
136766
136768
|
|
|
136767
136769
|
// In nodejs, iCn3D defines "window = {navigator: {}}", and added window = {navigator: {}, "__THREE__":"177"}
|
|
136768
136770
|
this.bNode = (Object.keys(window).length < 3) ? true : false;
|