zimjs 16.1.4 → 16.1.6
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 +46 -45
- package/ts-src/typings/zim/index.d.ts +2 -301
package/package.json
CHANGED
package/src/zim.js
CHANGED
|
@@ -8370,6 +8370,7 @@ Used internally by ZIM to globally dispose common connections
|
|
|
8370
8370
|
if (obj.zimWire) obj.noWire();
|
|
8371
8371
|
if (obj.zimWired) obj.noWired();
|
|
8372
8372
|
if (obj.zimClickHoldDownEvent) obj.noHold();
|
|
8373
|
+
if (obj.motionController) obj.motionController.dispose();
|
|
8373
8374
|
if (obj.transformControls) obj.transformControls.dispose();
|
|
8374
8375
|
if (obj.zimClickDownEvent) obj.zimClickDownEvent = null;
|
|
8375
8376
|
if (obj.zimClickUpEvent) obj.zimClickUpEvent = null;
|
|
@@ -65368,7 +65369,7 @@ also see the toggle property
|
|
|
65368
65369
|
and show() and hide()
|
|
65369
65370
|
show() - show the ZIM canvas and hide the three.js canvas - also see toggle()
|
|
65370
65371
|
hide() - hide the ZIM canvas and show the three.js canvas - also see toggle()
|
|
65371
|
-
dispose(
|
|
65372
|
+
dispose() - disposes objects in the manager
|
|
65372
65373
|
|
|
65373
65374
|
PROPERTIES
|
|
65374
65375
|
type - holds the class name as a String
|
|
@@ -82776,6 +82777,7 @@ zim.Frame = function(scaling, width, height, color, outerColor, ready, assets, p
|
|
|
82776
82777
|
if (that.frameTime) clearInterval(that.frameTime);
|
|
82777
82778
|
|
|
82778
82779
|
if (WW.zimDefaultPhysics && WW.zimDefaultPhysics.dispose) WW.zimDefaultPhysics.dispose();
|
|
82780
|
+
if (WW.zimDefaultThree && WW.zimDefaultThree.dispose) WW.zimDefaultThree.dispose();
|
|
82779
82781
|
|
|
82780
82782
|
// remove frame events
|
|
82781
82783
|
// var realWindow = window.parent || window;
|
|
@@ -90430,58 +90432,57 @@ for (z_i = 0; z_i < globalFunctions.length; z_i++) {
|
|
|
90430
90432
|
WW[pair[0]] = zim[pair[0]] = pair[1];
|
|
90431
90433
|
}
|
|
90432
90434
|
|
|
90433
|
-
|
|
90434
90435
|
// these are global regardless
|
|
90435
90436
|
var globalsConstants = [
|
|
90436
|
-
|
|
90437
|
-
|
|
90438
|
-
|
|
90439
|
-
|
|
90440
|
-
|
|
90441
|
-
|
|
90442
|
-
|
|
90443
|
-
|
|
90444
|
-
|
|
90445
|
-
|
|
90446
|
-
|
|
90447
|
-
|
|
90448
|
-
|
|
90449
|
-
|
|
90450
|
-
|
|
90451
|
-
|
|
90452
|
-
|
|
90453
|
-
|
|
90454
|
-
|
|
90455
|
-
|
|
90456
|
-
|
|
90457
|
-
|
|
90458
|
-
|
|
90459
|
-
|
|
90460
|
-
|
|
90461
|
-
|
|
90462
|
-
|
|
90463
|
-
|
|
90464
|
-
|
|
90465
|
-
|
|
90466
|
-
|
|
90467
|
-
|
|
90468
|
-
|
|
90469
|
-
|
|
90470
|
-
|
|
90471
|
-
|
|
90472
|
-
|
|
90473
|
-
|
|
90474
|
-
|
|
90475
|
-
|
|
90476
|
-
|
|
90477
|
-
|
|
90437
|
+
["FIT", zim.FIT],
|
|
90438
|
+
["FILL", zim.FILL],
|
|
90439
|
+
["FULL", zim.FULL],
|
|
90440
|
+
["LEFT", zim.LEFT],
|
|
90441
|
+
["RIGHT", zim.RIGHT],
|
|
90442
|
+
["CENTER", zim.CENTER],
|
|
90443
|
+
["MIDDLE", zim.MIDDLE],
|
|
90444
|
+
["START", zim.START],
|
|
90445
|
+
["END", zim.END],
|
|
90446
|
+
["TOP", zim.TOP],
|
|
90447
|
+
["BOTTOM", zim.BOTTOM],
|
|
90448
|
+
["OVER", zim.OVER],
|
|
90449
|
+
["UNDER", zim.UNDER],
|
|
90450
|
+
["HORIZONTAL", zim.HORIZONTAL],
|
|
90451
|
+
["VERTICAL", zim.VERTICAL],
|
|
90452
|
+
["BOTH", zim.BOTH],
|
|
90453
|
+
["RADIAL", zim.RADIAL],
|
|
90454
|
+
["UP", zim.UP],
|
|
90455
|
+
["DOWN", zim.DOWN],
|
|
90456
|
+
["NEXT", zim.NEXT],
|
|
90457
|
+
["PREV", zim.PREV],
|
|
90458
|
+
["AUTO", zim.AUTO],
|
|
90459
|
+
["AVE", zim.AVE],
|
|
90460
|
+
["DEFAULT", zim.DEFAULT],
|
|
90461
|
+
["ALL", zim.ALL],
|
|
90462
|
+
["NONE", zim.NONE],
|
|
90463
|
+
["GET", zim.GET],
|
|
90464
|
+
["POST", zim.POST],
|
|
90465
|
+
["LOCALSTORAGE", zim.LOCALSTORAGE],
|
|
90466
|
+
["SOCKET", zim.SOCKET],
|
|
90467
|
+
["TO", zim.TO],
|
|
90468
|
+
["FROM", zim.FROM],
|
|
90469
|
+
["SINE", zim.SINE],
|
|
90470
|
+
["SQUARE", zim.SQUARE],
|
|
90471
|
+
["TRIANGLE", zim.TRIANGLE],
|
|
90472
|
+
["SAW", zim.SAW],
|
|
90473
|
+
["SAWTOOTH", zim.SAWTOOTH],
|
|
90474
|
+
["ZAP", zim.ZAP],
|
|
90475
|
+
["TAU", zim.TAU],
|
|
90476
|
+
["DEG", zim.DEG],
|
|
90477
|
+
["RAD", zim.RAD],
|
|
90478
|
+
["PHI", zim.PHI],
|
|
90478
90479
|
];
|
|
90479
90480
|
|
|
90480
90481
|
for (z_i = 0; z_i < globalsConstants.length; z_i++) {
|
|
90481
90482
|
var pair = globalsConstants[z_i];
|
|
90482
90483
|
WW[pair[0]] = pair[1];
|
|
90483
90484
|
}
|
|
90484
|
-
|
|
90485
|
+
|
|
90485
90486
|
for (z_i = 0; z_i < zim.colors.length; z_i++) {
|
|
90486
90487
|
WW[zim.colors[z_i]] = zim.colorsHex[z_i];
|
|
90487
90488
|
}
|
|
@@ -2916,6 +2916,7 @@ declare namespace zim {
|
|
|
2916
2916
|
add(actives: TextureActive | [TextureActive]): this
|
|
2917
2917
|
remove(actives: TextureActive | [TextureActive]): this
|
|
2918
2918
|
addMesh(mesh: any, layer?: number): this
|
|
2919
|
+
dispose(): void
|
|
2919
2920
|
readonly interactive: boolean
|
|
2920
2921
|
readonly animated: boolean
|
|
2921
2922
|
readonly manager: TextureActivesManager
|
|
@@ -2932,6 +2933,7 @@ declare namespace zim {
|
|
|
2932
2933
|
toggle(state?: boolean): this
|
|
2933
2934
|
show(): this
|
|
2934
2935
|
hide(): this
|
|
2936
|
+
dispose(): void
|
|
2935
2937
|
readonly toggled: boolean
|
|
2936
2938
|
readonly tile: Tile
|
|
2937
2939
|
readonly objects: Dictionary
|
|
@@ -3923,77 +3925,6 @@ declare namespace zim {
|
|
|
3923
3925
|
clear(): void
|
|
3924
3926
|
}
|
|
3925
3927
|
|
|
3926
|
-
// ++++++++++++++++++++++++++++++++++++++
|
|
3927
|
-
// ZIM THREE
|
|
3928
|
-
export class Three {
|
|
3929
|
-
constructor(config_or_width?: number, height?: number, color?: color, cameraPosition?: any, cameraLook?: any, interactive?: boolean, resize?: boolean, frame?: Frame, ortho?: boolean, textureActive?: boolean, colorSpace?: string, colorManagement?: boolean, legacyLights?: boolean, throttle?: boolean, lay?: string, full?: boolean, xr?: boolean, VRButton?: any, xrBufferScale?: number)
|
|
3930
|
-
constructor(config: { width?: number, height?: number, color?: color, cameraPosition?: any, cameraLook?: any, interactive?: boolean, resize?: boolean, frame?: Frame, ortho?: boolean, textureActive?: boolean, colorSpace?: string, colorManagement?: boolean, legacyLights?: boolean, throttle?: boolean, lay?: string, full?: boolean, xr?: boolean, VRButton?: any, xrBufferScale?: number })
|
|
3931
|
-
position(x?: number, y?: number): void
|
|
3932
|
-
scale(scale?: number): void
|
|
3933
|
-
rotateAroundAxis(obj: any, axis?: string, radians?: number): void
|
|
3934
|
-
rotateAroundObjectAxis(obj: any, axis?: string, radians?: number): void
|
|
3935
|
-
makePanel(textureActive: TextureActive, textureActives: TextureActives, scale?: number, curve?: number, opacity?: number, material?: string, doubleSide?: boolean, colorSpace?: string): any
|
|
3936
|
-
flipMaterial(materialType?: any, params?: {}): any
|
|
3937
|
-
curvePlane(geometry?: any, z?: number): void
|
|
3938
|
-
dispose(): void
|
|
3939
|
-
readonly renderer: any
|
|
3940
|
-
readonly canvas: HTMLCanvasElement
|
|
3941
|
-
readonly DOMElement: any
|
|
3942
|
-
readonly scene: any
|
|
3943
|
-
readonly camera: any
|
|
3944
|
-
readonly sceneOrtho: any
|
|
3945
|
-
readonly cameraOrtho: any
|
|
3946
|
-
readonly resizeEvent: any
|
|
3947
|
-
preRender: Function
|
|
3948
|
-
postRender: Function
|
|
3949
|
-
readonly vrButton: any
|
|
3950
|
-
}
|
|
3951
|
-
|
|
3952
|
-
export class XRControllers {
|
|
3953
|
-
constructor(config_or_three: Three, type?: any, color?: color | [color], highlightColor?: color | [color], lineColor?: color | [color], lineLength?: number | [number], threshhold?: number)
|
|
3954
|
-
constructor(config: { three: Three, type?: any, color?: color | [color], highlightColor?: color | [color], lineColor?: color | [color], lineLength?: number | [number], threshhold?: number })
|
|
3955
|
-
dispose(): void
|
|
3956
|
-
readonly type: string
|
|
3957
|
-
readonly XR: boolean
|
|
3958
|
-
readonly controller1: any
|
|
3959
|
-
readonly controller2: any
|
|
3960
|
-
threshhold: number
|
|
3961
|
-
}
|
|
3962
|
-
|
|
3963
|
-
export class XRMovement {
|
|
3964
|
-
constructor(config_or_three: Three, XRControllers: XRControllers, speed?: number, acceleration?: number, rotationSpeed?: number, rotationAcceleration?: number, hapticMax?: number, verticalStrafe?: boolean, radiusMax?: number, threshhold?: number, directionFix?: boolean)
|
|
3965
|
-
constructor(config: { three: Three, XRControllers: XRControllers, speed?: number, acceleration?: number, rotationSpeed?: number, rotationAcceleration?: number, hapticMax?: number, verticalStrafe?: boolean, radiusMax?: number, threshhold?: number, directionFix?: boolean })
|
|
3966
|
-
doHaptic(amount?: number, hand?: string, max?: number): void
|
|
3967
|
-
dispose(): void
|
|
3968
|
-
readonly type: string
|
|
3969
|
-
readonly dolly: any
|
|
3970
|
-
speed: number
|
|
3971
|
-
acceleration: number
|
|
3972
|
-
rotationSpeed: number
|
|
3973
|
-
rotationAcceleration: number
|
|
3974
|
-
hapticMax: number
|
|
3975
|
-
verticalStrafe: boolean
|
|
3976
|
-
radiusMax: number
|
|
3977
|
-
threshhold: number
|
|
3978
|
-
}
|
|
3979
|
-
|
|
3980
|
-
export class XRTeleport {
|
|
3981
|
-
constructor(config_or_three: Three, XRControllers: XRControllers, XRMovement?: XRMovement, floor?: [any], offsetHeight?: number, button?: number | [number], hand?: string, markerColor?: color, markerBlend?: any)
|
|
3982
|
-
constructor(config: { three: Three, XRControllers: XRControllers, XRMovement?: XRMovement, floor?: [any], offsetHeight?: number, button?: number | [number], hand?: string, markerColor?: color, markerBlend?: any })
|
|
3983
|
-
dispose(): void
|
|
3984
|
-
readonly type: string
|
|
3985
|
-
floor: any
|
|
3986
|
-
button: number | [number]
|
|
3987
|
-
hand: string
|
|
3988
|
-
readonly marker: any
|
|
3989
|
-
}
|
|
3990
|
-
|
|
3991
|
-
// ++++++++++++++++++++++++++++++++++++++
|
|
3992
|
-
// ZIM PIZZAZZ
|
|
3993
|
-
export function makeShape(type?: string, color?: color, width?: number, height?: number): Shape
|
|
3994
|
-
export function makeIcon(type?: string, color?: color, scale?: number, multi?: number, multiAlpha?: number, multiScale?: number, multiX?: number, multiY?: number, skewX?: number, skewY?: number, backing?: DisplayObject): Container
|
|
3995
|
-
export function makePattern(type?: string, colors?: color | zimVee, size?: number, cols?: number, rows?: number, spacingH?: number, spacingV?: number, interval?: number, startPaused?: boolean, backgroundColor?: number, gradient?: number, cache?: boolean): Container
|
|
3996
|
-
|
|
3997
3928
|
// ++++++++++++++++++++++++++++++++++++++
|
|
3998
3929
|
// ZIM SOCKET
|
|
3999
3930
|
export class Socket {
|
|
@@ -4018,236 +3949,6 @@ declare namespace zim {
|
|
|
4018
3949
|
dispose(): void
|
|
4019
3950
|
}
|
|
4020
3951
|
|
|
4021
|
-
|
|
4022
|
-
// ++++++++++++++++++++++++++++++++++++++
|
|
4023
|
-
// ZIM GAME
|
|
4024
|
-
export class LeaderBoard extends Container {
|
|
4025
|
-
constructor(config_or_data?: string | [{}], title?: string, width?: number, height?: number, corner?: number | [], backgroundColor?: color, titleColor?: color, colors?: {}, total?: number, scoreWidth?: number, scorePlaces?: number, scoreZeros?: boolean, spacing?: number, arrows?: boolean, borderColor?: color, borderWidth?: number, shadowColor?: color, shadowBlur?: number, reverse?: boolean, allowZero?: boolean, font?: string, fontSize?: number, nameShift?: number, scoreShift?: number, rankShift?: number)
|
|
4026
|
-
constructor(config: { data?: string | [{}], title?: string, width?: number, height?: number, corner?: number | [], backgroundColor?: color, titleColor?: color, colors?: {}, total?: number, scoreWidth?: number, scorePlaces?: number, scoreZeros?: boolean, spacing?: number, arrows?: boolean, borderColor?: color, borderWidth?: number, shadowColor?: color, shadowBlur?: number, reverse?: boolean, allowZero?: boolean, font?: string, fontSize?: number, nameShift?: number, scoreShift?: number, rankShift?: number })
|
|
4027
|
-
score(score: number): number
|
|
4028
|
-
save(): this
|
|
4029
|
-
cancel(): this
|
|
4030
|
-
startTime(): this
|
|
4031
|
-
stopTime(): this
|
|
4032
|
-
redraw(newData: [{}], newWinner?: number): this
|
|
4033
|
-
readonly winner: number
|
|
4034
|
-
readonly backing: Rectangle
|
|
4035
|
-
readonly backdrop: Rectangle
|
|
4036
|
-
readonly filled: boolean
|
|
4037
|
-
readonly grid: Container
|
|
4038
|
-
readonly titleText: Label
|
|
4039
|
-
readonly dataSource: string
|
|
4040
|
-
readonly key: string
|
|
4041
|
-
|
|
4042
|
-
}
|
|
4043
|
-
export class Meter extends Label {
|
|
4044
|
-
constructor(config_or_stage?: Stage | StageGL, vertical?: string, horizontal?: string, color?: color, textColor?: color, padding?: number, decimals?: number, alpha?: number, skew?: number)
|
|
4045
|
-
constructor(config: { stage?: Stage | StageGL, vertical?: string, horizontal?: string, color?: color, textColor?: color, padding?: number, decimals?: number, alpha?: number, skew?: number })
|
|
4046
|
-
position(horizontal?: string, vertical?: string): this
|
|
4047
|
-
readonly text: string
|
|
4048
|
-
}
|
|
4049
|
-
export class Board extends Container {
|
|
4050
|
-
constructor(config_or_size?: number, cols?: number, rows?: number, backgroundColor?: color, rollBackgroundColor?: color, borderColor?: color, borderWidth?: number, isometric?: number, indicatorColor?: color, indicatorBorderColor?: color, indicatorBorderWidth?: number, indicatorSize?: number, indicatorType?: string, arrows?: boolean, arrowColor?: color, arrowRollColor?: color, info?: [[]], labels?: boolean, color?: color, scaleMin?: number, scaleMax?: number, swipe?: boolean, buffer?: number)
|
|
4051
|
-
constructor(config: { size?: number, cols?: number, rows?: number, backgroundColor?: color, rollBackgroundColor?: color, borderColor?: color, borderWidth?: number, isometric?: number, indicatorColor?: color, indicatorBorderColor?: color, indicatorBorderWidth?: number, indicatorSize?: number, indicatorType?: string, arrows?: boolean, arrowColor?: color, arrowRollColor?: color, info?: [[]], labels?: boolean, color?: color, scaleMin?: number, scaleMax?: number, swipe?: boolean, buffer?: number })
|
|
4052
|
-
positionBoard(i: number, j: number): this
|
|
4053
|
-
moveCamera(dir: string): this
|
|
4054
|
-
addCol(index: number): this
|
|
4055
|
-
addRow(index: number): this
|
|
4056
|
-
update(): this
|
|
4057
|
-
getTile(col: number, row: number): DisplayObject
|
|
4058
|
-
getRandomTile(filter?: {}): DisplayObject
|
|
4059
|
-
getIndexes(tile: DisplayObject): {}
|
|
4060
|
-
getPoint(a: DisplayObject | number, b?: number): Point
|
|
4061
|
-
getGlobalPoint(a: DisplayObject | number, b?: number): Point
|
|
4062
|
-
getInfo(a: DisplayObject | number, b?: number): {}
|
|
4063
|
-
getData(a: DisplayObject | number, b?: number): {}
|
|
4064
|
-
getColor(a: DisplayObject | number, b?: number): color
|
|
4065
|
-
getIcon(a: DisplayObject | number, b?: number): DisplayObject
|
|
4066
|
-
getItems(a: DisplayObject | number, b?: number): []
|
|
4067
|
-
getAllItems(filter?: {}): []
|
|
4068
|
-
getTilesAround(a: DisplayObject | number, b?: number): []
|
|
4069
|
-
setData(tile: DisplayObject, value: {}): this
|
|
4070
|
-
setColor(tile: DisplayObject, color: color): this
|
|
4071
|
-
clearInfo(filter?: {}): this
|
|
4072
|
-
clearData(filter?: {}): this
|
|
4073
|
-
clearColors(filter?: {}): this
|
|
4074
|
-
clearIcons(filter?: {}): this
|
|
4075
|
-
clearItems(filter?: {}): this
|
|
4076
|
-
setArrows(): this
|
|
4077
|
-
removeArrows(): this
|
|
4078
|
-
setArrowHover(): this
|
|
4079
|
-
setDepth(): this
|
|
4080
|
-
add(obj: DisplayObject, col: number, row: number, data?: {}, color?: color, icon?: DisplayObject): this
|
|
4081
|
-
remove(obj: DisplayObject): this
|
|
4082
|
-
position(obj: DisplayObject, col?: number, row?: number): this
|
|
4083
|
-
move(obj: DisplayObject, cols?: number, rows?: number, time?: number): this
|
|
4084
|
-
moveTo(obj: DisplayObject, col?: number, row?: number, time?: number): this
|
|
4085
|
-
showPath(path: [{} | []], time?: number): this
|
|
4086
|
-
clearPath(): this
|
|
4087
|
-
followPath(obj: DisplayObject, path: [{} | []], time?: number, animation?: number, buffer?: number): this
|
|
4088
|
-
stopFollowPath(): this
|
|
4089
|
-
shiftPath(lastStartX?: number, startX?: number, lastStartY?: number, startY?: number, obj?: DisplayObject): this
|
|
4090
|
-
addKeys(obj: DisplayObject, type?: string, filter?: {}): this
|
|
4091
|
-
removeKeys(type?: string): this
|
|
4092
|
-
readonly tiles: Tile
|
|
4093
|
-
readonly pieces: Container
|
|
4094
|
-
readonly num: number
|
|
4095
|
-
readonly size: number
|
|
4096
|
-
readonly info: []
|
|
4097
|
-
readonly data: []
|
|
4098
|
-
readonly numCols: number
|
|
4099
|
-
readonly numRows: number
|
|
4100
|
-
startCol: number
|
|
4101
|
-
startRow: number
|
|
4102
|
-
buffer: number
|
|
4103
|
-
arrows: boolean
|
|
4104
|
-
isometric: boolean
|
|
4105
|
-
readonly currentTile: DisplayObject
|
|
4106
|
-
readonly lastTile: DisplayObject
|
|
4107
|
-
readonly path: [{} | []]
|
|
4108
|
-
}
|
|
4109
|
-
export class Person extends Container {
|
|
4110
|
-
constructor(config_or_shirt?: color, pants?: color, head?: color, outline?: color, player?: boolean, cache?: boolean)
|
|
4111
|
-
constructor(config: { shirt?: color, pants?: color, head?: color, outline?: color, player?: boolean, cache?: boolean })
|
|
4112
|
-
readonly boardCol: number
|
|
4113
|
-
readonly boardRow: number
|
|
4114
|
-
readonly moving: boolean
|
|
4115
|
-
readonly boardTile: DisplayObject
|
|
4116
|
-
readonly square: string
|
|
4117
|
-
}
|
|
4118
|
-
export class Orb extends Container {
|
|
4119
|
-
constructor(config_or_radius?: number, color?: color, color2?: color, accentColor?: color, accentColor2?: color, flat?: boolean, alpha?: number, time?: number, delay?: number)
|
|
4120
|
-
constructor(config: { radius?: number, color?: color, color2?: color, accentColor?: color, accentColor2?: color, flat?: boolean, alpha?: number, time?: number, delay?: number })
|
|
4121
|
-
readonly boardCol: number
|
|
4122
|
-
readonly boardRow: number
|
|
4123
|
-
readonly moving: boolean
|
|
4124
|
-
readonly boardTile: DisplayObject
|
|
4125
|
-
readonly square: string
|
|
4126
|
-
}
|
|
4127
|
-
export class Tree extends Container {
|
|
4128
|
-
constructor()
|
|
4129
|
-
readonly boardCol: number
|
|
4130
|
-
readonly boardRow: number
|
|
4131
|
-
readonly moving: boolean
|
|
4132
|
-
readonly boardTile: DisplayObject
|
|
4133
|
-
readonly square: string
|
|
4134
|
-
}
|
|
4135
|
-
export class Timer extends Label {
|
|
4136
|
-
constructor(config_or_time?: number, step?: number, colon?: number, down?: boolean, isometric?: string, startPaused?: boolean, size?: number, font?: string, color?: color, backgroundColor?: color, borderColor?: color, borderWidth?: number, align?: string, valign?: string, bold?: boolean, italic?: boolean, variant?: boolean, width?: number, height?: number, decimals?: number)
|
|
4137
|
-
constructor(config: { time?: number, step?: number, colon?: number, down?: boolean, isometric?: string, startPaused?: boolean, size?: number, font?: string, color?: color, backgroundColor?: color, borderColor?: color, borderWidth?: number, align?: string, valign?: string, bold?: boolean, italic?: boolean, variant?: boolean, width?: number, height?: number, decimals?: number })
|
|
4138
|
-
start(time?: number): this
|
|
4139
|
-
pause(state?: boolean): this
|
|
4140
|
-
stop(): this
|
|
4141
|
-
time: number
|
|
4142
|
-
totalTime: number
|
|
4143
|
-
paused: boolean
|
|
4144
|
-
isometric: string
|
|
4145
|
-
readonly intervalID: string
|
|
4146
|
-
}
|
|
4147
|
-
export class Scorer extends Label {
|
|
4148
|
-
constructor(config_or_score?: number, isometric?: string, size?: number, font?: string, color?: color, backgroundColor?: color, borderColor?: color, borderWidth?: number, align?: string, valign?: string, bold?: boolean, italic?: boolean, variant?: boolean, width?: number, height?: number)
|
|
4149
|
-
constructor(config: { score?: number, isometric?: string, size?: number, font?: string, color?: color, backgroundColor?: color, borderColor?: color, borderWidth?: number, align?: string, valign?: string, bold?: boolean, italic?: boolean, variant?: boolean, width?: number, height?: number })
|
|
4150
|
-
score: number
|
|
4151
|
-
isometric: string
|
|
4152
|
-
}
|
|
4153
|
-
export class Dialog extends Container {
|
|
4154
|
-
constructor(config_or_width?: number, height?: number, words?: string, dialogType?: string, tailType?: string, fill?: boolean, size?: number, font?: string, color?: color, backgroundColor?: color, borderColor?: color, borderWidth?: number, align?: string, valign?: string, corner?: number | [], shadowColor?: color, shadowBlur?: number, padding?: number, paddingH?: number, paddingV?: number, shiftH?: number, shiftV?: number, slantLeft?: number, slantRight?: number, slantTop?: number, slantBottom?: number, tailH?: string, tailV?: string, tailShiftH?: number, tailShiftV?: number, tailShiftAngle?: number, arrows?: boolean, arrowsInside?: boolean, arrowsFlip?: boolean, selectedIndex?: number)
|
|
4155
|
-
constructor(config: { width?: number, height?: number, words?: string, dialogType?: string, tailType?: string, fill?: boolean, size?: number, font?: string, color?: color, backgroundColor?: color, borderColor?: color, borderWidth?: number, align?: string, valign?: string, corner?: number | [], shadowColor?: color, shadowBlur?: number, padding?: number, paddingH?: number, paddingV?: number, shiftH?: number, shiftV?: number, slantLeft?: number, slantRight?: number, slantTop?: number, slantBottom?: number, tailH?: string, tailV?: string, tailShiftH?: number, tailShiftV?: number, tailShiftAngle?: number, arrows?: boolean, arrowsInside?: boolean, arrowsFlip?: boolean, selectedIndex?: number })
|
|
4156
|
-
setWords(words: string | [], selectedIndex?: number): this
|
|
4157
|
-
next(): this
|
|
4158
|
-
prev(): this
|
|
4159
|
-
color: color
|
|
4160
|
-
backgroundColor: color
|
|
4161
|
-
borderColor: color
|
|
4162
|
-
readonly backingContainer: Container
|
|
4163
|
-
readonly backing: Rectangle
|
|
4164
|
-
readonly backingShadow: Container
|
|
4165
|
-
readonly label: Label
|
|
4166
|
-
readonly labels: [Label]
|
|
4167
|
-
readonly words: [string]
|
|
4168
|
-
selectedIndex: number
|
|
4169
|
-
readonly tail: Container
|
|
4170
|
-
readonly arrows: Container
|
|
4171
|
-
readonly arrowNext: Arrow
|
|
4172
|
-
readonly arrowPrev: Arrow
|
|
4173
|
-
}
|
|
4174
|
-
|
|
4175
|
-
// ++++++++++++++++++++++++++++++++++++++
|
|
4176
|
-
// ZIM CAM
|
|
4177
|
-
export class Cam extends Container {
|
|
4178
|
-
constructor(config_or_width?: number, height?: number, flip?: boolean, facingMode?: boolean, config?: {})
|
|
4179
|
-
constructor(config: { width?: number, height?: number, flip?: boolean, facingMode?: boolean, config?: {} })
|
|
4180
|
-
resetSize(): this
|
|
4181
|
-
pause(state?: boolean): this
|
|
4182
|
-
toggle(): this
|
|
4183
|
-
flip(state?: boolean): this
|
|
4184
|
-
snapshot(): Bitmap
|
|
4185
|
-
keyOut(color?: color, tolerance?: number, replacement?: color): this
|
|
4186
|
-
setFacingMode(mode?: string): this
|
|
4187
|
-
readonly ready: boolean
|
|
4188
|
-
readonly tag: HTMLVideoElement
|
|
4189
|
-
readonly display: Container
|
|
4190
|
-
readonly bitmap: Bitmap
|
|
4191
|
-
readonly paused: boolean
|
|
4192
|
-
readonly flipped: boolean
|
|
4193
|
-
readonly facingMode: string
|
|
4194
|
-
}
|
|
4195
|
-
export class CamMotion extends Container {
|
|
4196
|
-
constructor(config_or_obj?: DisplayObject, preview?: number, smooth?: number, damp?: number, sensitivity?: number, precision?: number, period?: number, colorFilter?: color, colorSensitivity?: number, mode?: number, visualizerObj?: string | zimVee, visualizerColor?: color | zimVee, visualizerBaseColor?: color | zimVee, visualizerScale?: number | zimVee, visualizerBaseScale?: number | zimVee, guideH?: string, guideV?: string, randomize?: boolean, cam?: Cam, frame?: Frame, facingMode?: boolean | string, config?: {})
|
|
4197
|
-
constructor(config: { obj?: DisplayObject, preview?: number, smooth?: number, damp?: number, sensitivity?: number, precision?: number, period?: number, colorFilter?: color, colorSensitivity?: number, mode?: number, visualizerObj?: string | zimVee, visualizerColor?: color | zimVee, visualizerBaseColor?: color | zimVee, visualizerScale?: number | zimVee, visualizerBaseScale?: number | zimVee, guideH?: string, guideV?: string, randomize?: boolean, cam?: Cam, frame?: Frame, facingMode?: boolean | string, config?: {} })
|
|
4198
|
-
readonly obj: DisplayObject
|
|
4199
|
-
smooth: number
|
|
4200
|
-
sensitivity: number
|
|
4201
|
-
precision: number
|
|
4202
|
-
colorFilter: color
|
|
4203
|
-
colorSensitivity: number
|
|
4204
|
-
readonly motionX: number
|
|
4205
|
-
readonly motionY: number
|
|
4206
|
-
readonly rawX: number
|
|
4207
|
-
readonly rawY: number
|
|
4208
|
-
readonly cam: Cam
|
|
4209
|
-
readonly dampX: Damp
|
|
4210
|
-
readonly dampY: Damp
|
|
4211
|
-
readonly data: []
|
|
4212
|
-
readonly points: [{}]
|
|
4213
|
-
readonly camPoints: [{}]
|
|
4214
|
-
readonly interval: string
|
|
4215
|
-
readonly ticker: Function
|
|
4216
|
-
readonly visualizer: Container
|
|
4217
|
-
}
|
|
4218
|
-
export class CamCursor extends Container {
|
|
4219
|
-
constructor(config_or_cursor?: DisplayObject, preview?: number, camMotion?: CamMotion, radius?: number, color?: color, borderColor?: color, borderWidth?: number, stillColor?: color, stillBorderColor?: color, stillTime?: number, colorFilter?: color, colorSensitivity?: number, cam?: Cam, facingMode?: boolean | string, config?: {})
|
|
4220
|
-
constructor(config: { cursor?: DisplayObject, preview?: number, camMotion?: CamMotion, radius?: number, color?: color, borderColor?: color, borderWidth?: number, stillColor?: color, stillBorderColor?: color, stillTime?: number, colorFilter?: color, colorSensitivity?: number, cam?: Cam, facingMode?: boolean | string, config?: {} })
|
|
4221
|
-
readonly cursorObj: DisplayObject
|
|
4222
|
-
readonly camMotion: CamMotion
|
|
4223
|
-
colorFilter: color
|
|
4224
|
-
colorSensitivity: number
|
|
4225
|
-
readonly cam: Cam
|
|
4226
|
-
readonly motion: boolean
|
|
4227
|
-
}
|
|
4228
|
-
export class CamAlpha extends Container {
|
|
4229
|
-
constructor(cam?: Cam | CamMotion, color?: color)
|
|
4230
|
-
cam: Cam
|
|
4231
|
-
readonly backing: Rectangle
|
|
4232
|
-
readonly label: Label
|
|
4233
|
-
readonly slider: Slider
|
|
4234
|
-
}
|
|
4235
|
-
export class CamControls extends List {
|
|
4236
|
-
constructor(camMotion?: CamMotion | CamCursor, close?: boolean, collapse?: boolean)
|
|
4237
|
-
readonly cam: Cam
|
|
4238
|
-
readonly camMotion: CamMotion
|
|
4239
|
-
readonly camCursor: CamCursor
|
|
4240
|
-
readonly reset: Button
|
|
4241
|
-
}
|
|
4242
|
-
export class CamAsk extends Pane {
|
|
4243
|
-
constructor(color?: color, backgroundColor?: color)
|
|
4244
|
-
readonly label: Label
|
|
4245
|
-
readonly yes: Button
|
|
4246
|
-
readonly no: Button
|
|
4247
|
-
}
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
3952
|
}
|
|
4252
3953
|
|
|
4253
3954
|
export = zim
|