zimjs 16.4.6 → 17.0.1
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 +3 -2
- package/src/zim.js +3313 -1327
- package/ts-src/typings/zim/index.d.ts +139 -48
|
@@ -550,10 +550,10 @@ declare namespace zim {
|
|
|
550
550
|
export function countDecimals(num: number): number
|
|
551
551
|
export function sign(num: number): 1 | 0 | -1
|
|
552
552
|
export function constrain(num: number, min?: number, max?: number, negative?: boolean): number
|
|
553
|
-
export function dist(
|
|
553
|
+
export function dist(a: {} | number, b: {} | number, c: number, d: number): number
|
|
554
554
|
export function rectIntersect(a: {} | Boundary, b: {} | Boundary, margin?: number): {}
|
|
555
555
|
export function boundsAroundPoints(points: [{}]): number
|
|
556
|
-
export function angle(
|
|
556
|
+
export function angle(a: {} | number, b: {} | number, c: number, d: number): number
|
|
557
557
|
export function asset(file: string): DisplayObject
|
|
558
558
|
export class Point {
|
|
559
559
|
constructor(x: number, y: number, z?: number, q?: number, r?: number, s?: number, t?: number, u?: number, v?: number, w?: number)
|
|
@@ -630,11 +630,11 @@ declare namespace zim {
|
|
|
630
630
|
immediate(num: number): this
|
|
631
631
|
}
|
|
632
632
|
export class Proportion {
|
|
633
|
-
constructor(baseMin: number, baseMax: number, targetMin?: number, targetMax?: number, factor?: number, targetRound?: boolean)
|
|
633
|
+
constructor(baseMin: number, baseMax: number, targetMin?: number, targetMax?: number, factor?: number, targetRound?: boolean, clamp?: boolean, clampMin?: number, clampMax?: number)
|
|
634
634
|
convert(input: number): number
|
|
635
635
|
}
|
|
636
636
|
export class ProportionDamp {
|
|
637
|
-
constructor(baseMin: number, baseMax: number, targetMin?: number, targetMax?: number, damp?: number, factor?: number, targetRound?: boolean)
|
|
637
|
+
constructor(baseMin: number, baseMax: number, targetMin?: number, targetMax?: number, damp?: number, factor?: number, targetRound?: boolean, clamp?: boolean, clampMin?: number, clampMax?: number)
|
|
638
638
|
damp: number
|
|
639
639
|
convert(input: number): number
|
|
640
640
|
immediate(num: number): this
|
|
@@ -699,6 +699,8 @@ declare namespace zim {
|
|
|
699
699
|
export function appendPoints(original: [any], points: [any], controlType?: string): [any]
|
|
700
700
|
export function prependPoints(original: [any], points: [any], controlType?: string): [any]
|
|
701
701
|
export function splitPoints(points: [any], index?: number, trimEnds?: boolean): [any]
|
|
702
|
+
export function outlineImage(image: DisplayObject, reverse?: boolean): [[any]]
|
|
703
|
+
export function simplifyPoints(points: [any], tolerance?:number, highestQuality?:boolean, reverse?:boolean, removeLast?:boolean): [[any]]
|
|
702
704
|
export function mobile(orientation?: boolean): string | boolean
|
|
703
705
|
export function vee(obj?: any): boolean
|
|
704
706
|
export function async(url: string, callback?: Function): void
|
|
@@ -2124,8 +2126,8 @@ declare namespace zim {
|
|
|
2124
2126
|
// dispose():boolean // now added to Container, etc.
|
|
2125
2127
|
enabled: boolean
|
|
2126
2128
|
// END ZIM Component Interface
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
+
setBacking(type: string, newIcon: DisplayObject): this
|
|
2130
|
+
setIcon(type: string, newIcon: DisplayObject): this
|
|
2129
2131
|
toggle(state?: boolean): this
|
|
2130
2132
|
wait(): this
|
|
2131
2133
|
clearWait(): this
|
|
@@ -2173,14 +2175,15 @@ declare namespace zim {
|
|
|
2173
2175
|
backgroundColor: color
|
|
2174
2176
|
}
|
|
2175
2177
|
export class RadioButtons extends Container implements zimComponent {
|
|
2176
|
-
constructor(config_or_size?: number, buttons?: string[] | {}[], vertical?: boolean, color?: color, backgroundColor?: color, spacing?: number, margin?: number, always?: boolean, indicatorColor?: color, selectedIndex?: number, style?: boolean, group?: string, inherit?: {})
|
|
2177
|
-
constructor(config: { size?: number, buttons?: string[] | {}[], vertical?: boolean, color?: color, backgroundColor?: color, spacing?: number, margin?: number, always?: boolean, indicatorColor?: color, selectedIndex?: number, style?: boolean, group?: string, inherit?: {} })
|
|
2178
|
+
constructor(config_or_size?: number, buttons?: string[] | {}[], vertical?: boolean, color?: color, backgroundColor?: color, spacing?: number, margin?: number, always?: boolean, indicatorColor?: color, index?: number, rtl?: boolean, selectedIndex?: number, style?: boolean, group?: string, inherit?: {})
|
|
2179
|
+
constructor(config: { size?: number, buttons?: string[] | {}[], vertical?: boolean, color?: color, backgroundColor?: color, spacing?: number, margin?: number, always?: boolean, indicatorColor?: color, index?: number, rtl?: boolean, selectedIndex?: number, style?: boolean, group?: string, inherit?: {} })
|
|
2178
2180
|
// ZIM Component Interface
|
|
2179
2181
|
// dispose():boolean // now added to Container, etc.
|
|
2180
2182
|
enabled: boolean
|
|
2181
2183
|
// END ZIM Component Interface
|
|
2182
2184
|
setSelected(num: number): this
|
|
2183
2185
|
readonly selected: { index: number, selected: boolean, label: Label }
|
|
2186
|
+
index: number
|
|
2184
2187
|
selectedIndex: number
|
|
2185
2188
|
label: Label
|
|
2186
2189
|
text: string
|
|
@@ -2325,12 +2328,13 @@ declare namespace zim {
|
|
|
2325
2328
|
readonly bar: DisplayObject
|
|
2326
2329
|
}
|
|
2327
2330
|
export class Indicator extends Container implements zimComponent {
|
|
2328
|
-
constructor(config_or_width?: number, height?: number, num?: number, foregroundColor?: color, backgroundColor?: color, borderColor?: color, borderWidth?: number, backdropColor?: color, corner?: number | any[], indicatorType?: string, fill?: boolean, scale?: number, lightScale?: number, interactive?: boolean, shadowColor?: color, shadowBlur?: number, selectedIndex?: number, style?: boolean, group?: string, inherit?: {})
|
|
2329
|
-
constructor(config: { width?: number, height?: number, num?: number, foregroundColor?: color, backgroundColor?: color, borderColor?: color, borderWidth?: number, backdropColor?: color, corner?: number | any[], indicatorType?: string, fill?: boolean, scale?: number, lightScale?: number, interactive?: boolean, shadowColor?: color, shadowBlur?: number, selectedIndex?: number, style?: boolean, group?: string, inherit?: {} })
|
|
2331
|
+
constructor(config_or_width?: number, height?: number, num?: number, foregroundColor?: color, backgroundColor?: color, borderColor?: color, borderWidth?: number, backdropColor?: color, corner?: number | any[], indicatorType?: string|DisplayObject, selectedIndicatorType?: string|DisplayObject, fill?: boolean, scale?: number, lightScale?: number, interactive?: boolean, shadowColor?: color, shadowBlur?: number, index?: number, backgroundAlpha?: number, selectedIndex?: number, style?: boolean, group?: string, inherit?: {})
|
|
2332
|
+
constructor(config: { width?: number, height?: number, num?: number, foregroundColor?: color, backgroundColor?: color, borderColor?: color, borderWidth?: number, backdropColor?: color, corner?: number | any[], indicatorType?: string|DisplayObject, selectedIndicatorType?: string|DisplayObject, fill?: boolean, scale?: number, lightScale?: number, interactive?: boolean, shadowColor?: color, shadowBlur?: number, index?: number, backgroundAlpha?: number, selectedIndex?: number, style?: boolean, group?: string, inherit?: {} })
|
|
2330
2333
|
// ZIM Component Interface
|
|
2331
2334
|
// dispose():boolean // now added to Container, etc.
|
|
2332
2335
|
enabled: boolean
|
|
2333
2336
|
// END ZIM Component Interface
|
|
2337
|
+
index: number
|
|
2334
2338
|
selectedIndex: number
|
|
2335
2339
|
readonly num: number
|
|
2336
2340
|
readonly backdrop: Rectangle
|
|
@@ -2359,8 +2363,8 @@ declare namespace zim {
|
|
|
2359
2363
|
static LabelInput(config: { text?: string | zimVee, size?: number, maxLength?: number, password?: string, selectionColor?: color, selectionAlpha?: number, blinkerColor?: color, blinkerSpeed?: number, font?: string, color?: color, rollColor?: color, shadowColor?: color, shadowBlur?: number, align?: string, valign?: string, lineWidth?: number, lineHeight?: number, bold?: boolean, italic?: boolean, variant?: boolean, backing?: DisplayObject, outlineColor?: color, outlineWidth?: number, backgroundColor?: color, backgroundBorderColor?: color, backgroundBorderWidth?: number, corner?: number | any[], backgroundDashed?: boolean, padding?: number, paddingH?: number, paddingV?: number, shiftH?: number, shiftV?: number, rollPersist?: boolean, labelWidth?: number, labelHeight?: number, style?: boolean, group?: string, inherit?: {} }): Container
|
|
2360
2364
|
}
|
|
2361
2365
|
export class List extends zim.Window implements zimComponent {
|
|
2362
|
-
constructor(config_or_width?: number, height?: number, list?: any[], viewNum?: number, vertical?: boolean, currentSelected?: boolean, align?: string, valign?: string, labelAlign?: string, labelValign?: string, labelIndent?: number, labelIndentH?: boolean, labelIndentV?: boolean, indent?: number, spacing?: number, backgroundColor?: color, rollBackgroundColor?: color, downBackgroundColor?: color, selectedBackgroundColor?: color, backdropColor?: color, color?: color, rollColor?: color, downColor?: color, selectedColor?: color, borderColor?: color, borderWidth?: number, padding?: number, corner?: number | any[], swipe?: boolean, scrollBarActive?: boolean, scrollBarDrag?: boolean, scrollBarColor?: color, scrollBarAlpha?: number, scrollBarFade?: boolean, scrollBarH?: boolean, scrollBarV?: boolean, scrollBarOverlay?: boolean, slide?: boolean, slideFactor?: number, slideSnap?: boolean, slideSnapDamp?: number, shadowColor?: color, shadowBlur?: number, paddingH?: number, paddingV?: number, scrollWheel?: boolean, damp?: number, titleBar?: string | Label, titleBarColor?: color, titleBarBackgroundColor?: color, titleBarHeight?: number, draggable?: boolean, boundary?: {} | Boundary, onTop?: boolean, close?: boolean, closeColor?: color, excludeCustomTap?: boolean, organizer?: Organizer, checkBox?: boolean, pulldown?: boolean, clone?: boolean, cancelCurrentDrag?: boolean,
|
|
2363
|
-
constructor(config: { width?: number, height?: number, list?: any[], viewNum?: number, vertical?: boolean, currentSelected?: boolean, align?: string, valign?: string, labelAlign?: string, labelValign?: string, labelIndent?: number, labelIndentH?: boolean, labelIndentV?: boolean, indent?: number, spacing?: number, backgroundColor?: color, rollBackgroundColor?: color, downBackgroundColor?: color, selectedBackgroundColor?: color, backdropColor?: color, color?: color, rollColor?: color, downColor?: color, selectedColor?: color, borderColor?: color, borderWidth?: number, padding?: number, corner?: number | any[], swipe?: boolean, scrollBarActive?: boolean, scrollBarDrag?: boolean, scrollBarColor?: color, scrollBarAlpha?: number, scrollBarFade?: boolean, scrollBarH?: boolean, scrollBarV?: boolean, scrollBarOverlay?: boolean, slide?: boolean, slideFactor?: number, slideSnap?: boolean, slideSnapDamp?: number, shadowColor?: color, shadowBlur?: number, paddingH?: number, paddingV?: number, scrollWheel?: boolean, damp?: number, titleBar?: string | Label, titleBarColor?: color, titleBarBackgroundColor?: color, titleBarHeight?: number, draggable?: boolean, boundary?: {} | Boundary, onTop?: boolean, close?: boolean, closeColor?: color, excludeCustomTap?: boolean, organizer?: Organizer, checkBox?: boolean, pulldown?: boolean, clone?: boolean, cancelCurrentDrag?: boolean,
|
|
2366
|
+
constructor(config_or_width?: number, height?: number, list?: any[], viewNum?: number, vertical?: boolean, currentSelected?: boolean, align?: string, valign?: string, labelAlign?: string, labelValign?: string, labelIndent?: number, labelIndentH?: boolean, labelIndentV?: boolean, indent?: number, spacing?: number, backgroundColor?: color, rollBackgroundColor?: color, downBackgroundColor?: color, selectedBackgroundColor?: color, backdropColor?: color, color?: color, rollColor?: color, downColor?: color, selectedColor?: color, borderColor?: color, borderWidth?: number, padding?: number, corner?: number | any[], swipe?: boolean, scrollBarActive?: boolean, scrollBarDrag?: boolean, scrollBarColor?: color, scrollBarAlpha?: number, scrollBarFade?: boolean, scrollBarH?: boolean, scrollBarV?: boolean, scrollBarOverlay?: boolean, slide?: boolean, slideFactor?: number, slideSnap?: boolean, slideSnapDamp?: number, shadowColor?: color, shadowBlur?: number, paddingH?: number, paddingV?: number, scrollWheel?: boolean, damp?: number, titleBar?: string | Label, titleBarColor?: color, titleBarBackgroundColor?: color, titleBarHeight?: number, draggable?: boolean, boundary?: {} | Boundary, onTop?: boolean, close?: boolean, closeColor?: color, excludeCustomTap?: boolean, organizer?: Organizer, checkBox?: boolean, pulldown?: boolean, clone?: boolean, cancelCurrentDrag?: boolean, index?: number, resizeHandle?: boolean, resizeBoundary?: Boundary, resizeVisible?: boolean, drop?: boolean, dropTargets?: [List], dropColor?: color, dropThickness?: number, dropScrollSpeed?: number, dropReticleAlpha?: number, selectedIndex?: number, style?: boolean, group?: string, inherit?: {})
|
|
2367
|
+
constructor(config: { width?: number, height?: number, list?: any[], viewNum?: number, vertical?: boolean, currentSelected?: boolean, align?: string, valign?: string, labelAlign?: string, labelValign?: string, labelIndent?: number, labelIndentH?: boolean, labelIndentV?: boolean, indent?: number, spacing?: number, backgroundColor?: color, rollBackgroundColor?: color, downBackgroundColor?: color, selectedBackgroundColor?: color, backdropColor?: color, color?: color, rollColor?: color, downColor?: color, selectedColor?: color, borderColor?: color, borderWidth?: number, padding?: number, corner?: number | any[], swipe?: boolean, scrollBarActive?: boolean, scrollBarDrag?: boolean, scrollBarColor?: color, scrollBarAlpha?: number, scrollBarFade?: boolean, scrollBarH?: boolean, scrollBarV?: boolean, scrollBarOverlay?: boolean, slide?: boolean, slideFactor?: number, slideSnap?: boolean, slideSnapDamp?: number, shadowColor?: color, shadowBlur?: number, paddingH?: number, paddingV?: number, scrollWheel?: boolean, damp?: number, titleBar?: string | Label, titleBarColor?: color, titleBarBackgroundColor?: color, titleBarHeight?: number, draggable?: boolean, boundary?: {} | Boundary, onTop?: boolean, close?: boolean, closeColor?: color, excludeCustomTap?: boolean, organizer?: Organizer, checkBox?: boolean, pulldown?: boolean, clone?: boolean, cancelCurrentDrag?: boolean, index?: number, resizeHandle?: boolean, resizeBoundary?: Boundary, resizeVisible?: boolean, drop?: boolean, dropTargets?: [List], dropColor?: color, dropThickness?: number, dropScrollSpeed?: number, dropReticleAlpha?: number, selectedIndex?: number, style?: boolean, group?: string, inherit?: {} })
|
|
2364
2368
|
// ZIM Component Interface
|
|
2365
2369
|
// dispose():boolean // now added to Container, etc.
|
|
2366
2370
|
enabled: boolean
|
|
@@ -2373,7 +2377,7 @@ declare namespace zim {
|
|
|
2373
2377
|
last(): this
|
|
2374
2378
|
openAtLevel(level: number): this
|
|
2375
2379
|
openAtId(idNum: number): this
|
|
2376
|
-
toggle(): this
|
|
2380
|
+
toggle(state?: boolean, index?:number | [number]): this
|
|
2377
2381
|
static slider(label?: string | Label, min?: number, max?: number, val?: number, call?: Function, step?: number, obj?: any, property?: string, paddingLeft?: number, paddingRight?: number): Container
|
|
2378
2382
|
static checkBox(label?: string | Label, checked?: boolean, call?: Function, step?: number, obj?: any, property?: string, paddingLeft?: number, paddingRight?: number): Container
|
|
2379
2383
|
static colorPicker(label?: string | Label, color?: color, picker?: ColorPicker, call?: Function, step?: number, obj?: any, property?: string, paddingLeft?: number, paddingRight?: number): Container
|
|
@@ -2381,11 +2385,14 @@ declare namespace zim {
|
|
|
2381
2385
|
setCheck(index?: number, type?: boolean): this
|
|
2382
2386
|
setChecks(type?: boolean): this
|
|
2383
2387
|
getCheck(index?: number): boolean
|
|
2388
|
+
updateDrop(): boolean
|
|
2389
|
+
index:number
|
|
2384
2390
|
selectedIndex: number
|
|
2385
2391
|
selectedIndexPlusPosition: number
|
|
2386
2392
|
toggled: boolean
|
|
2387
2393
|
readonly selected: DisplayObject
|
|
2388
2394
|
readonly text: string
|
|
2395
|
+
value: any
|
|
2389
2396
|
readonly currentValue: string
|
|
2390
2397
|
readonly label: Label
|
|
2391
2398
|
readonly titleBarLabel: Label
|
|
@@ -2395,18 +2402,29 @@ declare namespace zim {
|
|
|
2395
2402
|
readonly length: number
|
|
2396
2403
|
readonly tabs: Tabs
|
|
2397
2404
|
readonly checkBoxes: [CheckBox]
|
|
2405
|
+
drop: boolean
|
|
2406
|
+
dropTargets: [List]
|
|
2407
|
+
dropColor: color
|
|
2408
|
+
readonly dropReticle: Rectangle
|
|
2409
|
+
readonly dropItem: DisplayObject
|
|
2410
|
+
readonly dropIndex: Number
|
|
2411
|
+
readonly dropList: List
|
|
2412
|
+
readonly dropNewIndex: number
|
|
2413
|
+
|
|
2398
2414
|
scrollEnabled: boolean
|
|
2399
2415
|
}
|
|
2400
2416
|
export class Stepper extends Container implements zimComponent {
|
|
2401
|
-
constructor(config_or_list?: string[] | number[], width?: number, backgroundColor?: color, borderColor?: color, borderWidth?: number, label?: Label, color?: color, vertical?: boolean, arrows?: number, corner?: number | any[], shadowColor?: color, shadowBlur?: number, loop?: boolean, display?: boolean, press?: boolean, hold?: boolean, holdDelay?: number, holdSpeed?: number, draggable?: boolean, dragSensitivity?: number, dragRange?: number, stepperType?: string, min?: number, max?: number, step?: number, step2?: number, arrows2?: boolean, arrows2Scale?: number, keyEnabled?: boolean, keyArrows?: number, rightForward?: boolean, downForward?: boolean, selectedIndex?: number, style?: boolean, group?: string, inherit?: {})
|
|
2402
|
-
constructor(config: { list?: string[] | number[], width?: number, backgroundColor?: color, borderColor?: color, borderWidth?: number, label?: Label, color?: color, vertical?: boolean, arrows?: number, corner?: number | any[], shadowColor?: color, shadowBlur?: number, loop?: boolean, display?: boolean, press?: boolean, hold?: boolean, holdDelay?: number, holdSpeed?: number, draggable?: boolean, dragSensitivity?: number, dragRange?: number, stepperType?: string, min?: number, max?: number, step?: number, step2?: number, arrows2?: boolean, arrows2Scale?: number, keyEnabled?: boolean, keyArrows?: number, rightForward?: boolean, downForward?: boolean, selectedIndex?: number, style?: boolean, group?: string, inherit?: {} })
|
|
2417
|
+
constructor(config_or_list?: string[] | number[], width?: number, backgroundColor?: color, borderColor?: color, borderWidth?: number, label?: Label, color?: color, vertical?: boolean, arrows?: number, corner?: number | any[], shadowColor?: color, shadowBlur?: number, loop?: boolean, display?: boolean, press?: boolean, hold?: boolean, holdDelay?: number, holdSpeed?: number, draggable?: boolean, dragSensitivity?: number, dragRange?: number, stepperType?: string, min?: number, max?: number, step?: number, step2?: number, arrows2?: boolean, arrows2Scale?: number, keyEnabled?: boolean, keyArrows?: number, rightForward?: boolean, downForward?: boolean, index?: number, value?: string | number, arrowColor?: color, arrowScale?: number, selectedIndex?: number, currentValue?: string | number, style?: boolean, group?: string, inherit?: {})
|
|
2418
|
+
constructor(config: { list?: string[] | number[], width?: number, backgroundColor?: color, borderColor?: color, borderWidth?: number, label?: Label, color?: color, vertical?: boolean, arrows?: number, corner?: number | any[], shadowColor?: color, shadowBlur?: number, loop?: boolean, display?: boolean, press?: boolean, hold?: boolean, holdDelay?: number, holdSpeed?: number, draggable?: boolean, dragSensitivity?: number, dragRange?: number, stepperType?: string, min?: number, max?: number, step?: number, step2?: number, arrows2?: boolean, arrows2Scale?: number, keyEnabled?: boolean, keyArrows?: number, rightForward?: boolean, downForward?: boolean, index?: number, value?: string | number, arrowColor?: color, arrowScale?: number, selectedIndex?: number, currentValue?: string | number, style?: boolean, group?: string, inherit?: {} })
|
|
2403
2419
|
// ZIM Component Interface
|
|
2404
2420
|
// dispose():boolean // now added to Container, etc.
|
|
2405
2421
|
enabled: boolean
|
|
2406
2422
|
// END ZIM Component Interface
|
|
2407
2423
|
next(): void
|
|
2408
2424
|
prev(): void
|
|
2425
|
+
index: number
|
|
2409
2426
|
selectedIndex: number
|
|
2427
|
+
value: string | number
|
|
2410
2428
|
currentValue: string | number
|
|
2411
2429
|
currentValueEvent: string | number
|
|
2412
2430
|
stepperArray: string[] | number[]
|
|
@@ -2425,12 +2443,13 @@ declare namespace zim {
|
|
|
2425
2443
|
keyFocus: boolean
|
|
2426
2444
|
}
|
|
2427
2445
|
export class Slider extends Container implements zimComponent {
|
|
2428
|
-
constructor(config_or_min?: number | zimVee, max?: number | zimVee, step?: number | zimVee, button?: Button, barLength?: number, barWidth?: number, barColor?: color, vertical?: boolean, useTicks?: boolean, tickColor?: color, tickStep?: number, semiTicks?: number, tickScale?: number, semiTickScale?: number, accentSize?: number, accentOffset?: number, accentColor?: color, accentBackgroundColor?: color, accentDifference?: number, sound?: boolean, inside?: boolean, keyArrows?: number, keyArrowsStep?: number, keyArrowsH?: boolean, keyArrowsV?: boolean, damp?: number,
|
|
2429
|
-
constructor(config: { min?: number | zimVee, max?: number | zimVee, step?: number | zimVee, button?: Button, barLength?: number, barWidth?: number, barColor?: color, vertical?: boolean, useTicks?: boolean, tickColor?: color, tickStep?: number, semiTicks?: number, tickScale?: number, semiTickScale?: number, accentSize?: number, accentOffset?: number, accentColor?: color, accentBackgroundColor?: color, accentDifference?: number, sound?: boolean, inside?: boolean, keyArrows?: number, keyArrowsStep?: number, keyArrowsH?: boolean, keyArrowsV?: boolean, damp?: number,
|
|
2446
|
+
constructor(config_or_min?: number | zimVee, max?: number | zimVee, step?: number | zimVee, button?: Button, barLength?: number, barWidth?: number, barColor?: color, vertical?: boolean, useTicks?: boolean, tickColor?: color, tickStep?: number, semiTicks?: number, tickScale?: number, semiTickScale?: number, accentSize?: number, accentOffset?: number, accentColor?: color, accentBackgroundColor?: color, accentDifference?: number, sound?: boolean, inside?: boolean, keyArrows?: number, keyArrowsStep?: number, keyArrowsH?: boolean, keyArrowsV?: boolean, damp?: number, value?: number | zimVee, expand?: number, expandV?: number, expandBar?: number, expandBarV?: number, useLabels?: boolean, labelMargin?: number, labelColor?: color, range?: boolean, rangeColor?: color, rangeWidth?: number, rangeMin?: number, rangeMax?: number, rangeAve?: number, addZero?: boolean, currentValue?: number, style?: boolean, group?: string, inherit?: {})
|
|
2447
|
+
constructor(config: { min?: number | zimVee, max?: number | zimVee, step?: number | zimVee, button?: Button, barLength?: number, barWidth?: number, barColor?: color, vertical?: boolean, useTicks?: boolean, tickColor?: color, tickStep?: number, semiTicks?: number, tickScale?: number, semiTickScale?: number, accentSize?: number, accentOffset?: number, accentColor?: color, accentBackgroundColor?: color, accentDifference?: number, sound?: boolean, inside?: boolean, keyArrows?: number, keyArrowsStep?: number, keyArrowsH?: boolean, keyArrowsV?: boolean, damp?: number, value?: number | zimVee, expand?: number, expandV?: number, expandBar?: number, expandBarV?: number, useLabels?: boolean, labelMargin?: number, labelColor?: color, range?: boolean, rangeColor?: color, rangeWidth?: number, rangeMin?: number, rangeMax?: number, rangeAve?: number, addZero?: boolean, currentValue?: number, style?: boolean, group?: string, inherit?: {} })
|
|
2430
2448
|
// ZIM Component Interface
|
|
2431
2449
|
// dispose():boolean // now added to Container, etc.
|
|
2432
2450
|
enabled: boolean
|
|
2433
2451
|
// END ZIM Component Interface
|
|
2452
|
+
value: number
|
|
2434
2453
|
currentValue: number
|
|
2435
2454
|
currentValueEvent: number
|
|
2436
2455
|
readonly min: number
|
|
@@ -2443,33 +2462,51 @@ declare namespace zim {
|
|
|
2443
2462
|
keyArrowsH: number
|
|
2444
2463
|
keyArrowsV: number
|
|
2445
2464
|
keyFocus: boolean
|
|
2465
|
+
readonly rangeBar: Rectangle
|
|
2466
|
+
readonly rangeSliderA: Slider
|
|
2467
|
+
readonly rangeSliderB: Slider
|
|
2468
|
+
readonly rangeButtonA: Button
|
|
2469
|
+
readonly rangeButtonB: Button
|
|
2470
|
+
rangeMin: number
|
|
2471
|
+
rangeMax: number
|
|
2472
|
+
rangeAve: number
|
|
2473
|
+
readonly rangeAmount: number
|
|
2446
2474
|
}
|
|
2447
2475
|
export class Selector extends Container implements zimComponent {
|
|
2448
|
-
constructor(config_or_tile?: Tile, borderColor?: color | zimVee, borderWidth?: number, backgroundColor?: color | zimVee, corner?: number | [any], dashed?: boolean | [number], padding?: number, paddingV?: number, speed?: number, diagonal?: boolean, dim?: boolean, multi?: boolean, keyArrows?: boolean, behind?: boolean, resizeScale?: number, selectedIndex?: number, style?: boolean, group?: string, inherit?: {})
|
|
2449
|
-
constructor(config: { tile?: Tile, borderColor?: color | zimVee, borderWidth?: number, backgroundColor?: color | zimVee, corner?: number | [any], dashed?: boolean | [number], padding?: number, paddingV?: number, speed?: number, diagonal?: boolean, dim?: boolean, multi?: boolean, keyArrows?: boolean, behind?: boolean, resizeScale?: number, selectedIndex?: number, style?: boolean, group?: string, inherit?: {} })
|
|
2476
|
+
constructor(config_or_tile?: Tile, borderColor?: color | zimVee, borderWidth?: number, backgroundColor?: color | zimVee, corner?: number | [any], dashed?: boolean | [number], padding?: number, paddingV?: number, speed?: number, diagonal?: boolean, dim?: boolean, multi?: boolean, keyArrows?: boolean, behind?: boolean, resizeScale?: number, index?: number, liveIndex?: boolean, selectedIndex?: number, style?: boolean, group?: string, inherit?: {})
|
|
2477
|
+
constructor(config: { tile?: Tile, borderColor?: color | zimVee, borderWidth?: number, backgroundColor?: color | zimVee, corner?: number | [any], dashed?: boolean | [number], padding?: number, paddingV?: number, speed?: number, diagonal?: boolean, dim?: boolean, multi?: boolean, keyArrows?: boolean, behind?: boolean, resizeScale?: number, index?: number, liveIndex?: boolean, selectedIndex?: number, style?: boolean, group?: string, inherit?: {} })
|
|
2450
2478
|
// ZIM Component Interface
|
|
2451
2479
|
// dispose():boolean // now added to Container, etc.
|
|
2452
2480
|
enabled: boolean
|
|
2453
2481
|
// END ZIM Component Interface
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2482
|
+
index: number
|
|
2483
|
+
selectedIndex: number
|
|
2484
|
+
liveIndex: boolean
|
|
2485
|
+
currentItem: DisplayObject
|
|
2486
|
+
noAnimate: boolean
|
|
2487
|
+
readonly downIndex: number
|
|
2488
|
+
readonly upIndex: number
|
|
2489
|
+
readonly downItem: DisplayObject
|
|
2490
|
+
readonly upItem: DisplayObject
|
|
2491
|
+
readonly lastIndex: number
|
|
2492
|
+
readonly lastItem: DisplayObject
|
|
2493
|
+
readonly selectedCol: number
|
|
2494
|
+
readonly selectedRow: number
|
|
2495
|
+
readonly lastCol: number
|
|
2496
|
+
readonly lastRow: number
|
|
2497
|
+
readonly tile: Tile
|
|
2498
|
+
readonly selector: Rectangle
|
|
2499
|
+
blendMode: string
|
|
2500
|
+
keyFocus: boolean
|
|
2465
2501
|
}
|
|
2466
2502
|
export class Dial extends Container implements zimComponent {
|
|
2467
|
-
constructor(config_or_min?: number, max?: number, step?: number, width?: number, backgroundColor?: color, indicatorColor?: color, indicatorScale?: number, indicatorType?: string, useTicks?: boolean, innerTicks?: boolean, tickColor?: color, tickStep?: number, semiTicks?: number, tickScale?: number, semiTickScale?: number, innerCircle?: boolean, innerScale?: number, innerColor?: color, inner2Color?: color, accentSize?: number, accentRadius?: number, accentColor?: color, accentBackgroundColor?: color, accentDifference?: number, sound?: boolean, linear?: boolean, gap?: number, limit?: boolean, keyArrows?: number, keyArrowsStep?: number, keyArrowsH?: boolean, keyArrowsV?: boolean, continuous?: boolean, continuousMin?: number, continuousMax?: number,
|
|
2468
|
-
constructor(config: { min?: number, max?: number, step?: number, width?: number, backgroundColor?: color, indicatorColor?: color, indicatorScale?: number, indicatorType?: string, useTicks?: boolean, innerTicks?: boolean, tickColor?: color, tickStep?: number, semiTicks?: number, tickScale?: number, semiTickScale?: number, innerCircle?: boolean, innerScale?: number, innerColor?: color, inner2Color?: color, accentSize?: number, accentRadius?: number, accentColor?: color, accentBackgroundColor?: color, accentDifference?: number, sound?: boolean, linear?: boolean, gap?: number, limit?: boolean, keyArrows?: number, keyArrowsStep?: number, keyArrowsH?: boolean, keyArrowsV?: boolean, continuous?: boolean, continuousMin?: number, continuousMax?: number,
|
|
2503
|
+
constructor(config_or_min?: number, max?: number, step?: number, width?: number, backgroundColor?: color, indicatorColor?: color, indicatorScale?: number, indicatorType?: string, useTicks?: boolean, innerTicks?: boolean, tickColor?: color, tickStep?: number, semiTicks?: number, tickScale?: number, semiTickScale?: number, innerCircle?: boolean, innerScale?: number, innerColor?: color, inner2Color?: color, accentSize?: number, accentRadius?: number, accentColor?: color, accentBackgroundColor?: color, accentDifference?: number, sound?: boolean, linear?: boolean, gap?: number, limit?: boolean, keyArrows?: number, keyArrowsStep?: number, keyArrowsH?: boolean, keyArrowsV?: boolean, continuous?: boolean, continuousMin?: number, continuousMax?: number, value?: number, useLabels?: boolean, labelMargin?: number, addZero?: boolean, currentValue?: number, style?: boolean, group?: string, inherit?: {})
|
|
2504
|
+
constructor(config: { min?: number, max?: number, step?: number, width?: number, backgroundColor?: color, indicatorColor?: color, indicatorScale?: number, indicatorType?: string, useTicks?: boolean, innerTicks?: boolean, tickColor?: color, tickStep?: number, semiTicks?: number, tickScale?: number, semiTickScale?: number, innerCircle?: boolean, innerScale?: number, innerColor?: color, inner2Color?: color, accentSize?: number, accentRadius?: number, accentColor?: color, accentBackgroundColor?: color, accentDifference?: number, sound?: boolean, linear?: boolean, gap?: number, limit?: boolean, keyArrows?: number, keyArrowsStep?: number, keyArrowsH?: boolean, keyArrowsV?: boolean, continuous?: boolean, continuousMin?: number, continuousMax?: number, value?: number, useLabels?: boolean, labelMargin?: number, addZero?: boolean, currentValue?: number, style?: boolean, group?: string, inherit?: {} })
|
|
2469
2505
|
// ZIM Component Interface
|
|
2470
2506
|
// dispose():boolean // now added to Container, etc.
|
|
2471
2507
|
enabled: boolean
|
|
2472
2508
|
// END ZIM Component Interface
|
|
2509
|
+
value: number
|
|
2473
2510
|
currentValue: number
|
|
2474
2511
|
currentValueEvent: number
|
|
2475
2512
|
readonly min: number
|
|
@@ -2490,12 +2527,13 @@ declare namespace zim {
|
|
|
2490
2527
|
keyFocus: boolean
|
|
2491
2528
|
}
|
|
2492
2529
|
export class Tabs extends Container implements zimComponent {
|
|
2493
|
-
constructor(config_or_width?: number, height?: number, tabs?: string[] | {}[], backgroundColor?: color, rollBackgroundColor?: color, downBackgroundColor?: color, selectedBackgroundColor?: color, selectedRollBackgroundColor?: color, color?: color, rollColor?: color, downColor?: color, selectedColor?: color, selectedRollColor?: color, vertical?: boolean, spacing?: number, currentEnabled?: boolean, currentSelected?: boolean, corner?: number | any[], base?: string, keyEnabled?: boolean, gradient?: number, gloss?: number, backing?: DisplayObject, rollBacking?: DisplayObject, wait?: string, waitTime?: number, waitBackgroundColor?: color, rollWaitBackgroundColor?: color, waitColor?: color, rollWaitColor?: color, waitModal?: boolean, waitEnabled?: boolean, backdropColor?: color, align?: number, valign?: number, labelAlign?: string, labelValign?: string, labelIndent?: number, labelIndentH?: number, labelIndentV?: number, indent?: number, useTap?: boolean, excludeCustomTap?: boolean,
|
|
2494
|
-
constructor(config: { width?: number, height?: number, tabs?: string[] | {}[], backgroundColor?: color, rollBackgroundColor?: color, downBackgroundColor?: color, selectedBackgroundColor?: color, selectedRollBackgroundColor?: color, color?: color, rollColor?: color, downColor?: color, selectedColor?: color, selectedRollColor?: color, vertical?: boolean, spacing?: number, currentEnabled?: boolean, currentSelected?: boolean, corner?: number | any[], base?: string, keyEnabled?: boolean, gradient?: number, gloss?: number, backing?: DisplayObject, rollBacking?: DisplayObject, wait?: string, waitTime?: number, waitBackgroundColor?: color, rollWaitBackgroundColor?: color, waitColor?: color, rollWaitColor?: color, waitModal?: boolean, waitEnabled?: boolean, backdropColor?: color, align?: number, valign?: number, labelAlign?: string, labelValign?: string, labelIndent?: number, labelIndentH?: number, labelIndentV?: number, indent?: number, useTap?: boolean, excludeCustomTap?: boolean,
|
|
2530
|
+
constructor(config_or_width?: number, height?: number, tabs?: string[] | {}[], backgroundColor?: color, rollBackgroundColor?: color, downBackgroundColor?: color, selectedBackgroundColor?: color, selectedRollBackgroundColor?: color, color?: color, rollColor?: color, downColor?: color, selectedColor?: color, selectedRollColor?: color, vertical?: boolean, spacing?: number, currentEnabled?: boolean, currentSelected?: boolean, corner?: number | any[], base?: string, keyEnabled?: boolean, gradient?: number, gloss?: number, backing?: DisplayObject, rollBacking?: DisplayObject, wait?: string, waitTime?: number, waitBackgroundColor?: color, rollWaitBackgroundColor?: color, waitColor?: color, rollWaitColor?: color, waitModal?: boolean, waitEnabled?: boolean, backdropColor?: color, align?: number, valign?: number, labelAlign?: string, labelValign?: string, labelIndent?: number, labelIndentH?: number, labelIndentV?: number, indent?: number, useTap?: boolean, excludeCustomTap?: boolean, index?: number, styleLabels?: boolean, keyWrap?: boolean, selectedIndex?: number, style?: boolean, group?: string, inherit?: {})
|
|
2531
|
+
constructor(config: { width?: number, height?: number, tabs?: string[] | {}[], backgroundColor?: color, rollBackgroundColor?: color, downBackgroundColor?: color, selectedBackgroundColor?: color, selectedRollBackgroundColor?: color, color?: color, rollColor?: color, downColor?: color, selectedColor?: color, selectedRollColor?: color, vertical?: boolean, spacing?: number, currentEnabled?: boolean, currentSelected?: boolean, corner?: number | any[], base?: string, keyEnabled?: boolean, gradient?: number, gloss?: number, backing?: DisplayObject, rollBacking?: DisplayObject, wait?: string, waitTime?: number, waitBackgroundColor?: color, rollWaitBackgroundColor?: color, waitColor?: color, rollWaitColor?: color, waitModal?: boolean, waitEnabled?: boolean, backdropColor?: color, align?: number, valign?: number, labelAlign?: string, labelValign?: string, labelIndent?: number, labelIndentH?: number, labelIndentV?: number, indent?: number, useTap?: boolean, excludeCustomTap?: boolean, index?: number, styleLabels?: boolean, keyWrap?: boolean, selectedIndex?: number, style?: boolean, group?: string, inherit?: {} })
|
|
2495
2532
|
// ZIM Component Interface
|
|
2496
2533
|
// dispose():boolean // now added to Container, etc.
|
|
2497
2534
|
enabled: boolean
|
|
2498
2535
|
// END ZIM Component Interface
|
|
2536
|
+
index: number
|
|
2499
2537
|
selectedIndex: number
|
|
2500
2538
|
selected: Button
|
|
2501
2539
|
tabs: any[]
|
|
@@ -2514,12 +2552,13 @@ declare namespace zim {
|
|
|
2514
2552
|
keyFocus: boolean
|
|
2515
2553
|
}
|
|
2516
2554
|
export class Pad extends Container implements zimComponent {
|
|
2517
|
-
constructor(config_or_width?: number, cols?: number, rows?: number, keys?: string[] | {}[], backgroundColor?: color, rollBackgroundColor?: color, downBackgroundColor?: color, selectedBackgroundColor?: color, selectedRollBackgroundColor?: color, color?: color, rollColor?: color, downColor?: color, selectedColor?: color, selectedRollColor?: color, spacing?: number, currentEnabled?: boolean, currentSelected?: boolean, corner?: number | any[], labelColor?: color, gradient?: number, gloss?: number, backing?: DisplayObject, rollBacking?: DisplayObject, wait?: string, waitTime?: number, waitBackgroundColor?: color, rollWaitBackgroundColor?: color, waitColor?: color, rollWaitColor?: color, waitModal?: boolean, waitEnabled?: boolean, selectedIndex?: number, style?: boolean, group?: string, inherit?: {})
|
|
2518
|
-
constructor(config: { width?: number, cols?: number, rows?: number, keys?: string[] | {}[], backgroundColor?: color, rollBackgroundColor?: color, downBackgroundColor?: color, selectedBackgroundColor?: color, selectedRollBackgroundColor?: color, color?: color, rollColor?: color, downColor?: color, selectedColor?: color, selectedRollColor?: color, spacing?: number, currentEnabled?: boolean, currentSelected?: boolean, corner?: number | any[], labelColor?: color, gradient?: number, gloss?: number, backing?: DisplayObject, rollBacking?: DisplayObject, wait?: string, waitTime?: number, waitBackgroundColor?: color, rollWaitBackgroundColor?: color, waitColor?: color, rollWaitColor?: color, waitModal?: boolean, waitEnabled?: boolean, selectedIndex?: number, style?: boolean, group?: string, inherit?: {} })
|
|
2555
|
+
constructor(config_or_width?: number, cols?: number, rows?: number, keys?: string[] | {}[], backgroundColor?: color, rollBackgroundColor?: color, downBackgroundColor?: color, selectedBackgroundColor?: color, selectedRollBackgroundColor?: color, color?: color, rollColor?: color, downColor?: color, selectedColor?: color, selectedRollColor?: color, spacing?: number, currentEnabled?: boolean, currentSelected?: boolean, corner?: number | any[], labelColor?: color, gradient?: number, gloss?: number, backing?: DisplayObject, rollBacking?: DisplayObject, wait?: string, waitTime?: number, waitBackgroundColor?: color, rollWaitBackgroundColor?: color, waitColor?: color, rollWaitColor?: color, waitModal?: boolean, waitEnabled?: boolean, index?: number, selectedIndex?: number, style?: boolean, group?: string, inherit?: {})
|
|
2556
|
+
constructor(config: { width?: number, cols?: number, rows?: number, keys?: string[] | {}[], backgroundColor?: color, rollBackgroundColor?: color, downBackgroundColor?: color, selectedBackgroundColor?: color, selectedRollBackgroundColor?: color, color?: color, rollColor?: color, downColor?: color, selectedColor?: color, selectedRollColor?: color, spacing?: number, currentEnabled?: boolean, currentSelected?: boolean, corner?: number | any[], labelColor?: color, gradient?: number, gloss?: number, backing?: DisplayObject, rollBacking?: DisplayObject, wait?: string, waitTime?: number, waitBackgroundColor?: color, rollWaitBackgroundColor?: color, waitColor?: color, rollWaitColor?: color, waitModal?: boolean, waitEnabled?: boolean, index?: number, selectedIndex?: number, style?: boolean, group?: string, inherit?: {} })
|
|
2519
2557
|
// ZIM Component Interface
|
|
2520
2558
|
// dispose():boolean // now added to Container, etc.
|
|
2521
2559
|
enabled: boolean
|
|
2522
2560
|
// END ZIM Component Interface
|
|
2561
|
+
index: number
|
|
2523
2562
|
selectedIndex: number
|
|
2524
2563
|
selected: Button
|
|
2525
2564
|
color: color
|
|
@@ -2553,12 +2592,13 @@ declare namespace zim {
|
|
|
2553
2592
|
readonly dirY: number
|
|
2554
2593
|
}
|
|
2555
2594
|
export class Radial extends Container implements zimComponent {
|
|
2556
|
-
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, selectedIndex?: number, style?: boolean, group?: string, inherit?: {})
|
|
2557
|
-
constructor(config: { 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, selectedIndex?: number, style?: boolean, group?: string, inherit?: {} })
|
|
2595
|
+
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?: {})
|
|
2596
|
+
constructor(config: { 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?: {} })
|
|
2558
2597
|
// ZIM Component Interface
|
|
2559
2598
|
// dispose():boolean // now added to Container, etc.
|
|
2560
2599
|
enabled: boolean
|
|
2561
2600
|
// END ZIM Component Interface
|
|
2601
|
+
index: number
|
|
2562
2602
|
selectedIndex: number
|
|
2563
2603
|
readonly text: string
|
|
2564
2604
|
readonly label: Label
|
|
@@ -2575,7 +2615,7 @@ declare namespace zim {
|
|
|
2575
2615
|
enabled: boolean
|
|
2576
2616
|
// END ZIM Component Interface
|
|
2577
2617
|
closeRings(): void
|
|
2578
|
-
|
|
2618
|
+
readonly index: number
|
|
2579
2619
|
readonly selectedLevel: number
|
|
2580
2620
|
readonly outerLevel: number
|
|
2581
2621
|
readonly outerMenu: Radial
|
|
@@ -2585,8 +2625,8 @@ declare namespace zim {
|
|
|
2585
2625
|
readonly core: Circle
|
|
2586
2626
|
}
|
|
2587
2627
|
export class ColorPicker extends Container implements zimComponent {
|
|
2588
|
-
constructor(config_or_width?: number, colors?: string | [color], cols?: number, spacing?: number, greyPicker?: boolean, alphaPicker?: boolean, startBackgroundColor?: color, draggable?: boolean, shadowColor?: color, shadowBlur?: number, buttonBar?: boolean, circles?: boolean, indicator?: boolean, backgroundColor?: color, keyArrows?: boolean,
|
|
2589
|
-
constructor(config: { width?: number, colors?: string | [color], cols?: number, spacing?: number, greyPicker?: boolean, alphaPicker?: boolean, startBackgroundColor?: color, draggable?: boolean, shadowColor?: color, shadowBlur?: number, buttonBar?: boolean, circles?: boolean, indicator?: boolean, backgroundColor?: color, keyArrows?: boolean,
|
|
2628
|
+
constructor(config_or_width?: number, colors?: string | [color], cols?: number, spacing?: number, greyPicker?: boolean, alphaPicker?: boolean, startBackgroundColor?: color, draggable?: boolean, shadowColor?: color, shadowBlur?: number, buttonBar?: boolean, circles?: boolean, indicator?: boolean, backgroundColor?: color, keyArrows?: boolean, index?: number, selectedColor?: string, dropperTarget?: DisplayObject, spectrumCollapse?: boolean, spectrumMode?: boolean, spectrumClose?: boolean, spectrumOk?: boolean, spectrumTitle?: string, tolerancePicker?: boolean, collapsed?: boolean, selectedIndex?: number, style?: boolean, group?: string, inherit?: {})
|
|
2629
|
+
constructor(config: { width?: number, colors?: string | [color], cols?: number, spacing?: number, greyPicker?: boolean, alphaPicker?: boolean, startBackgroundColor?: color, draggable?: boolean, shadowColor?: color, shadowBlur?: number, buttonBar?: boolean, circles?: boolean, indicator?: boolean, backgroundColor?: color, keyArrows?: boolean, index?: number, selectedColor?: string, dropperTarget?: DisplayObject, spectrumCollapse?: boolean, spectrumMode?: boolean, spectrumClose?: boolean, spectrumOk?: boolean, spectrumTitle?: string, tolerancePicker?: boolean, collapsed?: boolean, selectedIndex?: number, style?: boolean, group?: string, inherit?: {} })
|
|
2590
2630
|
// ZIM Component Interface
|
|
2591
2631
|
// dispose():boolean // now added to Container, etc.
|
|
2592
2632
|
enabled: boolean
|
|
@@ -2598,10 +2638,11 @@ declare namespace zim {
|
|
|
2598
2638
|
collapse(state?: boolean): this
|
|
2599
2639
|
updateDropperTarget(): this
|
|
2600
2640
|
selectedColor: color
|
|
2641
|
+
value: string
|
|
2601
2642
|
currentValue: string
|
|
2602
2643
|
currentValueEvent: string
|
|
2603
2644
|
readonly selectedAlpha: number
|
|
2604
|
-
readonly
|
|
2645
|
+
readonly index: number
|
|
2605
2646
|
readonly swatch: Rectangle
|
|
2606
2647
|
readonly swatchbackground: Shape
|
|
2607
2648
|
readonly swatchText: Label
|
|
@@ -2647,8 +2688,8 @@ declare namespace zim {
|
|
|
2647
2688
|
readonly font: List
|
|
2648
2689
|
}
|
|
2649
2690
|
export class Keyboard extends Container implements zimComponent {
|
|
2650
|
-
constructor(config_or_labels?: Label[] | Label, backgroundColor?: color, color?: color, shiftBackgroundColor?: color, shiftHoldBackgroundColor?: color, placeBackgroundColor?: color, placeColor?: color, cursorColor?: color, shadeAlpha?: number, borderColor?: color, borderWidth?: number, margin?: number, corner?: number | any[], draggable?: boolean, placeClose?: boolean, shadowColor?: color, shadowBlur?: number, container?: Container, data?: [any], place?: boolean, special?: string, rtl?: boolean, hardKeyboard?: boolean, layout?: string, numPadScale?: number, numPadDraggable?: boolean, numPadOnly?: boolean, numPadAdvanced?: boolean, maxLength?: number, numbersOnly?: boolean, style?: boolean, group?: string, inherit?: {})
|
|
2651
|
-
constructor(config: { labels?: Label[] | Label, backgroundColor?: color, color?: color, shiftBackgroundColor?: color, shiftHoldBackgroundColor?: color, placeBackgroundColor?: color, placeColor?: color, cursorColor?: color, shadeAlpha?: number, borderColor?: color, borderWidth?: number, margin?: number, corner?: number | any[], draggable?: boolean, placeClose?: boolean, shadowColor?: color, shadowBlur?: number, container?: Container, data?: [any], place?: boolean, special?: string, rtl?: boolean, hardKeyboard?: boolean, layout?: string, numPadScale?: number, numPadDraggable?: boolean, numPadOnly?: boolean, numPadAdvanced?: boolean, maxLength?: number, numbersOnly?: boolean, style?: boolean, group?: string, inherit?: {} })
|
|
2691
|
+
constructor(config_or_labels?: Label[] | Label, backgroundColor?: color, color?: color, shiftBackgroundColor?: color, shiftHoldBackgroundColor?: color, placeBackgroundColor?: color, placeColor?: color, cursorColor?: color, shadeAlpha?: number, borderColor?: color, borderWidth?: number, margin?: number, corner?: number | any[], draggable?: boolean, placeClose?: boolean, shadowColor?: color, shadowBlur?: number, container?: Container, data?: [any], place?: boolean, placeShiftH?: number, placeShiftV?: number, placeScale?: number, special?: string, rtl?: boolean, hardKeyboard?: boolean, layout?: string, numPadScale?: number, numPadDraggable?: boolean, numPadOnly?: boolean, numPadAdvanced?: boolean, maxLength?: number, numbersOnly?: boolean, style?: boolean, group?: string, inherit?: {})
|
|
2692
|
+
constructor(config: { labels?: Label[] | Label, backgroundColor?: color, color?: color, shiftBackgroundColor?: color, shiftHoldBackgroundColor?: color, placeBackgroundColor?: color, placeColor?: color, cursorColor?: color, shadeAlpha?: number, borderColor?: color, borderWidth?: number, margin?: number, corner?: number | any[], draggable?: boolean, placeClose?: boolean, shadowColor?: color, shadowBlur?: number, container?: Container, data?: [any], place?: boolean, placeShiftH?: number, placeShiftV?: number, placeScale?: number, special?: string, rtl?: boolean, hardKeyboard?: boolean, layout?: string, numPadScale?: number, numPadDraggable?: boolean, numPadOnly?: boolean, numPadAdvanced?: boolean, maxLength?: number, numbersOnly?: boolean, style?: boolean, group?: string, inherit?: {} })
|
|
2652
2693
|
// ZIM Component Interface
|
|
2653
2694
|
// dispose():boolean // now added to Container, etc.
|
|
2654
2695
|
enabled: boolean
|
|
@@ -2664,7 +2705,7 @@ declare namespace zim {
|
|
|
2664
2705
|
readonly labels: Label[]
|
|
2665
2706
|
readonly placeMenu: Container
|
|
2666
2707
|
selectedLabel: Label
|
|
2667
|
-
|
|
2708
|
+
index: number
|
|
2668
2709
|
keys: Container
|
|
2669
2710
|
numPad: NumPad
|
|
2670
2711
|
maxLength: number
|
|
@@ -2750,7 +2791,7 @@ declare namespace zim {
|
|
|
2750
2791
|
readonly pages: Pages
|
|
2751
2792
|
readonly button: Button
|
|
2752
2793
|
readonly indicator: Indicator
|
|
2753
|
-
readonly
|
|
2794
|
+
readonly index: number
|
|
2754
2795
|
readonly selected: DisplayObject
|
|
2755
2796
|
readonly lastSelected: DisplayObject
|
|
2756
2797
|
time: number
|
|
@@ -2764,8 +2805,8 @@ declare namespace zim {
|
|
|
2764
2805
|
readonly marqueeLoader: Queue
|
|
2765
2806
|
}
|
|
2766
2807
|
export class Carousel extends Container implements zimComponent {
|
|
2767
|
-
constructor(config_or_items?: [DisplayObject | string], viewNum?: number, time?: number, spacing?: number, backgroundColor?: color, backing?: DisplayObject, padding?: number, paddingH?: number, paddingV?: number, arrowLeft?: Arrow, arrowRight?: Arrow, arrowGap?: number, valign?: string, ease?: string, swipe?: boolean, remember?: string | boolean, selectedIndex?: number, style?: boolean, group?: string, inherit?: {})
|
|
2768
|
-
constructor(config: { items?: [DisplayObject | string], viewNum?: number, time?: number, spacing?: number, backgroundColor?: color, backing?: DisplayObject, padding?: number, paddingH?: number, paddingV?: number, arrowLeft?: Arrow, arrowRight?: Arrow, arrowGap?: number, valign?: string, ease?: string, swipe?: boolean, remember?: string | boolean, selectedIndex?: number, style?: boolean, group?: string, inherit?: {} })
|
|
2808
|
+
constructor(config_or_items?: [DisplayObject | string], viewNum?: number, time?: number, spacing?: number, backgroundColor?: color, backing?: DisplayObject, padding?: number, paddingH?: number, paddingV?: number, arrowLeft?: Arrow, arrowRight?: Arrow, arrowGap?: number, valign?: string, ease?: string, swipe?: boolean, remember?: string | boolean, index?: number, continuous?: boolean, selectedIndex?: number, style?: boolean, group?: string, inherit?: {})
|
|
2809
|
+
constructor(config: { items?: [DisplayObject | string], viewNum?: number, time?: number, spacing?: number, backgroundColor?: color, backing?: DisplayObject, padding?: number, paddingH?: number, paddingV?: number, arrowLeft?: Arrow, arrowRight?: Arrow, arrowGap?: number, valign?: string, ease?: string, swipe?: boolean, remember?: string | boolean, index?: number, continuous?: boolean, selectedIndex?: number, style?: boolean, group?: string, inherit?: {} })
|
|
2769
2810
|
// ZIM Component Interface
|
|
2770
2811
|
// dispose():boolean // now added to Container, etc.
|
|
2771
2812
|
enabled: boolean
|
|
@@ -2776,6 +2817,7 @@ declare namespace zim {
|
|
|
2776
2817
|
cycleClear(): this
|
|
2777
2818
|
disableArrows(): this
|
|
2778
2819
|
enableArrows(): this
|
|
2820
|
+
index: number
|
|
2779
2821
|
selectedIndex: number
|
|
2780
2822
|
readonly items: [DisplayObject]
|
|
2781
2823
|
readonly tile: Tile
|
|
@@ -2814,6 +2856,7 @@ declare namespace zim {
|
|
|
2814
2856
|
// END ZIM Component Interface
|
|
2815
2857
|
setFocus(type: boolean): this
|
|
2816
2858
|
resize(): this
|
|
2859
|
+
value: string
|
|
2817
2860
|
currentValue: string
|
|
2818
2861
|
text: string
|
|
2819
2862
|
focus: boolean
|
|
@@ -3929,6 +3972,54 @@ declare namespace zim {
|
|
|
3929
3972
|
pause(state?: boolean): this
|
|
3930
3973
|
pause(state?: boolean): this
|
|
3931
3974
|
}
|
|
3975
|
+
export class Rive {
|
|
3976
|
+
constructor(config_or_width?:number, height?:number, src?:string, stateMachines?:string, artboard?:string, animations?:string|[string], autoplay?:boolean, layout?:{}, buffer?:ArrayBuffer, file?:string, useOffscreenRenderer?:boolean, enableRiveAssetCDN?:boolean, shouldDisableRiveListeners?:boolean, isTouchScrollEnabled?:boolean, automaticallyHandleEvents?:boolean, onLoad?:Function, onLoadError?:Function, onPlay?:Function, onPause?:Function, onStop?:Function, onLoop?:Function, onStateChange?:Function, onAdvance?:Function, assetLoader?:Function, canvas?:HTMLCanvasElement)
|
|
3977
|
+
constructor(config: {width?:number, height?:number, src?:string, stateMachines?:string, artboard?:string, animations?:string|[string], autoplay?:boolean, layout?:{}, buffer?:ArrayBuffer, file?:string, useOffscreenRenderer?:boolean, enableRiveAssetCDN?:boolean, shouldDisableRiveListeners?:boolean, isTouchScrollEnabled?:boolean, automaticallyHandleEvents?:boolean, onLoad?:Function, onLoadError?:Function, onPlay?:Function, onPause?:Function, onStop?:Function, onLoop?:Function, onStateChange?:Function, onAdvance?:Function, assetLoader?:Function, canvas?:HTMLCanvasElement })
|
|
3978
|
+
play(names?:string|[string], autoplay?:boolean): void
|
|
3979
|
+
pause(names?:string|[string]): void
|
|
3980
|
+
stop(names?:string|[string]): void
|
|
3981
|
+
scrub(animationNames?:string|[string], time?:number): void
|
|
3982
|
+
reset(params?:{}): void
|
|
3983
|
+
on(): Function
|
|
3984
|
+
off(eventType:string, callback:Function): void
|
|
3985
|
+
removeAllEventListeners(): void
|
|
3986
|
+
stateMachineInputs(): void
|
|
3987
|
+
dispose(): void
|
|
3988
|
+
type: string
|
|
3989
|
+
display: string
|
|
3990
|
+
canvas: Bitmap
|
|
3991
|
+
content: string
|
|
3992
|
+
source: string
|
|
3993
|
+
activeArtboard: string
|
|
3994
|
+
animationNames: [string]
|
|
3995
|
+
stateMachineNames: [string]
|
|
3996
|
+
playingAnimationNames: [string]
|
|
3997
|
+
playingStateMachineNames: [string]
|
|
3998
|
+
pausedAnimationNames: [string]
|
|
3999
|
+
pausedStateMachineNames: [string]
|
|
4000
|
+
isPlaying: boolean
|
|
4001
|
+
isPaused: boolean
|
|
4002
|
+
isStopped: boolean
|
|
4003
|
+
bounds: {}
|
|
4004
|
+
layout: any
|
|
4005
|
+
}
|
|
4006
|
+
export class RiveListener {
|
|
4007
|
+
constructor(src:string, damp?:number, canvas?:HTMLCanvasElement, wasm?:string)
|
|
4008
|
+
dispose(): void
|
|
4009
|
+
type: string
|
|
4010
|
+
display: Bitmap
|
|
4011
|
+
canvas: HTMLCanvasElement
|
|
4012
|
+
rive: any
|
|
4013
|
+
renderer: any
|
|
4014
|
+
file: string
|
|
4015
|
+
artboards: [string]
|
|
4016
|
+
animations: [string]
|
|
4017
|
+
stateMachines: [string]
|
|
4018
|
+
input: any
|
|
4019
|
+
pauseMove: boolean
|
|
4020
|
+
pauseDown: boolean
|
|
4021
|
+
pauseUp: boolean
|
|
4022
|
+
}
|
|
3932
4023
|
export var THEME: { name?: string, lightenRatio?: number, tint?: color, tintRatio?: number, exclude?: color | [color] }
|
|
3933
4024
|
export class Theme {
|
|
3934
4025
|
constructor()
|