zimjs 17.0.4 → 17.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +1 -1
- package/src/zim.js +2660 -783
- package/ts-src/typings/zim/index.d.ts +106 -9
|
@@ -167,8 +167,8 @@ declare namespace zim {
|
|
|
167
167
|
noTap(): this
|
|
168
168
|
hold(call: Function, distance?: number, time?: number, once?: boolean): this
|
|
169
169
|
noHold(): this
|
|
170
|
-
drag(config_or_boundary?: Boundary | createjs.Rectangle | { x: number, y: number, width: number, height: number } | DisplayObject, axis?: string, overCursor?: string, dragCursor?: string, all?: boolean, swipe?: boolean, localBoundary?: boolean, onTop?: boolean, surround?: boolean, slide?: boolean, slideFactor?: number, slideSnap?: boolean, slideSnapDamp?: number, reg?: boolean, removeTweens?: boolean, startBounds?: boolean, rect?: Boundary | createjs.Rectangle | { x: number, y: number, width: number, height: number }, currentTarget?: boolean): this
|
|
171
|
-
drag(config: { boundary?: Boundary | createjs.Rectangle | { x: number, y: number, width: number, height: number } | DisplayObject, axis?: string, overCursor?: string, dragCursor?: string, all?: boolean, swipe?: boolean, localBoundary?: boolean, onTop?: boolean, surround?: boolean, slide?: boolean, slideFactor?: number, slideSnap?: boolean, slideSnapDamp?: number, reg?: boolean, removeTweens?: boolean, startBounds?: boolean, rect?: Boundary | createjs.Rectangle | { x: number, y: number, width: number, height: number }, currentTarget?: boolean }): this
|
|
170
|
+
drag(config_or_boundary?: Boundary | createjs.Rectangle | { x: number, y: number, width: number, height: number } | DisplayObject, axis?: string, overCursor?: string, dragCursor?: string, all?: boolean, swipe?: boolean, localBoundary?: boolean, onTop?: boolean, surround?: boolean, slide?: boolean, slideFactor?: number, slideSnap?: boolean, slideSnapDamp?: number, reg?: boolean, removeTweens?: boolean, startBounds?: boolean, rect?: Boundary | createjs.Rectangle | { x: number, y: number, width: number, height: number }, currentTarget?: boolean, offStage?: boolean, immediateBoundary?: boolean, singleTouch?: boolean, dropTargets?: DisplayObject | [DisplayObject], dropCopy?: boolean, dropSnap?: boolean, dropBack?: boolean, dropEnd?: boolean, dropFull?: boolean, dropHitTest?: string, dropScale?: number, dropWidth?: number, dropHeight?: number): this
|
|
171
|
+
drag(config: { boundary?: Boundary | createjs.Rectangle | { x: number, y: number, width: number, height: number } | DisplayObject, axis?: string, overCursor?: string, dragCursor?: string, all?: boolean, swipe?: boolean, localBoundary?: boolean, onTop?: boolean, surround?: boolean, slide?: boolean, slideFactor?: number, slideSnap?: boolean, slideSnapDamp?: number, reg?: boolean, removeTweens?: boolean, startBounds?: boolean, rect?: Boundary | createjs.Rectangle | { x: number, y: number, width: number, height: number }, currentTarget?: boolean, offStage?: boolean, immediateBoundary?: boolean, singleTouch?: boolean, dropTargets?: DisplayObject | [DisplayObject], dropCopy?: boolean, dropSnap?: boolean, dropBack?: boolean, dropEnd?: boolean, dropFull?: boolean, dropHitTest?: string, dropScale?: number, dropWidth?: number, dropHeight?: number}): this
|
|
172
172
|
noDrag(): this
|
|
173
173
|
change(call: Function): this
|
|
174
174
|
dragBoundary(boundary: Boundary | createjs.Rectangle | { x: number, y: number, width: number, height: number }): this
|
|
@@ -1060,7 +1060,7 @@ declare namespace zim {
|
|
|
1060
1060
|
percentComplete: number
|
|
1061
1061
|
zimLastMouseEnabled: boolean
|
|
1062
1062
|
// END ZIM Display Interface
|
|
1063
|
-
run(time?: number, label?: string, call?: Function, params?: any, wait?: number | zimVee, waitedCall?: Function, waitedParams?: any, loop?: boolean, loopCount?: number | zimVee, loopWait?: number | zimVee, loopCall?: Function, loopParams?: any, loopWaitCall?: Function, loopWaitParams?: any, rewind?: boolean | zimVee, rewindWait?: number | zimVee, rewindCall?: Function, rewindParams?: any, rewindWaitCall?: Function, rewindWaitParams?: any, startFrame?: number, end?: number, tweek?: number, id?: string, globalControl?: boolean): this
|
|
1063
|
+
run(time?: number, label?: string, call?: Function, params?: any, wait?: number | zimVee, waitedCall?: Function, waitedParams?: any, loop?: boolean, loopCount?: number | zimVee, loopWait?: number | zimVee, loopCall?: Function, loopParams?: any, loopWaitCall?: Function, loopWaitParams?: any, rewind?: boolean | zimVee, rewindWait?: number | zimVee, rewindCall?: Function, rewindParams?: any, rewindWaitCall?: Function, rewindWaitParams?: any, startFrame?: number, frame?: number, end?: number, tweek?: number, id?: string, globalControl?: boolean): this
|
|
1064
1064
|
pauseRun(state?: boolean): this
|
|
1065
1065
|
stopRun(): this
|
|
1066
1066
|
hasProp(prop: string): boolean
|
|
@@ -1076,8 +1076,10 @@ declare namespace zim {
|
|
|
1076
1076
|
}
|
|
1077
1077
|
|
|
1078
1078
|
export class Shape extends createjs.Shape implements zimDisplay {
|
|
1079
|
-
constructor(
|
|
1080
|
-
|
|
1079
|
+
constructor(config_or_width_or_boundsX?: number, height_or_boundsY?: number, width?: number, height?: number, graphics?: createjs.Graphics, style?: boolean, group?: string, inherit?: {})
|
|
1080
|
+
constructor(config: { width_or_boundsX?: number, height_or_boundsY?: number, width?: number, height?: number, graphics?: createjs.Graphics, style?: boolean, group?: string, inherit?: {} })
|
|
1081
|
+
|
|
1082
|
+
// ZIM Display Interface
|
|
1081
1083
|
// ZIM 4TH Methods
|
|
1082
1084
|
movement(call: Function): this
|
|
1083
1085
|
noMovement(): this
|
|
@@ -1265,8 +1267,9 @@ declare namespace zim {
|
|
|
1265
1267
|
}
|
|
1266
1268
|
|
|
1267
1269
|
export class Bitmap extends createjs.Bitmap implements zimDisplay {
|
|
1268
|
-
constructor(
|
|
1269
|
-
|
|
1270
|
+
constructor(config_or_image?: HTMLImageElement | DisplayObject, width?: number, height?: number, left?: number, top?: number, id?: string, style?: boolean, group?: string, inherit?: {})
|
|
1271
|
+
constructor(config: { image?: HTMLImageElement | DisplayObject, width?: number, height?: number, left?: number, top?: number, id?: string, style?: boolean, group?: string, inherit?: {} })
|
|
1272
|
+
// ZIM Display Interface
|
|
1270
1273
|
// ZIM 4TH Methods
|
|
1271
1274
|
movement(call: Function): this
|
|
1272
1275
|
noMovement(): this
|
|
@@ -1434,6 +1437,57 @@ declare namespace zim {
|
|
|
1434
1437
|
svg: SVGElement
|
|
1435
1438
|
}
|
|
1436
1439
|
|
|
1440
|
+
export class SlicedBitmap extends zim.Bitmap implements zimDisplay {
|
|
1441
|
+
constructor(config_or_width?: number, height?: number, obj?: HTMLImageElement | DisplayObject, slices?:[[]], types?:[[]], gap?: number, scale?: number, style?: boolean, group?: string, inherit?: {})
|
|
1442
|
+
constructor(config: { width?: number, height?: number, obj?: HTMLImageElement | DisplayObject, slices?:[[]], types?:[[]], gap?: number, scale?: number, style?: boolean, group?: string, inherit?: {} })
|
|
1443
|
+
slicesSca(): this
|
|
1444
|
+
slices: [[]]
|
|
1445
|
+
types: [[]]
|
|
1446
|
+
gap: number
|
|
1447
|
+
slicesWidth: number
|
|
1448
|
+
slicesHeight: number
|
|
1449
|
+
slicesSale: number
|
|
1450
|
+
slicesScaleX: number
|
|
1451
|
+
slicesScaleY: number
|
|
1452
|
+
exchange: [[[]]]
|
|
1453
|
+
sH0: number
|
|
1454
|
+
sV0: number
|
|
1455
|
+
tH0: number
|
|
1456
|
+
tV0: number
|
|
1457
|
+
sH1: number
|
|
1458
|
+
sV1: number
|
|
1459
|
+
tH1: number
|
|
1460
|
+
tV1: number
|
|
1461
|
+
sH2: number
|
|
1462
|
+
sV2: number
|
|
1463
|
+
tH2: number
|
|
1464
|
+
tV3: number
|
|
1465
|
+
sH3: number
|
|
1466
|
+
sV3: number
|
|
1467
|
+
tH4: number
|
|
1468
|
+
tV4: number
|
|
1469
|
+
sH4: number
|
|
1470
|
+
sV5: number
|
|
1471
|
+
tH5: number
|
|
1472
|
+
tV5: number
|
|
1473
|
+
sH6: number
|
|
1474
|
+
sV6: number
|
|
1475
|
+
tH6: number
|
|
1476
|
+
tV6: number
|
|
1477
|
+
sH7: number
|
|
1478
|
+
sV7: number
|
|
1479
|
+
tH7: number
|
|
1480
|
+
tV7: number
|
|
1481
|
+
sH8: number
|
|
1482
|
+
sV8: number
|
|
1483
|
+
tH8: number
|
|
1484
|
+
tV8: number
|
|
1485
|
+
sH9: number
|
|
1486
|
+
sV9: number
|
|
1487
|
+
tH9: number
|
|
1488
|
+
tV9: number
|
|
1489
|
+
}
|
|
1490
|
+
|
|
1437
1491
|
export class MovieClip extends createjs.MovieClip implements zimDisplay {
|
|
1438
1492
|
constructor(mode?: string, startPosition?: number, loop?: boolean, labels?: {}, style?: boolean, group?: string, inherit?: {})
|
|
1439
1493
|
// ZIM Display Interface
|
|
@@ -2365,8 +2419,8 @@ declare namespace zim {
|
|
|
2365
2419
|
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
|
|
2366
2420
|
}
|
|
2367
2421
|
export class List extends zim.Window implements zimComponent {
|
|
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?: [
|
|
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?: [
|
|
2422
|
+
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?: DisplayObject | [DisplayObject], dropSelf?: boolean, dropCopy?: boolean, dropColor?: color, dropThickness?: number, dropScrollSpeed?: number, dropReticleAlpha?: number, dropHitTest?: string, dropFull?: boolean, dropSnap?: boolean, dropEnd?: boolean, dropScale?: number, dropWidth?: number, dropHeight?: number, selectedIndex?: number, style?: boolean, group?: string, inherit?: {})
|
|
2423
|
+
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?: DisplayObject | [DisplayObject], dropSelf?: boolean, dropCopy?: boolean, dropColor?: color, dropThickness?: number, dropScrollSpeed?: number, dropReticleAlpha?: number, dropHitTest?: string, dropFull?: boolean, dropSnap?: boolean, dropEnd?: boolean, dropScale?: number, dropWidth?: number, dropHeight?: number, selectedIndex?: number, style?: boolean, group?: string, inherit?: {} })
|
|
2370
2424
|
// ZIM Component Interface
|
|
2371
2425
|
// dispose():boolean // now added to Container, etc.
|
|
2372
2426
|
enabled: boolean
|
|
@@ -2501,6 +2555,49 @@ declare namespace zim {
|
|
|
2501
2555
|
blendMode: string
|
|
2502
2556
|
keyFocus: boolean
|
|
2503
2557
|
}
|
|
2558
|
+
export class Slicer extends Window implements zimComponent {
|
|
2559
|
+
constructor(config_or_obj?: HTMLCanvasElement | DisplayObject, objScale?: number, slices?: [[]], types?: [[]], titleBar?: string | Label, remember?: boolean, upload?: boolean, selection?: boolean, multiple?: boolean, proportion?: boolean, resize?: boolean, style?: boolean, group?: string, inherit?: {})
|
|
2560
|
+
constructor(config: { obj?: HTMLCanvasElement | DisplayObject, objScale?: number, slices?: [[]], types?: [[]], titleBar?: string | Label, remember?: boolean, upload?: boolean, selection?: boolean, multiple?: boolean, proportion?: boolean, resize?: boolean, style?: boolean, group?: string, inherit?: {} })
|
|
2561
|
+
setObject(newObj:HTMLCanvasElement | DisplayObject, scale?: number) : this
|
|
2562
|
+
updateLines(slices: [[]]): this
|
|
2563
|
+
setSlicerTypes(slicerTypes: SlicerTypes): this
|
|
2564
|
+
clearSelection(): this
|
|
2565
|
+
clear(): this
|
|
2566
|
+
clone(): Slicer
|
|
2567
|
+
readonly obj: HTMLCanvasElement | DisplayObject
|
|
2568
|
+
slices: [[]]
|
|
2569
|
+
types: [[]]
|
|
2570
|
+
exchange: [[[]]]
|
|
2571
|
+
readonly selectedIndexH: number
|
|
2572
|
+
readonly selectedIndexV: number
|
|
2573
|
+
readonly currentLineH: Container
|
|
2574
|
+
readonly currentLineV: Container
|
|
2575
|
+
readonly selection: [[]]
|
|
2576
|
+
readonly box: Rectangle
|
|
2577
|
+
readonly trackH: Rectangle
|
|
2578
|
+
readonly trackV: Rectangle
|
|
2579
|
+
readonly deleteH: Button
|
|
2580
|
+
readonly deleteV: Button
|
|
2581
|
+
readonly hide: Button
|
|
2582
|
+
readonly loader: Loader
|
|
2583
|
+
readonly linesHContainer: Container
|
|
2584
|
+
readonly linesVContainer: Container
|
|
2585
|
+
readonly highlightContainer: Container
|
|
2586
|
+
}
|
|
2587
|
+
export class SlicerTypes extends Window implements zimComponent {
|
|
2588
|
+
constructor(config_or_slicer: Slicer, titleBar?: string | Label, sliceType?: string, style?: boolean, group?: string, inherit?: {})
|
|
2589
|
+
constructor(config: { slicer: Slicer, titleBar?: string | Label, sliceType?: string, style?: boolean, group?: string, inherit?: {} })
|
|
2590
|
+
slicer: Slicer
|
|
2591
|
+
sliceType: string
|
|
2592
|
+
readonly radioH: RadioButtons
|
|
2593
|
+
readonly radioV: RadioButtons
|
|
2594
|
+
readonly importButton: Button
|
|
2595
|
+
readonly exportButton: Button
|
|
2596
|
+
readonly importPane: Pane
|
|
2597
|
+
readonly exportPane: Pane
|
|
2598
|
+
readonly submitButton: Button
|
|
2599
|
+
readonly shield: Rectangle
|
|
2600
|
+
}
|
|
2504
2601
|
export class Dial extends Container implements zimComponent {
|
|
2505
2602
|
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
2603
|
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?: {} })
|