@drincs/pixi-vn 0.9.7 → 0.9.8
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/{ContainerChild-B5yD0BI8.d.ts → ContainerChild-AjuVp3wW.d.ts} +4 -1
- package/dist/{ContainerChild-WzyxEjAc.d.cts → ContainerChild-BUFxM6Ya.d.cts} +4 -1
- package/dist/WebGLRenderer-EFHDNV22.js +9 -0
- package/dist/WebGPURenderer-LEKL575M.js +10 -0
- package/dist/{browserAll-2HD5EH7K.js → browserAll-S4EPEXZD.js} +5 -5
- package/dist/{chunk-WNOARCWH.js → chunk-3XKVLXKN.js} +2 -2
- package/dist/{chunk-PP5T5HEO.js → chunk-52ZSR3AN.js} +1 -1
- package/dist/{chunk-SAUNZQHZ.js → chunk-D753T42C.js} +1 -1
- package/dist/{chunk-TOG67Z7Q.js → chunk-DQ47ST7G.js} +2 -2
- package/dist/{chunk-73ID6GAW.js → chunk-DWJGQ2A5.js} +2 -2
- package/dist/{chunk-5VX2VTDZ.js → chunk-DXOIIOAQ.js} +81 -27
- package/dist/{chunk-Z3NBKYVU.js → chunk-DZMWRZUL.js} +10 -9
- package/dist/{chunk-NB4Q3GFK.js → chunk-FXH7A6UR.js} +224 -53
- package/dist/{chunk-6GJXIPNB.js → chunk-GEY6RTYO.js} +1 -1
- package/dist/{chunk-CAWOWL3P.js → chunk-IG7HSAEJ.js} +75 -34
- package/dist/{chunk-PP3SBC3C.js → chunk-KAHX5SKO.js} +18 -15
- package/dist/{chunk-ODIEVSQX.js → chunk-OPLBQKS2.js} +3 -3
- package/dist/{chunk-Y3WNBACN.js → chunk-R4J2U4HN.js} +2 -2
- package/dist/{chunk-WS3FY4Q6.js → chunk-X55ALTH7.js} +2 -2
- package/dist/{chunk-5JREOVCG.js → chunk-XGGTEP7V.js} +1 -1
- package/dist/classes/CharacterBaseModel.cjs +397 -248
- package/dist/classes/CharacterBaseModel.js +14 -15
- package/dist/classes/CharacterStoredClass.cjs +397 -248
- package/dist/classes/CharacterStoredClass.js +14 -15
- package/dist/classes/ChoiceMenuOption.cjs +325 -178
- package/dist/classes/ChoiceMenuOption.js +14 -15
- package/dist/classes/Sound.cjs +397 -248
- package/dist/classes/Sound.js +14 -15
- package/dist/classes/StoredClassModel.cjs +397 -248
- package/dist/classes/StoredClassModel.js +14 -15
- package/dist/classes/canvas/AdditionalPositions.cjs +39323 -963
- package/dist/classes/canvas/AdditionalPositions.d.cts +3 -1
- package/dist/classes/canvas/AdditionalPositions.d.ts +3 -1
- package/dist/classes/canvas/AdditionalPositions.js +41 -10
- package/dist/classes/canvas/AnchorExtension.cjs +92 -48
- package/dist/classes/canvas/AnchorExtension.js +8 -8
- package/dist/classes/canvas/CanvasBaseItem.cjs +92 -48
- package/dist/classes/canvas/CanvasBaseItem.d.cts +1 -1
- package/dist/classes/canvas/CanvasBaseItem.d.ts +1 -1
- package/dist/classes/canvas/CanvasBaseItem.js +9 -9
- package/dist/classes/canvas/Container.cjs +389 -242
- package/dist/classes/canvas/Container.d.cts +1 -1
- package/dist/classes/canvas/Container.d.ts +1 -1
- package/dist/classes/canvas/Container.js +14 -15
- package/dist/classes/canvas/ImageContainer.cjs +325 -176
- package/dist/classes/canvas/ImageContainer.d.cts +1 -1
- package/dist/classes/canvas/ImageContainer.d.ts +1 -1
- package/dist/classes/canvas/ImageContainer.js +14 -15
- package/dist/classes/canvas/ImageSprite.cjs +3041 -2892
- package/dist/classes/canvas/ImageSprite.d.cts +1 -1
- package/dist/classes/canvas/ImageSprite.d.ts +1 -1
- package/dist/classes/canvas/ImageSprite.js +14 -15
- package/dist/classes/canvas/Sprite.cjs +397 -252
- package/dist/classes/canvas/Sprite.d.cts +1 -1
- package/dist/classes/canvas/Sprite.d.ts +1 -1
- package/dist/classes/canvas/Sprite.js +14 -15
- package/dist/classes/canvas/Text.cjs +319 -172
- package/dist/classes/canvas/Text.d.cts +1 -1
- package/dist/classes/canvas/Text.d.ts +1 -1
- package/dist/classes/canvas/Text.js +14 -15
- package/dist/classes/canvas/VideoSprite.cjs +3038 -2887
- package/dist/classes/canvas/VideoSprite.d.cts +4 -2
- package/dist/classes/canvas/VideoSprite.d.ts +4 -2
- package/dist/classes/canvas/VideoSprite.js +14 -15
- package/dist/classes/index.cjs +399 -252
- package/dist/classes/index.d.cts +1 -1
- package/dist/classes/index.d.ts +1 -1
- package/dist/classes/index.js +14 -15
- package/dist/classes/ticker/FadeAlphaTicker.cjs +325 -178
- package/dist/classes/ticker/FadeAlphaTicker.js +14 -15
- package/dist/classes/ticker/MoveTicker.cjs +3563 -3418
- package/dist/classes/ticker/MoveTicker.js +14 -15
- package/dist/classes/ticker/RotateTicker.cjs +325 -178
- package/dist/classes/ticker/RotateTicker.js +14 -15
- package/dist/classes/ticker/TickerBase.cjs +397 -248
- package/dist/classes/ticker/TickerBase.js +14 -15
- package/dist/classes/ticker/ZoomTicker.cjs +325 -178
- package/dist/classes/ticker/ZoomTicker.js +14 -15
- package/dist/classes/ticker/index.cjs +397 -252
- package/dist/classes/ticker/index.js +14 -15
- package/dist/constants.cjs +93 -49
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +10 -10
- package/dist/decorators/canvas-element-decorator.cjs +389 -242
- package/dist/decorators/canvas-element-decorator.d.cts +1 -1
- package/dist/decorators/canvas-element-decorator.d.ts +1 -1
- package/dist/decorators/canvas-element-decorator.js +14 -15
- package/dist/decorators/event-decorator.d.cts +1 -1
- package/dist/decorators/event-decorator.d.ts +1 -1
- package/dist/decorators/index.cjs +325 -178
- package/dist/decorators/index.d.cts +1 -1
- package/dist/decorators/index.d.ts +1 -1
- package/dist/decorators/index.js +14 -15
- package/dist/decorators/label-decorator.cjs +397 -250
- package/dist/decorators/label-decorator.js +14 -15
- package/dist/functions/canvas/canvas-effect.cjs +394 -247
- package/dist/functions/canvas/canvas-effect.js +14 -15
- package/dist/functions/canvas/canvas-memory-utility.cjs +389 -242
- package/dist/functions/canvas/canvas-memory-utility.d.cts +1 -1
- package/dist/functions/canvas/canvas-memory-utility.d.ts +1 -1
- package/dist/functions/canvas/canvas-memory-utility.js +14 -15
- package/dist/functions/canvas/canvas-transition.cjs +397 -250
- package/dist/functions/canvas/canvas-transition.d.cts +1 -1
- package/dist/functions/canvas/canvas-transition.d.ts +1 -1
- package/dist/functions/canvas/canvas-transition.js +14 -15
- package/dist/functions/canvas/canvas-utility.cjs +397 -248
- package/dist/functions/canvas/canvas-utility.js +14 -15
- package/dist/functions/canvas/image-container-utility.cjs +397 -250
- package/dist/functions/canvas/image-container-utility.d.cts +1 -1
- package/dist/functions/canvas/image-container-utility.d.ts +1 -1
- package/dist/functions/canvas/image-container-utility.js +14 -15
- package/dist/functions/canvas/image-utility.cjs +397 -250
- package/dist/functions/canvas/image-utility.d.cts +1 -1
- package/dist/functions/canvas/image-utility.d.ts +1 -1
- package/dist/functions/canvas/image-utility.js +14 -15
- package/dist/functions/canvas/video-utility.cjs +4682 -4531
- package/dist/functions/canvas/video-utility.d.cts +1 -1
- package/dist/functions/canvas/video-utility.d.ts +1 -1
- package/dist/functions/canvas/video-utility.js +14 -15
- package/dist/functions/dialogue-utility.cjs +397 -248
- package/dist/functions/dialogue-utility.js +14 -15
- package/dist/functions/flags-utility.cjs +397 -248
- package/dist/functions/flags-utility.js +14 -15
- package/dist/functions/game-utility.cjs +397 -248
- package/dist/functions/game-utility.js +14 -15
- package/dist/functions/index.cjs +397 -252
- package/dist/functions/index.d.cts +1 -1
- package/dist/functions/index.d.ts +1 -1
- package/dist/functions/index.js +14 -15
- package/dist/functions/saves-utility.cjs +397 -248
- package/dist/functions/saves-utility.d.cts +1 -1
- package/dist/functions/saves-utility.d.ts +1 -1
- package/dist/functions/saves-utility.js +14 -15
- package/dist/functions/sound-utility.cjs +92 -48
- package/dist/functions/sound-utility.js +10 -10
- package/dist/functions/texture-utility.cjs +319 -172
- package/dist/functions/texture-utility.d.cts +1 -1
- package/dist/functions/texture-utility.d.ts +1 -1
- package/dist/functions/texture-utility.js +14 -15
- package/dist/index.cjs +268 -121
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +14 -15
- package/dist/interface/HistoryStep.d.cts +1 -1
- package/dist/interface/HistoryStep.d.ts +1 -1
- package/dist/interface/SaveData.d.cts +1 -1
- package/dist/interface/SaveData.d.ts +1 -1
- package/dist/interface/canvas/canvas-memory.d.cts +1 -1
- package/dist/interface/canvas/canvas-memory.d.ts +1 -1
- package/dist/interface/canvas/canvas-options.d.cts +1 -1
- package/dist/interface/canvas/canvas-options.d.ts +1 -1
- package/dist/interface/export/ExportedCanvas.d.cts +1 -1
- package/dist/interface/export/ExportedCanvas.d.ts +1 -1
- package/dist/interface/export/ExportedStep.d.cts +1 -1
- package/dist/interface/export/ExportedStep.d.ts +1 -1
- package/dist/interface/index.d.cts +1 -1
- package/dist/interface/index.d.ts +1 -1
- package/dist/labels/BaseCanvasElementTestLabel.cjs +397 -250
- package/dist/labels/BaseCanvasElementTestLabel.js +14 -15
- package/dist/labels/CanvasEventsTestLabel.cjs +397 -250
- package/dist/labels/CanvasEventsTestLabel.d.cts +1 -1
- package/dist/labels/CanvasEventsTestLabel.d.ts +1 -1
- package/dist/labels/CanvasEventsTestLabel.js +14 -15
- package/dist/labels/CustomTickerCanvasElementTestLabel.cjs +268 -121
- package/dist/labels/CustomTickerCanvasElementTestLabel.js +14 -15
- package/dist/labels/ImagesAnimationsTestLabel.cjs +397 -250
- package/dist/labels/ImagesAnimationsTestLabel.js +14 -15
- package/dist/labels/InputTestLabel.cjs +325 -178
- package/dist/labels/InputTestLabel.js +14 -15
- package/dist/labels/MarkdownTest.cjs +325 -178
- package/dist/labels/MarkdownTest.js +14 -15
- package/dist/labels/SoundTestLabel.cjs +325 -178
- package/dist/labels/SoundTestLabel.js +14 -15
- package/dist/labels/StartLabel.cjs +397 -250
- package/dist/labels/StartLabel.js +14 -15
- package/dist/labels/StepLabelTest.cjs +325 -178
- package/dist/labels/StepLabelTest.js +14 -15
- package/dist/labels/VideoTestLabel.cjs +325 -178
- package/dist/labels/VideoTestLabel.js +14 -15
- package/dist/labels/index.cjs +397 -250
- package/dist/labels/index.js +14 -15
- package/dist/{lib-6FCVILMQ.js → lib-5KZOZFFM.js} +8 -8
- package/dist/managers/CanvasManager.cjs +397 -248
- package/dist/managers/CanvasManager.d.cts +1 -1
- package/dist/managers/CanvasManager.d.ts +1 -1
- package/dist/managers/CanvasManager.js +14 -15
- package/dist/managers/CanvasManagerStatic.cjs +176 -77
- package/dist/managers/CanvasManagerStatic.d.cts +1 -1
- package/dist/managers/CanvasManagerStatic.d.ts +1 -1
- package/dist/managers/CanvasManagerStatic.js +9 -9
- package/dist/managers/NarrationManager.cjs +397 -248
- package/dist/managers/NarrationManager.d.cts +2 -1
- package/dist/managers/NarrationManager.d.ts +2 -1
- package/dist/managers/NarrationManager.js +14 -15
- package/dist/managers/NarrationManagerStatic.cjs +397 -248
- package/dist/managers/NarrationManagerStatic.d.cts +1 -1
- package/dist/managers/NarrationManagerStatic.d.ts +1 -1
- package/dist/managers/NarrationManagerStatic.js +14 -15
- package/dist/managers/SoundManager.cjs +397 -248
- package/dist/managers/SoundManager.js +14 -15
- package/dist/managers/StorageManager.cjs +397 -248
- package/dist/managers/StorageManager.js +14 -15
- package/dist/managers/index.cjs +397 -248
- package/dist/managers/index.d.cts +1 -1
- package/dist/managers/index.d.ts +1 -1
- package/dist/managers/index.js +14 -15
- package/dist/types/ContainerChild.d.cts +1 -1
- package/dist/types/ContainerChild.d.ts +1 -1
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/ticker/MoveTickerProps.d.cts +8 -0
- package/dist/types/ticker/MoveTickerProps.d.ts +8 -0
- package/dist/webworkerAll-XFBJBJMM.js +5 -0
- package/package.json +1 -1
- package/dist/WebGLRenderer-U57ZOBH6.js +0 -9
- package/dist/WebGPURenderer-EYIZ7IXV.js +0 -10
- package/dist/chunk-IRUKNG2Y.js +0 -130
- package/dist/webworkerAll-GSRT3S6X.js +0 -5
|
@@ -7,7 +7,7 @@ export { default as NarrationManagerStatic } from './NarrationManagerStatic.cjs'
|
|
|
7
7
|
export { default as SoundManagerStatic } from './SoundManagerStatic.cjs';
|
|
8
8
|
export { default as StorageManagerStatic } from './StorageManagerStatic.cjs';
|
|
9
9
|
import 'pixi.js';
|
|
10
|
-
import '../ContainerChild-
|
|
10
|
+
import '../ContainerChild-BUFxM6Ya.cjs';
|
|
11
11
|
import '../classes/canvas/AdditionalPositions.cjs';
|
|
12
12
|
import '../interface/canvas/TextureMemory.cjs';
|
|
13
13
|
import '../classes/canvas/AnchorExtension.cjs';
|
package/dist/managers/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export { default as NarrationManagerStatic } from './NarrationManagerStatic.js';
|
|
|
7
7
|
export { default as SoundManagerStatic } from './SoundManagerStatic.js';
|
|
8
8
|
export { default as StorageManagerStatic } from './StorageManagerStatic.js';
|
|
9
9
|
import 'pixi.js';
|
|
10
|
-
import '../ContainerChild-
|
|
10
|
+
import '../ContainerChild-AjuVp3wW.js';
|
|
11
11
|
import '../classes/canvas/AdditionalPositions.js';
|
|
12
12
|
import '../interface/canvas/TextureMemory.js';
|
|
13
13
|
import '../classes/canvas/AnchorExtension.js';
|
package/dist/managers/index.js
CHANGED
|
@@ -7,26 +7,25 @@ import {
|
|
|
7
7
|
narration,
|
|
8
8
|
sound,
|
|
9
9
|
storage
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-FXH7A6UR.js";
|
|
11
11
|
import "../chunk-OMPJ74CO.js";
|
|
12
12
|
import "../chunk-2JGQWY5I.js";
|
|
13
13
|
import "../chunk-2BUPSB7O.js";
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-6GJXIPNB.js";
|
|
14
|
+
import "../chunk-GEY6RTYO.js";
|
|
16
15
|
import "../chunk-I6TNJEE3.js";
|
|
17
16
|
import {
|
|
18
17
|
StorageManagerStatic
|
|
19
18
|
} from "../chunk-DPUSONJ3.js";
|
|
20
19
|
import {
|
|
21
20
|
CanvasManagerStatic
|
|
22
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-3XKVLXKN.js";
|
|
23
22
|
import {
|
|
24
23
|
SoundManagerStatic
|
|
25
24
|
} from "../chunk-6FAGAUDR.js";
|
|
26
25
|
import "../chunk-RI37WOHP.js";
|
|
27
26
|
import "../chunk-ETZISN54.js";
|
|
28
27
|
import "../chunk-VXCA724Z.js";
|
|
29
|
-
import "../chunk-
|
|
28
|
+
import "../chunk-52ZSR3AN.js";
|
|
30
29
|
import "../chunk-ZZLQ3ILH.js";
|
|
31
30
|
import "../chunk-JTQGULTR.js";
|
|
32
31
|
import "../chunk-FHNQBWIZ.js";
|
|
@@ -34,16 +33,16 @@ import "../chunk-ZBUW3MBH.js";
|
|
|
34
33
|
import "../chunk-PIYIZHZL.js";
|
|
35
34
|
import "../chunk-B7XQM2BB.js";
|
|
36
35
|
import "../chunk-LEMOIFSV.js";
|
|
37
|
-
import "../chunk-
|
|
38
|
-
import "../chunk-
|
|
39
|
-
import "../chunk-
|
|
40
|
-
import "../chunk-
|
|
41
|
-
import "../chunk-
|
|
42
|
-
import "../chunk-
|
|
43
|
-
import "../chunk-
|
|
44
|
-
import "../chunk-
|
|
45
|
-
import "../chunk-
|
|
46
|
-
import "../chunk-
|
|
36
|
+
import "../chunk-DQ47ST7G.js";
|
|
37
|
+
import "../chunk-X55ALTH7.js";
|
|
38
|
+
import "../chunk-DZMWRZUL.js";
|
|
39
|
+
import "../chunk-D753T42C.js";
|
|
40
|
+
import "../chunk-IG7HSAEJ.js";
|
|
41
|
+
import "../chunk-OPLBQKS2.js";
|
|
42
|
+
import "../chunk-XGGTEP7V.js";
|
|
43
|
+
import "../chunk-DWJGQ2A5.js";
|
|
44
|
+
import "../chunk-DXOIIOAQ.js";
|
|
45
|
+
import "../chunk-KAHX5SKO.js";
|
|
47
46
|
import "../chunk-HKAY3U4R.js";
|
|
48
47
|
import "../chunk-SJIEQTBV.js";
|
|
49
48
|
import "../chunk-CBG6JWY4.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'pixi.js';
|
|
2
|
-
export { i as default } from '../ContainerChild-
|
|
2
|
+
export { i as default } from '../ContainerChild-BUFxM6Ya.cjs';
|
|
3
3
|
import '../classes/canvas/AdditionalPositions.cjs';
|
|
4
4
|
import '../interface/canvas/TextureMemory.cjs';
|
|
5
5
|
import '../classes/canvas/AnchorExtension.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'pixi.js';
|
|
2
|
-
export { i as default } from '../ContainerChild-
|
|
2
|
+
export { i as default } from '../ContainerChild-AjuVp3wW.js';
|
|
3
3
|
import '../classes/canvas/AdditionalPositions.js';
|
|
4
4
|
import '../interface/canvas/TextureMemory.js';
|
|
5
5
|
import '../classes/canvas/AnchorExtension.js';
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { default as CanvasEventNamesType } from './CanvasEventNamesType.cjs';
|
|
2
2
|
export { ChoiceMenuOptionsType } from './ChoiceMenuOptionsType.cjs';
|
|
3
3
|
export { Close, CloseType } from './CloseType.cjs';
|
|
4
|
-
export { i as ContainerChild } from '../ContainerChild-
|
|
4
|
+
export { i as ContainerChild } from '../ContainerChild-BUFxM6Ya.cjs';
|
|
5
5
|
export { default as DialogueType } from './DialogueType.cjs';
|
|
6
6
|
export { default as HistoryChoiceMenuOption } from './HistoryChoiceMenuOption.cjs';
|
|
7
7
|
export { InputInfo } from './InputInfo.cjs';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { default as CanvasEventNamesType } from './CanvasEventNamesType.js';
|
|
2
2
|
export { ChoiceMenuOptionsType } from './ChoiceMenuOptionsType.js';
|
|
3
3
|
export { Close, CloseType } from './CloseType.js';
|
|
4
|
-
export { i as ContainerChild } from '../ContainerChild-
|
|
4
|
+
export { i as ContainerChild } from '../ContainerChild-AjuVp3wW.js';
|
|
5
5
|
export { default as DialogueType } from './DialogueType.js';
|
|
6
6
|
export { default as HistoryChoiceMenuOption } from './HistoryChoiceMenuOption.js';
|
|
7
7
|
export { InputInfo } from './InputInfo.js';
|
|
@@ -13,6 +13,14 @@ type MoveTickerProps = {
|
|
|
13
13
|
* The destination of the movement
|
|
14
14
|
*/
|
|
15
15
|
destination: {
|
|
16
|
+
/**
|
|
17
|
+
* The type of the destination. Possible values are "pixel", "percentage" and "align":
|
|
18
|
+
* - "pixel": The destination is in pixel
|
|
19
|
+
* - "percentage": The destination is in percentage
|
|
20
|
+
* - "align": The destination is in align
|
|
21
|
+
* @default "pixel"
|
|
22
|
+
*/
|
|
23
|
+
type?: "pixel" | "percentage" | "align";
|
|
16
24
|
y: number;
|
|
17
25
|
x: number;
|
|
18
26
|
};
|
|
@@ -13,6 +13,14 @@ type MoveTickerProps = {
|
|
|
13
13
|
* The destination of the movement
|
|
14
14
|
*/
|
|
15
15
|
destination: {
|
|
16
|
+
/**
|
|
17
|
+
* The type of the destination. Possible values are "pixel", "percentage" and "align":
|
|
18
|
+
* - "pixel": The destination is in pixel
|
|
19
|
+
* - "percentage": The destination is in percentage
|
|
20
|
+
* - "align": The destination is in align
|
|
21
|
+
* @default "pixel"
|
|
22
|
+
*/
|
|
23
|
+
type?: "pixel" | "percentage" | "align";
|
|
16
24
|
y: number;
|
|
17
25
|
x: number;
|
|
18
26
|
};
|
package/package.json
CHANGED
package/dist/chunk-IRUKNG2Y.js
DELETED
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Container
|
|
3
|
-
} from "./chunk-PP3SBC3C.js";
|
|
4
|
-
|
|
5
|
-
// src/classes/canvas/AdditionalPositions.ts
|
|
6
|
-
var AdditionalPositionsExtension = class extends Container {
|
|
7
|
-
/**
|
|
8
|
-
* is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas.
|
|
9
|
-
* For example:
|
|
10
|
-
* - if you set align to 0.5, the element will be in the center of the canvas.
|
|
11
|
-
* - if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas.
|
|
12
|
-
* - if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas.
|
|
13
|
-
*
|
|
14
|
-
* **Important:** The {@link PixiContainer.pivot} field does not affect the alignment.
|
|
15
|
-
*/
|
|
16
|
-
set align(_value) {
|
|
17
|
-
throw new Error("Method not implemented.");
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas.
|
|
21
|
-
* For example:
|
|
22
|
-
* - if you set align to 0.5, the element will be in the center of the canvas.
|
|
23
|
-
* - if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas.
|
|
24
|
-
* - if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas.
|
|
25
|
-
*
|
|
26
|
-
* **Important:** The {@link PixiContainer.pivot} field does not affect the alignment.
|
|
27
|
-
*/
|
|
28
|
-
set xAlign(_value) {
|
|
29
|
-
throw new Error("Method not implemented.");
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas.
|
|
33
|
-
* For example:
|
|
34
|
-
* - if you set align to 0.5, the element will be in the center of the canvas.
|
|
35
|
-
* - if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas.
|
|
36
|
-
* - if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas.
|
|
37
|
-
*
|
|
38
|
-
* **Important:** The {@link PixiContainer.pivot} field does not affect the alignment.
|
|
39
|
-
*/
|
|
40
|
-
set yAlign(_value) {
|
|
41
|
-
throw new Error("Method not implemented.");
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* is a way to set the position of the element in the canvas calculated in percentage.
|
|
45
|
-
* For example, if you set the {@link PixiContainer.pivot} to 0.5, and:
|
|
46
|
-
* - if you set percentagePosition to 0.5, the element will be in the center of the canvas.
|
|
47
|
-
* - If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas.
|
|
48
|
-
* - If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas.
|
|
49
|
-
*
|
|
50
|
-
* **Important:** The {@link PixiContainer.pivot} field does affect the percentagePosition.
|
|
51
|
-
*/
|
|
52
|
-
set percentagePosition(_value) {
|
|
53
|
-
throw new Error("Method not implemented.");
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* is a way to set the position of the element in the canvas calculated in percentage.
|
|
57
|
-
* For example, if you set the {@link PixiContainer.pivot} to 0.5, and:
|
|
58
|
-
* - if you set percentagePosition to 0.5, the element will be in the center of the canvas.
|
|
59
|
-
* - If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas.
|
|
60
|
-
* - If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas.
|
|
61
|
-
*
|
|
62
|
-
* **Important:** The {@link PixiContainer.pivot} field does affect the percentagePosition.
|
|
63
|
-
*/
|
|
64
|
-
set xPercentagePosition(_value) {
|
|
65
|
-
throw new Error("Method not implemented.");
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* is a way to set the position of the element in the canvas calculated in percentage.
|
|
69
|
-
* For example, if you set the {@link PixiContainer.pivot} to 0.5, and:
|
|
70
|
-
* - if you set percentagePosition to 0.5, the element will be in the center of the canvas.
|
|
71
|
-
* - If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas.
|
|
72
|
-
* - If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas.
|
|
73
|
-
*
|
|
74
|
-
* **Important:** The {@link PixiContainer.pivot} field does affect the percentagePosition.
|
|
75
|
-
*/
|
|
76
|
-
set yPercentagePosition(_value) {
|
|
77
|
-
throw new Error("Method not implemented.");
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
function analizePositionsExtensionProps(props) {
|
|
81
|
-
if (!props) {
|
|
82
|
-
return props;
|
|
83
|
-
}
|
|
84
|
-
if (typeof props.align !== "number") {
|
|
85
|
-
if (props.xAlign != void 0) {
|
|
86
|
-
if (props.align === void 0) {
|
|
87
|
-
props.align = { x: props.xAlign };
|
|
88
|
-
delete props.xAlign;
|
|
89
|
-
} else {
|
|
90
|
-
props.align.x = props.xAlign;
|
|
91
|
-
delete props.xAlign;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
if (props.yAlign != void 0) {
|
|
95
|
-
if (props.align === void 0) {
|
|
96
|
-
props.align = { y: props.yAlign };
|
|
97
|
-
delete props.yAlign;
|
|
98
|
-
} else {
|
|
99
|
-
props.align.y = props.yAlign;
|
|
100
|
-
delete props.yAlign;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
if (typeof props.percentagePosition !== "number") {
|
|
105
|
-
if (props.xPercentagePosition != void 0) {
|
|
106
|
-
if (props.percentagePosition === void 0) {
|
|
107
|
-
props.percentagePosition = { x: props.xPercentagePosition };
|
|
108
|
-
delete props.xPercentagePosition;
|
|
109
|
-
} else {
|
|
110
|
-
props.percentagePosition.x = props.xPercentagePosition;
|
|
111
|
-
delete props.xPercentagePosition;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
if (props.yPercentagePosition != void 0) {
|
|
115
|
-
if (props.percentagePosition === void 0) {
|
|
116
|
-
props.percentagePosition = { y: props.yPercentagePosition };
|
|
117
|
-
delete props.yPercentagePosition;
|
|
118
|
-
} else {
|
|
119
|
-
props.percentagePosition.y = props.yPercentagePosition;
|
|
120
|
-
delete props.yPercentagePosition;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
return props;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
export {
|
|
128
|
-
AdditionalPositionsExtension,
|
|
129
|
-
analizePositionsExtensionProps
|
|
130
|
-
};
|