@wcardinal/wcardinal-ui 0.407.2 → 0.409.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/types/wcardinal/ui/d-pagination.d.ts +41 -1
- package/dist/types/wcardinal/ui/shape/e-shape-buffer.d.ts +3 -9
- package/dist/types/wcardinal/ui/shape/e-shape-container.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/build-bar.d.ts +1 -2
- package/dist/types/wcardinal/ui/shape/variant/build-circle.d.ts +1 -2
- package/dist/types/wcardinal/ui/shape/variant/build-color.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/build-image-sdf.d.ts +0 -1
- package/dist/types/wcardinal/ui/shape/variant/build-line-of-any.d.ts +17 -1
- package/dist/types/wcardinal/ui/shape/variant/build-line.d.ts +2 -3
- package/dist/types/wcardinal/ui/shape/variant/build-null.d.ts +0 -1
- package/dist/types/wcardinal/ui/shape/variant/build-rectangle-rounded.d.ts +2 -3
- package/dist/types/wcardinal/ui/shape/variant/build-rectangle.d.ts +4 -5
- package/dist/types/wcardinal/ui/shape/variant/build-semicircle.d.ts +1 -2
- package/dist/types/wcardinal/ui/shape/variant/build-text.d.ts +0 -1
- package/dist/types/wcardinal/ui/shape/variant/build-triangle-rounded.d.ts +1 -2
- package/dist/types/wcardinal/ui/shape/variant/build-triangle.d.ts +1 -2
- package/dist/types/wcardinal/ui/shape/variant/builder-bar.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/builder-base.d.ts +1 -2
- package/dist/types/wcardinal/ui/shape/variant/builder-line-of-any.d.ts +1 -2
- package/dist/types/wcardinal/ui/shape/variant/builder-line-of-rectangle-roundeds.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/builder-line-of-rectangles.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/builder-line-of-triangle-roundeds.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/builder-line.d.ts +1 -2
- package/dist/types/wcardinal/ui/shape/variant/builder-marker-base.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/builder-marker-rectangle.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/builder-rectangle-pivoted.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/builder-rectangle-rounded.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/builder-rectangle.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/builder-text.d.ts +1 -2
- package/dist/types/wcardinal/ui/shape/variant/builder-triangle-rounded.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/builder.d.ts +9 -18
- package/dist/types/wcardinal/ui/shape/variant/index.d.ts +0 -1
- package/dist/types/wcardinal/ui/shape/variant/to-dash.d.ts +1 -2
- package/dist/types/wcardinal/ui/shape/variant/to-normal-packed.d.ts +1 -0
- package/dist/types/wcardinal/ui/shape/variant/to-normal.d.ts +1 -0
- package/dist/types/wcardinal/ui/shape/variant/to-packed.d.ts +2 -0
- package/dist/types/wcardinal/ui/shape/variant/to-vector-length.d.ts +1 -0
- package/dist/types/wcardinal/ui/shape/variant/to-vector.d.ts +1 -0
- package/dist/wcardinal/ui/d-pagination.js +59 -7
- package/dist/wcardinal/ui/d-pagination.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-buffer.js +10 -30
- package/dist/wcardinal/ui/shape/e-shape-buffer.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-container.js +1 -1
- package/dist/wcardinal/ui/shape/e-shape-container.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-renderer.js +4 -5
- package/dist/wcardinal/ui/shape/e-shape-renderer.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/build-bar.js +37 -63
- package/dist/wcardinal/ui/shape/variant/build-bar.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/build-circle.js +63 -40
- package/dist/wcardinal/ui/shape/variant/build-circle.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/build-color.js +8 -11
- package/dist/wcardinal/ui/shape/variant/build-color.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/build-image-sdf.js +30 -37
- package/dist/wcardinal/ui/shape/variant/build-image-sdf.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/build-line-of-any.js +244 -25
- package/dist/wcardinal/ui/shape/variant/build-line-of-any.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/build-line.js +149 -129
- package/dist/wcardinal/ui/shape/variant/build-line.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/build-null.js +0 -7
- package/dist/wcardinal/ui/shape/variant/build-null.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/build-rectangle-rounded.js +917 -849
- package/dist/wcardinal/ui/shape/variant/build-rectangle-rounded.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/build-rectangle.js +279 -353
- package/dist/wcardinal/ui/shape/variant/build-rectangle.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/build-semicircle.js +45 -31
- package/dist/wcardinal/ui/shape/variant/build-semicircle.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/build-text.js +6 -13
- package/dist/wcardinal/ui/shape/variant/build-text.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/build-triangle-rounded.js +255 -128
- package/dist/wcardinal/ui/shape/variant/build-triangle-rounded.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/build-triangle.js +55 -35
- package/dist/wcardinal/ui/shape/variant/build-triangle.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-bar.js +8 -11
- package/dist/wcardinal/ui/shape/variant/builder-bar.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-base.js +18 -22
- package/dist/wcardinal/ui/shape/variant/builder-base.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-circle.js +4 -7
- package/dist/wcardinal/ui/shape/variant/builder-circle.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-image-sdf.js +3 -6
- package/dist/wcardinal/ui/shape/variant/builder-image-sdf.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-line-of-any.js +13 -17
- package/dist/wcardinal/ui/shape/variant/builder-line-of-any.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-line-of-circles.js +5 -12
- package/dist/wcardinal/ui/shape/variant/builder-line-of-circles.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-line-of-rectangle-roundeds.js +10 -26
- package/dist/wcardinal/ui/shape/variant/builder-line-of-rectangle-roundeds.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-line-of-rectangles.js +9 -25
- package/dist/wcardinal/ui/shape/variant/builder-line-of-rectangles.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-line-of-triangle-roundeds.js +9 -25
- package/dist/wcardinal/ui/shape/variant/builder-line-of-triangle-roundeds.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-line-of-triangles.js +5 -12
- package/dist/wcardinal/ui/shape/variant/builder-line-of-triangles.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-line.js +13 -27
- package/dist/wcardinal/ui/shape/variant/builder-line.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-marker-base.js +27 -19
- package/dist/wcardinal/ui/shape/variant/builder-marker-base.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-marker-circle.js +4 -7
- package/dist/wcardinal/ui/shape/variant/builder-marker-circle.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-marker-rectangle.js +7 -13
- package/dist/wcardinal/ui/shape/variant/builder-marker-rectangle.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-marker-triangle.js +4 -7
- package/dist/wcardinal/ui/shape/variant/builder-marker-triangle.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-rectangle-pivoted.js +7 -13
- package/dist/wcardinal/ui/shape/variant/builder-rectangle-pivoted.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-rectangle-rounded.js +6 -12
- package/dist/wcardinal/ui/shape/variant/builder-rectangle-rounded.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-rectangle.js +7 -13
- package/dist/wcardinal/ui/shape/variant/builder-rectangle.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-semicircle.js +4 -7
- package/dist/wcardinal/ui/shape/variant/builder-semicircle.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-text.js +19 -28
- package/dist/wcardinal/ui/shape/variant/builder-text.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-triangle-rounded.js +7 -12
- package/dist/wcardinal/ui/shape/variant/builder-triangle-rounded.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-triangle.js +4 -7
- package/dist/wcardinal/ui/shape/variant/builder-triangle.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder.js +18 -14
- package/dist/wcardinal/ui/shape/variant/builder.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/index.js +0 -1
- package/dist/wcardinal/ui/shape/variant/index.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/to-dash.js +8 -9
- package/dist/wcardinal/ui/shape/variant/to-dash.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/to-normal-packed.js +7 -0
- package/dist/wcardinal/ui/shape/variant/to-normal-packed.js.map +1 -0
- package/dist/wcardinal/ui/shape/variant/to-normal.js +15 -0
- package/dist/wcardinal/ui/shape/variant/to-normal.js.map +1 -0
- package/dist/wcardinal/ui/shape/variant/to-packed.js +7 -0
- package/dist/wcardinal/ui/shape/variant/to-packed.js.map +1 -0
- package/dist/wcardinal/ui/shape/variant/to-vector-length.js +4 -0
- package/dist/wcardinal/ui/shape/variant/to-vector-length.js.map +1 -0
- package/dist/wcardinal/ui/shape/variant/to-vector.js +6 -0
- package/dist/wcardinal/ui/shape/variant/to-vector.js.map +1 -0
- package/dist/wcardinal-ui-theme-dark-en-us.js +1 -1
- package/dist/wcardinal-ui-theme-dark-en-us.min.js +1 -1
- package/dist/wcardinal-ui-theme-dark-ja-jp.js +1 -1
- package/dist/wcardinal-ui-theme-dark-ja-jp.min.js +1 -1
- package/dist/wcardinal-ui-theme-dark.js +1 -1
- package/dist/wcardinal-ui-theme-dark.min.js +1 -1
- package/dist/wcardinal-ui-theme-white-en-us.js +1 -1
- package/dist/wcardinal-ui-theme-white-en-us.min.js +1 -1
- package/dist/wcardinal-ui-theme-white-ja-jp.js +1 -1
- package/dist/wcardinal-ui-theme-white-ja-jp.min.js +1 -1
- package/dist/wcardinal-ui-theme-white.js +1 -1
- package/dist/wcardinal-ui-theme-white.min.js +1 -1
- package/dist/wcardinal-ui.cjs.js +2365 -2101
- package/dist/wcardinal-ui.js +2361 -2097
- package/dist/wcardinal-ui.min.js +2 -2
- package/dist/wcardinal-ui.min.js.map +1 -1
- package/package.json +1 -1
- package/dist/types/wcardinal/ui/shape/variant/copy-clipping.d.ts +0 -1
- package/dist/wcardinal/ui/shape/variant/copy-clipping.js +0 -20
- package/dist/wcardinal/ui/shape/variant/copy-clipping.js.map +0 -1
|
@@ -141,16 +141,56 @@ export declare class DPagination<THEME extends DThemePagination = DThemePaginati
|
|
|
141
141
|
protected get buttonLast(): DButton<string> | null;
|
|
142
142
|
protected newButtonLast(): DButton<string> | null;
|
|
143
143
|
protected onButtonLastActive(): void;
|
|
144
|
-
|
|
144
|
+
/**
|
|
145
|
+
* Goes to the last page.
|
|
146
|
+
* Unlike {@link #value}, this method emits the change event if silently is not true.
|
|
147
|
+
*
|
|
148
|
+
* @param silently true to suppress the change event
|
|
149
|
+
* @returns true if succeeded.
|
|
150
|
+
*/
|
|
151
|
+
goToLast(silently?: boolean): boolean;
|
|
152
|
+
/**
|
|
153
|
+
* Goes to the given page.
|
|
154
|
+
* Unlike {@link #value}, this method emits the change event if silently is not true.
|
|
155
|
+
*
|
|
156
|
+
* @param index a page index
|
|
157
|
+
* @param silently true to suppress the change event
|
|
158
|
+
* @returns this
|
|
159
|
+
*/
|
|
160
|
+
goTo(index: number, silently?: boolean): boolean;
|
|
145
161
|
protected get buttonNext(): DButton<string> | null;
|
|
146
162
|
protected newButtonNext(): DButton<string> | null;
|
|
147
163
|
protected onButtonNextActive(): void;
|
|
164
|
+
/**
|
|
165
|
+
* Goes to the next page.
|
|
166
|
+
* Unlike {@link #value}, this method emits the change event if silently is not true.
|
|
167
|
+
*
|
|
168
|
+
* @param silently true to suppress the change event
|
|
169
|
+
* @returns true if succeeded.
|
|
170
|
+
*/
|
|
171
|
+
goToNext(silently?: boolean): boolean;
|
|
148
172
|
protected get buttonPrevious(): DButton<string> | null;
|
|
149
173
|
protected newButtonPrevious(): DButton<string> | null;
|
|
150
174
|
protected onButtonPreviousActive(): void;
|
|
175
|
+
/**
|
|
176
|
+
* Goes to the previous page.
|
|
177
|
+
* Unlike {@link #value}, this method emits the change event if silently is not true.
|
|
178
|
+
*
|
|
179
|
+
* @param silently true to suppress the change event
|
|
180
|
+
* @returns true if succeeded.
|
|
181
|
+
*/
|
|
182
|
+
goToPrevious(silently?: boolean): boolean;
|
|
151
183
|
protected get buttonTop(): DButton<string> | null;
|
|
152
184
|
protected newButtonTop(): DButton<string> | null;
|
|
153
185
|
protected onButtonTopActive(): void;
|
|
186
|
+
/**
|
|
187
|
+
* Goes to the top page.
|
|
188
|
+
* Unlike {@link #value}, this method emits the change event if silently is not true.
|
|
189
|
+
*
|
|
190
|
+
* @param silently true to suppress the change event
|
|
191
|
+
* @returns true if succeeded.
|
|
192
|
+
*/
|
|
193
|
+
goToTop(silently?: boolean): boolean;
|
|
154
194
|
protected newButtonPage(): DButton<number>;
|
|
155
195
|
protected get buttonPages0(): DButton<number>[];
|
|
156
196
|
protected newButtonPages0(): DButton<number>[];
|
|
@@ -6,14 +6,10 @@ export declare class EShapeBuffer {
|
|
|
6
6
|
protected _vertexCapacity: number;
|
|
7
7
|
protected _vertexCount: number;
|
|
8
8
|
protected _vertexBuffer: Buffer | null;
|
|
9
|
-
clippings: Float32Array;
|
|
10
|
-
protected _clippingBuffer: Buffer | null;
|
|
11
9
|
steps: Float32Array;
|
|
12
10
|
protected _stepBuffer: Buffer | null;
|
|
13
|
-
|
|
14
|
-
protected
|
|
15
|
-
colorStrokes: Float32Array;
|
|
16
|
-
protected _colorStrokeBuffer: Buffer | null;
|
|
11
|
+
colors: Float32Array;
|
|
12
|
+
protected _colorBuffer: Buffer | null;
|
|
17
13
|
uvs: Float32Array;
|
|
18
14
|
protected _uvBuffer: Buffer | null;
|
|
19
15
|
indices: Uint16Array | Uint32Array;
|
|
@@ -26,10 +22,8 @@ export declare class EShapeBuffer {
|
|
|
26
22
|
protected _builder: EShapeBufferUnitBuilder;
|
|
27
23
|
constructor(ntriangles: number, renderer: Renderer);
|
|
28
24
|
updateVertices(): void;
|
|
29
|
-
updateClippings(): void;
|
|
30
25
|
updateSteps(): void;
|
|
31
|
-
|
|
32
|
-
updateColorStrokes(): void;
|
|
26
|
+
updateColors(): void;
|
|
33
27
|
updateUvs(): void;
|
|
34
28
|
updateIndices(): void;
|
|
35
29
|
protected getGeometry(): Geometry;
|
|
@@ -32,7 +32,7 @@ export declare class EShapeContainer extends DisplayObject {
|
|
|
32
32
|
getShapeScale(): number;
|
|
33
33
|
toPixelScale(resolution: number): number;
|
|
34
34
|
getPixelScale(): number;
|
|
35
|
-
|
|
35
|
+
toAntialiasWeight(resolution: number): number;
|
|
36
36
|
hitTest(global: IPoint, onHit?: (shape: EShape) => boolean): EShape | null;
|
|
37
37
|
hitTestBBox(global: IPoint, onHit?: (shape: EShape) => boolean): EShape | null;
|
|
38
38
|
destroy(): void;
|
|
@@ -2,7 +2,6 @@ import { Matrix, TextureUvs } from "pixi.js";
|
|
|
2
2
|
import { EShapeStrokeStyle } from "../e-shape-stroke-style";
|
|
3
3
|
export declare const BAR_VERTEX_COUNT = 4;
|
|
4
4
|
export declare const BAR_INDEX_COUNT = 2;
|
|
5
|
-
export declare const buildBarClipping: (clippings: Float32Array, voffset: number) => void;
|
|
6
5
|
export declare const buildBarIndex: (indices: Uint16Array | Uint32Array, voffset: number, ioffset: number) => void;
|
|
7
|
-
export declare const
|
|
6
|
+
export declare const buildBarVertexStep: (vertices: Float32Array, steps: Float32Array, voffset: number, pointValues: number[], pointsSize: number, strokeWidth: number, strokeStyle: EShapeStrokeStyle, internalTransform: Matrix) => void;
|
|
8
7
|
export declare const buildBarUv: (uvs: Float32Array, voffset: number, textureUvs: TextureUvs) => void;
|
|
@@ -3,8 +3,7 @@ import { EShapeStrokeStyle } from "../e-shape-stroke-style";
|
|
|
3
3
|
export declare const CIRCLE_VERTEX_COUNT = 9;
|
|
4
4
|
export declare const CIRCLE_INDEX_COUNT = 8;
|
|
5
5
|
export declare const CIRCLE_WORLD_SIZE: [number, number];
|
|
6
|
-
export declare const buildCircleClipping: (clippings: Float32Array, voffset: number) => void;
|
|
7
6
|
export declare const buildCircleIndex: (indices: Uint16Array | Uint32Array, voffset: number, ioffset: number) => void;
|
|
8
7
|
export declare const buildCircleVertex: (vertices: Float32Array, voffset: number, originX: number, originY: number, sizeX: number, sizeY: number, strokeAlign: number, strokeWidth: number, internalTransform: Matrix, worldSize: typeof CIRCLE_WORLD_SIZE) => void;
|
|
9
|
-
export declare const buildCircleStep: (steps: Float32Array,
|
|
8
|
+
export declare const buildCircleStep: (steps: Float32Array, voffset: number, strokeWidth: number, strokeStyle: EShapeStrokeStyle, worldSize: typeof CIRCLE_WORLD_SIZE) => void;
|
|
10
9
|
export declare const buildCircleUv: (uvs: Float32Array, voffset: number, textureUvs: TextureUvs) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const buildColor: (
|
|
1
|
+
export declare const buildColor: (fillColor: number, fillAlpha: number, strokeColor: number, strokeAlpha: number, voffset: number, vcount: number, colors: Float32Array) => void;
|
|
@@ -3,7 +3,6 @@ import { EShapeStrokeStyle } from "../e-shape-stroke-style";
|
|
|
3
3
|
export declare const IMAGE_SDF_VERTEX_COUNT = 9;
|
|
4
4
|
export declare const IMAGE_SDF_INDEX_COUNT = 8;
|
|
5
5
|
export declare const IMAGE_SDF_WORLD_SIZE: [number, number];
|
|
6
|
-
export declare const buildImageSdfClipping: (clippings: Float32Array, voffset: number) => void;
|
|
7
6
|
export declare const buildImageSdfIndex: (indices: Uint16Array | Uint32Array, voffset: number, ioffset: number) => void;
|
|
8
7
|
export declare const buildImageSdfStep: (steps: Float32Array, voffset: number, strokeAlign: number, strokeWidth: number, strokeStyle: EShapeStrokeStyle, textureWidth: number, textureHeight: number, worldSize: typeof IMAGE_SDF_WORLD_SIZE) => void;
|
|
9
8
|
export declare const buildImageSdfVertex: (vertices: Float32Array, voffset: number, originX: number, originY: number, sizeX: number, sizeY: number, internalTransform: Matrix, worldSize: typeof IMAGE_SDF_WORLD_SIZE) => void;
|
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
import { EShapeLineOfAnyPointsFill } from "./e-shape-line-of-any-points-fill";
|
|
2
2
|
import { EShapeLineOfAnyPointsStroke } from "./e-shape-line-of-any-points-stroke";
|
|
3
3
|
export declare const toLineOfAnyPointCount: (pointCount: number) => number;
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Build a vertex buffer of colors.
|
|
6
|
+
*
|
|
7
|
+
* @param vo Vertex pffset
|
|
8
|
+
* @param vcpp Vertex count per point
|
|
9
|
+
* @param pf Point Fill
|
|
10
|
+
* @param ps Point stroke
|
|
11
|
+
* @param pc Point count
|
|
12
|
+
* @param colors Vertex buffer of colors
|
|
13
|
+
* @param ife True if fills are enabled
|
|
14
|
+
* @param ise True if strokes are enabled
|
|
15
|
+
* @param cfd Default fill color
|
|
16
|
+
* @param afd Default fill alpha
|
|
17
|
+
* @param csd Default stroke color
|
|
18
|
+
* @param asd Default stroke alpha
|
|
19
|
+
*/
|
|
20
|
+
export declare const buildLineOfAnyColor: (vo: number, vcpp: number, pf: EShapeLineOfAnyPointsFill, ps: EShapeLineOfAnyPointsStroke, pc: number, colors: Float32Array, ife: boolean, ise: boolean, cfd: number, afd: number, csd: number, asd: number) => void;
|
|
@@ -5,7 +5,6 @@ export declare const toPointCount: (points?: EShapePoints) => number;
|
|
|
5
5
|
export declare const toLinePointCount: (points?: EShapePoints) => number;
|
|
6
6
|
export declare const toLineVertexCount: (pointCount: number, isClosed: boolean) => number;
|
|
7
7
|
export declare const toLineIndexCount: (pointCount: number, isClosed: boolean) => number;
|
|
8
|
-
export declare const buildLineClipping: (clippings: Float32Array, voffset: number, vcount: number, pointCount: number) => void;
|
|
9
8
|
export declare const buildLineIndex: (indices: Uint16Array | Uint32Array, voffset: number, ioffset: number, icount: number) => void;
|
|
10
|
-
export declare const buildLineUv: (uvs: Float32Array,
|
|
11
|
-
export declare const
|
|
9
|
+
export declare const buildLineUv: (uvs: Float32Array, steps: Float32Array, voffset: number, vcount: number, textureUvs: TextureUvs, length: number) => void;
|
|
10
|
+
export declare const buildLineVertexStep: (vertices: Float32Array, steps: Float32Array, voffset: number, vcount: number, pointCount: number, pointsClosed: boolean, pointValues: number[], pointSegments: number[], strokeWidth: number, strokeStyle: EShapeStrokeStyle, internalTransform: Matrix) => number;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export declare const buildNullClipping: (clippings: Float32Array, voffset: number, vcount: number) => void;
|
|
2
1
|
export declare const buildNullIndex: (indices: Uint16Array | Uint32Array, voffset: number, ioffset: number, icount: number) => void;
|
|
3
2
|
export declare const buildNullVertex: (vertices: Float32Array, voffset: number, vcount: number) => void;
|
|
4
3
|
export declare const buildNullStep: (steps: Float32Array, voffset: number, vcount: number) => void;
|
|
@@ -2,11 +2,10 @@ import { Matrix, TextureUvs } from "pixi.js";
|
|
|
2
2
|
import { EShapeCorner } from "../e-shape-corner";
|
|
3
3
|
import { EShapeStrokeSide } from "../e-shape-stroke-side";
|
|
4
4
|
import { EShapeStrokeStyle } from "../e-shape-stroke-style";
|
|
5
|
-
export declare const RECTANGLE_ROUNDED_VERTEX_COUNT =
|
|
5
|
+
export declare const RECTANGLE_ROUNDED_VERTEX_COUNT = 44;
|
|
6
6
|
export declare const RECTANGLE_ROUNDED_INDEX_COUNT = 24;
|
|
7
|
-
export declare const RECTANGLE_ROUNDED_WORLD_SIZE: [number, number, number];
|
|
7
|
+
export declare const RECTANGLE_ROUNDED_WORLD_SIZE: [number, number, number, number, number];
|
|
8
8
|
export declare const buildRectangleRoundedIndex: (indices: Uint16Array | Uint32Array, voffset: number, ioffset: number) => void;
|
|
9
9
|
export declare const buildRectangleRoundedVertex: (vertices: Float32Array, voffset: number, originX: number, originY: number, sizeX: number, sizeY: number, strokeAlign: number, strokeWidth: number, radius: number, internalTransform: Matrix, worldSize: typeof RECTANGLE_ROUNDED_WORLD_SIZE) => void;
|
|
10
|
-
export declare const buildRectangleRoundedClipping: (clippings: Float32Array, voffset: number, corner: EShapeCorner, worldSize: typeof RECTANGLE_ROUNDED_WORLD_SIZE) => void;
|
|
11
10
|
export declare const buildRectangleRoundedStep: (steps: Float32Array, voffset: number, strokeWidth: number, strokeSide: EShapeStrokeSide, strokeStyle: EShapeStrokeStyle, corner: EShapeCorner, worldSize: typeof RECTANGLE_ROUNDED_WORLD_SIZE) => void;
|
|
12
11
|
export declare const buildRectangleRoundedUv: (uvs: Float32Array, voffset: number, textureUvs: TextureUvs, worldSize: typeof RECTANGLE_ROUNDED_WORLD_SIZE) => void;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { Matrix, TextureUvs } from "pixi.js";
|
|
2
2
|
import { EShapeStrokeSide } from "../e-shape-stroke-side";
|
|
3
3
|
import { EShapeStrokeStyle } from "../e-shape-stroke-style";
|
|
4
|
-
export declare const RECTANGLE_VERTEX_COUNT =
|
|
5
|
-
export declare const RECTANGLE_INDEX_COUNT =
|
|
6
|
-
export declare const RECTANGLE_WORLD_SIZE: [number, number
|
|
7
|
-
export declare const buildRectangleClipping: (clippings: Float32Array, voffset: number, worldSize: typeof RECTANGLE_WORLD_SIZE) => void;
|
|
4
|
+
export declare const RECTANGLE_VERTEX_COUNT = 16;
|
|
5
|
+
export declare const RECTANGLE_INDEX_COUNT = 8;
|
|
6
|
+
export declare const RECTANGLE_WORLD_SIZE: [number, number];
|
|
8
7
|
export declare const buildRectangleIndex: (indices: Uint16Array | Uint32Array, voffset: number, ioffset: number) => void;
|
|
9
8
|
export declare const buildRectangleVertex: (vertices: Float32Array, voffset: number, originX: number, originY: number, sizeX: number, sizeY: number, strokeAlign: number, strokeWidth: number, internalTransform: Matrix, worldSize: typeof RECTANGLE_WORLD_SIZE) => void;
|
|
10
9
|
export declare const buildRectangleStep: (voffset: number, steps: Float32Array, strokeWidth: number, strokeSide: EShapeStrokeSide, strokeStyle: EShapeStrokeStyle, worldSize: typeof RECTANGLE_WORLD_SIZE) => void;
|
|
11
|
-
export declare const buildRectangleUv: (uvs: Float32Array, voffset: number, textureUvs: TextureUvs
|
|
10
|
+
export declare const buildRectangleUv: (uvs: Float32Array, voffset: number, textureUvs: TextureUvs) => void;
|
|
@@ -3,8 +3,7 @@ import { EShapeStrokeStyle } from "../e-shape-stroke-style";
|
|
|
3
3
|
export declare const SEMICIRCLE_VERTEX_COUNT = 6;
|
|
4
4
|
export declare const SEMICIRCLE_INDEX_COUNT = 4;
|
|
5
5
|
export declare const SEMICIRCLE_WORLD_SIZE: [number, number];
|
|
6
|
-
export declare const buildSemicircleClipping: (clippings: Float32Array, voffset: number) => void;
|
|
7
6
|
export declare const buildSemicircleIndex: (indices: Uint16Array | Uint32Array, voffset: number, ioffset: number) => void;
|
|
8
7
|
export declare const buildSemicircleVertex: (vertices: Float32Array, voffset: number, originX: number, originY: number, sizeX: number, sizeY: number, strokeAlign: number, strokeWidth: number, internalTransform: Matrix, worldSize: typeof SEMICIRCLE_WORLD_SIZE) => void;
|
|
9
|
-
export declare const buildSemicircleStep: (steps: Float32Array,
|
|
8
|
+
export declare const buildSemicircleStep: (steps: Float32Array, voffset: number, strokeWidth: number, strokeStyle: EShapeStrokeStyle, worldSize: typeof SEMICIRCLE_WORLD_SIZE) => void;
|
|
10
9
|
export declare const buildSemicircleUv: (uvs: Float32Array, voffset: number, textureUvs: TextureUvs) => void;
|
|
@@ -10,7 +10,6 @@ export declare const TEXT_INDEX_COUNT = 2;
|
|
|
10
10
|
export declare const TEXT_INDEX_COUNT_SHIFT = 1;
|
|
11
11
|
export declare const TEXT_FMIN: number;
|
|
12
12
|
export declare const toTextBufferCount: (shape: EShape) => number;
|
|
13
|
-
export declare const buildTextClipping: (clippings: Float32Array, voffset: number, vcount: number) => void;
|
|
14
13
|
export declare const buildTextIndex: (indices: Uint16Array | Uint32Array, voffset: number, ioffset: number, icount: number) => void;
|
|
15
14
|
export declare const buildTextStep: (steps: Float32Array, voffset: number, vcount: number, textAtlas: EShapeTextAtlas | undefined, textSize: number, textOutlineWidth: number, textWeight: EShapeTextWeight, scaleX: number, scaleY: number) => void;
|
|
16
15
|
export declare const buildTextVertex: (vertices: Float32Array, uvs: Float32Array, voffset: number, vcount: number, originX: number, originY: number, sizeX: number, sizeY: number, textAtlas: EShapeTextAtlas, textSize: number, textValue: string, textStyle: EShapeTextStyle, textAlignHorizontal: EShapeTextAlignHorizontal, textAlignVertical: EShapeTextAlignVertical, textOffsetHorizontal: number, textOffsetVertical: number, textSpacingHorizontal: number, textSpacingVertical: number, textDirection: EShapeTextDirection, textPaddingHorizontal: number, textPaddingVertical: number, textClipping: boolean, textFitting: boolean, textWorld: number[], textureUvs: TextureUvs, internalTransform: Matrix) => void;
|
|
@@ -6,6 +6,5 @@ export declare const TRIANGLE_ROUNDED_INDEX_COUNT = 15;
|
|
|
6
6
|
export declare const TRIANGLE_ROUNDED_WORLD_SIZE: [number, number, number, number, number];
|
|
7
7
|
export declare const buildTriangleRoundedIndex: (indices: Uint16Array | Uint32Array, voffset: number, ioffset: number) => void;
|
|
8
8
|
export declare const buildTriangleRoundedVertex: (vertices: Float32Array, voffset: number, originX: number, originY: number, sizeX: number, sizeY: number, strokeAlign: number, strokeWidth: number, radius: number, internalTransform: Matrix, worldSize: typeof TRIANGLE_ROUNDED_WORLD_SIZE) => void;
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const buildTriangleRoundedStep: (steps: Float32Array, clippings: Float32Array, voffset: number, strokeWidth: number, strokeStyle: EShapeStrokeStyle, radius: number, worldSize: typeof TRIANGLE_ROUNDED_WORLD_SIZE) => void;
|
|
9
|
+
export declare const buildTriangleRoundedStep: (steps: Float32Array, voffset: number, strokeWidth: number, strokeStyle: EShapeStrokeStyle, corner: EShapeCorner, radius: number, worldSize: typeof TRIANGLE_ROUNDED_WORLD_SIZE) => void;
|
|
11
10
|
export declare const buildTriangleRoundedUv: (uvs: Float32Array, voffset: number, textureUvs: TextureUvs, radius: number, worldSize: typeof TRIANGLE_ROUNDED_WORLD_SIZE) => void;
|
|
@@ -3,8 +3,7 @@ import { EShapeStrokeStyle } from "../e-shape-stroke-style";
|
|
|
3
3
|
export declare const TRIANGLE_VERTEX_COUNT = 7;
|
|
4
4
|
export declare const TRIANGLE_INDEX_COUNT = 3;
|
|
5
5
|
export declare const TRIANGLE_WORLD_SIZE: [number, number, number];
|
|
6
|
-
export declare const buildTriangleClipping: (clippings: Float32Array, voffset: number) => void;
|
|
7
6
|
export declare const buildTriangleIndex: (indices: Uint16Array | Uint32Array, voffset: number, ioffset: number) => void;
|
|
8
7
|
export declare const buildTriangleVertex: (vertices: Float32Array, voffset: number, originX: number, originY: number, sizeX: number, sizeY: number, strokeAlign: number, strokeWidth: number, internalTransform: Matrix, worldSize: typeof TRIANGLE_WORLD_SIZE) => void;
|
|
9
|
-
export declare const buildTriangleStep: (steps: Float32Array,
|
|
8
|
+
export declare const buildTriangleStep: (steps: Float32Array, voffset: number, strokeWidth: number, strokeStyle: EShapeStrokeStyle, worldSize: typeof TRIANGLE_WORLD_SIZE) => void;
|
|
10
9
|
export declare const buildTriangleUv: (uvs: Float32Array, textureUvs: TextureUvs, voffset: number, worldSize: typeof TRIANGLE_WORLD_SIZE) => void;
|
|
@@ -8,6 +8,6 @@ export declare class BuilderBar extends BuilderBase {
|
|
|
8
8
|
constructor(buffer: BuilderBuffer, vertexOffset: number, indexOffset: number);
|
|
9
9
|
init(): void;
|
|
10
10
|
update(shape: EShape): void;
|
|
11
|
-
protected
|
|
11
|
+
protected updateVertexStep(buffer: BuilderBuffer, shape: EShape): void;
|
|
12
12
|
protected updateUv(buffer: BuilderBuffer, shape: EShape): void;
|
|
13
13
|
}
|
|
@@ -29,7 +29,6 @@ export declare abstract class BuilderBase implements Builder {
|
|
|
29
29
|
reinit(buffer: BuilderBuffer, shape: EShape, vertexOffset: number, indexOffset: number): boolean;
|
|
30
30
|
isCompatible(shape: EShape): boolean;
|
|
31
31
|
abstract update(shape: EShape): void;
|
|
32
|
-
protected
|
|
33
|
-
protected updateColorStroke(buffer: BuilderBuffer, shape: EShape): void;
|
|
32
|
+
protected updateColor(buffer: BuilderBuffer, shape: EShape): void;
|
|
34
33
|
buildUnit(builder: EShapeBufferUnitBuilder): void;
|
|
35
34
|
}
|
|
@@ -15,6 +15,5 @@ export declare abstract class BuilderLineOfAny extends BuilderBase {
|
|
|
15
15
|
constructor(buffer: BuilderBuffer, vertexOffset: number, indexOffset: number, vertexCount: number, indexCount: number, pointCountReserved: number, vcountPerPoint: number, icountPerPoint: number);
|
|
16
16
|
reinit(buffer: BuilderBuffer, shape: EShape, vertexOffset: number, indexOffset: number): boolean;
|
|
17
17
|
isCompatible(shape: EShape): boolean;
|
|
18
|
-
protected
|
|
19
|
-
protected updateLineOfAnyColorStroke(buffer: BuilderBuffer, shape: EShape, points: EShapeLineOfAnyPoints, vcountPerPoint: number): void;
|
|
18
|
+
protected updateLineOfAnyColor(buffer: BuilderBuffer, shape: EShape, points: EShapeLineOfAnyPoints, vcountPerPoint: number): void;
|
|
20
19
|
}
|
|
@@ -9,5 +9,5 @@ export declare class BuilderLineOfRectangleRoundeds extends BuilderLineOfAny {
|
|
|
9
9
|
constructor(buffer: BuilderBuffer, vertexOffset: number, indexOffset: number, vertexCount: number, indexCount: number, pointCountReserved: number, vcountPerPoint: number, icountPerPoint: number);
|
|
10
10
|
init(): void;
|
|
11
11
|
update(shape: EShape): void;
|
|
12
|
-
protected
|
|
12
|
+
protected updateVertexStepAndUv(buffer: BuilderBuffer, shape: EShape, points: EShapeLineOfAnyPoints): void;
|
|
13
13
|
}
|
|
@@ -5,5 +5,5 @@ import { EShapeLineOfAnyPoints } from "./e-shape-line-of-any-points";
|
|
|
5
5
|
export declare class BuilderLineOfRectangles extends BuilderLineOfAny {
|
|
6
6
|
init(): void;
|
|
7
7
|
update(shape: EShape): void;
|
|
8
|
-
protected
|
|
8
|
+
protected updateVertexStepAndUv(buffer: BuilderBuffer, shape: EShape, points: EShapeLineOfAnyPoints): void;
|
|
9
9
|
}
|
|
@@ -9,5 +9,5 @@ export declare class BuilderLineOfTriangleRoundeds extends BuilderLineOfAny {
|
|
|
9
9
|
constructor(buffer: BuilderBuffer, vertexOffset: number, indexOffset: number, vertexCount: number, indexCount: number, pointCountReserved: number, vcountPerPoint: number, icountPerPoint: number);
|
|
10
10
|
init(): void;
|
|
11
11
|
update(shape: EShape): void;
|
|
12
|
-
protected
|
|
12
|
+
protected updateVertexStepAndUv(buffer: BuilderBuffer, shape: EShape, points: EShapeLineOfAnyPoints): void;
|
|
13
13
|
}
|
|
@@ -11,7 +11,6 @@ export declare class BuilderLine extends BuilderBase {
|
|
|
11
11
|
reinit(buffer: BuilderBuffer, shape: EShape, vertexOffset: number, indexOffset: number): boolean;
|
|
12
12
|
isCompatible(shape: EShape): boolean;
|
|
13
13
|
update(shape: EShape): void;
|
|
14
|
-
protected
|
|
15
|
-
protected updateLineVertexStepAndColorFill(buffer: BuilderBuffer, shape: EShape): void;
|
|
14
|
+
protected updateLineVertexStep(buffer: BuilderBuffer, shape: EShape): void;
|
|
16
15
|
protected updateLineUv(buffer: BuilderBuffer, shape: EShape): void;
|
|
17
16
|
}
|
|
@@ -4,6 +4,6 @@ import { EShapePointsMarkerContainer } from "../e-shape-points-marker-container"
|
|
|
4
4
|
import { BuilderBuffer } from "./builder";
|
|
5
5
|
import { BuilderBase } from "./builder-base";
|
|
6
6
|
export declare abstract class BuilderMarkerBase extends BuilderBase {
|
|
7
|
-
protected
|
|
7
|
+
protected updateColor(buffer: BuilderBuffer, shape: EShape): void;
|
|
8
8
|
protected abstract toMarker(container: EShapePointsMarkerContainer): EShapePointsMarker;
|
|
9
9
|
}
|
|
@@ -8,5 +8,5 @@ export declare abstract class BuilderMarkerRectangle extends BuilderMarkerBase {
|
|
|
8
8
|
constructor(buffer: BuilderBuffer, vertexOffset: number, indexOffset: number);
|
|
9
9
|
init(): void;
|
|
10
10
|
update(shape: EShape): void;
|
|
11
|
-
protected
|
|
11
|
+
protected updateVertexStepAndUv(buffer: BuilderBuffer, shape: EShape): void;
|
|
12
12
|
}
|
|
@@ -5,5 +5,5 @@ export declare class BuilderRectanglePivoted extends BuilderBase {
|
|
|
5
5
|
constructor(buffer: BuilderBuffer, vertexOffset: number, indexOffset: number);
|
|
6
6
|
init(): void;
|
|
7
7
|
update(shape: EShape): void;
|
|
8
|
-
protected
|
|
8
|
+
protected updateVertexStepAndUv(buffer: BuilderBuffer, shape: EShape): void;
|
|
9
9
|
}
|
|
@@ -8,5 +8,5 @@ export declare class BuilderRectangleRounded extends BuilderBase {
|
|
|
8
8
|
constructor(buffer: BuilderBuffer, vertexOffset: number, indexOffset: number);
|
|
9
9
|
init(): void;
|
|
10
10
|
update(shape: EShape): void;
|
|
11
|
-
protected
|
|
11
|
+
protected updateVertexStepAndUv(buffer: BuilderBuffer, shape: EShape): void;
|
|
12
12
|
}
|
|
@@ -5,5 +5,5 @@ export declare class BuilderRectangle extends BuilderBase {
|
|
|
5
5
|
constructor(buffer: BuilderBuffer, vertexOffset: number, indexOffset: number);
|
|
6
6
|
init(): void;
|
|
7
7
|
update(shape: EShape): void;
|
|
8
|
-
protected
|
|
8
|
+
protected updateVertexStepAndUv(buffer: BuilderBuffer, shape: EShape): void;
|
|
9
9
|
}
|
|
@@ -44,8 +44,7 @@ export declare class BuilderText implements Builder {
|
|
|
44
44
|
isCompatible(shape: EShape): boolean;
|
|
45
45
|
update(shape: EShape): this;
|
|
46
46
|
protected updateVertex(buffer: BuilderBuffer, shape: EShape, textAtlas: EShapeTextAtlas): void;
|
|
47
|
-
protected
|
|
48
|
-
protected updateColorStroke(buffer: BuilderBuffer, shape: EShape): void;
|
|
47
|
+
protected updateColor(buffer: BuilderBuffer, shape: EShape): void;
|
|
49
48
|
protected updateStep(buffer: BuilderBuffer, shape: EShape): void;
|
|
50
49
|
buildUnit(builder: EShapeBufferUnitBuilder): void;
|
|
51
50
|
}
|
|
@@ -8,5 +8,5 @@ export declare class BuilderTriangleRounded extends BuilderBase {
|
|
|
8
8
|
constructor(buffer: BuilderBuffer, vertexOffset: number, indexOffset: number);
|
|
9
9
|
init(): void;
|
|
10
10
|
update(shape: EShape): void;
|
|
11
|
-
protected
|
|
11
|
+
protected updateVertexStepAndUv(buffer: BuilderBuffer, shape: EShape): void;
|
|
12
12
|
}
|
|
@@ -3,34 +3,25 @@ import { EShapeBufferUnitBuilder } from "../e-shape-buffer-unit-builder";
|
|
|
3
3
|
export declare const BuilderFlag: {
|
|
4
4
|
readonly NONE: 0;
|
|
5
5
|
readonly VERTEX: 1;
|
|
6
|
-
readonly
|
|
7
|
-
readonly
|
|
8
|
-
readonly
|
|
9
|
-
readonly
|
|
10
|
-
readonly
|
|
11
|
-
readonly
|
|
12
|
-
readonly
|
|
13
|
-
readonly VERTEX_STEP_AND_UV: 37;
|
|
14
|
-
readonly VERTEX_STEP_AND_COLOR_FILL: 13;
|
|
15
|
-
readonly VERTEX_CLIPPING_STEP_AND_UV: 39;
|
|
16
|
-
readonly CLIPPING_AND_INDEX: 66;
|
|
17
|
-
readonly ALL: 127;
|
|
6
|
+
readonly STEP: 2;
|
|
7
|
+
readonly COLOR: 4;
|
|
8
|
+
readonly UV: 8;
|
|
9
|
+
readonly INDEX: 16;
|
|
10
|
+
readonly VERTEX_AND_STEP: number;
|
|
11
|
+
readonly VERTEX_STEP_AND_UV: number;
|
|
12
|
+
readonly ALL: number;
|
|
18
13
|
};
|
|
19
14
|
export type BuilderFlag = number;
|
|
20
15
|
export interface BuilderBuffer {
|
|
21
16
|
readonly vertices: Float32Array;
|
|
22
|
-
readonly clippings: Float32Array;
|
|
23
17
|
readonly steps: Float32Array;
|
|
24
|
-
readonly
|
|
25
|
-
readonly colorStrokes: Float32Array;
|
|
18
|
+
readonly colors: Float32Array;
|
|
26
19
|
readonly uvs: Float32Array;
|
|
27
20
|
readonly indices: Uint16Array | Uint32Array;
|
|
28
21
|
check(vindex: number, ioffset: number, vcount: number, icount: number): boolean;
|
|
29
22
|
updateVertices(): void;
|
|
30
|
-
updateClippings(): void;
|
|
31
23
|
updateSteps(): void;
|
|
32
|
-
|
|
33
|
-
updateColorStrokes(): void;
|
|
24
|
+
updateColors(): void;
|
|
34
25
|
updateUvs(): void;
|
|
35
26
|
updateIndices(): void;
|
|
36
27
|
}
|
|
@@ -42,7 +42,6 @@ export * from "./builder-triangle-rounded";
|
|
|
42
42
|
export * from "./builder-triangle";
|
|
43
43
|
export * from "./builder";
|
|
44
44
|
export * from "./builders";
|
|
45
|
-
export * from "./copy-clipping";
|
|
46
45
|
export * from "./copy-index";
|
|
47
46
|
export * from "./copy-step";
|
|
48
47
|
export * from "./copy-uv";
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { IPoint } from "pixi.js";
|
|
2
1
|
import { EShapeStrokeStyle } from "../e-shape-stroke-style";
|
|
3
|
-
export declare const toDash: (
|
|
2
|
+
export declare const toDash: (style: EShapeStrokeStyle) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const toNormalPacked: (n0: number[], n1: number[]) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const toNormal: (v: number[], l: number) => number[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const toVectorLength: (v: number[]) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const toVector: (x0: number, y0: number, x1: number, y1: number, result: number[]) => number[];
|
|
@@ -219,16 +219,38 @@ var DPagination = /** @class */ (function (_super) {
|
|
|
219
219
|
return null;
|
|
220
220
|
};
|
|
221
221
|
DPagination.prototype.onButtonLastActive = function () {
|
|
222
|
-
this.
|
|
222
|
+
this.goToLast();
|
|
223
223
|
};
|
|
224
|
-
|
|
224
|
+
/**
|
|
225
|
+
* Goes to the last page.
|
|
226
|
+
* Unlike {@link #value}, this method emits the change event if silently is not true.
|
|
227
|
+
*
|
|
228
|
+
* @param silently true to suppress the change event
|
|
229
|
+
* @returns true if succeeded.
|
|
230
|
+
*/
|
|
231
|
+
DPagination.prototype.goToLast = function (silently) {
|
|
232
|
+
return this.goTo(this._size - 1, silently);
|
|
233
|
+
};
|
|
234
|
+
/**
|
|
235
|
+
* Goes to the given page.
|
|
236
|
+
* Unlike {@link #value}, this method emits the change event if silently is not true.
|
|
237
|
+
*
|
|
238
|
+
* @param index a page index
|
|
239
|
+
* @param silently true to suppress the change event
|
|
240
|
+
* @returns this
|
|
241
|
+
*/
|
|
242
|
+
DPagination.prototype.goTo = function (index, silently) {
|
|
225
243
|
if (0 <= index && index < this._size && this._value !== index) {
|
|
226
244
|
var oldIndex = this._value;
|
|
227
245
|
this._value = index;
|
|
228
|
-
|
|
246
|
+
if (silently !== true) {
|
|
247
|
+
this.emit("change", index, oldIndex, this);
|
|
248
|
+
}
|
|
229
249
|
this.toDirty();
|
|
230
250
|
DApplications.update(this);
|
|
251
|
+
return true;
|
|
231
252
|
}
|
|
253
|
+
return false;
|
|
232
254
|
};
|
|
233
255
|
Object.defineProperty(DPagination.prototype, "buttonNext", {
|
|
234
256
|
get: function () {
|
|
@@ -256,7 +278,17 @@ var DPagination = /** @class */ (function (_super) {
|
|
|
256
278
|
return null;
|
|
257
279
|
};
|
|
258
280
|
DPagination.prototype.onButtonNextActive = function () {
|
|
259
|
-
this.
|
|
281
|
+
this.goToNext();
|
|
282
|
+
};
|
|
283
|
+
/**
|
|
284
|
+
* Goes to the next page.
|
|
285
|
+
* Unlike {@link #value}, this method emits the change event if silently is not true.
|
|
286
|
+
*
|
|
287
|
+
* @param silently true to suppress the change event
|
|
288
|
+
* @returns true if succeeded.
|
|
289
|
+
*/
|
|
290
|
+
DPagination.prototype.goToNext = function (silently) {
|
|
291
|
+
return this.goTo(this._value + 1, silently);
|
|
260
292
|
};
|
|
261
293
|
Object.defineProperty(DPagination.prototype, "buttonPrevious", {
|
|
262
294
|
get: function () {
|
|
@@ -284,7 +316,17 @@ var DPagination = /** @class */ (function (_super) {
|
|
|
284
316
|
return null;
|
|
285
317
|
};
|
|
286
318
|
DPagination.prototype.onButtonPreviousActive = function () {
|
|
287
|
-
this.
|
|
319
|
+
this.goToPrevious();
|
|
320
|
+
};
|
|
321
|
+
/**
|
|
322
|
+
* Goes to the previous page.
|
|
323
|
+
* Unlike {@link #value}, this method emits the change event if silently is not true.
|
|
324
|
+
*
|
|
325
|
+
* @param silently true to suppress the change event
|
|
326
|
+
* @returns true if succeeded.
|
|
327
|
+
*/
|
|
328
|
+
DPagination.prototype.goToPrevious = function (silently) {
|
|
329
|
+
return this.goTo(this._value - 1, silently);
|
|
288
330
|
};
|
|
289
331
|
Object.defineProperty(DPagination.prototype, "buttonTop", {
|
|
290
332
|
get: function () {
|
|
@@ -312,7 +354,17 @@ var DPagination = /** @class */ (function (_super) {
|
|
|
312
354
|
return null;
|
|
313
355
|
};
|
|
314
356
|
DPagination.prototype.onButtonTopActive = function () {
|
|
315
|
-
this.
|
|
357
|
+
this.goToTop();
|
|
358
|
+
};
|
|
359
|
+
/**
|
|
360
|
+
* Goes to the top page.
|
|
361
|
+
* Unlike {@link #value}, this method emits the change event if silently is not true.
|
|
362
|
+
*
|
|
363
|
+
* @param silently true to suppress the change event
|
|
364
|
+
* @returns true if succeeded.
|
|
365
|
+
*/
|
|
366
|
+
DPagination.prototype.goToTop = function (silently) {
|
|
367
|
+
return this.goTo(0, silently);
|
|
316
368
|
};
|
|
317
369
|
DPagination.prototype.newButtonPage = function () {
|
|
318
370
|
var _this = this;
|
|
@@ -402,7 +454,7 @@ var DPagination = /** @class */ (function (_super) {
|
|
|
402
454
|
DPagination.prototype.onButtonPageActive = function (button) {
|
|
403
455
|
var text = button.text.value;
|
|
404
456
|
if (isNumber(text)) {
|
|
405
|
-
this.
|
|
457
|
+
this.goTo(text - 1);
|
|
406
458
|
if (button.state.isFocused) {
|
|
407
459
|
button.state.isHovered = false;
|
|
408
460
|
this.page.focus();
|