zimjs 17.3.4 → 18.0.0
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/docs.md +871 -474
- package/package.json +3 -2
- package/src/zim.js +1765 -322
- package/ts-src/typings/zim/index.d.ts +32 -1
|
@@ -108,6 +108,7 @@ declare global {
|
|
|
108
108
|
function zogg(item1: any, ...item2: any): string
|
|
109
109
|
function zogp(item1: any, ...item2: any): string
|
|
110
110
|
function zogo(item1: any, ...item2: any): string
|
|
111
|
+
function zogs(item1: any, ...item2: any): string
|
|
111
112
|
function zid(id: string): HTMLElement
|
|
112
113
|
function zss(id: string): CSSStyleDeclaration
|
|
113
114
|
function zgo(url: string, target?: string, width?: number, height?: number, fullscreen?: boolean, modal?: boolean): void
|
|
@@ -217,9 +218,11 @@ declare namespace zim {
|
|
|
217
218
|
hitTestPoint(x: number, y: number, boundsCheck?: boolean): boolean
|
|
218
219
|
hitTestReg(other: DisplayObject): boolean
|
|
219
220
|
hitTestRect(other: DisplayObject, num?: number, boundsCheck?: boolean, inside?: boolean): boolean
|
|
221
|
+
hitTestRectPoint(x: number, y: number, margin?: number): boolean
|
|
220
222
|
hitTestCircle(other: DisplayObject, num?: number, boundsCheck?: boolean, inside?: boolean): boolean
|
|
221
|
-
|
|
223
|
+
hitTestCirclePoint(x: number, y: number, margin?: number): boolean
|
|
222
224
|
hitTestCircleRect(other: DisplayObject, margin?: number): boolean
|
|
225
|
+
hitTestCircles(other: DisplayObject, margin?: number): boolean
|
|
223
226
|
hitTestBounds(other: DisplayObject, margin?: number, boundsShape?: boolean): boolean
|
|
224
227
|
boundsToGlobal(rect: createjs.Rectangle | { x: number, y: number, width: number, height: number }, flip?: boolean): createjs.Rectangle
|
|
225
228
|
resetBounds(width_or_boundsX?: number, height_or_boundsY?: number, width?: number, height?: number): this
|
|
@@ -2937,6 +2940,28 @@ declare namespace zim {
|
|
|
2937
2940
|
readonly background: Rectangle
|
|
2938
2941
|
readonly backing: Rectangle
|
|
2939
2942
|
}
|
|
2943
|
+
export class Carousel3D extends Container implements zimComponent {
|
|
2944
|
+
constructor(config_or_width?: number, height?: number, items?: DisplayObject, widthFactor?: number, heightFactor?: number, curve?: number, interactive?: boolean, continuous?: number, fade?: number, fadeColor?: color, vertical?: boolean, sensitivity?: number, damp?: number, factor?: number, index?: number, selectedIndex?: number, style?: boolean, group?: string, inherit?: {})
|
|
2945
|
+
constructor(config: { width?: number, height?: number, items?: DisplayObject, widthFactor?: number, heightFactor?: number, curve?: number, interactive?: boolean, continuous?: number, fade?: number, fadeColor?: color, vertical?: boolean, sensitivity?: number, damp?: number, factor?: number, index?: number, selectedIndex?: number, style?: boolean, group?: string, inherit?: {} })
|
|
2946
|
+
// ZIM Component Interface
|
|
2947
|
+
// dispose():boolean // now added to Container, etc.
|
|
2948
|
+
enabled: boolean
|
|
2949
|
+
// END ZIM Component Interface
|
|
2950
|
+
go(index?:number, immediate?:boolean, wrap?:boolean):this
|
|
2951
|
+
prev(immediate?:boolean):this
|
|
2952
|
+
next(immediate?:boolean):this
|
|
2953
|
+
addItem(item:DisplayObject, index?:number):this
|
|
2954
|
+
removeItem(index?:number, num?:number):this
|
|
2955
|
+
makeCarousel():this
|
|
2956
|
+
index: number
|
|
2957
|
+
readonly selectedItem:DisplayObject
|
|
2958
|
+
items: [DisplayObject]
|
|
2959
|
+
curve: number
|
|
2960
|
+
continuous: boolean
|
|
2961
|
+
readonly swiper: Swiper
|
|
2962
|
+
readonly backing: Rectangle
|
|
2963
|
+
readonly holder: Container
|
|
2964
|
+
}
|
|
2940
2965
|
export class Loader extends Button implements zimComponent {
|
|
2941
2966
|
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?: {})
|
|
2942
2967
|
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?: {} })
|
|
@@ -2987,6 +3012,7 @@ declare namespace zim {
|
|
|
2987
3012
|
export var OPTIMIZE: boolean
|
|
2988
3013
|
export var ACTIONEVENT: string
|
|
2989
3014
|
export var STYLE: {}
|
|
3015
|
+
export var GLOBALSTYLE: {}
|
|
2990
3016
|
export class Style {
|
|
2991
3017
|
static clear(): void
|
|
2992
3018
|
static clearTypes(): void
|
|
@@ -3906,6 +3932,11 @@ declare namespace zim {
|
|
|
3906
3932
|
readonly src: string
|
|
3907
3933
|
readonly item: {}
|
|
3908
3934
|
}
|
|
3935
|
+
export class Dat extends createjs.EventDispatcher {
|
|
3936
|
+
constructor(file: string)
|
|
3937
|
+
readonly data: any
|
|
3938
|
+
readonly file: string
|
|
3939
|
+
}
|
|
3909
3940
|
export class Vid extends Container {
|
|
3910
3941
|
constructor(config_or_file?: string, width?: number, height?: number, volume?: number, loop?: boolean, align?: string, valign?: string, type?: string, style?: boolean, group?: string, inherit?: {})
|
|
3911
3942
|
constructor(config: { file?: string, width?: number, height?: number, volume?: number, loop?: boolean, align?: string, valign?: string, type?: string, style?: boolean, group?: string, inherit?: {} })
|