zimjs 18.2.2 → 18.2.3
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 +7 -8
package/package.json
CHANGED
package/src/zim.js
CHANGED
|
@@ -14784,9 +14784,7 @@ function makeShader(DS, width, height, fragment, uniforms, vertex, dynamic, preC
|
|
|
14784
14784
|
if (preCall && typeof preCall=="function") preCall(program, gl, canvas); // ZIM
|
|
14785
14785
|
gl.useProgram(program);
|
|
14786
14786
|
var vertexData = [];
|
|
14787
|
-
if (postCall && typeof postCall=="function")
|
|
14788
|
-
postCall(program, gl, canvas, vertexData);
|
|
14789
|
-
}
|
|
14787
|
+
if (postCall && typeof postCall=="function") postCall(program, gl, canvas, vertexData); // ZIM
|
|
14790
14788
|
|
|
14791
14789
|
if (strip) {
|
|
14792
14790
|
if (vertexData.length == 0) vertexData = [1.0, 1.0, -1.0, 1.0, 1.0, -1.0, -1.0, -1.0]; // two triangles strips
|
|
@@ -14835,8 +14833,7 @@ function makeShader(DS, width, height, fragment, uniforms, vertex, dynamic, preC
|
|
|
14835
14833
|
var mou = tether.globalToLocal(tether.stage.frame.mouseX, tether.stage.frame.mouseY);
|
|
14836
14834
|
setUniform("4f", "iMouse", mou.x, height-mou.y, downCheck?1:0, clickCheck?1:0);
|
|
14837
14835
|
clickCheck = false;
|
|
14838
|
-
}
|
|
14839
|
-
|
|
14836
|
+
}
|
|
14840
14837
|
if (strip) gl.drawArrays(gl.TRIANGLE_STRIP, 0, 4);
|
|
14841
14838
|
else gl.drawArrays(gl.TRIANGLES, 0, vertexData.length);
|
|
14842
14839
|
|
|
@@ -37024,7 +37021,7 @@ added, click, dblclick, mousedown, mouseout, mouseover, pressdown (ZIM), pressmo
|
|
|
37024
37021
|
selector.mouseEnabled = false;
|
|
37025
37022
|
});
|
|
37026
37023
|
this.selector = selector;
|
|
37027
|
-
} else {
|
|
37024
|
+
} else {
|
|
37028
37025
|
selector = this.selector = new zim.Rectangle(targetW, targetH, zim.faint, zim.faint, borderWidth, corner, dashed, {ignoreScale:!resizeScale})
|
|
37029
37026
|
.centerReg(that);
|
|
37030
37027
|
selector.loc(tile.width/2, target.y+paddingV, that, behind?0:1);
|
|
@@ -66673,6 +66670,8 @@ note: the item is not the event object target - as that is the tile
|
|
|
66673
66670
|
|
|
66674
66671
|
that.spacingH = spacingHList[0];
|
|
66675
66672
|
that.spacingV = spacingVList[0];
|
|
66673
|
+
if (zot(that.spacingH)) that.spacingH = spacingH;
|
|
66674
|
+
if (zot(that.spacingV)) that.spacingV = spacingV;
|
|
66676
66675
|
|
|
66677
66676
|
// ~~~~~~~~~~~~~~~~~~~ GET ARRAY OF ITEMS ~~~~~~~~~~~~~~~
|
|
66678
66677
|
// this list could be edited later and passed back into remake()
|
|
@@ -98173,7 +98172,7 @@ for (z_i = 0; z_i < globalFunctions.length; z_i++) {
|
|
|
98173
98172
|
WW[pair[0]] = zim[pair[0]] = pair[1];
|
|
98174
98173
|
}
|
|
98175
98174
|
|
|
98176
|
-
|
|
98175
|
+
if (zns) {
|
|
98177
98176
|
// these are global regardless
|
|
98178
98177
|
var globalsConstants = [
|
|
98179
98178
|
["FIT", zim.FIT],
|
|
@@ -98230,7 +98229,7 @@ for (z_i = 0; z_i < globalFunctions.length; z_i++) {
|
|
|
98230
98229
|
for (z_i = 0; z_i < zim.colors.length; z_i++) {
|
|
98231
98230
|
WW[zim.colors[z_i]] = zim.colorsHex[z_i];
|
|
98232
98231
|
}
|
|
98233
|
-
|
|
98232
|
+
} else zimplify();
|
|
98234
98233
|
|
|
98235
98234
|
WW.zim = zim;
|
|
98236
98235
|
export default zim;
|