bard-legends-framework 1.11.4 → 1.11.5
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/index.d.mts +96 -66
- package/dist/index.d.ts +96 -66
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +5 -4
package/dist/index.d.mts
CHANGED
|
@@ -3,6 +3,7 @@ import { IDAttachable, AttachmentID, Attachable, IdleSingleEvent, IdleSequence,
|
|
|
3
3
|
import { Vector, DynamicID, Vec2, RGBColor, Radian, Rectangle, Grid, GridNeighborType, Line } from 'helpers-lib';
|
|
4
4
|
import p2$1 from 'p2';
|
|
5
5
|
import * as Pixi from 'pixi.js';
|
|
6
|
+
import { LayoutStyles } from '@pixi/layout';
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* Binds a controller to its gateway (the class produced by `Gateway<T>()`). The controller must
|
|
@@ -322,6 +323,7 @@ declare class Game {
|
|
|
322
323
|
readonly devMode: boolean;
|
|
323
324
|
constructor(partialConfiguration?: Partial<GameConfiguration>);
|
|
324
325
|
setup(setupOptions: GameSetupOptions): Promise<void>;
|
|
326
|
+
generateTexture(options: Pixi.GenerateTextureOptions | Pixi.Container): Pixi.Texture;
|
|
325
327
|
setResolution(resolution: number): void;
|
|
326
328
|
}
|
|
327
329
|
|
|
@@ -407,40 +409,17 @@ declare class MusicPlayer extends IDAttachable {
|
|
|
407
409
|
close(): IdleSingleEvent;
|
|
408
410
|
}
|
|
409
411
|
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
PointerUp = "pointerup",
|
|
416
|
-
PointerUpOutside = "pointerupoutside",
|
|
417
|
-
PointerMove = "pointermove",
|
|
418
|
-
PointerCancel = "pointercancel",
|
|
419
|
-
PointerOver = "pointerover",
|
|
420
|
-
PointerOut = "pointerout",
|
|
421
|
-
PointerEnter = "pointerenter",
|
|
422
|
-
PointerLeave = "pointerleave",
|
|
423
|
-
Added = "added",
|
|
424
|
-
Removed = "removed",
|
|
425
|
-
Update = "update",
|
|
426
|
-
Change = "change",
|
|
427
|
-
Wheel = "wheel"
|
|
428
|
-
}
|
|
429
|
-
type ContainerEventTypeToResultType = {
|
|
430
|
-
[K in ContainerEventType]: K extends ContainerEventType.Wheel ? {
|
|
431
|
-
deltaY: number;
|
|
432
|
-
} : undefined;
|
|
433
|
-
};
|
|
434
|
-
declare enum Cursor {
|
|
435
|
-
Default = "default",
|
|
436
|
-
Pointer = "pointer"
|
|
412
|
+
interface PixiDisplayObject {
|
|
413
|
+
x: number;
|
|
414
|
+
y: number;
|
|
415
|
+
rotation: number;
|
|
416
|
+
alpha: number;
|
|
437
417
|
}
|
|
438
|
-
declare abstract class
|
|
439
|
-
protected
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
setSize(value: Vector): this;
|
|
418
|
+
declare abstract class DisplayObjectAttributes extends IDAttachable {
|
|
419
|
+
protected readonly _pixiDisplayObject: PixiDisplayObject;
|
|
420
|
+
protected constructor(_pixiDisplayObject: PixiDisplayObject);
|
|
421
|
+
protected abstract _applyScale(x: number, y: number): void;
|
|
422
|
+
protected abstract _getHoldFromModifier(holdFrom: Vector): Vector;
|
|
444
423
|
/**
|
|
445
424
|
* @param value The position to set
|
|
446
425
|
* @param options.holdFrom An anchor point to hold the position from
|
|
@@ -457,7 +436,6 @@ declare abstract class ContainerAttributes extends IDAttachable {
|
|
|
457
436
|
set x(value: number);
|
|
458
437
|
get y(): number;
|
|
459
438
|
set y(value: number);
|
|
460
|
-
on<T extends ContainerEventType>(eventType: T): Sequence<ContainerEventTypeToResultType[T]>;
|
|
461
439
|
setRotation(value: Radian): this;
|
|
462
440
|
get rotation(): Radian;
|
|
463
441
|
set rotation(value: Radian);
|
|
@@ -466,38 +444,9 @@ declare abstract class ContainerAttributes extends IDAttachable {
|
|
|
466
444
|
*/
|
|
467
445
|
get rotationValue(): number;
|
|
468
446
|
set rotationValue(value: number);
|
|
469
|
-
setZIndex(value: number): this;
|
|
470
|
-
get zIndex(): number;
|
|
471
|
-
set zIndex(value: number);
|
|
472
|
-
setSkewX(radian: Radian): this;
|
|
473
|
-
get skewX(): Radian;
|
|
474
|
-
set skewX(radian: Radian);
|
|
475
|
-
setSkewY(radian: Radian): this;
|
|
476
|
-
get skewY(): Radian;
|
|
477
|
-
set skewY(radian: Radian);
|
|
478
|
-
setSortableChildren(value: boolean): this;
|
|
479
|
-
get sortableChildren(): boolean;
|
|
480
|
-
set sortableChildren(value: boolean);
|
|
481
447
|
setAlpha(value: number): this;
|
|
482
448
|
get alpha(): number;
|
|
483
449
|
set alpha(value: number);
|
|
484
|
-
setInteractive(value: boolean): this;
|
|
485
|
-
get interactive(): boolean;
|
|
486
|
-
set interactive(value: boolean);
|
|
487
|
-
/**
|
|
488
|
-
* Renders this subtree as an isolated render group: its cached render instructions are not
|
|
489
|
-
* rebuilt when other parts of the scene change, and moving the group only updates one transform.
|
|
490
|
-
* Use for subtrees that move as a whole (world under a camera) or rarely change (HUD vs world).
|
|
491
|
-
*/
|
|
492
|
-
setRenderGroup(value?: boolean): this;
|
|
493
|
-
setCursor(value: Cursor): this;
|
|
494
|
-
get cursor(): Cursor;
|
|
495
|
-
set cursor(value: Cursor);
|
|
496
|
-
protected getMask(): Pixi.Container;
|
|
497
|
-
setMask(mask: ContainerAttributes | undefined): this;
|
|
498
|
-
hitTest(stagePosition: Vector): boolean;
|
|
499
|
-
get boundingBox(): Rectangle;
|
|
500
|
-
ignoreBounds(value?: boolean): this;
|
|
501
450
|
setMirror(mirror?: boolean): this;
|
|
502
451
|
get mirror(): boolean;
|
|
503
452
|
set mirror(value: boolean);
|
|
@@ -572,11 +521,40 @@ declare class Sprite extends Container {
|
|
|
572
521
|
download(): this;
|
|
573
522
|
}
|
|
574
523
|
|
|
524
|
+
type LayoutStyle = LayoutStyles;
|
|
525
|
+
declare enum ContainerEventType {
|
|
526
|
+
Click = "click",
|
|
527
|
+
MouseOver = "mouseover",
|
|
528
|
+
MouseOut = "mouseout",
|
|
529
|
+
PointerDown = "pointerdown",
|
|
530
|
+
PointerUp = "pointerup",
|
|
531
|
+
PointerUpOutside = "pointerupoutside",
|
|
532
|
+
PointerMove = "pointermove",
|
|
533
|
+
PointerCancel = "pointercancel",
|
|
534
|
+
PointerOver = "pointerover",
|
|
535
|
+
PointerOut = "pointerout",
|
|
536
|
+
PointerEnter = "pointerenter",
|
|
537
|
+
PointerLeave = "pointerleave",
|
|
538
|
+
Added = "added",
|
|
539
|
+
Removed = "removed",
|
|
540
|
+
Update = "update",
|
|
541
|
+
Change = "change",
|
|
542
|
+
Wheel = "wheel"
|
|
543
|
+
}
|
|
544
|
+
type ContainerEventTypeToResultType = {
|
|
545
|
+
[K in ContainerEventType]: K extends ContainerEventType.Wheel ? {
|
|
546
|
+
deltaY: number;
|
|
547
|
+
} : undefined;
|
|
548
|
+
};
|
|
549
|
+
declare enum Cursor {
|
|
550
|
+
Default = "default",
|
|
551
|
+
Pointer = "pointer"
|
|
552
|
+
}
|
|
575
553
|
interface SetParentOptions {
|
|
576
554
|
addUnder: boolean;
|
|
577
555
|
cropOverflowingParts: boolean;
|
|
578
556
|
}
|
|
579
|
-
declare class Container extends
|
|
557
|
+
declare class Container extends DisplayObjectAttributes {
|
|
580
558
|
protected static allContainers: Map<number, Container>;
|
|
581
559
|
readonly filters: Filters;
|
|
582
560
|
protected addChildTo: Container;
|
|
@@ -584,8 +562,50 @@ declare class Container extends ContainerAttributes {
|
|
|
584
562
|
addUnder: boolean;
|
|
585
563
|
cropOverflowingParts: boolean;
|
|
586
564
|
};
|
|
587
|
-
constructor();
|
|
565
|
+
constructor(pixiContainer?: Pixi.Container);
|
|
588
566
|
destroy(): void;
|
|
567
|
+
protected _applyScale(x: number, y: number): void;
|
|
568
|
+
protected _getHoldFromModifier(holdFrom: Vector): Vector;
|
|
569
|
+
get size(): Vector;
|
|
570
|
+
set size(value: Vector);
|
|
571
|
+
getSize(): Vector;
|
|
572
|
+
setSize(value: Vector): this;
|
|
573
|
+
/**
|
|
574
|
+
* Makes this object a flex item of a LayoutContainer parent, treated as a box measured by its bounds.
|
|
575
|
+
* @param style Optional per-item overrides (alignSelf, margins, width, height...)
|
|
576
|
+
* @returns this
|
|
577
|
+
*/
|
|
578
|
+
setLayout(style?: LayoutStyle): this;
|
|
579
|
+
on<T extends ContainerEventType>(eventType: T): Sequence<ContainerEventTypeToResultType[T]>;
|
|
580
|
+
setZIndex(value: number): this;
|
|
581
|
+
get zIndex(): number;
|
|
582
|
+
set zIndex(value: number);
|
|
583
|
+
setSkewX(radian: Radian): this;
|
|
584
|
+
get skewX(): Radian;
|
|
585
|
+
set skewX(radian: Radian);
|
|
586
|
+
setSkewY(radian: Radian): this;
|
|
587
|
+
get skewY(): Radian;
|
|
588
|
+
set skewY(radian: Radian);
|
|
589
|
+
setSortableChildren(value: boolean): this;
|
|
590
|
+
get sortableChildren(): boolean;
|
|
591
|
+
set sortableChildren(value: boolean);
|
|
592
|
+
setInteractive(value: boolean): this;
|
|
593
|
+
get interactive(): boolean;
|
|
594
|
+
set interactive(value: boolean);
|
|
595
|
+
/**
|
|
596
|
+
* Renders this subtree as an isolated render group: its cached render instructions are not
|
|
597
|
+
* rebuilt when other parts of the scene change, and moving the group only updates one transform.
|
|
598
|
+
* Use for subtrees that move as a whole (world under a camera) or rarely change (HUD vs world).
|
|
599
|
+
*/
|
|
600
|
+
setRenderGroup(value?: boolean): this;
|
|
601
|
+
setCursor(value: Cursor): this;
|
|
602
|
+
get cursor(): Cursor;
|
|
603
|
+
set cursor(value: Cursor);
|
|
604
|
+
protected getMask(): Pixi.Container;
|
|
605
|
+
setMask(mask: Container | undefined): this;
|
|
606
|
+
hitTest(stagePosition: Vector): boolean;
|
|
607
|
+
get boundingBox(): Rectangle;
|
|
608
|
+
ignoreBounds(value?: boolean): this;
|
|
589
609
|
getBoundingMask(): Sprite;
|
|
590
610
|
displayParent(parent: Container | number, partialOptions?: Partial<SetParentOptions>): this;
|
|
591
611
|
}
|
|
@@ -982,6 +1002,16 @@ declare class ScrollMaskUI extends Container {
|
|
|
982
1002
|
constructor(container: Container, size: Vector, padding: number, direction?: ScrollDirection);
|
|
983
1003
|
}
|
|
984
1004
|
|
|
1005
|
+
/**
|
|
1006
|
+
* A flexbox container.
|
|
1007
|
+
*/
|
|
1008
|
+
declare class LayoutContainer extends Container {
|
|
1009
|
+
constructor(style?: LayoutStyle);
|
|
1010
|
+
setLayout(style: LayoutStyle): this;
|
|
1011
|
+
debug(): this;
|
|
1012
|
+
debugBackground(): this;
|
|
1013
|
+
}
|
|
1014
|
+
|
|
985
1015
|
interface KeyboardKeyInfo {
|
|
986
1016
|
readonly key: string;
|
|
987
1017
|
readonly code: string;
|
|
@@ -1342,4 +1372,4 @@ declare abstract class MovablePhysicsEntity extends PhysicsEntity {
|
|
|
1342
1372
|
convertToDTO(): PhysicsBodyDTO;
|
|
1343
1373
|
}
|
|
1344
1374
|
|
|
1345
|
-
export { AdvancedSound, type AdvancedSoundOptions, AnimationFlicker, AnimationInterpolationFunctions, type AnimationOptions, Animations, AnimationsCompletionHandlingType, Animator, type AnimatorAnimation, type AssetDefinition, type AudioAppearTransitionType, BORDER_MATERIAL_NAME, BardLegendsTestingHelper, type BlendMode, type BorderProperties, Camera, CameraGateway, type CircleShapeData, ClosestAvailableSpaceHelper, type CollisionDetails, type CollisionReport, Container, ContainerEventType, ControllerDecorator, type CreateDashedLineOptions, type CreatePhysicsWorldRequestDTO, Cursor, DEFAULT_SHADER_RESOLUTION, DeltaTime, DisplayObjectArray, type DisplayObjectArrayOptions, type DropShadowOptions, Entity, EntityDecorator, type EntityID, type ExplosionHit, FadeInContent, type FadeInContentOptions, FocusingAnimation, Game, Gateway, type GlowEffectOptions, type GlowOptions, type GlowingShapeDefinition, Graphics, type HitTestOptions, ImmovablePhysicsEntity, type InteractingBodyGroups, type KeyboardKeyInfo, KeyboardService, type MapSizeDTO, type MaterialContactDefinition, type MaterialDefinition, MenuEntity, type MenuOptions, MenuUI, MenuView, MouseService, MouseTargetFocusService, MovableEntity, MovablePhysicsEntity, Music, MusicPlayer, type MusicPlayerOptions, type PartialTextOptions, PathFinder, type PathFinderResult, type PhysicsBodyDTO, PhysicsEntity, type PhysicsEntityDefinition, type PhysicsExplosionOptions, PhysicsGateway, PhysicsShapeType, type PhysicsWorldID, Placeholder, type PolygonDefinition, type PolygonShapeData, ROTATIONAL_SPEED_LIMIT, type RayCast, type RayCastHit, ReAnimateHandlingType, type RectangleShapeData, RichText, type RichTextOptions, type RichTextRectangleCut, type RichTextStyles, SOUND_TRANSITION_DURATION, SPEED_LIMIT, Scene, SceneDecorator, ScrollAreaUI, ScrollDirection, type ScrollInContentOptions, ScrollMaskUI, Service, ServiceDecorator, type SetParentOptions, type ShapeDefinition, SingletonEntity, SlideInContent, SlideInContentByIndex, SlideStateAnimation, SlideStateAnimationState, Sound, type SoundDefinition, type SoundID, type SoundIDRegistry, type SoundOptions, Sprite, type SpriteDefinition, type SpriteID, type SpriteIDRegistry, StateAnimation, type StateAnimationOptions, type StateAnimationState, Text, type TextAlignment, type TextOptions, ThroughEmptyStateAnimation, UpdatableContainer, UpdateCycle, VectorFieldPathFinder, VectorSet, View, ViewDecorator, type ViewDecoratorMeta };
|
|
1375
|
+
export { AdvancedSound, type AdvancedSoundOptions, AnimationFlicker, AnimationInterpolationFunctions, type AnimationOptions, Animations, AnimationsCompletionHandlingType, Animator, type AnimatorAnimation, type AssetDefinition, type AudioAppearTransitionType, BORDER_MATERIAL_NAME, BardLegendsTestingHelper, type BlendMode, type BorderProperties, Camera, CameraGateway, type CircleShapeData, ClosestAvailableSpaceHelper, type CollisionDetails, type CollisionReport, Container, ContainerEventType, ControllerDecorator, type CreateDashedLineOptions, type CreatePhysicsWorldRequestDTO, Cursor, DEFAULT_SHADER_RESOLUTION, DeltaTime, DisplayObjectArray, type DisplayObjectArrayOptions, type DropShadowOptions, Entity, EntityDecorator, type EntityID, type ExplosionHit, FadeInContent, type FadeInContentOptions, FocusingAnimation, Game, Gateway, type GlowEffectOptions, type GlowOptions, type GlowingShapeDefinition, Graphics, type HitTestOptions, ImmovablePhysicsEntity, type InteractingBodyGroups, type KeyboardKeyInfo, KeyboardService, LayoutContainer, type LayoutStyle, type MapSizeDTO, type MaterialContactDefinition, type MaterialDefinition, MenuEntity, type MenuOptions, MenuUI, MenuView, MouseService, MouseTargetFocusService, MovableEntity, MovablePhysicsEntity, Music, MusicPlayer, type MusicPlayerOptions, type PartialTextOptions, PathFinder, type PathFinderResult, type PhysicsBodyDTO, PhysicsEntity, type PhysicsEntityDefinition, type PhysicsExplosionOptions, PhysicsGateway, PhysicsShapeType, type PhysicsWorldID, Placeholder, type PolygonDefinition, type PolygonShapeData, ROTATIONAL_SPEED_LIMIT, type RayCast, type RayCastHit, ReAnimateHandlingType, type RectangleShapeData, RichText, type RichTextOptions, type RichTextRectangleCut, type RichTextStyles, SOUND_TRANSITION_DURATION, SPEED_LIMIT, Scene, SceneDecorator, ScrollAreaUI, ScrollDirection, type ScrollInContentOptions, ScrollMaskUI, Service, ServiceDecorator, type SetParentOptions, type ShapeDefinition, SingletonEntity, SlideInContent, SlideInContentByIndex, SlideStateAnimation, SlideStateAnimationState, Sound, type SoundDefinition, type SoundID, type SoundIDRegistry, type SoundOptions, Sprite, type SpriteDefinition, type SpriteID, type SpriteIDRegistry, StateAnimation, type StateAnimationOptions, type StateAnimationState, Text, type TextAlignment, type TextOptions, ThroughEmptyStateAnimation, UpdatableContainer, UpdateCycle, VectorFieldPathFinder, VectorSet, View, ViewDecorator, type ViewDecoratorMeta };
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { IDAttachable, AttachmentID, Attachable, IdleSingleEvent, IdleSequence,
|
|
|
3
3
|
import { Vector, DynamicID, Vec2, RGBColor, Radian, Rectangle, Grid, GridNeighborType, Line } from 'helpers-lib';
|
|
4
4
|
import p2$1 from 'p2';
|
|
5
5
|
import * as Pixi from 'pixi.js';
|
|
6
|
+
import { LayoutStyles } from '@pixi/layout';
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* Binds a controller to its gateway (the class produced by `Gateway<T>()`). The controller must
|
|
@@ -322,6 +323,7 @@ declare class Game {
|
|
|
322
323
|
readonly devMode: boolean;
|
|
323
324
|
constructor(partialConfiguration?: Partial<GameConfiguration>);
|
|
324
325
|
setup(setupOptions: GameSetupOptions): Promise<void>;
|
|
326
|
+
generateTexture(options: Pixi.GenerateTextureOptions | Pixi.Container): Pixi.Texture;
|
|
325
327
|
setResolution(resolution: number): void;
|
|
326
328
|
}
|
|
327
329
|
|
|
@@ -407,40 +409,17 @@ declare class MusicPlayer extends IDAttachable {
|
|
|
407
409
|
close(): IdleSingleEvent;
|
|
408
410
|
}
|
|
409
411
|
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
PointerUp = "pointerup",
|
|
416
|
-
PointerUpOutside = "pointerupoutside",
|
|
417
|
-
PointerMove = "pointermove",
|
|
418
|
-
PointerCancel = "pointercancel",
|
|
419
|
-
PointerOver = "pointerover",
|
|
420
|
-
PointerOut = "pointerout",
|
|
421
|
-
PointerEnter = "pointerenter",
|
|
422
|
-
PointerLeave = "pointerleave",
|
|
423
|
-
Added = "added",
|
|
424
|
-
Removed = "removed",
|
|
425
|
-
Update = "update",
|
|
426
|
-
Change = "change",
|
|
427
|
-
Wheel = "wheel"
|
|
428
|
-
}
|
|
429
|
-
type ContainerEventTypeToResultType = {
|
|
430
|
-
[K in ContainerEventType]: K extends ContainerEventType.Wheel ? {
|
|
431
|
-
deltaY: number;
|
|
432
|
-
} : undefined;
|
|
433
|
-
};
|
|
434
|
-
declare enum Cursor {
|
|
435
|
-
Default = "default",
|
|
436
|
-
Pointer = "pointer"
|
|
412
|
+
interface PixiDisplayObject {
|
|
413
|
+
x: number;
|
|
414
|
+
y: number;
|
|
415
|
+
rotation: number;
|
|
416
|
+
alpha: number;
|
|
437
417
|
}
|
|
438
|
-
declare abstract class
|
|
439
|
-
protected
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
setSize(value: Vector): this;
|
|
418
|
+
declare abstract class DisplayObjectAttributes extends IDAttachable {
|
|
419
|
+
protected readonly _pixiDisplayObject: PixiDisplayObject;
|
|
420
|
+
protected constructor(_pixiDisplayObject: PixiDisplayObject);
|
|
421
|
+
protected abstract _applyScale(x: number, y: number): void;
|
|
422
|
+
protected abstract _getHoldFromModifier(holdFrom: Vector): Vector;
|
|
444
423
|
/**
|
|
445
424
|
* @param value The position to set
|
|
446
425
|
* @param options.holdFrom An anchor point to hold the position from
|
|
@@ -457,7 +436,6 @@ declare abstract class ContainerAttributes extends IDAttachable {
|
|
|
457
436
|
set x(value: number);
|
|
458
437
|
get y(): number;
|
|
459
438
|
set y(value: number);
|
|
460
|
-
on<T extends ContainerEventType>(eventType: T): Sequence<ContainerEventTypeToResultType[T]>;
|
|
461
439
|
setRotation(value: Radian): this;
|
|
462
440
|
get rotation(): Radian;
|
|
463
441
|
set rotation(value: Radian);
|
|
@@ -466,38 +444,9 @@ declare abstract class ContainerAttributes extends IDAttachable {
|
|
|
466
444
|
*/
|
|
467
445
|
get rotationValue(): number;
|
|
468
446
|
set rotationValue(value: number);
|
|
469
|
-
setZIndex(value: number): this;
|
|
470
|
-
get zIndex(): number;
|
|
471
|
-
set zIndex(value: number);
|
|
472
|
-
setSkewX(radian: Radian): this;
|
|
473
|
-
get skewX(): Radian;
|
|
474
|
-
set skewX(radian: Radian);
|
|
475
|
-
setSkewY(radian: Radian): this;
|
|
476
|
-
get skewY(): Radian;
|
|
477
|
-
set skewY(radian: Radian);
|
|
478
|
-
setSortableChildren(value: boolean): this;
|
|
479
|
-
get sortableChildren(): boolean;
|
|
480
|
-
set sortableChildren(value: boolean);
|
|
481
447
|
setAlpha(value: number): this;
|
|
482
448
|
get alpha(): number;
|
|
483
449
|
set alpha(value: number);
|
|
484
|
-
setInteractive(value: boolean): this;
|
|
485
|
-
get interactive(): boolean;
|
|
486
|
-
set interactive(value: boolean);
|
|
487
|
-
/**
|
|
488
|
-
* Renders this subtree as an isolated render group: its cached render instructions are not
|
|
489
|
-
* rebuilt when other parts of the scene change, and moving the group only updates one transform.
|
|
490
|
-
* Use for subtrees that move as a whole (world under a camera) or rarely change (HUD vs world).
|
|
491
|
-
*/
|
|
492
|
-
setRenderGroup(value?: boolean): this;
|
|
493
|
-
setCursor(value: Cursor): this;
|
|
494
|
-
get cursor(): Cursor;
|
|
495
|
-
set cursor(value: Cursor);
|
|
496
|
-
protected getMask(): Pixi.Container;
|
|
497
|
-
setMask(mask: ContainerAttributes | undefined): this;
|
|
498
|
-
hitTest(stagePosition: Vector): boolean;
|
|
499
|
-
get boundingBox(): Rectangle;
|
|
500
|
-
ignoreBounds(value?: boolean): this;
|
|
501
450
|
setMirror(mirror?: boolean): this;
|
|
502
451
|
get mirror(): boolean;
|
|
503
452
|
set mirror(value: boolean);
|
|
@@ -572,11 +521,40 @@ declare class Sprite extends Container {
|
|
|
572
521
|
download(): this;
|
|
573
522
|
}
|
|
574
523
|
|
|
524
|
+
type LayoutStyle = LayoutStyles;
|
|
525
|
+
declare enum ContainerEventType {
|
|
526
|
+
Click = "click",
|
|
527
|
+
MouseOver = "mouseover",
|
|
528
|
+
MouseOut = "mouseout",
|
|
529
|
+
PointerDown = "pointerdown",
|
|
530
|
+
PointerUp = "pointerup",
|
|
531
|
+
PointerUpOutside = "pointerupoutside",
|
|
532
|
+
PointerMove = "pointermove",
|
|
533
|
+
PointerCancel = "pointercancel",
|
|
534
|
+
PointerOver = "pointerover",
|
|
535
|
+
PointerOut = "pointerout",
|
|
536
|
+
PointerEnter = "pointerenter",
|
|
537
|
+
PointerLeave = "pointerleave",
|
|
538
|
+
Added = "added",
|
|
539
|
+
Removed = "removed",
|
|
540
|
+
Update = "update",
|
|
541
|
+
Change = "change",
|
|
542
|
+
Wheel = "wheel"
|
|
543
|
+
}
|
|
544
|
+
type ContainerEventTypeToResultType = {
|
|
545
|
+
[K in ContainerEventType]: K extends ContainerEventType.Wheel ? {
|
|
546
|
+
deltaY: number;
|
|
547
|
+
} : undefined;
|
|
548
|
+
};
|
|
549
|
+
declare enum Cursor {
|
|
550
|
+
Default = "default",
|
|
551
|
+
Pointer = "pointer"
|
|
552
|
+
}
|
|
575
553
|
interface SetParentOptions {
|
|
576
554
|
addUnder: boolean;
|
|
577
555
|
cropOverflowingParts: boolean;
|
|
578
556
|
}
|
|
579
|
-
declare class Container extends
|
|
557
|
+
declare class Container extends DisplayObjectAttributes {
|
|
580
558
|
protected static allContainers: Map<number, Container>;
|
|
581
559
|
readonly filters: Filters;
|
|
582
560
|
protected addChildTo: Container;
|
|
@@ -584,8 +562,50 @@ declare class Container extends ContainerAttributes {
|
|
|
584
562
|
addUnder: boolean;
|
|
585
563
|
cropOverflowingParts: boolean;
|
|
586
564
|
};
|
|
587
|
-
constructor();
|
|
565
|
+
constructor(pixiContainer?: Pixi.Container);
|
|
588
566
|
destroy(): void;
|
|
567
|
+
protected _applyScale(x: number, y: number): void;
|
|
568
|
+
protected _getHoldFromModifier(holdFrom: Vector): Vector;
|
|
569
|
+
get size(): Vector;
|
|
570
|
+
set size(value: Vector);
|
|
571
|
+
getSize(): Vector;
|
|
572
|
+
setSize(value: Vector): this;
|
|
573
|
+
/**
|
|
574
|
+
* Makes this object a flex item of a LayoutContainer parent, treated as a box measured by its bounds.
|
|
575
|
+
* @param style Optional per-item overrides (alignSelf, margins, width, height...)
|
|
576
|
+
* @returns this
|
|
577
|
+
*/
|
|
578
|
+
setLayout(style?: LayoutStyle): this;
|
|
579
|
+
on<T extends ContainerEventType>(eventType: T): Sequence<ContainerEventTypeToResultType[T]>;
|
|
580
|
+
setZIndex(value: number): this;
|
|
581
|
+
get zIndex(): number;
|
|
582
|
+
set zIndex(value: number);
|
|
583
|
+
setSkewX(radian: Radian): this;
|
|
584
|
+
get skewX(): Radian;
|
|
585
|
+
set skewX(radian: Radian);
|
|
586
|
+
setSkewY(radian: Radian): this;
|
|
587
|
+
get skewY(): Radian;
|
|
588
|
+
set skewY(radian: Radian);
|
|
589
|
+
setSortableChildren(value: boolean): this;
|
|
590
|
+
get sortableChildren(): boolean;
|
|
591
|
+
set sortableChildren(value: boolean);
|
|
592
|
+
setInteractive(value: boolean): this;
|
|
593
|
+
get interactive(): boolean;
|
|
594
|
+
set interactive(value: boolean);
|
|
595
|
+
/**
|
|
596
|
+
* Renders this subtree as an isolated render group: its cached render instructions are not
|
|
597
|
+
* rebuilt when other parts of the scene change, and moving the group only updates one transform.
|
|
598
|
+
* Use for subtrees that move as a whole (world under a camera) or rarely change (HUD vs world).
|
|
599
|
+
*/
|
|
600
|
+
setRenderGroup(value?: boolean): this;
|
|
601
|
+
setCursor(value: Cursor): this;
|
|
602
|
+
get cursor(): Cursor;
|
|
603
|
+
set cursor(value: Cursor);
|
|
604
|
+
protected getMask(): Pixi.Container;
|
|
605
|
+
setMask(mask: Container | undefined): this;
|
|
606
|
+
hitTest(stagePosition: Vector): boolean;
|
|
607
|
+
get boundingBox(): Rectangle;
|
|
608
|
+
ignoreBounds(value?: boolean): this;
|
|
589
609
|
getBoundingMask(): Sprite;
|
|
590
610
|
displayParent(parent: Container | number, partialOptions?: Partial<SetParentOptions>): this;
|
|
591
611
|
}
|
|
@@ -982,6 +1002,16 @@ declare class ScrollMaskUI extends Container {
|
|
|
982
1002
|
constructor(container: Container, size: Vector, padding: number, direction?: ScrollDirection);
|
|
983
1003
|
}
|
|
984
1004
|
|
|
1005
|
+
/**
|
|
1006
|
+
* A flexbox container.
|
|
1007
|
+
*/
|
|
1008
|
+
declare class LayoutContainer extends Container {
|
|
1009
|
+
constructor(style?: LayoutStyle);
|
|
1010
|
+
setLayout(style: LayoutStyle): this;
|
|
1011
|
+
debug(): this;
|
|
1012
|
+
debugBackground(): this;
|
|
1013
|
+
}
|
|
1014
|
+
|
|
985
1015
|
interface KeyboardKeyInfo {
|
|
986
1016
|
readonly key: string;
|
|
987
1017
|
readonly code: string;
|
|
@@ -1342,4 +1372,4 @@ declare abstract class MovablePhysicsEntity extends PhysicsEntity {
|
|
|
1342
1372
|
convertToDTO(): PhysicsBodyDTO;
|
|
1343
1373
|
}
|
|
1344
1374
|
|
|
1345
|
-
export { AdvancedSound, type AdvancedSoundOptions, AnimationFlicker, AnimationInterpolationFunctions, type AnimationOptions, Animations, AnimationsCompletionHandlingType, Animator, type AnimatorAnimation, type AssetDefinition, type AudioAppearTransitionType, BORDER_MATERIAL_NAME, BardLegendsTestingHelper, type BlendMode, type BorderProperties, Camera, CameraGateway, type CircleShapeData, ClosestAvailableSpaceHelper, type CollisionDetails, type CollisionReport, Container, ContainerEventType, ControllerDecorator, type CreateDashedLineOptions, type CreatePhysicsWorldRequestDTO, Cursor, DEFAULT_SHADER_RESOLUTION, DeltaTime, DisplayObjectArray, type DisplayObjectArrayOptions, type DropShadowOptions, Entity, EntityDecorator, type EntityID, type ExplosionHit, FadeInContent, type FadeInContentOptions, FocusingAnimation, Game, Gateway, type GlowEffectOptions, type GlowOptions, type GlowingShapeDefinition, Graphics, type HitTestOptions, ImmovablePhysicsEntity, type InteractingBodyGroups, type KeyboardKeyInfo, KeyboardService, type MapSizeDTO, type MaterialContactDefinition, type MaterialDefinition, MenuEntity, type MenuOptions, MenuUI, MenuView, MouseService, MouseTargetFocusService, MovableEntity, MovablePhysicsEntity, Music, MusicPlayer, type MusicPlayerOptions, type PartialTextOptions, PathFinder, type PathFinderResult, type PhysicsBodyDTO, PhysicsEntity, type PhysicsEntityDefinition, type PhysicsExplosionOptions, PhysicsGateway, PhysicsShapeType, type PhysicsWorldID, Placeholder, type PolygonDefinition, type PolygonShapeData, ROTATIONAL_SPEED_LIMIT, type RayCast, type RayCastHit, ReAnimateHandlingType, type RectangleShapeData, RichText, type RichTextOptions, type RichTextRectangleCut, type RichTextStyles, SOUND_TRANSITION_DURATION, SPEED_LIMIT, Scene, SceneDecorator, ScrollAreaUI, ScrollDirection, type ScrollInContentOptions, ScrollMaskUI, Service, ServiceDecorator, type SetParentOptions, type ShapeDefinition, SingletonEntity, SlideInContent, SlideInContentByIndex, SlideStateAnimation, SlideStateAnimationState, Sound, type SoundDefinition, type SoundID, type SoundIDRegistry, type SoundOptions, Sprite, type SpriteDefinition, type SpriteID, type SpriteIDRegistry, StateAnimation, type StateAnimationOptions, type StateAnimationState, Text, type TextAlignment, type TextOptions, ThroughEmptyStateAnimation, UpdatableContainer, UpdateCycle, VectorFieldPathFinder, VectorSet, View, ViewDecorator, type ViewDecoratorMeta };
|
|
1375
|
+
export { AdvancedSound, type AdvancedSoundOptions, AnimationFlicker, AnimationInterpolationFunctions, type AnimationOptions, Animations, AnimationsCompletionHandlingType, Animator, type AnimatorAnimation, type AssetDefinition, type AudioAppearTransitionType, BORDER_MATERIAL_NAME, BardLegendsTestingHelper, type BlendMode, type BorderProperties, Camera, CameraGateway, type CircleShapeData, ClosestAvailableSpaceHelper, type CollisionDetails, type CollisionReport, Container, ContainerEventType, ControllerDecorator, type CreateDashedLineOptions, type CreatePhysicsWorldRequestDTO, Cursor, DEFAULT_SHADER_RESOLUTION, DeltaTime, DisplayObjectArray, type DisplayObjectArrayOptions, type DropShadowOptions, Entity, EntityDecorator, type EntityID, type ExplosionHit, FadeInContent, type FadeInContentOptions, FocusingAnimation, Game, Gateway, type GlowEffectOptions, type GlowOptions, type GlowingShapeDefinition, Graphics, type HitTestOptions, ImmovablePhysicsEntity, type InteractingBodyGroups, type KeyboardKeyInfo, KeyboardService, LayoutContainer, type LayoutStyle, type MapSizeDTO, type MaterialContactDefinition, type MaterialDefinition, MenuEntity, type MenuOptions, MenuUI, MenuView, MouseService, MouseTargetFocusService, MovableEntity, MovablePhysicsEntity, Music, MusicPlayer, type MusicPlayerOptions, type PartialTextOptions, PathFinder, type PathFinderResult, type PhysicsBodyDTO, PhysicsEntity, type PhysicsEntityDefinition, type PhysicsExplosionOptions, PhysicsGateway, PhysicsShapeType, type PhysicsWorldID, Placeholder, type PolygonDefinition, type PolygonShapeData, ROTATIONAL_SPEED_LIMIT, type RayCast, type RayCastHit, ReAnimateHandlingType, type RectangleShapeData, RichText, type RichTextOptions, type RichTextRectangleCut, type RichTextStyles, SOUND_TRANSITION_DURATION, SPEED_LIMIT, Scene, SceneDecorator, ScrollAreaUI, ScrollDirection, type ScrollInContentOptions, ScrollMaskUI, Service, ServiceDecorator, type SetParentOptions, type ShapeDefinition, SingletonEntity, SlideInContent, SlideInContentByIndex, SlideStateAnimation, SlideStateAnimationState, Sound, type SoundDefinition, type SoundID, type SoundIDRegistry, type SoundOptions, Sprite, type SpriteDefinition, type SpriteID, type SpriteIDRegistry, StateAnimation, type StateAnimationOptions, type StateAnimationState, Text, type TextAlignment, type TextOptions, ThroughEmptyStateAnimation, UpdatableContainer, UpdateCycle, VectorFieldPathFinder, VectorSet, View, ViewDecorator, type ViewDecoratorMeta };
|