zimjs 20.0.2 → 20.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2227,8 +2227,8 @@ declare namespace zim {
2227
2227
  readonly numWords: number
2228
2228
  }
2229
2229
  export class Emoji extends Container implements zimComponent {
2230
- constructor(config_or_code: string, size?: number, monochrome?: boolean, italic?: boolean, backgroundColor?: color, backgroundBorderColor?: color, backgroundBorderWidth?: number, corner?: number | any[], backing?: DisplayObject, padding?: number, paddingH?: number, paddingV?: number, shiftH?: number, shiftV?: number, color?: color, borderColor?: color, style?: boolean, group?: string, inherit?: {})
2231
- constructor(config: { code: string, size?: number, monochrome?: boolean, italic?: boolean, backgroundColor?: color, backgroundBorderColor?: color, backgroundBorderWidth?: number, corner?: number | any[], backing?: DisplayObject, padding?: number, paddingH?: number, paddingV?: number, shiftH?: number, shiftV?: number, color?: color, borderColor?: color, style?: boolean, group?: string, inherit?: {} })
2230
+ constructor(config_or_code: string, size?: number, monochrome?: boolean, italic?: boolean, backgroundColor?: color, backgroundBorderColor?: color, backgroundBorderWidth?: number, corner?: number | any[], backing?: DisplayObject, padding?: number, paddingH?: number, paddingV?: number, shiftH?: number, shiftV?: number, color?: color, borderColor?: color, order?: number[], style?: boolean, group?: string, inherit?: {})
2231
+ constructor(config: { code: string, size?: number, monochrome?: boolean, italic?: boolean, backgroundColor?: color, backgroundBorderColor?: color, backgroundBorderWidth?: number, corner?: number | any[], backing?: DisplayObject, padding?: number, paddingH?: number, paddingV?: number, shiftH?: number, shiftV?: number, color?: color, borderColor?: color, order?: number[], style?: boolean, group?: string, inherit?: {} })
2232
2232
  // ZIM Component Interface
2233
2233
  // dispose():boolean // now added to Container, etc.
2234
2234
  enabled: boolean
@@ -3448,8 +3448,8 @@ declare namespace zim {
3448
3448
  readonly group: string
3449
3449
  }
3450
3450
  export class Bullets extends Tile {
3451
- constructor(config_or_list?: string|number[], bulletType?: string, size?: number, color?: color, cols?: number, font?: string, italic?: boolean, bold?: boolean, variant?: boolean, shiftH?: number, shiftV?: number, spacing?: number, spacingH?: number, spacingV?: number, colSpacing?: number, bulletAlign?: string, group?: string, style?: boolean, inherit?: {})
3452
- constructor(config: { list?: string|number[], bulletType?: string, size?: number, color?: color, cols?: number, font?: string, italic?: boolean, bold?: boolean, variant?: boolean, shiftH?: number, shiftV?: number, spacing?: number, spacingH?: number, spacingV?: number, colSpacing?: number, bulletAlign?: string, group?: string, style?: boolean, inherit?: {} })
3451
+ constructor(config_or_list?: string|number[], bulletType?: string, size?: number, color?: color, cols?: number, font?: string, italic?: boolean, bold?: boolean, variant?: boolean, shiftH?: number, shiftV?: number, spacing?: number, spacingH?: number, spacingV?: number, colSpacing?: number, bulletAlign?: string, rtl?: boolean, group?: string, style?: boolean, inherit?: {})
3452
+ constructor(config: { list?: string|number[], bulletType?: string, size?: number, color?: color, cols?: number, font?: string, italic?: boolean, bold?: boolean, variant?: boolean, shiftH?: number, shiftV?: number, spacing?: number, spacingH?: number, spacingV?: number, colSpacing?: number, bulletAlign?: string, rtl?: boolean, group?: string, style?: boolean, inherit?: {} })
3453
3453
  readonly type: string
3454
3454
  readonly list: string|number[]
3455
3455
  readonly bulletType: string
@@ -3523,8 +3523,8 @@ declare namespace zim {
3523
3523
  blurFactor: number
3524
3524
  }
3525
3525
  export class Perspective extends Container {
3526
- constructor(config_or_obj?: DisplayObject|zimVee, points?: {x:number,y:number}[]|Point, interactive?: boolean, showControls?: boolean, allowToggle?: boolean, move?: boolean, borderColor?: color|zimVee, borderWidth?: number|zimVee, dashed?: number|number[]|zimVee, plane?: boolean, fade?: boolean, dynamic?: boolean, frame?: Frame, style?: boolean, group?: string, inherit?: {})
3527
- constructor(config: { obj?: DisplayObject|zimVee, points?: {x:number,y:number}[]|Point, interactive?: boolean, showControls?: boolean, allowToggle?: boolean, move?: boolean, borderColor?: color|zimVee, borderWidth?: number|zimVee, dashed?: number|number[]|zimVee, plane?: boolean, fade?: boolean, dynamic?: boolean, frame?: Frame, style?: boolean, group?: string, inherit?: {} })
3526
+ constructor(config_or_obj?: DisplayObject|zimVee, points?: {x:number,y:number}[]|Point, interactive?: boolean, showControls?: boolean, allowToggle?: boolean, move?: boolean, borderColor?: color|zimVee, borderWidth?: number|zimVee, dashed?: number|number[]|zimVee, plane?: boolean, fade?: boolean, dynamic?: boolean, frame?: Frame, resolution?:number, maskShape?:string|DisplayObject, feather?:number, onTop?:boolean, overlay?:boolean, clipping?:boolean, passthrough?:boolean, passthroughScale?:number, passthroughShiftX?:number, passthroughShiftY?:number, style?: boolean, group?: string, inherit?: {})
3527
+ constructor(config: { obj?: DisplayObject|zimVee, points?: {x:number,y:number}[]|Point, interactive?: boolean, showControls?: boolean, allowToggle?: boolean, move?: boolean, borderColor?: color|zimVee, borderWidth?: number|zimVee, dashed?: number|number[]|zimVee, plane?: boolean, fade?: boolean, dynamic?: boolean, frame?: Frame, resolution?:number, maskShape?:string|DisplayObject, feather?:number, onTop?:boolean, overlay?:boolean, clipping?:boolean, passthrough?:boolean, passthroughScale?:number, passthroughShiftX?:number, passthroughShiftY?:number, style?: boolean, group?: string, inherit?: {} })
3528
3528
  selectCorner(index?: number, state?: boolean): Circle
3529
3529
  selectSide(index?: number, state?: boolean): Circle
3530
3530
  updateCorner(controlObj?: Circle, refresh?: boolean): Circle
@@ -3533,6 +3533,16 @@ declare namespace zim {
3533
3533
  toggle(state?: boolean): this
3534
3534
  deselectPoints(): this
3535
3535
  obj:DisplayObject
3536
+ onTop: boolean
3537
+ overlay: boolean
3538
+ clipping: boolean
3539
+ maskShape: string|DisplayObject
3540
+ feather: boolean
3541
+ readonly resolution: number
3542
+ passthrough: boolean
3543
+ passthroughScale: number
3544
+ passthroughShiftX: number
3545
+ passthroughShiftY: number
3536
3546
  readonly blob:Blob
3537
3547
  readonly sides:Container
3538
3548
  readonly shader:Shader
@@ -4071,8 +4081,8 @@ declare namespace zim {
4071
4081
  readonly bitmap: Bitmap
4072
4082
  }
4073
4083
  export class SVG extends Container {
4074
- constructor(config_or_svg?: string, width?: number, height?: number, bitmap?: boolean, splitTypes?: boolean, geometric?: boolean, showControls?: boolean, interactive?: boolean, style?: boolean, group?: string, inherit?: {})
4075
- constructor(config: { svg?: string, width?: number, height?: number, bitmap?: boolean, splitTypes?: boolean, geometric?: boolean, showControls?: boolean, interactive?: boolean, style?: boolean, group?: string, inherit?: {} })
4084
+ constructor(config_or_svg?: string, width?: number, height?: number, bitmap?: boolean, splitTypes?: boolean, geometric?: boolean, showControls?: boolean, interactive?: boolean, color?: color, borderColor?: color, order?: number[], style?: boolean, group?: string, inherit?: {})
4085
+ constructor(config: { svg?: string, width?: number, height?: number, bitmap?: boolean, splitTypes?: boolean, geometric?: boolean, showControls?: boolean, interactive?: boolean, color?: color, borderColor?: color, order?: number[], style?: boolean, group?: string, inherit?: {} })
4076
4086
  readonly sensorType: string
4077
4087
  readonly label: Label
4078
4088
  readonly yes: Button
@@ -4095,6 +4105,20 @@ declare namespace zim {
4095
4105
  readonly voiceLanguages: string[]
4096
4106
  readonly recognition: any
4097
4107
  }
4108
+ export class Hardware extends createjs.EventDispatcher {
4109
+ constructor(callback?:Function, baudRate?:number, delimiter?:string)
4110
+ connect(): void
4111
+ write(data: string|number): void
4112
+ disconnect(): void
4113
+ readonly port: number
4114
+ readonly reader: ReadableStreamDefaultReader<Uint8Array>
4115
+ readonly writer: WritableStreamDefaultWriter<string>
4116
+ readonly textEncoder: TextEncoderStream
4117
+ readonly textDecoder: TextDecoderStream
4118
+ isListening: boolean
4119
+ readonly baudRate: number
4120
+ delimiter: string|number
4121
+ }
4098
4122
  export class SensorAsk extends Pane {
4099
4123
  constructor(config_or_callback?: Function, sensorType?: string, color?: color, backgroundColor?: color, style?: boolean, group?: string, inherit?: {})
4100
4124
  constructor(config: { callback?: Function, sensorType?: string, color?: color, backgroundColor?: color, style?: boolean, group?: string, inherit?: {} })
@@ -4113,8 +4137,8 @@ declare namespace zim {
4113
4137
  }
4114
4138
 
4115
4139
  export class Shader extends Bitmap implements zimComponent {
4116
- constructor(config_or_width?: number, height?: number, fragment?: string, uniforms?: Uniforms, vertex?: string, dynamic?: boolean, preCall?: Function, postCall?: Function, rate?: number | zimVee, version?: string, canvas?: HTMLCanvasElement, vertexPosition?: string, strip?: boolean, log?: boolean, channel0?: DisplayObject, channel1?: DisplayObject, channel2?: DisplayObject, channel3?: DisplayObject, dynamic0?: boolean, dynamic1?: boolean, dynamic2?: boolean, dynamic3?: boolean, style?: boolean, group?: string, inherit?: {})
4117
- constructor(config: { width?: number, height?: number, fragment?: string, uniforms?: Uniforms, vertex?: string, dynamic?: boolean, preCall?: Function, postCall?: Function, rate?: number | zimVee, version?: string, canvas?: HTMLCanvasElement, vertexPosition?: string, strip?: boolean, log?: boolean, style?: boolean, group?: string, inherit?: {} })
4140
+ constructor(config_or_width?: number, height?: number, fragment?: string, uniforms?: Uniforms, vertex?: string, dynamic?: boolean, preCall?: Function, postCall?: Function, rate?: number | zimVee, version?: string, canvas?: HTMLCanvasElement, vertexPosition?: string, strip?: boolean, log?: boolean, channel0?: DisplayObject, channel1?: DisplayObject, channel2?: DisplayObject, channel3?: DisplayObject, dynamic0?: boolean, dynamic1?: boolean, dynamic2?: boolean, dynamic3?: boolean, channels?:DisplayObject[], dynamics?:boolean[], style?: boolean, group?: string, inherit?: {})
4141
+ constructor(config: { width?: number, height?: number, fragment?: string, uniforms?: Uniforms, vertex?: string, dynamic?: boolean, preCall?: Function, postCall?: Function, rate?: number | zimVee, version?: string, canvas?: HTMLCanvasElement, vertexPosition?: string, strip?: boolean, log?: boolean, channel0?: DisplayObject, channel1?: DisplayObject, channel2?: DisplayObject, channel3?: DisplayObject, dynamic0?: boolean, dynamic1?: boolean, dynamic2?: boolean, dynamic3?: boolean, channels?:DisplayObject[], dynamics?:boolean[], style?: boolean, group?: string, inherit?: {} })
4118
4142
  // ZIM Component Interface
4119
4143
  // dispose():boolean // now added to Container, etc.
4120
4144
  enabled: boolean
@@ -4132,8 +4156,8 @@ declare namespace zim {
4132
4156
  }
4133
4157
 
4134
4158
  export class ShaderOverlay extends Tag implements zimComponent {
4135
- constructor(config_or_width?: number, height?: number, fragment?: string, uniforms?: Uniforms, vertex?: string, dynamic?: boolean, preCall?: Function, postCall?: Function, rate?: number | zimVee, version?: string, canvas?: HTMLCanvasElement, vertexPosition?: string, strip?: boolean, log?: boolean, style?: boolean, group?: string, inherit?: {})
4136
- constructor(config: { width?: number, height?: number, fragment?: string, uniforms?: Uniforms, vertex?: string, dynamic?: boolean, preCall?: Function, postCall?: Function, rate?: number | zimVee, version?: string, canvas?: HTMLCanvasElement, vertexPosition?: string, strip?: boolean, log?: boolean, style?: boolean, group?: string, inherit?: {} })
4159
+ constructor(config_or_width?: number, height?: number, fragment?: string, uniforms?: Uniforms, vertex?: string, dynamic?: boolean, preCall?: Function, postCall?: Function, rate?: number | zimVee, version?: string, canvas?: HTMLCanvasElement, vertexPosition?: string, strip?: boolean, log?: boolean, channel0?: DisplayObject, channel1?: DisplayObject, channel2?: DisplayObject, channel3?: DisplayObject, dynamic0?: boolean, dynamic1?: boolean, dynamic2?: boolean, dynamic3?: boolean, channels?:DisplayObject[], dynamics?:boolean[], style?: boolean, group?: string, inherit?: {})
4160
+ constructor(config: { width?: number, height?: number, fragment?: string, uniforms?: Uniforms, vertex?: string, dynamic?: boolean, preCall?: Function, postCall?: Function, rate?: number | zimVee, version?: string, canvas?: HTMLCanvasElement, vertexPosition?: string, strip?: boolean, log?: boolean, channel0?: DisplayObject, channel1?: DisplayObject, channel2?: DisplayObject, channel3?: DisplayObject, dynamic0?: boolean, dynamic1?: boolean, dynamic2?: boolean, dynamic3?: boolean, channels?:DisplayObject[], dynamics?:boolean[], style?: boolean, group?: string, inherit?: {} })
4137
4161
  // ZIM Component Interface
4138
4162
  // dispose():boolean // now added to Container, etc.
4139
4163
  enabled: boolean