zimjs 20.0.1 → 20.0.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 +2127 -760
- package/ts-src/typings/zim/index.d.ts +41 -14
- package/ts-src/typings/zim/tsconfig.json +1 -2
|
@@ -2227,12 +2227,14 @@ declare namespace zim {
|
|
|
2227
2227
|
readonly numWords: number
|
|
2228
2228
|
}
|
|
2229
2229
|
export class Emoji extends Container implements zimComponent {
|
|
2230
|
-
constructor(config_or_code: string, size?: number, monochrome?: boolean, italic?: boolean, backgroundColor?: color, backgroundBorderColor?: color, backgroundBorderWidth?: number, corner?: number | any[], backing?: DisplayObject, padding?: number, paddingH?: number, paddingV?: number, shiftH?: number, shiftV?: number, style?: boolean, group?: string, inherit?: {})
|
|
2231
|
-
constructor(config: { code: string, size?: number, monochrome?: boolean, italic?: boolean, backgroundColor?: color, backgroundBorderColor?: color, backgroundBorderWidth?: number, corner?: number | any[], backing?: DisplayObject, padding?: number, paddingH?: number, paddingV?: number, shiftH?: number, shiftV?: number, style?: boolean, group?: string, inherit?: {} })
|
|
2230
|
+
constructor(config_or_code: string, size?: number, monochrome?: boolean, italic?: boolean, backgroundColor?: color, backgroundBorderColor?: color, backgroundBorderWidth?: number, corner?: number | any[], backing?: DisplayObject, padding?: number, paddingH?: number, paddingV?: number, shiftH?: number, shiftV?: number, color?: color, borderColor?: color, order?: number[], style?: boolean, group?: string, inherit?: {})
|
|
2231
|
+
constructor(config: { code: string, size?: number, monochrome?: boolean, italic?: boolean, backgroundColor?: color, backgroundBorderColor?: color, backgroundBorderWidth?: number, corner?: number | any[], backing?: DisplayObject, padding?: number, paddingH?: number, paddingV?: number, shiftH?: number, shiftV?: number, color?: color, borderColor?: color, order?: number[], style?: boolean, group?: string, inherit?: {} })
|
|
2232
2232
|
// ZIM Component Interface
|
|
2233
2233
|
// dispose():boolean // now added to Container, etc.
|
|
2234
2234
|
enabled: boolean
|
|
2235
2235
|
// END ZIM Component Interface
|
|
2236
|
+
label: Label
|
|
2237
|
+
svg: SVG
|
|
2236
2238
|
}
|
|
2237
2239
|
export class Button extends Container implements zimComponent {
|
|
2238
2240
|
constructor(config_or_width?: number | string, height?: number | string, label?: string | Label, backgroundColor?: color, rollBackgroundColor?: color, downBackgroundColor?: color, color?: color, rollColor?: color, downColor?: color, borderColor?: color, borderWidth?: number, rollBorderColor?: color, downBorderColor?: color, backing?: DisplayObject, rollBacking?: DisplayObject, downBacking?: DisplayObject, icon?: DisplayObject, rollIcon?: DisplayObject, downIcon?: DisplayObject, corner?: number | any[], dashed?: boolean | number[], shadowColor?: color, shadowBlur?: number, gradient?: number, gloss?: number, align?: string, valign?: string, indent?: number, indentH?: number, indentV?: number, hitPadding?: number, autoPadding?: number, autoPaddingH?: number, autoPaddingV?: number, rollPersist?: boolean, toggle?: string | boolean, toggleBackgroundColor?: color, rollToggleBackgroundColor?: color, downToggleBackgroundColor?: color, toggleColor?: color, rollToggleColor?: color, downToggleColor?: color, toggleBacking?: DisplayObject, rollToggleBacking?: DisplayObject, downToggleBacking?: DisplayObject, toggleIcon?: DisplayObject, rollToggleIcon?: DisplayObject, downToggleIcon?: DisplayObject, toggleEvent?: string, wait?: string, waitTime?: boolean, waitBackgroundColor?: color, rollWaitBackgroundColor?: color, downWaitBackgroundColor?: color, waitColor?: color, rollWaitColor?: color, downWaitColor?: color, waitBacking?: DisplayObject, rollWaitBacking?: DisplayObject, downWaitBacking?: DisplayObject, waitIcon?: DisplayObject, rollWaitIcon?: DisplayObject, downWaitIcon?: DisplayObject, waitModal?: boolean, waitEnabled?: boolean, style?: boolean, group?: string, inherit?: {})
|
|
@@ -2743,14 +2745,15 @@ declare namespace zim {
|
|
|
2743
2745
|
pad: Pad
|
|
2744
2746
|
}
|
|
2745
2747
|
export class DPad extends Container implements zimComponent {
|
|
2746
|
-
constructor(config_or_axis?: string, width?: number, backgroundColor?: color, indicatorColor?: color, indicatorPressColor?: color, indicatorScale?: number, indicatorRadius?: number, innerCircle?: boolean, innerScale?: number, activeRadius?: number, clamp?: boolean, logo?: boolean, style?: boolean, group?: string, inherit?: {})
|
|
2747
|
-
constructor(config: { axis?: string, width?: number, backgroundColor?: color, indicatorColor?: color, indicatorPressColor?: color, indicatorScale?: number, indicatorRadius?: number, innerCircle?: boolean, innerScale?: number, activeRadius?: number, clamp?: boolean, logo?: boolean, style?: boolean, group?: string, inherit?: {} })
|
|
2748
|
+
constructor(config_or_axis?: string, width?: number, backgroundColor?: color, indicatorColor?: color, indicatorPressColor?: color, indicatorScale?: number, indicatorRadius?: number, innerCircle?: boolean, innerScale?: number, activeRadius?: number, clamp?: boolean, logo?: boolean, useBubble?:boolean, style?: boolean, group?: string, inherit?: {})
|
|
2749
|
+
constructor(config: { axis?: string, width?: number, backgroundColor?: color, indicatorColor?: color, indicatorPressColor?: color, indicatorScale?: number, indicatorRadius?: number, innerCircle?: boolean, innerScale?: number, activeRadius?: number, clamp?: boolean, logo?: boolean, useBubble?:boolean, style?: boolean, group?: string, inherit?: {} })
|
|
2748
2750
|
// ZIM Component Interface
|
|
2749
2751
|
// dispose():boolean // now added to Container, etc.
|
|
2750
2752
|
enabled: boolean
|
|
2751
2753
|
// END ZIM Component Interface
|
|
2752
2754
|
readonly dirX: number
|
|
2753
2755
|
readonly dirY: number
|
|
2756
|
+
readonly bubble: Circle
|
|
2754
2757
|
}
|
|
2755
2758
|
export class Radial extends Container implements zimComponent {
|
|
2756
2759
|
constructor(config_or_labels?: string[] | number[] | Label[], size?: number, font?: string, startAngle?: number, totalAngle?: number, angles?: number[], flip?: boolean, shiftRadial?: number, icons?: DisplayObject[], rollIcons?: DisplayObject[], rotateIcons?: boolean, iconsShiftRadial?: number, height?: number, coreRadius?: number, coreColor?: number, backgroundColor?: color, rollBackgroundColor?: color, selectedBackgroundColor?: color, selectedRollBackgroundColor?: color, backdropColor?: color, color?: color, rollColor?: color, selectedColor?: color, selectedRollColor?: color, borderColor?: color, borderWidth?: number, gradient?: number, gap?: number, gapAsAngle?: boolean, spacing?: number, spacingInner?: number, spacingOuter?: number, currentEnabled?: boolean, currentSelected?: boolean, index?: number, selectedIndex?: number, style?: boolean, group?: string, inherit?: {})
|
|
@@ -3445,8 +3448,8 @@ declare namespace zim {
|
|
|
3445
3448
|
readonly group: string
|
|
3446
3449
|
}
|
|
3447
3450
|
export class Bullets extends Tile {
|
|
3448
|
-
constructor(config_or_list?: string|number[], bulletType?: string, size?: number, color?: color, cols?: number, font?: string, italic?: boolean, bold?: boolean, variant?: boolean, shiftH?: number, shiftV?: number, spacing?: number, spacingH?: number, spacingV?: number, colSpacing?: number, bulletAlign?: string, group?: string, style?: boolean, inherit?: {})
|
|
3449
|
-
constructor(config: { list?: string|number[], bulletType?: string, size?: number, color?: color, cols?: number, font?: string, italic?: boolean, bold?: boolean, variant?: boolean, shiftH?: number, shiftV?: number, spacing?: number, spacingH?: number, spacingV?: number, colSpacing?: number, bulletAlign?: string, group?: string, style?: boolean, inherit?: {} })
|
|
3451
|
+
constructor(config_or_list?: string|number[], bulletType?: string, size?: number, color?: color, cols?: number, font?: string, italic?: boolean, bold?: boolean, variant?: boolean, shiftH?: number, shiftV?: number, spacing?: number, spacingH?: number, spacingV?: number, colSpacing?: number, bulletAlign?: string, rtl?: boolean, group?: string, style?: boolean, inherit?: {})
|
|
3452
|
+
constructor(config: { list?: string|number[], bulletType?: string, size?: number, color?: color, cols?: number, font?: string, italic?: boolean, bold?: boolean, variant?: boolean, shiftH?: number, shiftV?: number, spacing?: number, spacingH?: number, spacingV?: number, colSpacing?: number, bulletAlign?: string, rtl?: boolean, group?: string, style?: boolean, inherit?: {} })
|
|
3450
3453
|
readonly type: string
|
|
3451
3454
|
readonly list: string|number[]
|
|
3452
3455
|
readonly bulletType: string
|
|
@@ -3520,8 +3523,8 @@ declare namespace zim {
|
|
|
3520
3523
|
blurFactor: number
|
|
3521
3524
|
}
|
|
3522
3525
|
export class Perspective extends Container {
|
|
3523
|
-
constructor(config_or_obj?: DisplayObject|zimVee, points?: {x:number,y:number}[]|Point, interactive?: boolean, showControls?: boolean, allowToggle?: boolean, move?: boolean, borderColor?: color|zimVee, borderWidth?: number|zimVee, dashed?: number|number[]|zimVee, plane?: boolean, fade?: boolean, dynamic?: boolean, frame?: Frame, style?: boolean, group?: string, inherit?: {})
|
|
3524
|
-
constructor(config: { obj?: DisplayObject|zimVee, points?: {x:number,y:number}[]|Point, interactive?: boolean, showControls?: boolean, allowToggle?: boolean, move?: boolean, borderColor?: color|zimVee, borderWidth?: number|zimVee, dashed?: number|number[]|zimVee, plane?: boolean, fade?: boolean, dynamic?: boolean, frame?: Frame, style?: boolean, group?: string, inherit?: {} })
|
|
3526
|
+
constructor(config_or_obj?: DisplayObject|zimVee, points?: {x:number,y:number}[]|Point, interactive?: boolean, showControls?: boolean, allowToggle?: boolean, move?: boolean, borderColor?: color|zimVee, borderWidth?: number|zimVee, dashed?: number|number[]|zimVee, plane?: boolean, fade?: boolean, dynamic?: boolean, frame?: Frame, resolution?:number, maskShape?:string|DisplayObject, feather?:number, onTop?:boolean, overlay?:boolean, clipping?:boolean, passthrough?:boolean, passthroughScale?:number, passthroughShiftX?:number, passthroughShiftY?:number, style?: boolean, group?: string, inherit?: {})
|
|
3527
|
+
constructor(config: { obj?: DisplayObject|zimVee, points?: {x:number,y:number}[]|Point, interactive?: boolean, showControls?: boolean, allowToggle?: boolean, move?: boolean, borderColor?: color|zimVee, borderWidth?: number|zimVee, dashed?: number|number[]|zimVee, plane?: boolean, fade?: boolean, dynamic?: boolean, frame?: Frame, resolution?:number, maskShape?:string|DisplayObject, feather?:number, onTop?:boolean, overlay?:boolean, clipping?:boolean, passthrough?:boolean, passthroughScale?:number, passthroughShiftX?:number, passthroughShiftY?:number, style?: boolean, group?: string, inherit?: {} })
|
|
3525
3528
|
selectCorner(index?: number, state?: boolean): Circle
|
|
3526
3529
|
selectSide(index?: number, state?: boolean): Circle
|
|
3527
3530
|
updateCorner(controlObj?: Circle, refresh?: boolean): Circle
|
|
@@ -3530,6 +3533,16 @@ declare namespace zim {
|
|
|
3530
3533
|
toggle(state?: boolean): this
|
|
3531
3534
|
deselectPoints(): this
|
|
3532
3535
|
obj:DisplayObject
|
|
3536
|
+
onTop: boolean
|
|
3537
|
+
overlay: boolean
|
|
3538
|
+
clipping: boolean
|
|
3539
|
+
maskShape: string|DisplayObject
|
|
3540
|
+
feather: boolean
|
|
3541
|
+
readonly resolution: number
|
|
3542
|
+
passthrough: boolean
|
|
3543
|
+
passthroughScale: number
|
|
3544
|
+
passthroughShiftX: number
|
|
3545
|
+
passthroughShiftY: number
|
|
3533
3546
|
readonly blob:Blob
|
|
3534
3547
|
readonly sides:Container
|
|
3535
3548
|
readonly shader:Shader
|
|
@@ -4068,8 +4081,8 @@ declare namespace zim {
|
|
|
4068
4081
|
readonly bitmap: Bitmap
|
|
4069
4082
|
}
|
|
4070
4083
|
export class SVG extends Container {
|
|
4071
|
-
constructor(config_or_svg?: string, width?: number, height?: number, bitmap?: boolean, splitTypes?: boolean, geometric?: boolean, showControls?: boolean, interactive?: boolean, style?: boolean, group?: string, inherit?: {})
|
|
4072
|
-
constructor(config: { svg?: string, width?: number, height?: number, bitmap?: boolean, splitTypes?: boolean, geometric?: boolean, showControls?: boolean, interactive?: boolean, style?: boolean, group?: string, inherit?: {} })
|
|
4084
|
+
constructor(config_or_svg?: string, width?: number, height?: number, bitmap?: boolean, splitTypes?: boolean, geometric?: boolean, showControls?: boolean, interactive?: boolean, color?: color, borderColor?: color, order?: number[], style?: boolean, group?: string, inherit?: {})
|
|
4085
|
+
constructor(config: { svg?: string, width?: number, height?: number, bitmap?: boolean, splitTypes?: boolean, geometric?: boolean, showControls?: boolean, interactive?: boolean, color?: color, borderColor?: color, order?: number[], style?: boolean, group?: string, inherit?: {} })
|
|
4073
4086
|
readonly sensorType: string
|
|
4074
4087
|
readonly label: Label
|
|
4075
4088
|
readonly yes: Button
|
|
@@ -4092,6 +4105,20 @@ declare namespace zim {
|
|
|
4092
4105
|
readonly voiceLanguages: string[]
|
|
4093
4106
|
readonly recognition: any
|
|
4094
4107
|
}
|
|
4108
|
+
export class Hardware extends createjs.EventDispatcher {
|
|
4109
|
+
constructor(callback?:Function, baudRate?:number, delimiter?:string)
|
|
4110
|
+
connect(): void
|
|
4111
|
+
write(data: string|number): void
|
|
4112
|
+
disconnect(): void
|
|
4113
|
+
readonly port: number
|
|
4114
|
+
readonly reader: ReadableStreamDefaultReader<Uint8Array>
|
|
4115
|
+
readonly writer: WritableStreamDefaultWriter<string>
|
|
4116
|
+
readonly textEncoder: TextEncoderStream
|
|
4117
|
+
readonly textDecoder: TextDecoderStream
|
|
4118
|
+
isListening: boolean
|
|
4119
|
+
readonly baudRate: number
|
|
4120
|
+
delimiter: string|number
|
|
4121
|
+
}
|
|
4095
4122
|
export class SensorAsk extends Pane {
|
|
4096
4123
|
constructor(config_or_callback?: Function, sensorType?: string, color?: color, backgroundColor?: color, style?: boolean, group?: string, inherit?: {})
|
|
4097
4124
|
constructor(config: { callback?: Function, sensorType?: string, color?: color, backgroundColor?: color, style?: boolean, group?: string, inherit?: {} })
|
|
@@ -4110,8 +4137,8 @@ declare namespace zim {
|
|
|
4110
4137
|
}
|
|
4111
4138
|
|
|
4112
4139
|
export class Shader extends Bitmap implements zimComponent {
|
|
4113
|
-
constructor(config_or_width?: number, height?: number, fragment?: string, uniforms?: Uniforms, vertex?: string, dynamic?: boolean, preCall?: Function, postCall?: Function, rate?: number | zimVee, version?: string, canvas?: HTMLCanvasElement, vertexPosition?: string, strip?: boolean, log?: boolean, channel0?: DisplayObject, channel1?: DisplayObject, channel2?: DisplayObject, channel3?: DisplayObject, dynamic0?: boolean, dynamic1?: boolean, dynamic2?: boolean, dynamic3?: boolean, style?: boolean, group?: string, inherit?: {})
|
|
4114
|
-
constructor(config: { width?: number, height?: number, fragment?: string, uniforms?: Uniforms, vertex?: string, dynamic?: boolean, preCall?: Function, postCall?: Function, rate?: number | zimVee, version?: string, canvas?: HTMLCanvasElement, vertexPosition?: string, strip?: boolean, log?: boolean, style?: boolean, group?: string, inherit?: {} })
|
|
4140
|
+
constructor(config_or_width?: number, height?: number, fragment?: string, uniforms?: Uniforms, vertex?: string, dynamic?: boolean, preCall?: Function, postCall?: Function, rate?: number | zimVee, version?: string, canvas?: HTMLCanvasElement, vertexPosition?: string, strip?: boolean, log?: boolean, channel0?: DisplayObject, channel1?: DisplayObject, channel2?: DisplayObject, channel3?: DisplayObject, dynamic0?: boolean, dynamic1?: boolean, dynamic2?: boolean, dynamic3?: boolean, channels?:DisplayObject[], dynamics?:boolean[], style?: boolean, group?: string, inherit?: {})
|
|
4141
|
+
constructor(config: { width?: number, height?: number, fragment?: string, uniforms?: Uniforms, vertex?: string, dynamic?: boolean, preCall?: Function, postCall?: Function, rate?: number | zimVee, version?: string, canvas?: HTMLCanvasElement, vertexPosition?: string, strip?: boolean, log?: boolean, channel0?: DisplayObject, channel1?: DisplayObject, channel2?: DisplayObject, channel3?: DisplayObject, dynamic0?: boolean, dynamic1?: boolean, dynamic2?: boolean, dynamic3?: boolean, channels?:DisplayObject[], dynamics?:boolean[], style?: boolean, group?: string, inherit?: {} })
|
|
4115
4142
|
// ZIM Component Interface
|
|
4116
4143
|
// dispose():boolean // now added to Container, etc.
|
|
4117
4144
|
enabled: boolean
|
|
@@ -4129,8 +4156,8 @@ declare namespace zim {
|
|
|
4129
4156
|
}
|
|
4130
4157
|
|
|
4131
4158
|
export class ShaderOverlay extends Tag implements zimComponent {
|
|
4132
|
-
constructor(config_or_width?: number, height?: number, fragment?: string, uniforms?: Uniforms, vertex?: string, dynamic?: boolean, preCall?: Function, postCall?: Function, rate?: number | zimVee, version?: string, canvas?: HTMLCanvasElement, vertexPosition?: string, strip?: boolean, log?: boolean, style?: boolean, group?: string, inherit?: {})
|
|
4133
|
-
constructor(config: { width?: number, height?: number, fragment?: string, uniforms?: Uniforms, vertex?: string, dynamic?: boolean, preCall?: Function, postCall?: Function, rate?: number | zimVee, version?: string, canvas?: HTMLCanvasElement, vertexPosition?: string, strip?: boolean, log?: boolean, style?: boolean, group?: string, inherit?: {} })
|
|
4159
|
+
constructor(config_or_width?: number, height?: number, fragment?: string, uniforms?: Uniforms, vertex?: string, dynamic?: boolean, preCall?: Function, postCall?: Function, rate?: number | zimVee, version?: string, canvas?: HTMLCanvasElement, vertexPosition?: string, strip?: boolean, log?: boolean, channel0?: DisplayObject, channel1?: DisplayObject, channel2?: DisplayObject, channel3?: DisplayObject, dynamic0?: boolean, dynamic1?: boolean, dynamic2?: boolean, dynamic3?: boolean, channels?:DisplayObject[], dynamics?:boolean[], style?: boolean, group?: string, inherit?: {})
|
|
4160
|
+
constructor(config: { width?: number, height?: number, fragment?: string, uniforms?: Uniforms, vertex?: string, dynamic?: boolean, preCall?: Function, postCall?: Function, rate?: number | zimVee, version?: string, canvas?: HTMLCanvasElement, vertexPosition?: string, strip?: boolean, log?: boolean, channel0?: DisplayObject, channel1?: DisplayObject, channel2?: DisplayObject, channel3?: DisplayObject, dynamic0?: boolean, dynamic1?: boolean, dynamic2?: boolean, dynamic3?: boolean, channels?:DisplayObject[], dynamics?:boolean[], style?: boolean, group?: string, inherit?: {} })
|
|
4134
4161
|
// ZIM Component Interface
|
|
4135
4162
|
// dispose():boolean // now added to Container, etc.
|
|
4136
4163
|
enabled: boolean
|