zimjs 16.4.6 → 17.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
@@ -2325,8 +2327,8 @@ declare namespace zim {
2325
2327
  readonly bar: DisplayObject
2326
2328
  }
2327
2329
  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?: {} })
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?: {} })
2330
2332
  // ZIM Component Interface
2331
2333
  // dispose():boolean // now added to Container, etc.
2332
2334
  enabled: boolean
@@ -2647,8 +2649,8 @@ declare namespace zim {
2647
2649
  readonly font: List
2648
2650
  }
2649
2651
  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?: {} })
2652
+ 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?: {})
2653
+ 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
2654
  // ZIM Component Interface
2653
2655
  // dispose():boolean // now added to Container, etc.
2654
2656
  enabled: boolean
@@ -3929,6 +3931,54 @@ declare namespace zim {
3929
3931
  pause(state?: boolean): this
3930
3932
  pause(state?: boolean): this
3931
3933
  }
3934
+ export class Rive {
3935
+ 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)
3936
+ 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 })
3937
+ play(names?:string|[string], autoplay?:boolean): void
3938
+ pause(names?:string|[string]): void
3939
+ stop(names?:string|[string]): void
3940
+ scrub(animationNames?:string|[string], time?:number): void
3941
+ reset(params?:{}): void
3942
+ on(): Function
3943
+ off(eventType:string, callback:Function): void
3944
+ removeAllEventListeners(): void
3945
+ stateMachineInputs(): void
3946
+ dispose(): void
3947
+ type: string
3948
+ display: string
3949
+ canvas: Bitmap
3950
+ content: string
3951
+ source: string
3952
+ activeArtboard: string
3953
+ animationNames: [string]
3954
+ stateMachineNames: [string]
3955
+ playingAnimationNames: [string]
3956
+ playingStateMachineNames: [string]
3957
+ pausedAnimationNames: [string]
3958
+ pausedStateMachineNames: [string]
3959
+ isPlaying: boolean
3960
+ isPaused: boolean
3961
+ isStopped: boolean
3962
+ bounds: {}
3963
+ layout: any
3964
+ }
3965
+ export class RiveListener {
3966
+ constructor(src:string, damp?:number, canvas?:HTMLCanvasElement, wasm?:string)
3967
+ dispose(): void
3968
+ type: string
3969
+ display: Bitmap
3970
+ canvas: HTMLCanvasElement
3971
+ rive: any
3972
+ renderer: any
3973
+ file: string
3974
+ artboards: [string]
3975
+ animations: [string]
3976
+ stateMachines: [string]
3977
+ input: any
3978
+ pauseMove: boolean
3979
+ pauseDown: boolean
3980
+ pauseUp: boolean
3981
+ }
3932
3982
  export var THEME: { name?: string, lightenRatio?: number, tint?: color, tintRatio?: number, exclude?: color | [color] }
3933
3983
  export class Theme {
3934
3984
  constructor()