zimjs 17.0.0 → 17.0.2
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 +709 -79
- package/ts-src/typings/zim/index.d.ts +92 -65
|
@@ -34,6 +34,7 @@ declare global {
|
|
|
34
34
|
var yellow: string
|
|
35
35
|
var purple: string
|
|
36
36
|
var red: string
|
|
37
|
+
var salmon: string
|
|
37
38
|
var interstellar: string
|
|
38
39
|
var black: string
|
|
39
40
|
var darker: string
|
|
@@ -550,10 +551,10 @@ declare namespace zim {
|
|
|
550
551
|
export function countDecimals(num: number): number
|
|
551
552
|
export function sign(num: number): 1 | 0 | -1
|
|
552
553
|
export function constrain(num: number, min?: number, max?: number, negative?: boolean): number
|
|
553
|
-
export function dist(
|
|
554
|
+
export function dist(a: {} | number, b: {} | number, c: number, d: number): number
|
|
554
555
|
export function rectIntersect(a: {} | Boundary, b: {} | Boundary, margin?: number): {}
|
|
555
556
|
export function boundsAroundPoints(points: [{}]): number
|
|
556
|
-
export function angle(
|
|
557
|
+
export function angle(a: {} | number, b: {} | number, c: number, d: number): number
|
|
557
558
|
export function asset(file: string): DisplayObject
|
|
558
559
|
export class Point {
|
|
559
560
|
constructor(x: number, y: number, z?: number, q?: number, r?: number, s?: number, t?: number, u?: number, v?: number, w?: number)
|
|
@@ -630,11 +631,11 @@ declare namespace zim {
|
|
|
630
631
|
immediate(num: number): this
|
|
631
632
|
}
|
|
632
633
|
export class Proportion {
|
|
633
|
-
constructor(baseMin: number, baseMax: number, targetMin?: number, targetMax?: number, factor?: number, targetRound?: boolean)
|
|
634
|
+
constructor(baseMin: number, baseMax: number, targetMin?: number, targetMax?: number, factor?: number, targetRound?: boolean, clamp?: boolean, clampMin?: number, clampMax?: number)
|
|
634
635
|
convert(input: number): number
|
|
635
636
|
}
|
|
636
637
|
export class ProportionDamp {
|
|
637
|
-
constructor(baseMin: number, baseMax: number, targetMin?: number, targetMax?: number, damp?: number, factor?: number, targetRound?: boolean)
|
|
638
|
+
constructor(baseMin: number, baseMax: number, targetMin?: number, targetMax?: number, damp?: number, factor?: number, targetRound?: boolean, clamp?: boolean, clampMin?: number, clampMax?: number)
|
|
638
639
|
damp: number
|
|
639
640
|
convert(input: number): number
|
|
640
641
|
immediate(num: number): this
|
|
@@ -1387,6 +1388,7 @@ declare namespace zim {
|
|
|
1387
1388
|
height: number
|
|
1388
1389
|
widthOnly: number
|
|
1389
1390
|
heightOnly: number
|
|
1391
|
+
cacheScale: number
|
|
1390
1392
|
marginLeft: number
|
|
1391
1393
|
marginRight: number
|
|
1392
1394
|
marginTop: number
|
|
@@ -2126,8 +2128,8 @@ declare namespace zim {
|
|
|
2126
2128
|
// dispose():boolean // now added to Container, etc.
|
|
2127
2129
|
enabled: boolean
|
|
2128
2130
|
// END ZIM Component Interface
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
+
setBacking(type: string, newIcon: DisplayObject): this
|
|
2132
|
+
setIcon(type: string, newIcon: DisplayObject): this
|
|
2131
2133
|
toggle(state?: boolean): this
|
|
2132
2134
|
wait(): this
|
|
2133
2135
|
clearWait(): this
|
|
@@ -2175,14 +2177,15 @@ declare namespace zim {
|
|
|
2175
2177
|
backgroundColor: color
|
|
2176
2178
|
}
|
|
2177
2179
|
export class RadioButtons extends Container implements zimComponent {
|
|
2178
|
-
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?: {})
|
|
2179
|
-
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?: {} })
|
|
2180
|
+
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?: {})
|
|
2181
|
+
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?: {} })
|
|
2180
2182
|
// ZIM Component Interface
|
|
2181
2183
|
// dispose():boolean // now added to Container, etc.
|
|
2182
2184
|
enabled: boolean
|
|
2183
2185
|
// END ZIM Component Interface
|
|
2184
2186
|
setSelected(num: number): this
|
|
2185
2187
|
readonly selected: { index: number, selected: boolean, label: Label }
|
|
2188
|
+
index: number
|
|
2186
2189
|
selectedIndex: number
|
|
2187
2190
|
label: Label
|
|
2188
2191
|
text: string
|
|
@@ -2327,12 +2330,13 @@ declare namespace zim {
|
|
|
2327
2330
|
readonly bar: DisplayObject
|
|
2328
2331
|
}
|
|
2329
2332
|
export class Indicator extends Container implements zimComponent {
|
|
2330
|
-
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, selectedIndex?: number, style?: boolean, group?: string, inherit?: {})
|
|
2331
|
-
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, selectedIndex?: number, style?: boolean, group?: string, inherit?: {} })
|
|
2333
|
+
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?: {})
|
|
2334
|
+
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?: {} })
|
|
2332
2335
|
// ZIM Component Interface
|
|
2333
2336
|
// dispose():boolean // now added to Container, etc.
|
|
2334
2337
|
enabled: boolean
|
|
2335
2338
|
// END ZIM Component Interface
|
|
2339
|
+
index: number
|
|
2336
2340
|
selectedIndex: number
|
|
2337
2341
|
readonly num: number
|
|
2338
2342
|
readonly backdrop: Rectangle
|
|
@@ -2361,8 +2365,8 @@ declare namespace zim {
|
|
|
2361
2365
|
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
|
|
2362
2366
|
}
|
|
2363
2367
|
export class List extends zim.Window implements zimComponent {
|
|
2364
|
-
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,
|
|
2365
|
-
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,
|
|
2368
|
+
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?: {})
|
|
2369
|
+
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?: {} })
|
|
2366
2370
|
// ZIM Component Interface
|
|
2367
2371
|
// dispose():boolean // now added to Container, etc.
|
|
2368
2372
|
enabled: boolean
|
|
@@ -2375,7 +2379,7 @@ declare namespace zim {
|
|
|
2375
2379
|
last(): this
|
|
2376
2380
|
openAtLevel(level: number): this
|
|
2377
2381
|
openAtId(idNum: number): this
|
|
2378
|
-
toggle(): this
|
|
2382
|
+
toggle(state?: boolean, index?:number | [number]): this
|
|
2379
2383
|
static slider(label?: string | Label, min?: number, max?: number, val?: number, call?: Function, step?: number, obj?: any, property?: string, paddingLeft?: number, paddingRight?: number): Container
|
|
2380
2384
|
static checkBox(label?: string | Label, checked?: boolean, call?: Function, step?: number, obj?: any, property?: string, paddingLeft?: number, paddingRight?: number): Container
|
|
2381
2385
|
static colorPicker(label?: string | Label, color?: color, picker?: ColorPicker, call?: Function, step?: number, obj?: any, property?: string, paddingLeft?: number, paddingRight?: number): Container
|
|
@@ -2383,11 +2387,14 @@ declare namespace zim {
|
|
|
2383
2387
|
setCheck(index?: number, type?: boolean): this
|
|
2384
2388
|
setChecks(type?: boolean): this
|
|
2385
2389
|
getCheck(index?: number): boolean
|
|
2390
|
+
updateDrop(): boolean
|
|
2391
|
+
index:number
|
|
2386
2392
|
selectedIndex: number
|
|
2387
2393
|
selectedIndexPlusPosition: number
|
|
2388
2394
|
toggled: boolean
|
|
2389
2395
|
readonly selected: DisplayObject
|
|
2390
2396
|
readonly text: string
|
|
2397
|
+
value: any
|
|
2391
2398
|
readonly currentValue: string
|
|
2392
2399
|
readonly label: Label
|
|
2393
2400
|
readonly titleBarLabel: Label
|
|
@@ -2397,18 +2404,29 @@ declare namespace zim {
|
|
|
2397
2404
|
readonly length: number
|
|
2398
2405
|
readonly tabs: Tabs
|
|
2399
2406
|
readonly checkBoxes: [CheckBox]
|
|
2407
|
+
drop: boolean
|
|
2408
|
+
dropTargets: [List]
|
|
2409
|
+
dropColor: color
|
|
2410
|
+
readonly dropReticle: Rectangle
|
|
2411
|
+
readonly dropItem: DisplayObject
|
|
2412
|
+
readonly dropIndex: Number
|
|
2413
|
+
readonly dropList: List
|
|
2414
|
+
readonly dropNewIndex: number
|
|
2415
|
+
|
|
2400
2416
|
scrollEnabled: boolean
|
|
2401
2417
|
}
|
|
2402
2418
|
export class Stepper extends Container implements zimComponent {
|
|
2403
|
-
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?: {})
|
|
2404
|
-
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?: {} })
|
|
2419
|
+
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?: {})
|
|
2420
|
+
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?: {} })
|
|
2405
2421
|
// ZIM Component Interface
|
|
2406
2422
|
// dispose():boolean // now added to Container, etc.
|
|
2407
2423
|
enabled: boolean
|
|
2408
2424
|
// END ZIM Component Interface
|
|
2409
2425
|
next(): void
|
|
2410
2426
|
prev(): void
|
|
2427
|
+
index: number
|
|
2411
2428
|
selectedIndex: number
|
|
2429
|
+
value: string | number
|
|
2412
2430
|
currentValue: string | number
|
|
2413
2431
|
currentValueEvent: string | number
|
|
2414
2432
|
stepperArray: string[] | number[]
|
|
@@ -2427,12 +2445,13 @@ declare namespace zim {
|
|
|
2427
2445
|
keyFocus: boolean
|
|
2428
2446
|
}
|
|
2429
2447
|
export class Slider extends Container implements zimComponent {
|
|
2430
|
-
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,
|
|
2431
|
-
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,
|
|
2448
|
+
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?: {})
|
|
2449
|
+
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?: {} })
|
|
2432
2450
|
// ZIM Component Interface
|
|
2433
2451
|
// dispose():boolean // now added to Container, etc.
|
|
2434
2452
|
enabled: boolean
|
|
2435
2453
|
// END ZIM Component Interface
|
|
2454
|
+
value: number
|
|
2436
2455
|
currentValue: number
|
|
2437
2456
|
currentValueEvent: number
|
|
2438
2457
|
readonly min: number
|
|
@@ -2445,33 +2464,51 @@ declare namespace zim {
|
|
|
2445
2464
|
keyArrowsH: number
|
|
2446
2465
|
keyArrowsV: number
|
|
2447
2466
|
keyFocus: boolean
|
|
2467
|
+
readonly rangeBar: Rectangle
|
|
2468
|
+
readonly rangeSliderA: Slider
|
|
2469
|
+
readonly rangeSliderB: Slider
|
|
2470
|
+
readonly rangeButtonA: Button
|
|
2471
|
+
readonly rangeButtonB: Button
|
|
2472
|
+
rangeMin: number
|
|
2473
|
+
rangeMax: number
|
|
2474
|
+
rangeAve: number
|
|
2475
|
+
readonly rangeAmount: number
|
|
2448
2476
|
}
|
|
2449
2477
|
export class Selector extends Container implements zimComponent {
|
|
2450
|
-
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?: {})
|
|
2451
|
-
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?: {} })
|
|
2478
|
+
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?: {})
|
|
2479
|
+
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?: {} })
|
|
2452
2480
|
// ZIM Component Interface
|
|
2453
2481
|
// dispose():boolean // now added to Container, etc.
|
|
2454
2482
|
enabled: boolean
|
|
2455
2483
|
// END ZIM Component Interface
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2484
|
+
index: number
|
|
2485
|
+
selectedIndex: number
|
|
2486
|
+
liveIndex: boolean
|
|
2487
|
+
currentItem: DisplayObject
|
|
2488
|
+
noAnimate: boolean
|
|
2489
|
+
readonly downIndex: number
|
|
2490
|
+
readonly upIndex: number
|
|
2491
|
+
readonly downItem: DisplayObject
|
|
2492
|
+
readonly upItem: DisplayObject
|
|
2493
|
+
readonly lastIndex: number
|
|
2494
|
+
readonly lastItem: DisplayObject
|
|
2495
|
+
readonly selectedCol: number
|
|
2496
|
+
readonly selectedRow: number
|
|
2497
|
+
readonly lastCol: number
|
|
2498
|
+
readonly lastRow: number
|
|
2499
|
+
readonly tile: Tile
|
|
2500
|
+
readonly selector: Rectangle
|
|
2501
|
+
blendMode: string
|
|
2502
|
+
keyFocus: boolean
|
|
2467
2503
|
}
|
|
2468
2504
|
export class Dial extends Container implements zimComponent {
|
|
2469
|
-
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,
|
|
2470
|
-
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,
|
|
2505
|
+
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?: {})
|
|
2506
|
+
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?: {} })
|
|
2471
2507
|
// ZIM Component Interface
|
|
2472
2508
|
// dispose():boolean // now added to Container, etc.
|
|
2473
2509
|
enabled: boolean
|
|
2474
2510
|
// END ZIM Component Interface
|
|
2511
|
+
value: number
|
|
2475
2512
|
currentValue: number
|
|
2476
2513
|
currentValueEvent: number
|
|
2477
2514
|
readonly min: number
|
|
@@ -2492,12 +2529,13 @@ declare namespace zim {
|
|
|
2492
2529
|
keyFocus: boolean
|
|
2493
2530
|
}
|
|
2494
2531
|
export class Tabs extends Container implements zimComponent {
|
|
2495
|
-
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,
|
|
2496
|
-
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,
|
|
2532
|
+
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?: {})
|
|
2533
|
+
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?: {} })
|
|
2497
2534
|
// ZIM Component Interface
|
|
2498
2535
|
// dispose():boolean // now added to Container, etc.
|
|
2499
2536
|
enabled: boolean
|
|
2500
2537
|
// END ZIM Component Interface
|
|
2538
|
+
index: number
|
|
2501
2539
|
selectedIndex: number
|
|
2502
2540
|
selected: Button
|
|
2503
2541
|
tabs: any[]
|
|
@@ -2516,12 +2554,13 @@ declare namespace zim {
|
|
|
2516
2554
|
keyFocus: boolean
|
|
2517
2555
|
}
|
|
2518
2556
|
export class Pad extends Container implements zimComponent {
|
|
2519
|
-
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?: {})
|
|
2520
|
-
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?: {} })
|
|
2557
|
+
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?: {})
|
|
2558
|
+
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?: {} })
|
|
2521
2559
|
// ZIM Component Interface
|
|
2522
2560
|
// dispose():boolean // now added to Container, etc.
|
|
2523
2561
|
enabled: boolean
|
|
2524
2562
|
// END ZIM Component Interface
|
|
2563
|
+
index: number
|
|
2525
2564
|
selectedIndex: number
|
|
2526
2565
|
selected: Button
|
|
2527
2566
|
color: color
|
|
@@ -2555,12 +2594,13 @@ declare namespace zim {
|
|
|
2555
2594
|
readonly dirY: number
|
|
2556
2595
|
}
|
|
2557
2596
|
export class Radial extends Container implements zimComponent {
|
|
2558
|
-
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?: {})
|
|
2559
|
-
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?: {} })
|
|
2597
|
+
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?: {})
|
|
2598
|
+
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?: {} })
|
|
2560
2599
|
// ZIM Component Interface
|
|
2561
2600
|
// dispose():boolean // now added to Container, etc.
|
|
2562
2601
|
enabled: boolean
|
|
2563
2602
|
// END ZIM Component Interface
|
|
2603
|
+
index: number
|
|
2564
2604
|
selectedIndex: number
|
|
2565
2605
|
readonly text: string
|
|
2566
2606
|
readonly label: Label
|
|
@@ -2577,7 +2617,7 @@ declare namespace zim {
|
|
|
2577
2617
|
enabled: boolean
|
|
2578
2618
|
// END ZIM Component Interface
|
|
2579
2619
|
closeRings(): void
|
|
2580
|
-
|
|
2620
|
+
readonly index: number
|
|
2581
2621
|
readonly selectedLevel: number
|
|
2582
2622
|
readonly outerLevel: number
|
|
2583
2623
|
readonly outerMenu: Radial
|
|
@@ -2587,8 +2627,8 @@ declare namespace zim {
|
|
|
2587
2627
|
readonly core: Circle
|
|
2588
2628
|
}
|
|
2589
2629
|
export class ColorPicker extends Container implements zimComponent {
|
|
2590
|
-
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,
|
|
2591
|
-
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,
|
|
2630
|
+
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?: {})
|
|
2631
|
+
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?: {} })
|
|
2592
2632
|
// ZIM Component Interface
|
|
2593
2633
|
// dispose():boolean // now added to Container, etc.
|
|
2594
2634
|
enabled: boolean
|
|
@@ -2600,10 +2640,11 @@ declare namespace zim {
|
|
|
2600
2640
|
collapse(state?: boolean): this
|
|
2601
2641
|
updateDropperTarget(): this
|
|
2602
2642
|
selectedColor: color
|
|
2643
|
+
value: string
|
|
2603
2644
|
currentValue: string
|
|
2604
2645
|
currentValueEvent: string
|
|
2605
2646
|
readonly selectedAlpha: number
|
|
2606
|
-
readonly
|
|
2647
|
+
readonly index: number
|
|
2607
2648
|
readonly swatch: Rectangle
|
|
2608
2649
|
readonly swatchbackground: Shape
|
|
2609
2650
|
readonly swatchText: Label
|
|
@@ -2666,7 +2707,7 @@ declare namespace zim {
|
|
|
2666
2707
|
readonly labels: Label[]
|
|
2667
2708
|
readonly placeMenu: Container
|
|
2668
2709
|
selectedLabel: Label
|
|
2669
|
-
|
|
2710
|
+
index: number
|
|
2670
2711
|
keys: Container
|
|
2671
2712
|
numPad: NumPad
|
|
2672
2713
|
maxLength: number
|
|
@@ -2752,7 +2793,7 @@ declare namespace zim {
|
|
|
2752
2793
|
readonly pages: Pages
|
|
2753
2794
|
readonly button: Button
|
|
2754
2795
|
readonly indicator: Indicator
|
|
2755
|
-
readonly
|
|
2796
|
+
readonly index: number
|
|
2756
2797
|
readonly selected: DisplayObject
|
|
2757
2798
|
readonly lastSelected: DisplayObject
|
|
2758
2799
|
time: number
|
|
@@ -2766,8 +2807,8 @@ declare namespace zim {
|
|
|
2766
2807
|
readonly marqueeLoader: Queue
|
|
2767
2808
|
}
|
|
2768
2809
|
export class Carousel extends Container implements zimComponent {
|
|
2769
|
-
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?: {})
|
|
2770
|
-
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?: {} })
|
|
2810
|
+
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?: {})
|
|
2811
|
+
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?: {} })
|
|
2771
2812
|
// ZIM Component Interface
|
|
2772
2813
|
// dispose():boolean // now added to Container, etc.
|
|
2773
2814
|
enabled: boolean
|
|
@@ -2778,6 +2819,7 @@ declare namespace zim {
|
|
|
2778
2819
|
cycleClear(): this
|
|
2779
2820
|
disableArrows(): this
|
|
2780
2821
|
enableArrows(): this
|
|
2822
|
+
index: number
|
|
2781
2823
|
selectedIndex: number
|
|
2782
2824
|
readonly items: [DisplayObject]
|
|
2783
2825
|
readonly tile: Tile
|
|
@@ -2816,6 +2858,7 @@ declare namespace zim {
|
|
|
2816
2858
|
// END ZIM Component Interface
|
|
2817
2859
|
setFocus(type: boolean): this
|
|
2818
2860
|
resize(): this
|
|
2861
|
+
value: string
|
|
2819
2862
|
currentValue: string
|
|
2820
2863
|
text: string
|
|
2821
2864
|
focus: boolean
|
|
@@ -3731,28 +3774,12 @@ declare namespace zim {
|
|
|
3731
3774
|
visibleRight: number
|
|
3732
3775
|
visibleBottom: number
|
|
3733
3776
|
cursors: {}
|
|
3777
|
+
allowDefault: boolean
|
|
3778
|
+
touch: boolean
|
|
3779
|
+
singleTouch: boolean
|
|
3734
3780
|
readonly cursorList: Dictionary
|
|
3735
3781
|
readonly cursorObj: DisplayObject
|
|
3736
3782
|
zil: Function[]
|
|
3737
|
-
readonly orange: string
|
|
3738
|
-
readonly green: string
|
|
3739
|
-
readonly pink: string
|
|
3740
|
-
readonly blue: string
|
|
3741
|
-
readonly brown: string
|
|
3742
|
-
readonly yellow: string
|
|
3743
|
-
readonly red: string
|
|
3744
|
-
readonly purple: string
|
|
3745
|
-
readonly silver: string
|
|
3746
|
-
readonly tin: string
|
|
3747
|
-
readonly grey: string
|
|
3748
|
-
readonly lighter: string
|
|
3749
|
-
readonly light: string
|
|
3750
|
-
readonly dark: string
|
|
3751
|
-
readonly darker: string
|
|
3752
|
-
readonly white: string
|
|
3753
|
-
readonly black: string
|
|
3754
|
-
readonly clear: string
|
|
3755
|
-
readonly faint: string
|
|
3756
3783
|
altKey: boolean
|
|
3757
3784
|
ctrlKey: boolean
|
|
3758
3785
|
metaKey: boolean
|