@galacean/effects-plugin-gui 2.10.0-alpha.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/LICENSE +22 -0
- package/README.md +33 -0
- package/dist/components/gui-window-component.d.ts +15 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/ui-canvas.d.ts +28 -0
- package/dist/components/ui-control.d.ts +40 -0
- package/dist/controls/base-button.d.ts +85 -0
- package/dist/controls/button.d.ts +44 -0
- package/dist/controls/check-button.d.ts +10 -0
- package/dist/controls/checkbox.d.ts +12 -0
- package/dist/controls/color-picker.d.ts +59 -0
- package/dist/controls/color-rect.d.ts +11 -0
- package/dist/controls/enums.d.ts +68 -0
- package/dist/controls/index.d.ts +19 -0
- package/dist/controls/label.d.ts +46 -0
- package/dist/controls/line-edit.d.ts +28 -0
- package/dist/controls/menu-button.d.ts +39 -0
- package/dist/controls/nine-patch-rect.d.ts +35 -0
- package/dist/controls/panel.d.ts +9 -0
- package/dist/controls/popup-menu.d.ts +44 -0
- package/dist/controls/popup.d.ts +23 -0
- package/dist/controls/progress-bar.d.ts +19 -0
- package/dist/controls/slider.d.ts +63 -0
- package/dist/controls/text-edit.d.ts +21 -0
- package/dist/controls/text-input.d.ts +92 -0
- package/dist/controls/texture-rect.d.ts +30 -0
- package/dist/core/control.d.ts +379 -0
- package/dist/core/data.d.ts +88 -0
- package/dist/core/enums.d.ts +42 -0
- package/dist/core/index.d.ts +5 -0
- package/dist/core/roots.d.ts +97 -0
- package/dist/core/theme.d.ts +186 -0
- package/dist/data.d.ts +147 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +10886 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +8 -0
- package/dist/index.min.js.map +1 -0
- package/dist/index.mjs +10858 -0
- package/dist/index.mjs.map +1 -0
- package/dist/layout/aspect-ratio-container.d.ts +26 -0
- package/dist/layout/box-container.d.ts +35 -0
- package/dist/layout/center-container.d.ts +15 -0
- package/dist/layout/enums.d.ts +15 -0
- package/dist/layout/grid-container.d.ts +19 -0
- package/dist/layout/margin-container.d.ts +10 -0
- package/dist/layout/panel-container.d.ts +10 -0
- package/dist/layout/separator.d.ts +19 -0
- package/dist/layout/utils.d.ts +10 -0
- package/dist/plugin/gui-plugin.d.ts +8 -0
- package/dist/plugin/index.d.ts +1 -0
- package/dist/scroll/enums.d.ts +8 -0
- package/dist/scroll/range.d.ts +56 -0
- package/dist/scroll/scroll-bar.d.ts +69 -0
- package/dist/scroll/scroll-container.d.ts +84 -0
- package/dist/theme/default-theme.d.ts +1 -0
- package/dist/theme/index.d.ts +2 -0
- package/package.json +36 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { math } from '@galacean/effects';
|
|
2
|
+
import { Container } from '../core/control';
|
|
3
|
+
import type { AspectRatioContainerData } from '../data';
|
|
4
|
+
import { AspectRatioStretchMode, LayoutAlignment } from './enums';
|
|
5
|
+
/** Fits every visible child into the same rectangle with a fixed width/height ratio. */
|
|
6
|
+
export declare class AspectRatioContainer extends Container {
|
|
7
|
+
static readonly themeType: string;
|
|
8
|
+
private _ratio;
|
|
9
|
+
private _stretchMode;
|
|
10
|
+
private _horizontalAlignment;
|
|
11
|
+
private _verticalAlignment;
|
|
12
|
+
get ratio(): number;
|
|
13
|
+
set ratio(value: number);
|
|
14
|
+
get stretchMode(): AspectRatioStretchMode;
|
|
15
|
+
set stretchMode(value: AspectRatioStretchMode);
|
|
16
|
+
get horizontalAlignment(): LayoutAlignment;
|
|
17
|
+
set horizontalAlignment(value: LayoutAlignment);
|
|
18
|
+
get verticalAlignment(): LayoutAlignment;
|
|
19
|
+
set verticalAlignment(value: LayoutAlignment);
|
|
20
|
+
getMinimumSize(): math.Vector2;
|
|
21
|
+
getDesiredSize(): math.Vector2;
|
|
22
|
+
protected sortChildren(): void;
|
|
23
|
+
private measureChildren;
|
|
24
|
+
private getAlignedOffset;
|
|
25
|
+
fromData(data: AspectRatioContainerData): void;
|
|
26
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { math } from '@galacean/effects';
|
|
2
|
+
import type { Engine } from '@galacean/effects';
|
|
3
|
+
import { Container } from '../core/control';
|
|
4
|
+
import type { BoxContainerData } from '../data';
|
|
5
|
+
import { LayoutAlignment, Orientation } from './enums';
|
|
6
|
+
/** Places visible children in a single horizontal or vertical row. */
|
|
7
|
+
export declare class BoxContainer extends Container {
|
|
8
|
+
static readonly themeType: string;
|
|
9
|
+
private _orientation;
|
|
10
|
+
private _alignment;
|
|
11
|
+
private _reverse;
|
|
12
|
+
get orientation(): Orientation;
|
|
13
|
+
set orientation(value: Orientation);
|
|
14
|
+
get alignment(): LayoutAlignment;
|
|
15
|
+
set alignment(value: LayoutAlignment);
|
|
16
|
+
get reverse(): boolean;
|
|
17
|
+
set reverse(value: boolean);
|
|
18
|
+
getMinimumSize(): math.Vector2;
|
|
19
|
+
getDesiredSize(): math.Vector2;
|
|
20
|
+
protected sortChildren(): void;
|
|
21
|
+
private measureChildren;
|
|
22
|
+
private getMainSize;
|
|
23
|
+
private getCrossSize;
|
|
24
|
+
private isMainExpanded;
|
|
25
|
+
private invalidateMeasurement;
|
|
26
|
+
fromData(data: BoxContainerData): void;
|
|
27
|
+
}
|
|
28
|
+
export declare class HBoxContainer extends BoxContainer {
|
|
29
|
+
static readonly themeType: string;
|
|
30
|
+
constructor(engine: Engine);
|
|
31
|
+
}
|
|
32
|
+
export declare class VBoxContainer extends BoxContainer {
|
|
33
|
+
static readonly themeType: string;
|
|
34
|
+
constructor(engine: Engine);
|
|
35
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { math } from '@galacean/effects';
|
|
2
|
+
import { Container } from '../core/control';
|
|
3
|
+
import type { CenterContainerData } from '../data';
|
|
4
|
+
/** Centers children at their bound minimum size. */
|
|
5
|
+
export declare class CenterContainer extends Container {
|
|
6
|
+
static readonly themeType: string;
|
|
7
|
+
private _useTopLeft;
|
|
8
|
+
get useTopLeft(): boolean;
|
|
9
|
+
set useTopLeft(value: boolean);
|
|
10
|
+
getMinimumSize(): math.Vector2;
|
|
11
|
+
getDesiredSize(): math.Vector2;
|
|
12
|
+
protected sortChildren(): void;
|
|
13
|
+
private measureChildren;
|
|
14
|
+
fromData(data: CenterContainerData): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare enum Orientation {
|
|
2
|
+
Horizontal = 0,
|
|
3
|
+
Vertical = 1
|
|
4
|
+
}
|
|
5
|
+
export declare enum LayoutAlignment {
|
|
6
|
+
Begin = 0,
|
|
7
|
+
Center = 1,
|
|
8
|
+
End = 2
|
|
9
|
+
}
|
|
10
|
+
export declare enum AspectRatioStretchMode {
|
|
11
|
+
WidthControlsHeight = 0,
|
|
12
|
+
HeightControlsWidth = 1,
|
|
13
|
+
Fit = 2,
|
|
14
|
+
Cover = 3
|
|
15
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { math } from '@galacean/effects';
|
|
2
|
+
import { Container } from '../core/control';
|
|
3
|
+
import type { GridContainerData } from '../data';
|
|
4
|
+
/** Places visible children in LTR row-major cells without spanning. */
|
|
5
|
+
export declare class GridContainer extends Container {
|
|
6
|
+
static readonly themeType: string;
|
|
7
|
+
private _columns;
|
|
8
|
+
get columns(): number;
|
|
9
|
+
set columns(value: number);
|
|
10
|
+
getMinimumSize(): math.Vector2;
|
|
11
|
+
getDesiredSize(): math.Vector2;
|
|
12
|
+
protected sortChildren(): void;
|
|
13
|
+
private measureGrid;
|
|
14
|
+
private collectTrackMetrics;
|
|
15
|
+
private allocateTracks;
|
|
16
|
+
private getTrackPositions;
|
|
17
|
+
private invalidateMeasurement;
|
|
18
|
+
fromData(data: GridContainerData): void;
|
|
19
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { math } from '@galacean/effects';
|
|
2
|
+
import { Container } from '../core/control';
|
|
3
|
+
/** Adds four independent margins around every visible child. */
|
|
4
|
+
export declare class MarginContainer extends Container {
|
|
5
|
+
static readonly themeType: string;
|
|
6
|
+
getMinimumSize(): math.Vector2;
|
|
7
|
+
getDesiredSize(): math.Vector2;
|
|
8
|
+
protected sortChildren(): void;
|
|
9
|
+
private measureChildren;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { math } from '@galacean/effects';
|
|
2
|
+
import { Container } from '../core/control';
|
|
3
|
+
export declare class PanelContainer extends Container {
|
|
4
|
+
static readonly themeType: string;
|
|
5
|
+
getMinimumSize(): math.Vector2;
|
|
6
|
+
getDesiredSize(): math.Vector2;
|
|
7
|
+
draw(): void;
|
|
8
|
+
protected sortChildren(): void;
|
|
9
|
+
private measureChildren;
|
|
10
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { math } from '@galacean/effects';
|
|
2
|
+
import type { Engine } from '@galacean/effects';
|
|
3
|
+
import { Control } from '../core/control';
|
|
4
|
+
declare abstract class Separator extends Control {
|
|
5
|
+
private readonly vertical;
|
|
6
|
+
constructor(engine: Engine, vertical: boolean);
|
|
7
|
+
getMinimumSize(): math.Vector2;
|
|
8
|
+
getDesiredSize(): math.Vector2;
|
|
9
|
+
draw(): void;
|
|
10
|
+
}
|
|
11
|
+
export declare class HSeparator extends Separator {
|
|
12
|
+
static readonly themeType: string;
|
|
13
|
+
constructor(engine: Engine);
|
|
14
|
+
}
|
|
15
|
+
export declare class VSeparator extends Separator {
|
|
16
|
+
static readonly themeType: string;
|
|
17
|
+
constructor(engine: Engine);
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare function assertFinite(name: string, value: number): void;
|
|
2
|
+
export declare function assertEnumValue(name: string, value: number, maximum: number): void;
|
|
3
|
+
export declare function sum(values: number[]): number;
|
|
4
|
+
/**
|
|
5
|
+
* Grows slots by weight, removing capped slots and redistributing their
|
|
6
|
+
* unused share. Fractional pixels are accumulated and the last slot absorbs
|
|
7
|
+
* the remaining numerical error when the supplied space is integral.
|
|
8
|
+
*/
|
|
9
|
+
export declare function growSlots(sizes: number[], ceilings: number[], weights: number[], extra: number, integerPixels: boolean): number;
|
|
10
|
+
export declare function alignmentOffset(alignment: number, remaining: number): number;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Plugin } from '@galacean/effects';
|
|
2
|
+
import type { Composition, Engine } from '@galacean/effects';
|
|
3
|
+
export declare class GUIPlugin extends Plugin {
|
|
4
|
+
order: number;
|
|
5
|
+
name: string;
|
|
6
|
+
onEngineCreated(engine: Engine): void;
|
|
7
|
+
onCompositionCreating(composition: Composition): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './gui-plugin';
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { Engine, EventEmitterListener } from '@galacean/effects';
|
|
2
|
+
import { Control } from '../core/control';
|
|
3
|
+
import type { ControlEvent } from '../core/control';
|
|
4
|
+
import type { RangeData } from '../data';
|
|
5
|
+
export type RangeEvent = ControlEvent & {
|
|
6
|
+
changed: [];
|
|
7
|
+
valueChanged: [value: number];
|
|
8
|
+
};
|
|
9
|
+
/** Numeric value model shared by scroll bars and future slider controls. */
|
|
10
|
+
export declare class Range extends Control {
|
|
11
|
+
static readonly themeType: string;
|
|
12
|
+
private shared;
|
|
13
|
+
private _rounded;
|
|
14
|
+
private suppressSignals;
|
|
15
|
+
private readonly rangeEventEmitter;
|
|
16
|
+
constructor(engine: Engine);
|
|
17
|
+
get minValue(): number;
|
|
18
|
+
set minValue(value: number);
|
|
19
|
+
get maxValue(): number;
|
|
20
|
+
set maxValue(value: number);
|
|
21
|
+
get step(): number;
|
|
22
|
+
set step(value: number);
|
|
23
|
+
get page(): number;
|
|
24
|
+
set page(value: number);
|
|
25
|
+
get value(): number;
|
|
26
|
+
set value(value: number);
|
|
27
|
+
get ratio(): number;
|
|
28
|
+
set ratio(value: number);
|
|
29
|
+
get exponentialRatio(): boolean;
|
|
30
|
+
set exponentialRatio(value: boolean);
|
|
31
|
+
get rounded(): boolean;
|
|
32
|
+
set rounded(value: boolean);
|
|
33
|
+
get allowGreater(): boolean;
|
|
34
|
+
set allowGreater(value: boolean);
|
|
35
|
+
get allowLesser(): boolean;
|
|
36
|
+
set allowLesser(value: boolean);
|
|
37
|
+
on<E extends keyof RangeEvent>(eventName: E, listener: EventEmitterListener<RangeEvent[E]>): void;
|
|
38
|
+
off<E extends keyof RangeEvent>(eventName: E, listener: EventEmitterListener<RangeEvent[E]>): void;
|
|
39
|
+
setValue(value: number): void;
|
|
40
|
+
setValueNoSignal(value: number): void;
|
|
41
|
+
setMinValue(value: number): void;
|
|
42
|
+
setMaxValue(value: number): void;
|
|
43
|
+
setStep(value: number): void;
|
|
44
|
+
setPage(value: number): void;
|
|
45
|
+
setAsRatio(ratio: number): void;
|
|
46
|
+
getAsRatio(): number;
|
|
47
|
+
share(range: Range): void;
|
|
48
|
+
unshare(): void;
|
|
49
|
+
dispose(): void;
|
|
50
|
+
protected valueChanged(value: number): void;
|
|
51
|
+
private calculateValue;
|
|
52
|
+
private attachShared;
|
|
53
|
+
private notifyValueChanged;
|
|
54
|
+
private notifyChanged;
|
|
55
|
+
fromData(data: RangeData): void;
|
|
56
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { math } from '@galacean/effects';
|
|
2
|
+
import type { Engine, EventEmitterListener, InputEventKey, InputEventMouseButton, InputEventMouseMotion } from '@galacean/effects';
|
|
3
|
+
import { Orientation } from '../layout/enums';
|
|
4
|
+
import { Range } from './range';
|
|
5
|
+
import type { RangeEvent } from './range';
|
|
6
|
+
import type { ScrollBarData } from '../data';
|
|
7
|
+
export type ScrollBarEvent = RangeEvent & {
|
|
8
|
+
scrolling: [];
|
|
9
|
+
};
|
|
10
|
+
/** A horizontal or vertical range scroll bar. */
|
|
11
|
+
export declare class ScrollBar extends Range {
|
|
12
|
+
static readonly themeType: string;
|
|
13
|
+
static readonly pageDivisor = 8;
|
|
14
|
+
private readonly scrollBarEventEmitter;
|
|
15
|
+
private _orientation;
|
|
16
|
+
private _customStep;
|
|
17
|
+
private highlight;
|
|
18
|
+
private decrementActive;
|
|
19
|
+
private incrementActive;
|
|
20
|
+
private dragging;
|
|
21
|
+
private dragPosition;
|
|
22
|
+
private dragRatio;
|
|
23
|
+
constructor(engine: Engine, orientation?: Orientation);
|
|
24
|
+
get orientation(): Orientation;
|
|
25
|
+
set orientation(value: Orientation);
|
|
26
|
+
get customStep(): number;
|
|
27
|
+
set customStep(value: number);
|
|
28
|
+
on<E extends keyof ScrollBarEvent>(eventName: E, listener: EventEmitterListener<ScrollBarEvent[E]>): void;
|
|
29
|
+
off<E extends keyof ScrollBarEvent>(eventName: E, listener: EventEmitterListener<ScrollBarEvent[E]>): void;
|
|
30
|
+
scroll(amount: number): void;
|
|
31
|
+
scrollTo(position: number): void;
|
|
32
|
+
getMinimumSize(): math.Vector2;
|
|
33
|
+
draw(): void;
|
|
34
|
+
onMouseEnter(location: math.Vector2): void;
|
|
35
|
+
onMouseMove(event: InputEventMouseMotion): void;
|
|
36
|
+
onMouseLeave(): void;
|
|
37
|
+
onMouseDown(event: InputEventMouseButton): void;
|
|
38
|
+
onMouseUp(event: InputEventMouseButton): void;
|
|
39
|
+
onMouseWheel(event: InputEventMouseButton): void;
|
|
40
|
+
onKeyDown(event: InputEventKey): void;
|
|
41
|
+
onScrollBegin(): void;
|
|
42
|
+
private getAxis;
|
|
43
|
+
private getAxisSize;
|
|
44
|
+
private getIncrement;
|
|
45
|
+
private getPageIncrement;
|
|
46
|
+
private getTrackSize;
|
|
47
|
+
private getAreaSize;
|
|
48
|
+
private getGrabberSize;
|
|
49
|
+
private getGrabberMinimumSize;
|
|
50
|
+
private getGrabberOffset;
|
|
51
|
+
private getGrabberRect;
|
|
52
|
+
private getTrackStartMargin;
|
|
53
|
+
private getCrossStartPadding;
|
|
54
|
+
private getCrossEndPadding;
|
|
55
|
+
private updateHighlight;
|
|
56
|
+
private drawButtonIcon;
|
|
57
|
+
private getButtonIcon;
|
|
58
|
+
private getButtonAxisSize;
|
|
59
|
+
private getButtonCrossSize;
|
|
60
|
+
fromData(data: ScrollBarData): void;
|
|
61
|
+
}
|
|
62
|
+
export declare class HScrollBar extends ScrollBar {
|
|
63
|
+
static readonly themeType: string;
|
|
64
|
+
constructor(engine: Engine);
|
|
65
|
+
}
|
|
66
|
+
export declare class VScrollBar extends ScrollBar {
|
|
67
|
+
static readonly themeType: string;
|
|
68
|
+
constructor(engine: Engine);
|
|
69
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { math } from '@galacean/effects';
|
|
2
|
+
import type { Engine, EventEmitterListener, InputEventMouseButton, InputEventScreenDrag, InputEventScreenTouch } from '@galacean/effects';
|
|
3
|
+
import { Container } from '../core/control';
|
|
4
|
+
import type { Control, ControlEvent, RootControl } from '../core/control';
|
|
5
|
+
import { ScrollMode } from './enums';
|
|
6
|
+
import { HScrollBar, VScrollBar } from './scroll-bar';
|
|
7
|
+
import type { ScrollContainerData } from '../data';
|
|
8
|
+
export type ScrollContainerEvent = ControlEvent & {
|
|
9
|
+
scrollStarted: [];
|
|
10
|
+
scrollEnded: [];
|
|
11
|
+
};
|
|
12
|
+
/** Clips and scrolls its content children using two internal Range scroll bars. */
|
|
13
|
+
export declare class ScrollContainer extends Container {
|
|
14
|
+
static readonly themeType: string;
|
|
15
|
+
private readonly scrollContainerEventEmitter;
|
|
16
|
+
private readonly horizontalBar;
|
|
17
|
+
private readonly verticalBar;
|
|
18
|
+
private _horizontalScrollMode;
|
|
19
|
+
private _verticalScrollMode;
|
|
20
|
+
private _scrollHorizontalByDefault;
|
|
21
|
+
private _deadzone;
|
|
22
|
+
private _followFocus;
|
|
23
|
+
private focusRoot;
|
|
24
|
+
private touchIndex;
|
|
25
|
+
private touchDecelerating;
|
|
26
|
+
private beyondDeadzone;
|
|
27
|
+
private readonly dragSpeed;
|
|
28
|
+
private readonly dragAccum;
|
|
29
|
+
private readonly dragFrom;
|
|
30
|
+
private readonly lastDragAccum;
|
|
31
|
+
private motionSampleTime;
|
|
32
|
+
private viewportWidth;
|
|
33
|
+
private viewportHeight;
|
|
34
|
+
private readonly scrollMoved;
|
|
35
|
+
private readonly controlStateChanged;
|
|
36
|
+
private readonly focusOwnerChanged;
|
|
37
|
+
constructor(engine: Engine);
|
|
38
|
+
get hScroll(): number;
|
|
39
|
+
set hScroll(value: number);
|
|
40
|
+
get vScroll(): number;
|
|
41
|
+
set vScroll(value: number);
|
|
42
|
+
get horizontalScrollMode(): ScrollMode;
|
|
43
|
+
set horizontalScrollMode(value: ScrollMode);
|
|
44
|
+
get verticalScrollMode(): ScrollMode;
|
|
45
|
+
set verticalScrollMode(value: ScrollMode);
|
|
46
|
+
get horizontalCustomStep(): number;
|
|
47
|
+
set horizontalCustomStep(value: number);
|
|
48
|
+
get verticalCustomStep(): number;
|
|
49
|
+
set verticalCustomStep(value: number);
|
|
50
|
+
get scrollHorizontalByDefault(): boolean;
|
|
51
|
+
set scrollHorizontalByDefault(value: boolean);
|
|
52
|
+
get deadzone(): number;
|
|
53
|
+
set deadzone(value: number);
|
|
54
|
+
get followFocus(): boolean;
|
|
55
|
+
set followFocus(value: boolean);
|
|
56
|
+
on<E extends keyof ScrollContainerEvent>(eventName: E, listener: EventEmitterListener<ScrollContainerEvent[E]>): void;
|
|
57
|
+
off<E extends keyof ScrollContainerEvent>(eventName: E, listener: EventEmitterListener<ScrollContainerEvent[E]>): void;
|
|
58
|
+
getHScrollBar(): HScrollBar;
|
|
59
|
+
getVScrollBar(): VScrollBar;
|
|
60
|
+
intersectsChildContent(child: Control, position: math.Vector2): boolean;
|
|
61
|
+
ensureControlVisible(control: Control): void;
|
|
62
|
+
getMinimumSize(): math.Vector2;
|
|
63
|
+
getDesiredSize(): math.Vector2;
|
|
64
|
+
onMouseWheel(event: InputEventMouseButton): void;
|
|
65
|
+
onTouchDown(event: InputEventScreenTouch): void;
|
|
66
|
+
onTouchMove(event: InputEventScreenDrag): void;
|
|
67
|
+
onTouchUp(event: InputEventScreenTouch): void;
|
|
68
|
+
update(deltaTime: number): void;
|
|
69
|
+
dispose(): void;
|
|
70
|
+
protected drawChildren(): void;
|
|
71
|
+
protected getLayoutChildren(): Control[];
|
|
72
|
+
protected onRootChanged(previousRoot: RootControl | null, nextRoot: RootControl | null): void;
|
|
73
|
+
protected sortChildren(): void;
|
|
74
|
+
private measureContent;
|
|
75
|
+
private getLargestContentSize;
|
|
76
|
+
private resolveLayout;
|
|
77
|
+
private invalidateScrollLayout;
|
|
78
|
+
private isContentDescendant;
|
|
79
|
+
private notifyContentScroll;
|
|
80
|
+
private updateDragVelocity;
|
|
81
|
+
private updateInertia;
|
|
82
|
+
private cancelTouchDrag;
|
|
83
|
+
fromData(data: ScrollContainerData): void;
|
|
84
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@galacean/effects-plugin-gui",
|
|
3
|
+
"version": "2.10.0-alpha.5",
|
|
4
|
+
"description": "GUI controls and layout containers for Galacean Effects",
|
|
5
|
+
"module": "./dist/index.mjs",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"browser": "./dist/index.min.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": "./dist/index.mjs",
|
|
15
|
+
"require": "./dist/index.js",
|
|
16
|
+
"types": "./dist/index.d.ts"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"contributors": [],
|
|
20
|
+
"author": "Ant Group CO., Ltd.",
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"publishConfig": {
|
|
23
|
+
"access": "public",
|
|
24
|
+
"registry": "https://registry.npmjs.org"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@galacean/effects": "2.10.0-alpha.5"
|
|
28
|
+
},
|
|
29
|
+
"scripts": {
|
|
30
|
+
"prebuild": "pnpm clean",
|
|
31
|
+
"build": "pnpm build:declaration && pnpm build:module",
|
|
32
|
+
"build:module": "rollup -c",
|
|
33
|
+
"build:declaration": "tsc -d --emitDeclarationOnly",
|
|
34
|
+
"clean": "rimraf dist && rimraf \"*+(.tsbuildinfo)\""
|
|
35
|
+
}
|
|
36
|
+
}
|