@truelab/truengine 0.0.1-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/dist/truengine.es.js +35354 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/src/classes/assets.class.d.ts +89 -0
- package/dist/types/src/classes/bitmap.text.class.d.ts +77 -0
- package/dist/types/src/classes/borderview.class.d.ts +204 -0
- package/dist/types/src/classes/color.class.d.ts +72 -0
- package/dist/types/src/classes/container.class.d.ts +111 -0
- package/dist/types/src/classes/di.class.d.ts +110 -0
- package/dist/types/src/classes/emitter.class.d.ts +64 -0
- package/dist/types/src/classes/engine.class.d.ts +75 -0
- package/dist/types/src/classes/loaders.class.d.ts +28 -0
- package/dist/types/src/classes/preloader.class.d.ts +15 -0
- package/dist/types/src/classes/producer.class.d.ts +135 -0
- package/dist/types/src/classes/sequence.class.d.ts +30 -0
- package/dist/types/src/classes/skipable.class.d.ts +15 -0
- package/dist/types/src/classes/spine.assets.class.d.ts +42 -0
- package/dist/types/src/classes/tile.class.d.ts +38 -0
- package/dist/types/src/components/abstract.component.d.ts +52 -0
- package/dist/types/src/components/abstract.html.component.d.ts +43 -0
- package/dist/types/src/components/bigwin.component.d.ts +109 -0
- package/dist/types/src/components/blackout.component.d.ts +32 -0
- package/dist/types/src/components/button.component.d.ts +113 -0
- package/dist/types/src/components/button.faded.component.d.ts +29 -0
- package/dist/types/src/components/button.text.component.d.ts +49 -0
- package/dist/types/src/components/cheat.component.d.ts +63 -0
- package/dist/types/src/components/fillframe.component.d.ts +37 -0
- package/dist/types/src/components/fps.component.d.ts +39 -0
- package/dist/types/src/components/grid.component.d.ts +28 -0
- package/dist/types/src/components/link.component.d.ts +78 -0
- package/dist/types/src/components/particles.component.d.ts +30 -0
- package/dist/types/src/components/progress.component.d.ts +42 -0
- package/dist/types/src/components/slideshow/slides.reel.component.d.ts +65 -0
- package/dist/types/src/components/slideshow/slideshow.component.d.ts +27 -0
- package/dist/types/src/components/slideshow/slideshow.ui.component.d.ts +28 -0
- package/dist/types/src/components/slideshow/slideshow.ui.pagination.d.ts +30 -0
- package/dist/types/src/components/slot/coefficient/coefficient.component.d.ts +66 -0
- package/dist/types/src/components/slot/frames/frames.component.d.ts +39 -0
- package/dist/types/src/components/slot/frames/frames.sequence.component.d.ts +17 -0
- package/dist/types/src/components/slot/frames/frames.spine.component.d.ts +21 -0
- package/dist/types/src/components/slot/hints/hints.component.d.ts +102 -0
- package/dist/types/src/components/slot/intrigue/intrigue.component.d.ts +41 -0
- package/dist/types/src/components/slot/intrigue/intrigue.spine.component.d.ts +18 -0
- package/dist/types/src/components/slot/lines/lines.component.d.ts +29 -0
- package/dist/types/src/components/slot/lines/lines.static.component.d.ts +38 -0
- package/dist/types/src/components/slot/reel.component.d.ts +253 -0
- package/dist/types/src/components/slot/slot.cheats.d.ts +22 -0
- package/dist/types/src/components/slot/slot.component.d.ts +132 -0
- package/dist/types/src/components/slot/slot.config.d.ts +82 -0
- package/dist/types/src/components/slot/symbol/symbol.component.d.ts +84 -0
- package/dist/types/src/components/slot/symbol/symbol.sequence.component.d.ts +18 -0
- package/dist/types/src/components/slot/symbol/symbol.spine.component.d.ts +18 -0
- package/dist/types/src/components/switch.component.d.ts +62 -0
- package/dist/types/src/components/text.component.d.ts +101 -0
- package/dist/types/src/components/volatility/volatility.component.d.ts +55 -0
- package/dist/types/src/components/volatility/volatility.symbol.component.d.ts +20 -0
- package/dist/types/src/extends/enum.types.d.ts +36 -0
- package/dist/types/src/extends/interfaces.d.ts +74 -0
- package/dist/types/src/extends/javascript.d.ts +5 -0
- package/dist/types/src/extends/short.types.d.ts +68 -0
- package/dist/types/src/extends/struct.types.d.ts +260 -0
- package/dist/types/src/functions/agent.funcs.d.ts +84 -0
- package/dist/types/src/functions/animate/counter.func.d.ts +10 -0
- package/dist/types/src/functions/animate/fadein.func.d.ts +8 -0
- package/dist/types/src/functions/animate/fadeout.func.d.ts +8 -0
- package/dist/types/src/functions/animate/from.func.d.ts +10 -0
- package/dist/types/src/functions/animate/fromto.func.d.ts +11 -0
- package/dist/types/src/functions/animate/to.func.d.ts +10 -0
- package/dist/types/src/functions/array/indexofall.func.d.ts +2 -0
- package/dist/types/src/functions/array/position.func.d.ts +6 -0
- package/dist/types/src/functions/array/unique.func.d.ts +6 -0
- package/dist/types/src/functions/arraysintersect.func.d.ts +2 -0
- package/dist/types/src/functions/cache.funcs.d.ts +20 -0
- package/dist/types/src/functions/cheats.func.d.ts +2 -0
- package/dist/types/src/functions/convert/tofixed.func.d.ts +9 -0
- package/dist/types/src/functions/debug/container.func.d.ts +7 -0
- package/dist/types/src/functions/debug/line.func.d.ts +10 -0
- package/dist/types/src/functions/demotexture.func.d.ts +3 -0
- package/dist/types/src/functions/dom.funcs.d.ts +6 -0
- package/dist/types/src/functions/draw/canvasExtract.func.d.ts +16 -0
- package/dist/types/src/functions/draw/gradient.texture.func.d.ts +14 -0
- package/dist/types/src/functions/draw/radialGradient.func.d.ts +20 -0
- package/dist/types/src/functions/draw/rect.func.d.ts +12 -0
- package/dist/types/src/functions/draw/reel.func.d.ts +9 -0
- package/dist/types/src/functions/engine.funcs.d.ts +63 -0
- package/dist/types/src/functions/is.funcs.d.ts +16 -0
- package/dist/types/src/functions/math.funcs.d.ts +38 -0
- package/dist/types/src/functions/number/between.func.d.ts +7 -0
- package/dist/types/src/functions/object/deepMerge.d.ts +7 -0
- package/dist/types/src/functions/random/exclude.func.d.ts +6 -0
- package/dist/types/src/functions/random/inrange.func.d.ts +6 -0
- package/dist/types/src/functions/random/value.func.d.ts +10 -0
- package/dist/types/src/functions/range.func.d.ts +3 -0
- package/dist/types/src/functions/speed/duration.func.d.ts +6 -0
- package/dist/types/src/functions/speed/mode.func.d.ts +7 -0
- package/dist/types/src/functions/time/full.func.d.ts +4 -0
- package/dist/types/src/functions/time/nowfull.func.d.ts +4 -0
- package/dist/types/src/functions/time/nowshort.func.d.ts +5 -0
- package/dist/types/src/functions/time/short.func.d.ts +7 -0
- package/dist/types/src/functions/timeline/create.funcs.d.ts +8 -0
- package/dist/types/src/functions/timeline/taps.func.d.ts +4 -0
- package/dist/types/src/functions/window/add.func.d.ts +7 -0
- package/dist/types/src/functions/window/get.func.d.ts +6 -0
- package/dist/types/src/index.d.ts +62 -0
- package/dist/types/src/plugins/dragon.bones/functions.d.ts +18 -0
- package/dist/types/src/plugins/dragon.bones/library.d.ts +875 -0
- package/dist/types/src/plugins/gsap/custom.ease.plugin.d.ts +2 -0
- package/dist/types/src/plugins/gsap/motion.path.plugin.d.ts +2 -0
- package/dist/types/src/plugins/modernizr/modernizr-custom.d.ts +1 -0
- package/dist/types/src/references.d.ts +4 -0
- package/dist/types/src/scenes/abstract.scene.d.ts +73 -0
- package/dist/types/src/scenes/background.scene.d.ts +35 -0
- package/dist/types/src/scenes/masked.scene.d.ts +15 -0
- package/dist/types/src/services/focus.services.d.ts +17 -0
- package/dist/types/src/services/iframe.service.d.ts +27 -0
- package/dist/types/src/services/langs.service.d.ts +31 -0
- package/dist/types/src/services/registry.service.d.ts +29 -0
- package/dist/types/src/services/settings.service.d.ts +51 -0
- package/dist/types/src/services/skip.service.d.ts +51 -0
- package/dist/types/src/services/sounds/sounds.service.d.ts +111 -0
- package/dist/types/src/services/storage.service.d.ts +38 -0
- package/dist/types/vite.config.d.ts +2 -0
- package/package.json +33 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TPixiTexture } from '../../extends/short.types';
|
|
2
|
+
/**
|
|
3
|
+
* Creates vertical gradient texture with size 1 x @length
|
|
4
|
+
*
|
|
5
|
+
* example:
|
|
6
|
+
*
|
|
7
|
+
* new Sprite(
|
|
8
|
+
* gradientTexture(
|
|
9
|
+
* 861,
|
|
10
|
+
* [0.37, 1],
|
|
11
|
+
['#133C53',
|
|
12
|
+
'rgba(11, 4, 28, 0.00)']))
|
|
13
|
+
* */
|
|
14
|
+
export declare const gradientTexture: (length: number, stops: number[], colors: string[]) => TPixiTexture;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Color } from '../../classes/color.class';
|
|
2
|
+
import { TPixiTexture } from '../../extends/short.types';
|
|
3
|
+
import * as PIXI from 'pixi.js';
|
|
4
|
+
export type ColorStopper = {
|
|
5
|
+
stop: number;
|
|
6
|
+
color: Color;
|
|
7
|
+
};
|
|
8
|
+
/** Создает черно-белую текстуру с радиальным градиентом
|
|
9
|
+
* @param size размер текстуры
|
|
10
|
+
* @param whiteRadius радиус белого
|
|
11
|
+
* @param blackRadius радиус черного
|
|
12
|
+
* @returns текстура с градиентом
|
|
13
|
+
* */
|
|
14
|
+
export declare function createRadialWBGradient(size: PIXI.ISize, whiteRadius?: number, blackRadius?: number): TPixiTexture;
|
|
15
|
+
/** Создает текстуру из канваса с радиальным градиентом от центра текстуры
|
|
16
|
+
* @param size размер текстуры
|
|
17
|
+
* @param colorStoppers массив цветов и их позиций в градиенте
|
|
18
|
+
* @returns текстура с градиентом
|
|
19
|
+
*/
|
|
20
|
+
export declare function createRadialGradient(size: PIXI.ISize, colorStoppers: ColorStopper[]): TPixiTexture;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as PIXI from 'pixi.js';
|
|
2
|
+
/**
|
|
3
|
+
* Рисуем прямоугольник с заливкой и прозрачностью
|
|
4
|
+
* @param { Number } posX координата Х начала прямоугольник
|
|
5
|
+
* @param { Number } posY координата У начала прямоугольник
|
|
6
|
+
* @param { Number } w ширина
|
|
7
|
+
* @param { Number } h высота
|
|
8
|
+
* @param { Number } radius радиус
|
|
9
|
+
* @param { string } color формат 0xffffff
|
|
10
|
+
* @param { Number } alpha 0..1
|
|
11
|
+
*/
|
|
12
|
+
export declare function drawRect(posX: number, posY: number, w: number, h: number, radius?: number, color?: number, alpha?: number): PIXI.Graphics;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as PIXI from 'pixi.js';
|
|
2
|
+
/**
|
|
3
|
+
* Рисует прямоуголньик с градиентом сверху и снизу
|
|
4
|
+
* @param {number} width
|
|
5
|
+
* @param {number} height
|
|
6
|
+
* @param {number} offsetTop - кол-во пикселей градиента сверху (внутри, с краев height к центру)
|
|
7
|
+
* @param {number} offsetBottom - кол-во пикселей градиента снизу (внутри, с краев height к центру)
|
|
8
|
+
*/
|
|
9
|
+
export declare function drawReel(width: number, height: number, offsetTop?: number, offsetBottom?: number): PIXI.Graphics;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { TCallbackAsync, TCallbackVoid, TGenericObject } from '../extends/short.types';
|
|
2
|
+
/**
|
|
3
|
+
* Установить режим
|
|
4
|
+
* @param name
|
|
5
|
+
*/
|
|
6
|
+
export declare function setMode(name: string): void;
|
|
7
|
+
/**
|
|
8
|
+
* Узнать, включен ли сейчас режим
|
|
9
|
+
* @param name
|
|
10
|
+
*/
|
|
11
|
+
export declare function isMode(name: string): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Вывод логов (только в debug режиме)
|
|
14
|
+
* @param _args
|
|
15
|
+
* @todo window.cl
|
|
16
|
+
*/
|
|
17
|
+
export declare function cl(..._args: unknown[]): boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Вывод логов события (только в debug режиме)
|
|
20
|
+
* @param type
|
|
21
|
+
* @param event
|
|
22
|
+
* @param data
|
|
23
|
+
*/
|
|
24
|
+
export declare function eventlog(type: string, event: string, data?: unknown): void | boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Вывод ошибок (только в debug режиме)
|
|
27
|
+
* @param _args
|
|
28
|
+
*/
|
|
29
|
+
export declare function error(..._args: unknown[]): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Обработка исключений (только в debug режиме)
|
|
32
|
+
* @param callback
|
|
33
|
+
* @param context
|
|
34
|
+
* @param catchError
|
|
35
|
+
*/
|
|
36
|
+
export declare function _try(callback: TCallbackVoid, context: unknown, catchError?: unknown): boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Получить название события клика (тача)
|
|
39
|
+
*/
|
|
40
|
+
export declare function clickEvent(): string;
|
|
41
|
+
/** */
|
|
42
|
+
export declare function isClick(): boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Задать таймаут и выполнить колбек
|
|
45
|
+
* @param callback
|
|
46
|
+
* @param delayMs ms
|
|
47
|
+
*/
|
|
48
|
+
export declare function timeout(callback: TCallbackAsync | TCallbackVoid, delayMs: number): Promise<unknown>;
|
|
49
|
+
/**
|
|
50
|
+
* Подождать
|
|
51
|
+
* @param delayMs ms
|
|
52
|
+
*/
|
|
53
|
+
export declare function sleep(delayMs: number): Promise<void>;
|
|
54
|
+
/**
|
|
55
|
+
* Получить параметры из URL
|
|
56
|
+
*/
|
|
57
|
+
export declare function getUrlParams(url: string): TGenericObject<string>;
|
|
58
|
+
/**
|
|
59
|
+
* Получить параметры из URL
|
|
60
|
+
*/
|
|
61
|
+
export declare function hasUrlParams(url: string, param: string): boolean;
|
|
62
|
+
/** Определим язык клиента из браузера */
|
|
63
|
+
export declare function detectLang(): string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* val typeof array
|
|
3
|
+
*/
|
|
4
|
+
export declare function isArray(val: unknown): boolean;
|
|
5
|
+
/**
|
|
6
|
+
* val typeof object
|
|
7
|
+
*/
|
|
8
|
+
export declare function isObject(val: unknown): boolean;
|
|
9
|
+
/**
|
|
10
|
+
* val typeof boolean
|
|
11
|
+
*/
|
|
12
|
+
export declare function isBoolean(val: unknown): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* val is defined string
|
|
15
|
+
*/
|
|
16
|
+
export declare function isString(val: unknown): boolean;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { TPixiPoint } from '../extends/short.types';
|
|
2
|
+
type TPos = {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Функция-уравнение кубической кривой
|
|
8
|
+
* @param {Number} t - прогресс движения по кривой от 0 до 1
|
|
9
|
+
* @param {Object} p0 - начальная точка кривой {x: , y: }
|
|
10
|
+
* @param {Object} p1 - первая контрольная точка {x: , y: }
|
|
11
|
+
* @param {Object} p2 - вторая контрольная точка {x: , y: }
|
|
12
|
+
* @param {Object} p3 - конечная точка кривой {x: , y: }
|
|
13
|
+
* @param {Boolean} getRotation - вычислить поворот (угол асимптоты рзультирующей точки)
|
|
14
|
+
* @param {Number} accuracyRotation - точность угла асимптоты (чем длинее кривая - тем меньше должын быть параметр)
|
|
15
|
+
*/
|
|
16
|
+
export declare function bezierQubic(t: number, p0: TPos, p1: TPos, p2: TPos, p3: TPos, getRotation?: boolean, accuracyRotation?: number): {
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
19
|
+
rotation?: number;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Возвращает приближенную длину кубической кривой
|
|
23
|
+
* @param {Object} p0 - начальная точка кривой {x: , y: }
|
|
24
|
+
* @param {Object} p1 - первая контрольная точка {x: , y: }
|
|
25
|
+
* @param {Object} p2 - вторая контрольная точка {x: , y: }
|
|
26
|
+
* @param {Object} p3 - конечная точка кривой {x: , y: }
|
|
27
|
+
* @param {Number} iterations - для точности
|
|
28
|
+
* @param {Boolean} getIntervals - вернуть прогресс по длине кривой
|
|
29
|
+
*/
|
|
30
|
+
export declare function bezierQubicLength(p0: TPos, p1: TPos, p2: TPos, p3: TPos, iterations?: number, getIntervals?: boolean): {
|
|
31
|
+
length: number;
|
|
32
|
+
intervals: any[];
|
|
33
|
+
};
|
|
34
|
+
/** distance between two points */
|
|
35
|
+
export declare function distance(from: TPixiPoint, to: TPixiPoint, rounded?: boolean): number;
|
|
36
|
+
/** calculates the angle in radians between two points */
|
|
37
|
+
export declare function radian(from: TPixiPoint, to: TPixiPoint): number;
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TMixedObject } from '../../extends/short.types';
|
|
2
|
+
/**
|
|
3
|
+
* Recursive merging objects. Replaces or adds properties from the source object to the target object
|
|
4
|
+
* @param to target object
|
|
5
|
+
* @param from source object
|
|
6
|
+
*/
|
|
7
|
+
export declare function deepMerge(to: TMixedObject, from: TMixedObject, shouldRewrite?: boolean): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Получить готовое значение с учетом режима скорости
|
|
3
|
+
* @example duration: speedMode(400, 200, 200)
|
|
4
|
+
* @example duration: speedMode(3.5, 2.5, 2.5)
|
|
5
|
+
* @example animation: speedMode('normal', 'fastmode', 'skipmode')
|
|
6
|
+
*/
|
|
7
|
+
export declare function speedMode<T = number>(origin: T, fast: T, skip?: T): T;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TGsapTimeline } from '../../extends/short.types';
|
|
2
|
+
/**
|
|
3
|
+
* Создать таймлан и сохранить его по имени.
|
|
4
|
+
* При повторном создании предыдущий таймлайн будет остановлен.
|
|
5
|
+
* @param tag
|
|
6
|
+
* @param vars
|
|
7
|
+
*/
|
|
8
|
+
export declare function timelineCreate(tag?: string, vars?: gsap.TimelineVars): TGsapTimeline;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export * from './classes/assets.class';
|
|
2
|
+
export * from './classes/borderview.class';
|
|
3
|
+
export * from './classes/container.class';
|
|
4
|
+
export * from './classes/di.class';
|
|
5
|
+
export * from './classes/emitter.class';
|
|
6
|
+
export * from './classes/engine.class';
|
|
7
|
+
export * from './classes/loaders.class';
|
|
8
|
+
export * from './classes/producer.class';
|
|
9
|
+
export * from './classes/spine.assets.class';
|
|
10
|
+
export * from './components/abstract.component';
|
|
11
|
+
export * from './components/bigwin.component';
|
|
12
|
+
export * from './components/blackout.component';
|
|
13
|
+
export * from './components/button.component';
|
|
14
|
+
export * from './components/button.text.component';
|
|
15
|
+
export * from './components/cheat.component';
|
|
16
|
+
export * from './components/fillframe.component';
|
|
17
|
+
export * from './components/fps.component';
|
|
18
|
+
export * from './components/link.component';
|
|
19
|
+
export * from './components/slideshow/slides.reel.component';
|
|
20
|
+
export * from './components/slideshow/slideshow.component';
|
|
21
|
+
export * from './components/slideshow/slideshow.ui.component';
|
|
22
|
+
export * from './components/slot/coefficient/coefficient.component';
|
|
23
|
+
export * from './components/slot/frames/frames.component';
|
|
24
|
+
export * from './components/slot/hints/hints.component';
|
|
25
|
+
export * from './components/slot/intrigue/intrigue.component';
|
|
26
|
+
export * from './components/slot/lines/lines.component';
|
|
27
|
+
export * from './components/slot/lines/lines.static.component';
|
|
28
|
+
export * from './components/slot/reel.component';
|
|
29
|
+
export * from './components/slot/slot.component';
|
|
30
|
+
export * from './components/switch.component';
|
|
31
|
+
export * from './components/text.component';
|
|
32
|
+
export * from './components/volatility/volatility.component';
|
|
33
|
+
export * from './components/volatility/volatility.symbol.component';
|
|
34
|
+
export * from './functions/animate/counter.func';
|
|
35
|
+
export * from './functions/animate/fadein.func';
|
|
36
|
+
export * from './functions/animate/fadeout.func';
|
|
37
|
+
export * from './functions/animate/to.func';
|
|
38
|
+
export * from './functions/convert/tofixed.func';
|
|
39
|
+
export * from './functions/debug/container.func';
|
|
40
|
+
export * from './functions/demotexture.func';
|
|
41
|
+
export * from './functions/draw/canvasExtract.func';
|
|
42
|
+
export * from './functions/draw/gradient.texture.func';
|
|
43
|
+
export * from './functions/draw/rect.func';
|
|
44
|
+
export * from './functions/draw/reel.func';
|
|
45
|
+
export * from './functions/engine.funcs';
|
|
46
|
+
export * from './functions/object/deepMerge';
|
|
47
|
+
export * from './functions/random/inrange.func';
|
|
48
|
+
export * from './functions/random/value.func';
|
|
49
|
+
export * from './functions/speed/mode.func';
|
|
50
|
+
export * from './functions/timeline/create.funcs';
|
|
51
|
+
export * from './services/focus.services';
|
|
52
|
+
export * from './services/langs.service';
|
|
53
|
+
export * from './services/skip.service';
|
|
54
|
+
export * from './services/sounds/sounds.service';
|
|
55
|
+
export * from './services/storage.service';
|
|
56
|
+
export * from './extends/enum.types';
|
|
57
|
+
export * from './extends/interfaces';
|
|
58
|
+
export * from './extends/short.types';
|
|
59
|
+
export * from './extends/struct.types';
|
|
60
|
+
export * from './scenes/abstract.scene';
|
|
61
|
+
export * from './components/slot/slot.config';
|
|
62
|
+
export * from './references';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare enum EDragonBonesEvents {
|
|
2
|
+
complete = "complete",
|
|
3
|
+
start = "start",
|
|
4
|
+
fadeIn = "fadeIn",
|
|
5
|
+
fadeOut = "fadeOut",
|
|
6
|
+
loopComplete = "loopComplete",
|
|
7
|
+
fadeInComplete = "fadeInComplete",
|
|
8
|
+
fadeOutComplete = "fadeOutComplete",
|
|
9
|
+
frameEvent = "frameEvent",
|
|
10
|
+
soundEvent = "soundEvent"
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Adding the listener and wait for completion it
|
|
14
|
+
* @param target - dragonbones armature sprite
|
|
15
|
+
* @param event - event name
|
|
16
|
+
* @param clearall - remove all listeners
|
|
17
|
+
*/
|
|
18
|
+
export declare function waitDragonbonesEvent(target: dragonBones.PixiArmatureDisplay, event: dragonBones.EventStringType, clearall?: boolean): Promise<dragonBones.PixiArmatureDisplay>;
|