zimjs 17.2.4 → 17.2.5
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/package.json +1 -1
- package/src/zim.js +13 -7
package/package.json
CHANGED
package/src/zim.js
CHANGED
|
@@ -46667,10 +46667,12 @@ loader.on("loaded", e=>{
|
|
|
46667
46667
|
S.update();
|
|
46668
46668
|
});
|
|
46669
46669
|
|
|
46670
|
-
//
|
|
46671
|
-
saveButton
|
|
46672
|
-
|
|
46673
|
-
|
|
46670
|
+
// if wanting a save button
|
|
46671
|
+
const saveButton = new Button({label:"SAVE"})
|
|
46672
|
+
.pos(10,10,RIGHT,BOTTOM)
|
|
46673
|
+
.tap(()=>{
|
|
46674
|
+
loader.save(S); // or some other container... can specify crop bounds too
|
|
46675
|
+
}
|
|
46674
46676
|
END EXAMPLE
|
|
46675
46677
|
|
|
46676
46678
|
EXAMPLE
|
|
@@ -46909,7 +46911,7 @@ added, click, dblclick, mousedown, mouseout, mouseover, pressdown (ZIM), pressmo
|
|
|
46909
46911
|
if (accept) uploadTag.setAttribute("accept", accept);
|
|
46910
46912
|
uploadTag.hidden = true;
|
|
46911
46913
|
uploadTag.zimDisplay = uploadTag.style.display || "inline-block";
|
|
46912
|
-
uploadTag.style.cssText = "border:thin solid grey; z-index:2; width:" +
|
|
46914
|
+
uploadTag.style.cssText = "border:thin solid grey; z-index:2; width:" + width + "px; height:" + height + "px; overflow:hidden; outline:none;"
|
|
46913
46915
|
+ "position:absolute; left:0px; top:0px; display:none; cursor:pointer; opacity: 0; filter: alpha(opacity=0);";
|
|
46914
46916
|
|
|
46915
46917
|
this.addEventListener('mousedown', function() { // added for zim.Accessibility
|
|
@@ -83800,7 +83802,10 @@ zim.VR = function(content, angle, distance, parallax, parallaxAngle, damp, paral
|
|
|
83800
83802
|
|
|
83801
83803
|
VR
|
|
83802
83804
|
zim class - extends a ZIM Container which extends a CreateJS Container
|
|
83803
|
-
|
|
83805
|
+
|
|
83806
|
+
NOTE: Also see the ZIM Three Helper Module for XR controllers, movement and teleport in three.js
|
|
83807
|
+
with ZIM TextureActive (this VR() class is much simplified and not related to TextureActive)
|
|
83808
|
+
See: https://zimjs.com/three - for proper 3D
|
|
83804
83809
|
|
|
83805
83810
|
DESCRIPTION
|
|
83806
83811
|
Copies the content and displays a left and right channel (side-by-side) to be viewed with a VR helmet.
|
|
@@ -83847,7 +83852,8 @@ So if you have a label variable for the Label in the original content,
|
|
|
83847
83852
|
you can access the label in the right hand channel with label.vrMatch
|
|
83848
83853
|
The right channel objects also have vrMatch properties so label.vrMatch.vrMatch is the label ;-)
|
|
83849
83854
|
|
|
83850
|
-
SEE: https://zimjs.com/vr
|
|
83855
|
+
SEE: https://zimjs.com/vr.html
|
|
83856
|
+
SEE: https://zimjs.com/vr/sample.html
|
|
83851
83857
|
|
|
83852
83858
|
NOTE: as of ZIM 5.5.0 the zim namespace is no longer required (unless zns is set to true before running zim)
|
|
83853
83859
|
|