zimjs 19.1.2 → 19.1.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 +6 -6
- package/ts-src/typings/zim/index.d.ts +2 -2
package/package.json
CHANGED
package/src/zim.js
CHANGED
|
@@ -10166,8 +10166,8 @@ added, click, dblclick, mousedown, mouseout, mouseover, pressdown (ZIM), pressmo
|
|
|
10166
10166
|
this.sortBy = function(prop, inverse) {
|
|
10167
10167
|
if (zot(prop)) return this;
|
|
10168
10168
|
var sortFunction = function(obj1, obj2, options) {
|
|
10169
|
-
if (obj1[prop] > obj2[prop]) { return inverse?-1:1; }
|
|
10170
|
-
if (obj1[prop] < obj2[prop]) { return inverse?1:-1; }
|
|
10169
|
+
if (Number(obj1[prop]) > Number(obj2[prop])) { return inverse?-1:1; }
|
|
10170
|
+
if (Number(obj1[prop]) < Number(obj2[prop])) { return inverse?1:-1; }
|
|
10171
10171
|
return 0;
|
|
10172
10172
|
}
|
|
10173
10173
|
this.sortChildren(sortFunction);
|
|
@@ -49098,7 +49098,7 @@ zim.extend(zim.Carousel3D, zim.Container, ["clone", "dispose"], "zimContainer",
|
|
|
49098
49098
|
//-67.47
|
|
49099
49099
|
|
|
49100
49100
|
/*--
|
|
49101
|
-
zim.Loader = function(width, height, label, type, backgroundColor, rollBackgroundColor, color, rollColor, borderColor, borderWidth, corner, shadowColor, shadowBlur, hitPadding, gradient, gloss, dashed, backing, rollBacking, rollPersist, icon, rollIcon, toggle, toggleBacking, rollToggleBacking, toggleIcon, rollToggleIcon, toggleEvent, frame, multiple, accept, style, group, inherit)
|
|
49101
|
+
zim.Loader = function(width, height, label, type, backgroundColor, rollBackgroundColor, color, rollColor, borderColor, rollBorderColor, borderWidth, corner, shadowColor, shadowBlur, hitPadding, gradient, gloss, dashed, backing, rollBacking, rollPersist, icon, rollIcon, toggle, toggleBacking, rollToggleBacking, toggleIcon, rollToggleIcon, toggleEvent, frame, multiple, accept, style, group, inherit)
|
|
49102
49102
|
|
|
49103
49103
|
Loader
|
|
49104
49104
|
zim class - extends a zim.Button which extends a zim.Container
|
|
@@ -80733,10 +80733,10 @@ obj - (default ZIM makeIcon({box:black})) the object to glitch.
|
|
|
80733
80733
|
this will be put in a holder Container inside the object in the Glitch and then passed as channel0 to a Shader.
|
|
80734
80734
|
the Shader will be placed on top of the holder and can have its alpha and blendmode set with parameters.
|
|
80735
80735
|
if dragging the object, make sure to set glitch.drag({all:true}) to drag all of the Glitch rather than just its parts.
|
|
80736
|
-
glitchType - (default "
|
|
80736
|
+
glitchType - (default "chunk") the type of glitch
|
|
80737
|
+
"chunk" - jitters and slides chunks out the side adds interlace
|
|
80737
80738
|
"tv" - jitters the object and applies green lines
|
|
80738
80739
|
"scan" - jitters and makes scan glitch
|
|
80739
|
-
"chunk" - jitters and slides chunks out the side adds interlace
|
|
80740
80740
|
"halftone" - adds dots - looks better on animated or video objects
|
|
80741
80741
|
NOTE: these are just a few examples of shader effects. See Shader to apply any shader (fragment / vertex) to any objects (through channels)
|
|
80742
80742
|
alpha - (default 1) set the alpha of the Shader which sits above the original - this will lessen the glitch effect
|
|
@@ -85386,7 +85386,7 @@ zim.Emitter = function(obj, width, height, interval, num, life, fade, shrink, wa
|
|
|
85386
85386
|
if (cache) stage.snapToPixelEnabled = true;
|
|
85387
85387
|
}
|
|
85388
85388
|
|
|
85389
|
-
that.zimInterval.pauseOnBlurPaused = state; // ZIM 019 Patch - in case being paused when tab not active
|
|
85389
|
+
if (that.zimInterval) that.zimInterval.pauseOnBlurPaused = state; // ZIM 019 Patch - in case being paused when tab not active
|
|
85390
85390
|
return that;
|
|
85391
85391
|
};
|
|
85392
85392
|
|
|
@@ -2996,8 +2996,8 @@ declare namespace zim {
|
|
|
2996
2996
|
readonly holder: Container
|
|
2997
2997
|
}
|
|
2998
2998
|
export class Loader extends Button implements zimComponent {
|
|
2999
|
-
constructor(config_or_width?: number | string, height?: number | string, label?: string | Label, type?: string, backgroundColor?: color, rollBackgroundColor?: color, color?: color, rollColor?: color, borderColor?: color, borderWidth?: number, corner?: number | any[], shadowColor?: color, shadowBlur?: number, hitPadding?: number, gradient?: number, gloss?: number, dashed?: boolean | [number], backing?: DisplayObject, rollBacking?: DisplayObject, rollPersist?: boolean, icon?: DisplayObject, rollIcon?: DisplayObject, toggle?: string, rollToggle?: DisplayObject, toggleEvent?: string, frame?: Frame, multiple?: boolean, accept?: [any], style?: boolean, group?: string, inherit?: {})
|
|
3000
|
-
constructor(config: { width?: number | string, height?: number | string, label?: string | Label, type?: string, backgroundColor?: color, rollBackgroundColor?: color, color?: color, rollColor?: color, borderColor?: color, borderWidth?: number, corner?: number | any[], shadowColor?: color, shadowBlur?: number, hitPadding?: number, gradient?: number, gloss?: number, dashed?: boolean | [number], backing?: DisplayObject, rollBacking?: DisplayObject, rollPersist?: boolean, icon?: DisplayObject, rollIcon?: DisplayObject, toggle?: string, rollToggle?: DisplayObject, toggleEvent?: string, frame?: Frame, multiple?: boolean, accept?: [any], style?: boolean, group?: string, inherit?: {} })
|
|
2999
|
+
constructor(config_or_width?: number | string, height?: number | string, label?: string | Label, type?: string, backgroundColor?: color, rollBackgroundColor?: color, color?: color, rollColor?: color, borderColor?: color, rollBorderColor?: color, borderWidth?: number, corner?: number | any[], shadowColor?: color, shadowBlur?: number, hitPadding?: number, gradient?: number, gloss?: number, dashed?: boolean | [number], backing?: DisplayObject, rollBacking?: DisplayObject, rollPersist?: boolean, icon?: DisplayObject, rollIcon?: DisplayObject, toggle?: string, rollToggle?: DisplayObject, toggleEvent?: string, frame?: Frame, multiple?: boolean, accept?: [any], style?: boolean, group?: string, inherit?: {})
|
|
3000
|
+
constructor(config: { width?: number | string, height?: number | string, label?: string | Label, type?: string, backgroundColor?: color, rollBackgroundColor?: color, color?: color, rollColor?: color, borderColor?: color, rollBorderColor?: color, borderWidth?: number, corner?: number | any[], shadowColor?: color, shadowBlur?: number, hitPadding?: number, gradient?: number, gloss?: number, dashed?: boolean | [number], backing?: DisplayObject, rollBacking?: DisplayObject, rollPersist?: boolean, icon?: DisplayObject, rollIcon?: DisplayObject, toggle?: string, rollToggle?: DisplayObject, toggleEvent?: string, frame?: Frame, multiple?: boolean, accept?: [any], style?: boolean, group?: string, inherit?: {} })
|
|
3001
3001
|
// ZIM Component Interface
|
|
3002
3002
|
// dispose():boolean // now added to Container, etc.
|
|
3003
3003
|
enabled: boolean
|