@wcardinal/wcardinal-ui 0.465.1 → 0.466.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.
Files changed (91) hide show
  1. package/dist/types/wcardinal/ui/shape/e-shape-stroke-side.d.ts +6 -0
  2. package/dist/types/wcardinal/ui/shape/e-shape-type.d.ts +1 -0
  3. package/dist/types/wcardinal/ui/shape/load/index.d.ts +2 -0
  4. package/dist/types/wcardinal/ui/shape/load/load-shape-rectangle-legacy.d.ts +1 -0
  5. package/dist/types/wcardinal/ui/shape/variant/build-rectangle-legacy.d.ts +10 -0
  6. package/dist/types/wcardinal/ui/shape/variant/build-rectangle.d.ts +1 -10
  7. package/dist/types/wcardinal/ui/shape/variant/builder-rectangle-legacy.d.ts +9 -0
  8. package/dist/types/wcardinal/ui/shape/variant/builder-rectangle.d.ts +1 -9
  9. package/dist/types/wcardinal/ui/shape/variant/create-rectangle-legacy-uploaded.d.ts +4 -0
  10. package/dist/types/wcardinal/ui/shape/variant/create-rectangle-uploaded.d.ts +1 -4
  11. package/dist/types/wcardinal/ui/shape/variant/deserialize-rectangle-legacy.d.ts +4 -0
  12. package/dist/types/wcardinal/ui/shape/variant/e-shape-line-of-rectangles.d.ts +2 -2
  13. package/dist/types/wcardinal/ui/shape/variant/e-shape-rectangle-legacy.d.ts +7 -0
  14. package/dist/types/wcardinal/ui/shape/variant/e-shape-rectangle-pivoted.d.ts +2 -2
  15. package/dist/types/wcardinal/ui/shape/variant/e-shape-rectangle-triangulated-impl.d.ts +85 -0
  16. package/dist/types/wcardinal/ui/shape/variant/e-shape-rectangle-triangulated.d.ts +3 -0
  17. package/dist/types/wcardinal/ui/shape/variant/e-shape-rectangle.d.ts +4 -0
  18. package/dist/types/wcardinal/ui/shape/variant/index.d.ts +7 -0
  19. package/dist/wcardinal/ui/shape/e-shape-stroke-side.js +6 -0
  20. package/dist/wcardinal/ui/shape/e-shape-stroke-side.js.map +1 -1
  21. package/dist/wcardinal/ui/shape/e-shape-type.js +1 -0
  22. package/dist/wcardinal/ui/shape/e-shape-type.js.map +1 -1
  23. package/dist/wcardinal/ui/shape/load/index.js +2 -0
  24. package/dist/wcardinal/ui/shape/load/index.js.map +1 -1
  25. package/dist/wcardinal/ui/shape/load/load-shape-all.js +2 -0
  26. package/dist/wcardinal/ui/shape/load/load-shape-all.js.map +1 -1
  27. package/dist/wcardinal/ui/shape/load/load-shape-image.js +2 -2
  28. package/dist/wcardinal/ui/shape/load/load-shape-image.js.map +1 -1
  29. package/dist/wcardinal/ui/shape/load/load-shape-rectangle-legacy.js +17 -0
  30. package/dist/wcardinal/ui/shape/load/load-shape-rectangle-legacy.js.map +1 -0
  31. package/dist/wcardinal/ui/shape/load/load-shape-rectangle.js +2 -2
  32. package/dist/wcardinal/ui/shape/load/load-shape-rectangle.js.map +1 -1
  33. package/dist/wcardinal/ui/shape/variant/build-polygon.js +1 -1
  34. package/dist/wcardinal/ui/shape/variant/build-polygon.js.map +1 -1
  35. package/dist/wcardinal/ui/shape/variant/build-rectangle-legacy.js +336 -0
  36. package/dist/wcardinal/ui/shape/variant/build-rectangle-legacy.js.map +1 -0
  37. package/dist/wcardinal/ui/shape/variant/build-rectangle.js +5 -338
  38. package/dist/wcardinal/ui/shape/variant/build-rectangle.js.map +1 -1
  39. package/dist/wcardinal/ui/shape/variant/builder-line-of-rectangles.js +16 -16
  40. package/dist/wcardinal/ui/shape/variant/builder-line-of-rectangles.js.map +1 -1
  41. package/dist/wcardinal/ui/shape/variant/builder-marker-rectangle.js +6 -6
  42. package/dist/wcardinal/ui/shape/variant/builder-marker-rectangle.js.map +1 -1
  43. package/dist/wcardinal/ui/shape/variant/builder-rectangle-legacy.js +77 -0
  44. package/dist/wcardinal/ui/shape/variant/builder-rectangle-legacy.js.map +1 -0
  45. package/dist/wcardinal/ui/shape/variant/builder-rectangle-pivoted.js +6 -6
  46. package/dist/wcardinal/ui/shape/variant/builder-rectangle-pivoted.js.map +1 -1
  47. package/dist/wcardinal/ui/shape/variant/builder-rectangle.js +1 -72
  48. package/dist/wcardinal/ui/shape/variant/builder-rectangle.js.map +1 -1
  49. package/dist/wcardinal/ui/shape/variant/create-line-of-rectangles-uploaded.js +2 -2
  50. package/dist/wcardinal/ui/shape/variant/create-line-of-rectangles-uploaded.js.map +1 -1
  51. package/dist/wcardinal/ui/shape/variant/create-line-uploaded.js +3 -3
  52. package/dist/wcardinal/ui/shape/variant/create-line-uploaded.js.map +1 -1
  53. package/dist/wcardinal/ui/shape/variant/create-rectangle-legacy-uploaded.js +24 -0
  54. package/dist/wcardinal/ui/shape/variant/create-rectangle-legacy-uploaded.js.map +1 -0
  55. package/dist/wcardinal/ui/shape/variant/create-rectangle-pivoted-uploaded.js +4 -4
  56. package/dist/wcardinal/ui/shape/variant/create-rectangle-pivoted-uploaded.js.map +1 -1
  57. package/dist/wcardinal/ui/shape/variant/create-rectangle-uploaded.js +1 -19
  58. package/dist/wcardinal/ui/shape/variant/create-rectangle-uploaded.js.map +1 -1
  59. package/dist/wcardinal/ui/shape/variant/deserialize-rectangle-legacy.js +10 -0
  60. package/dist/wcardinal/ui/shape/variant/deserialize-rectangle-legacy.js.map +1 -0
  61. package/dist/wcardinal/ui/shape/variant/e-shape-line-of-rectangles.js +2 -2
  62. package/dist/wcardinal/ui/shape/variant/e-shape-line-of-rectangles.js.map +1 -1
  63. package/dist/wcardinal/ui/shape/variant/e-shape-rectangle-legacy.js +27 -0
  64. package/dist/wcardinal/ui/shape/variant/e-shape-rectangle-legacy.js.map +1 -0
  65. package/dist/wcardinal/ui/shape/variant/e-shape-rectangle-pivoted.js +2 -2
  66. package/dist/wcardinal/ui/shape/variant/e-shape-rectangle-pivoted.js.map +1 -1
  67. package/dist/wcardinal/ui/shape/variant/e-shape-rectangle-triangulated-impl.js +796 -0
  68. package/dist/wcardinal/ui/shape/variant/e-shape-rectangle-triangulated-impl.js.map +1 -0
  69. package/dist/wcardinal/ui/shape/variant/e-shape-rectangle-triangulated.js +6 -0
  70. package/dist/wcardinal/ui/shape/variant/e-shape-rectangle-triangulated.js.map +1 -0
  71. package/dist/wcardinal/ui/shape/variant/e-shape-rectangle.js +14 -1
  72. package/dist/wcardinal/ui/shape/variant/e-shape-rectangle.js.map +1 -1
  73. package/dist/wcardinal/ui/shape/variant/index.js +7 -0
  74. package/dist/wcardinal/ui/shape/variant/index.js.map +1 -1
  75. package/dist/wcardinal-ui-theme-dark-en-us.js +1 -1
  76. package/dist/wcardinal-ui-theme-dark-en-us.min.js +1 -1
  77. package/dist/wcardinal-ui-theme-dark-ja-jp.js +1 -1
  78. package/dist/wcardinal-ui-theme-dark-ja-jp.min.js +1 -1
  79. package/dist/wcardinal-ui-theme-dark.js +1 -1
  80. package/dist/wcardinal-ui-theme-dark.min.js +1 -1
  81. package/dist/wcardinal-ui-theme-white-en-us.js +1 -1
  82. package/dist/wcardinal-ui-theme-white-en-us.min.js +1 -1
  83. package/dist/wcardinal-ui-theme-white-ja-jp.js +1 -1
  84. package/dist/wcardinal-ui-theme-white-ja-jp.min.js +1 -1
  85. package/dist/wcardinal-ui-theme-white.js +1 -1
  86. package/dist/wcardinal-ui-theme-white.min.js +1 -1
  87. package/dist/wcardinal-ui.cjs.js +967 -101
  88. package/dist/wcardinal-ui.js +967 -101
  89. package/dist/wcardinal-ui.min.js +2 -2
  90. package/dist/wcardinal-ui.min.js.map +1 -1
  91. package/package.json +1 -1
@@ -6,8 +6,14 @@ export declare const EShapeStrokeSide: {
6
6
  readonly LEFT: 8;
7
7
  readonly TOP_OR_LEFT: number;
8
8
  readonly TOP_OR_RIGHT: number;
9
+ readonly TOP_OR_BOTTOM: number;
9
10
  readonly BOTTOM_OR_LEFT: number;
10
11
  readonly BOTTOM_OR_RIGHT: number;
12
+ readonly LEFT_OR_RIGHT: number;
13
+ readonly NOT_TOP: number;
14
+ readonly NOT_RIGHT: number;
15
+ readonly NOT_BOTTOM: number;
16
+ readonly NOT_LEFT: number;
11
17
  readonly ALL: number;
12
18
  };
13
19
  export type EShapeStrokeSide = (typeof EShapeStrokeSide)[keyof typeof EShapeStrokeSide];
@@ -27,6 +27,7 @@ export declare const EShapeType: {
27
27
  readonly EMBEDDED_ACCEPTOR_EDGE: 25;
28
28
  readonly POLYGON: 26;
29
29
  readonly CIRCLE_LEGACY: 27;
30
+ readonly RECTANGLE_LEGACY: 28;
30
31
  readonly EXTENSION: 1000;
31
32
  };
32
33
  export type EShapeType = number;
@@ -19,6 +19,8 @@ export * from "./load-shape-line-of-triangles";
19
19
  export * from "./load-shape-line";
20
20
  export * from "./load-shape-null";
21
21
  export * from "./load-shape-polygon";
22
+ export * from "./load-shape-rectangle-legacy";
23
+ export * from "./load-shape-rectangle-pivoted";
22
24
  export * from "./load-shape-rectangle-rounded";
23
25
  export * from "./load-shape-rectangle";
24
26
  export * from "./load-shape-semicircle";
@@ -0,0 +1 @@
1
+ export declare const loadShapeRectangleLegacy: () => void;
@@ -0,0 +1,10 @@
1
+ import { Matrix, TextureUvs } from "pixi.js";
2
+ import { EShapeStrokeSide } from "../e-shape-stroke-side";
3
+ import { EShapeStrokeStyle } from "../e-shape-stroke-style";
4
+ export declare const RECTANGLE_LEGACY_VERTEX_COUNT = 16;
5
+ export declare const RECTANGLE_LEGACY_INDEX_COUNT = 8;
6
+ export declare const RECTANGLE_LEGACY_WORLD_SIZE: [number, number];
7
+ export declare const buildRectangleLegacyIndex: (indices: Uint16Array | Uint32Array, voffset: number, ioffset: number) => void;
8
+ export declare const buildRectangleLegacyVertex: (vertices: Float32Array, voffset: number, originX: number, originY: number, sizeX: number, sizeY: number, strokeAlign: number, strokeWidth: number, internalTransform: Matrix, worldSize: typeof RECTANGLE_LEGACY_WORLD_SIZE) => void;
9
+ export declare const buildRectangleLegacyStep: (voffset: number, steps: Float32Array, strokeWidth: number, strokeSide: EShapeStrokeSide, strokeStyle: EShapeStrokeStyle, worldSize: typeof RECTANGLE_LEGACY_WORLD_SIZE) => void;
10
+ export declare const buildRectangleLegacyUv: (uvs: Float32Array, voffset: number, textureUvs: TextureUvs) => void;
@@ -1,10 +1 @@
1
- import { Matrix, TextureUvs } from "pixi.js";
2
- import { EShapeStrokeSide } from "../e-shape-stroke-side";
3
- import { EShapeStrokeStyle } from "../e-shape-stroke-style";
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];
7
- export declare const buildRectangleIndex: (indices: Uint16Array | Uint32Array, voffset: number, ioffset: number) => void;
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;
9
- export declare const buildRectangleStep: (voffset: number, steps: Float32Array, strokeWidth: number, strokeSide: EShapeStrokeSide, strokeStyle: EShapeStrokeStyle, worldSize: typeof RECTANGLE_WORLD_SIZE) => void;
10
- export declare const buildRectangleUv: (uvs: Float32Array, voffset: number, textureUvs: TextureUvs) => void;
1
+ export { buildRectangleLegacyIndex as buildRectangleIndex, buildRectangleLegacyStep as buildRectangleStep, buildRectangleLegacyUv as buildRectangleUv, buildRectangleLegacyVertex as buildRectangleVertex, RECTANGLE_LEGACY_INDEX_COUNT as RECTANGLE_INDEX_COUNT, RECTANGLE_LEGACY_VERTEX_COUNT as RECTANGLE_VERTEX_COUNT, RECTANGLE_LEGACY_WORLD_SIZE as RECTANGLE_WORLD_SIZE } from "./build-rectangle-legacy";
@@ -0,0 +1,9 @@
1
+ import { EShape } from "../e-shape";
2
+ import { BuilderBuffer } from "./builder";
3
+ import { BuilderBase } from "./builder-base";
4
+ export declare class BuilderRectangleLegacy extends BuilderBase {
5
+ constructor(buffer: BuilderBuffer, vertexOffset: number, indexOffset: number);
6
+ init(): void;
7
+ update(shape: EShape): void;
8
+ protected updateVertexStepAndUv(buffer: BuilderBuffer, shape: EShape): void;
9
+ }
@@ -1,9 +1 @@
1
- import { EShape } from "../e-shape";
2
- import { BuilderBuffer } from "./builder";
3
- import { BuilderBase } from "./builder-base";
4
- export declare class BuilderRectangle extends BuilderBase {
5
- constructor(buffer: BuilderBuffer, vertexOffset: number, indexOffset: number);
6
- init(): void;
7
- update(shape: EShape): void;
8
- protected updateVertexStepAndUv(buffer: BuilderBuffer, shape: EShape): void;
9
- }
1
+ export { BuilderRectangleLegacy as BuilderRectangle } from "./builder-rectangle-legacy";
@@ -0,0 +1,4 @@
1
+ import { EShape } from "../e-shape";
2
+ import { EShapeBuffer } from "../e-shape-buffer";
3
+ import { EShapeUploaded } from "../e-shape-uploaded";
4
+ export declare const createRectangleLegacyUploaded: (buffer: EShapeBuffer, shape: EShape, voffset: number, ioffset: number, antialiasWeight: number) => EShapeUploaded | null;
@@ -1,4 +1 @@
1
- import { EShape } from "../e-shape";
2
- import { EShapeBuffer } from "../e-shape-buffer";
3
- import { EShapeUploaded } from "../e-shape-uploaded";
4
- export declare const createRectangleUploaded: (buffer: EShapeBuffer, shape: EShape, voffset: number, ioffset: number, antialiasWeight: number) => EShapeUploaded | null;
1
+ export { createRectangleLegacyUploaded as createRectangleUploaded } from "./create-rectangle-legacy-uploaded";
@@ -0,0 +1,4 @@
1
+ import { DDiagramSerializedItem } from "../../d-diagram-serialized";
2
+ import { EShapeResourceManagerDeserialization } from "../e-shape-resource-manager-deserialization";
3
+ import { EShapeRectangleLegacy } from "./e-shape-rectangle-legacy";
4
+ export declare const deserializeRectangleLegacy: (item: DDiagramSerializedItem, manager: EShapeResourceManagerDeserialization, shape?: EShapeRectangleLegacy) => Promise<EShapeRectangleLegacy> | EShapeRectangleLegacy;
@@ -4,8 +4,8 @@ import { EShapeLineOfAnyPoints } from "./e-shape-line-of-any-points";
4
4
  import { EShapeLineOfAnyPointsHitTester } from "./e-shape-line-of-any-points-hit-tester";
5
5
  import { EShapeLineOfAnyPointsHitTesterToRange } from "./e-shape-line-of-any-points-hit-tester-to-range";
6
6
  import { EShapeLineOfAnyPointsHitTesterToThreshold } from "./e-shape-line-of-any-points-hit-tester-to-threshold";
7
- import { EShapeRectangle } from "./e-shape-rectangle";
8
- export declare class EShapeLineOfRectangles extends EShapeRectangle implements EShapeLineOfAny {
7
+ import { EShapeRectangleLegacy } from "./e-shape-rectangle-legacy";
8
+ export declare class EShapeLineOfRectangles extends EShapeRectangleLegacy implements EShapeLineOfAny {
9
9
  protected _points: EShapeLineOfAnyPoints;
10
10
  protected _tester: EShapeLineOfAnyPointsHitTester<unknown>;
11
11
  constructor(type?: EShapeType);
@@ -0,0 +1,7 @@
1
+ import { EShapeType } from "../e-shape-type";
2
+ import { EShapePrimitive } from "./e-shape-primitive";
3
+ export declare class EShapeRectangleLegacy extends EShapePrimitive {
4
+ constructor(type?: EShapeType);
5
+ clone(): EShapeRectangleLegacy;
6
+ containsAbs(x: number, y: number, ax: number, ay: number, sw: number, ss: number, sa: number): boolean;
7
+ }
@@ -1,7 +1,7 @@
1
1
  import { EShapeType } from "../e-shape-type";
2
2
  import { EShapeBaseHitTestData } from "./e-shape-base-hit-test-data";
3
- import { EShapeRectangle } from "./e-shape-rectangle";
4
- export declare class EShapeRectanglePivoted extends EShapeRectangle {
3
+ import { EShapeRectangleLegacy } from "./e-shape-rectangle-legacy";
4
+ export declare class EShapeRectanglePivoted extends EShapeRectangleLegacy {
5
5
  constructor(type?: EShapeType);
6
6
  toHitTestData(x: number, y: number): EShapeBaseHitTestData;
7
7
  }
@@ -0,0 +1,85 @@
1
+ import { EShapeBoundary } from "../e-shape-boundary";
2
+ import { EShapeStrokeSide } from "../e-shape-stroke-side";
3
+ import { EShapeCircleTriangulated } from "./e-shape-circle-triangulated";
4
+ import type { EShapeRectangle } from "./e-shape-rectangle";
5
+ export declare class EShapeRectangleTriangulatedImpl implements EShapeCircleTriangulated {
6
+ protected _id: number;
7
+ protected _parent: EShapeRectangle;
8
+ protected _width: number;
9
+ protected _height: number;
10
+ protected _strokeAlign: number;
11
+ protected _strokeWidth: number;
12
+ protected _strokeSide: EShapeStrokeSide;
13
+ protected _sizeX: number;
14
+ protected _sizeY: number;
15
+ protected _vertices: number[];
16
+ protected _nvertices: number;
17
+ protected _distances: number[];
18
+ protected _lengths: number[];
19
+ protected _clippings: number[];
20
+ protected _uvs: number[];
21
+ protected _indices: number[];
22
+ protected _nindices: number;
23
+ protected _boundary: EShapeBoundary;
24
+ constructor(parent: EShapeRectangle);
25
+ get id(): number;
26
+ get vertices(): number[];
27
+ get nvertices(): number;
28
+ get distances(): number[];
29
+ get lengths(): number[];
30
+ get clippings(): number[];
31
+ get uvs(): number[];
32
+ get indices(): number[];
33
+ get nindices(): number;
34
+ get boundary(): EShapeBoundary;
35
+ protected triangulate(): void;
36
+ protected update(sizeX: number, sizeY: number, scale: number): void;
37
+ /**
38
+ * Fills the unused tail with degenerated triangles and trims the arrays
39
+ * so that the buffers always hold exactly `nv` vertices and `ni` triangles.
40
+ */
41
+ protected pad(iv: number, ii: number, nv: number, ni: number, fd: number): void;
42
+ protected updateTop(fx: number, fy: number, ax: number, ay: number, scale: number, nv: number, ni: number): void;
43
+ protected updateRight(fx: number, fy: number, ax: number, ay: number, scale: number, nv: number, ni: number): void;
44
+ protected updateBottom(fx: number, fy: number, ax: number, ay: number, scale: number, nv: number, ni: number): void;
45
+ protected updateLeft(fx: number, fy: number, ax: number, ay: number, scale: number, nv: number, ni: number): void;
46
+ protected updateLeftRight(fx: number, fy: number, ax: number, ay: number, scale: number, nv: number, ni: number): void;
47
+ protected updateTopBottom(fx: number, fy: number, ax: number, ay: number, scale: number, nv: number, ni: number): void;
48
+ protected updateTopRight0(fx: number, fy: number, ax: number, ay: number, scale: number, nv: number, ni: number): void;
49
+ protected updateTopRight1(fx: number, fy: number, ax: number, ay: number, scale: number, nv: number, ni: number): void;
50
+ protected updateBottomLeft0(fx: number, fy: number, ax: number, ay: number, scale: number, nv: number, ni: number): void;
51
+ protected updateBottomLeft1(fx: number, fy: number, ax: number, ay: number, scale: number, nv: number, ni: number): void;
52
+ protected updateTopLeft0(fx: number, fy: number, ax: number, ay: number, scale: number, nv: number, ni: number): void;
53
+ protected updateTopLeft1(fx: number, fy: number, ax: number, ay: number, scale: number, nv: number, ni: number): void;
54
+ protected updateBottomRight0(fx: number, fy: number, ax: number, ay: number, scale: number, nv: number, ni: number): void;
55
+ protected updateBottomRight1(fx: number, fy: number, ax: number, ay: number, scale: number, nv: number, ni: number): void;
56
+ protected updateNotTop0(fx: number, fy: number, ax: number, ay: number, scale: number, nv: number, ni: number): void;
57
+ protected updateNotTop1(fx: number, fy: number, ax: number, ay: number, scale: number, nv: number, ni: number): void;
58
+ protected updateNotBottom0(fx: number, fy: number, ax: number, ay: number, scale: number, nv: number, ni: number): void;
59
+ protected updateNotBottom1(fx: number, fy: number, ax: number, ay: number, scale: number, nv: number, ni: number): void;
60
+ protected updateNotLeft0(fx: number, fy: number, ax: number, ay: number, scale: number, nv: number, ni: number): void;
61
+ protected updateNotLeft1(fx: number, fy: number, ax: number, ay: number, scale: number, nv: number, ni: number): void;
62
+ protected updateNotRight0(fx: number, fy: number, ax: number, ay: number, scale: number, nv: number, ni: number): void;
63
+ protected updateNotRight1(fx: number, fy: number, ax: number, ay: number, scale: number, nv: number, ni: number): void;
64
+ protected updateTriTop(iv: number, ii: number, x0: number, y0: number, x1: number, y1: number, x2: number, y2: number, fdistance: number, scale: number, fx: number, fy: number, ax: number, ay: number, reverse?: boolean): void;
65
+ protected updateTriRight(iv: number, ii: number, x0: number, y0: number, x1: number, y1: number, x2: number, y2: number, fdistance: number, scale: number, fx: number, fy: number, ax: number, ay: number, reverse?: boolean): void;
66
+ protected updateTriBottom(iv: number, ii: number, x0: number, y0: number, x1: number, y1: number, x2: number, y2: number, fdistance: number, scale: number, fx: number, fy: number, ax: number, ay: number, reverse?: boolean): void;
67
+ protected updateTriLeft(iv: number, ii: number, x0: number, y0: number, x1: number, y1: number, x2: number, y2: number, fdistance: number, scale: number, fx: number, fy: number, ax: number, ay: number, reverse?: boolean): void;
68
+ protected updateQuadTop(iv: number, ii: number, x0: number, y0: number, x1: number, y1: number, x2: number, y2: number, x3: number, y3: number, fdistance: number, scale: number, fx: number, fy: number, ax: number, ay: number, reverse?: boolean): void;
69
+ protected updateQuadRight(iv: number, ii: number, x0: number, y0: number, x1: number, y1: number, x2: number, y2: number, x3: number, y3: number, fdistance: number, scale: number, fx: number, fy: number, ax: number, ay: number, reverse?: boolean): void;
70
+ protected updateQuadBottom(iv: number, ii: number, x0: number, y0: number, x1: number, y1: number, x2: number, y2: number, x3: number, y3: number, fdistance: number, scale: number, fx: number, fy: number, ax: number, ay: number, reverse?: boolean): void;
71
+ protected updateQuadLeft(iv: number, ii: number, x0: number, y0: number, x1: number, y1: number, x2: number, y2: number, x3: number, y3: number, fdistance: number, scale: number, fx: number, fy: number, ax: number, ay: number, reverse?: boolean): void;
72
+ protected updateNone(fx: number, fy: number, ax: number, ay: number, scale: number, nv: number, ni: number): void;
73
+ protected updateAll0(fx: number, fy: number, ax: number, ay: number, scale: number, nv: number, ni: number): void;
74
+ protected updateAll1(fx: number, fy: number, ax: number, ay: number, scale: number, nv: number, ni: number): void;
75
+ protected updateCellNone(x0: number, y0: number, x1: number, y1: number, fdistance: number, scale: number, fx: number, fy: number, ax: number, ay: number, iv: number): void;
76
+ protected updateCellTop(x0: number, y0: number, x1: number, y1: number, fdistance: number, scale: number, fx: number, fy: number, ax: number, ay: number, iv: number): void;
77
+ protected updateCellRight(x0: number, y0: number, x1: number, y1: number, fdistance: number, scale: number, fx: number, fy: number, ax: number, ay: number, iv: number): void;
78
+ protected updateCellBottom(x0: number, y0: number, x1: number, y1: number, fdistance: number, scale: number, fx: number, fy: number, ax: number, ay: number, iv: number): void;
79
+ protected updateCellLeft(x0: number, y0: number, x1: number, y1: number, fdistance: number, scale: number, fx: number, fy: number, ax: number, ay: number, iv: number): void;
80
+ protected updateVertexTop(vertex: number, x: number, y: number, fdistance: number, scale: number, fx: number, fy: number, ax: number, ay: number): void;
81
+ protected updateVertexRight(vertex: number, x: number, y: number, fdistance: number, scale: number, fx: number, fy: number, ax: number, ay: number): void;
82
+ protected updateVertexBottom(vertex: number, x: number, y: number, fdistance: number, scale: number, fx: number, fy: number, ax: number, ay: number): void;
83
+ protected updateVertexLeft(vertex: number, x: number, y: number, fdistance: number, scale: number, fx: number, fy: number, ax: number, ay: number): void;
84
+ protected updateVertex(vertex: number, x: number, y: number, distance: number, length: number, clipping: number, fx: number, fy: number): void;
85
+ }
@@ -0,0 +1,3 @@
1
+ import { EShapePolygonTriangulatedLike } from "./e-shape-polygon-triangulated-like";
2
+ export interface EShapeRectangleTriangulated extends EShapePolygonTriangulatedLike {
3
+ }
@@ -1,7 +1,11 @@
1
1
  import { EShapeType } from "../e-shape-type";
2
2
  import { EShapePrimitive } from "./e-shape-primitive";
3
+ import { EShapeRectangleTriangulated } from "./e-shape-rectangle-triangulated";
3
4
  export declare class EShapeRectangle extends EShapePrimitive {
5
+ protected readonly _triangulated: EShapeRectangleTriangulated;
4
6
  constructor(type?: EShapeType);
7
+ protected newTriangulated(): EShapeRectangleTriangulated;
8
+ get triangulated(): EShapeRectangleTriangulated;
5
9
  clone(): EShapeRectangle;
6
10
  containsAbs(x: number, y: number, ax: number, ay: number, sw: number, ss: number, sa: number): boolean;
7
11
  }
@@ -7,6 +7,7 @@ export * from "./build-line-of-any";
7
7
  export * from "./build-line";
8
8
  export * from "./build-null";
9
9
  export * from "./build-polygon";
10
+ export * from "./build-rectangle-legacy";
10
11
  export * from "./build-rectangle-rounded";
11
12
  export * from "./build-rectangle";
12
13
  export * from "./build-semicircle";
@@ -37,6 +38,7 @@ export * from "./builder-marker-triangle-tail";
37
38
  export * from "./builder-marker-triangle";
38
39
  export * from "./builder-null";
39
40
  export * from "./builder-polygon";
41
+ export * from "./builder-rectangle-legacy";
40
42
  export * from "./builder-rectangle-pivoted";
41
43
  export * from "./builder-rectangle-rounded";
42
44
  export * from "./builder-rectangle";
@@ -70,6 +72,7 @@ export * from "./create-line";
70
72
  export * from "./create-null-uploaded";
71
73
  export * from "./create-polygon-uploaded";
72
74
  export * from "./create-polygon";
75
+ export * from "./create-rectangle-legacy-uploaded";
73
76
  export * from "./create-rectangle-pivoted-uploaded";
74
77
  export * from "./create-rectangle-rounded-uploaded";
75
78
  export * from "./create-rectangle-uploaded";
@@ -101,6 +104,7 @@ export * from "./deserialize-line-of-triangles";
101
104
  export * from "./deserialize-line";
102
105
  export * from "./deserialize-null";
103
106
  export * from "./deserialize-polygon";
107
+ export * from "./deserialize-rectangle-legacy";
104
108
  export * from "./deserialize-rectangle-pivoted";
105
109
  export * from "./deserialize-rectangle-rounded";
106
110
  export * from "./deserialize-rectangle";
@@ -187,8 +191,11 @@ export * from "./e-shape-polygon-triangulated-like";
187
191
  export * from "./e-shape-polygon-triangulated";
188
192
  export * from "./e-shape-polygon";
189
193
  export * from "./e-shape-primitive";
194
+ export * from "./e-shape-rectangle-legacy";
190
195
  export * from "./e-shape-rectangle-pivoted";
191
196
  export * from "./e-shape-rectangle-rounded";
197
+ export * from "./e-shape-rectangle-triangulated-impl";
198
+ export * from "./e-shape-rectangle-triangulated";
192
199
  export * from "./e-shape-rectangle";
193
200
  export * from "./e-shape-semicircle";
194
201
  export * from "./e-shape-stroke-impl-parent";
@@ -14,8 +14,14 @@ export var EShapeStrokeSide = {
14
14
  LEFT: LEFT,
15
15
  TOP_OR_LEFT: TOP | LEFT,
16
16
  TOP_OR_RIGHT: TOP | RIGHT,
17
+ TOP_OR_BOTTOM: TOP | BOTTOM,
17
18
  BOTTOM_OR_LEFT: BOTTOM | LEFT,
18
19
  BOTTOM_OR_RIGHT: BOTTOM | RIGHT,
20
+ LEFT_OR_RIGHT: LEFT | RIGHT,
21
+ NOT_TOP: RIGHT | BOTTOM | LEFT,
22
+ NOT_RIGHT: TOP | BOTTOM | LEFT,
23
+ NOT_BOTTOM: TOP | RIGHT | LEFT,
24
+ NOT_LEFT: TOP | RIGHT | BOTTOM,
19
25
  ALL: TOP | RIGHT | BOTTOM | LEFT
20
26
  };
21
27
  //# sourceMappingURL=e-shape-stroke-side.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"e-shape-stroke-side.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/shape/e-shape-stroke-side.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,IAAM,GAAG,GAAG,CAAC,CAAC;AACd,IAAM,KAAK,GAAG,CAAC,CAAC;AAChB,IAAM,MAAM,GAAG,CAAC,CAAC;AACjB,IAAM,IAAI,GAAG,CAAC,CAAC;AAEf,MAAM,CAAC,IAAM,gBAAgB,GAAG;IAC/B,IAAI,EAAE,CAAC;IACP,GAAG,KAAA;IACH,KAAK,OAAA;IACL,MAAM,QAAA;IACN,IAAI,MAAA;IACJ,WAAW,EAAE,GAAG,GAAG,IAAI;IACvB,YAAY,EAAE,GAAG,GAAG,KAAK;IACzB,cAAc,EAAE,MAAM,GAAG,IAAI;IAC7B,eAAe,EAAE,MAAM,GAAG,KAAK;IAC/B,GAAG,EAAE,GAAG,GAAG,KAAK,GAAG,MAAM,GAAG,IAAI;CACvB,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nconst TOP = 1;\nconst RIGHT = 2;\nconst BOTTOM = 4;\nconst LEFT = 8;\n\nexport const EShapeStrokeSide = {\n\tNONE: 0,\n\tTOP,\n\tRIGHT,\n\tBOTTOM,\n\tLEFT,\n\tTOP_OR_LEFT: TOP | LEFT,\n\tTOP_OR_RIGHT: TOP | RIGHT,\n\tBOTTOM_OR_LEFT: BOTTOM | LEFT,\n\tBOTTOM_OR_RIGHT: BOTTOM | RIGHT,\n\tALL: TOP | RIGHT | BOTTOM | LEFT\n} as const;\n\nexport type EShapeStrokeSide = (typeof EShapeStrokeSide)[keyof typeof EShapeStrokeSide];\n"]}
1
+ {"version":3,"file":"e-shape-stroke-side.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/shape/e-shape-stroke-side.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,IAAM,GAAG,GAAG,CAAC,CAAC;AACd,IAAM,KAAK,GAAG,CAAC,CAAC;AAChB,IAAM,MAAM,GAAG,CAAC,CAAC;AACjB,IAAM,IAAI,GAAG,CAAC,CAAC;AAEf,MAAM,CAAC,IAAM,gBAAgB,GAAG;IAC/B,IAAI,EAAE,CAAC;IACP,GAAG,KAAA;IACH,KAAK,OAAA;IACL,MAAM,QAAA;IACN,IAAI,MAAA;IAEJ,WAAW,EAAE,GAAG,GAAG,IAAI;IACvB,YAAY,EAAE,GAAG,GAAG,KAAK;IACzB,aAAa,EAAE,GAAG,GAAG,MAAM;IAC3B,cAAc,EAAE,MAAM,GAAG,IAAI;IAC7B,eAAe,EAAE,MAAM,GAAG,KAAK;IAC/B,aAAa,EAAE,IAAI,GAAG,KAAK;IAE3B,OAAO,EAAE,KAAK,GAAG,MAAM,GAAG,IAAI;IAC9B,SAAS,EAAE,GAAG,GAAG,MAAM,GAAG,IAAI;IAC9B,UAAU,EAAE,GAAG,GAAG,KAAK,GAAG,IAAI;IAC9B,QAAQ,EAAE,GAAG,GAAG,KAAK,GAAG,MAAM;IAE9B,GAAG,EAAE,GAAG,GAAG,KAAK,GAAG,MAAM,GAAG,IAAI;CACvB,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nconst TOP = 1;\nconst RIGHT = 2;\nconst BOTTOM = 4;\nconst LEFT = 8;\n\nexport const EShapeStrokeSide = {\n\tNONE: 0,\n\tTOP,\n\tRIGHT,\n\tBOTTOM,\n\tLEFT,\n\n\tTOP_OR_LEFT: TOP | LEFT,\n\tTOP_OR_RIGHT: TOP | RIGHT,\n\tTOP_OR_BOTTOM: TOP | BOTTOM,\n\tBOTTOM_OR_LEFT: BOTTOM | LEFT,\n\tBOTTOM_OR_RIGHT: BOTTOM | RIGHT,\n\tLEFT_OR_RIGHT: LEFT | RIGHT,\n\n\tNOT_TOP: RIGHT | BOTTOM | LEFT,\n\tNOT_RIGHT: TOP | BOTTOM | LEFT,\n\tNOT_BOTTOM: TOP | RIGHT | LEFT,\n\tNOT_LEFT: TOP | RIGHT | BOTTOM,\n\n\tALL: TOP | RIGHT | BOTTOM | LEFT\n} as const;\n\nexport type EShapeStrokeSide = (typeof EShapeStrokeSide)[keyof typeof EShapeStrokeSide];\n"]}
@@ -31,6 +31,7 @@ export var EShapeType = {
31
31
  EMBEDDED_ACCEPTOR_EDGE: 25,
32
32
  POLYGON: 26,
33
33
  CIRCLE_LEGACY: 27,
34
+ RECTANGLE_LEGACY: 28,
34
35
  EXTENSION: 1000
35
36
  };
36
37
  //# sourceMappingURL=e-shape-type.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"e-shape-type.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/shape/e-shape-type.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,CAAC,IAAM,UAAU,GAAG;IACzB,MAAM,EAAE,CAAC;IACT,SAAS,EAAE,CAAC;IACZ,iBAAiB,EAAE,CAAC;IACpB,QAAQ,EAAE,CAAC;IACX,gBAAgB,EAAE,CAAC;IACnB,IAAI,EAAE,CAAC;IACP,KAAK,EAAE,CAAC;IACR,SAAS,EAAE,CAAC;IACZ,KAAK,EAAE,CAAC;IACR,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,EAAE;IACT,IAAI,EAAE,EAAE;IACR,cAAc,EAAE,EAAE;IAClB,eAAe,EAAE,EAAE;IACnB,kBAAkB,EAAE,EAAE;IACtB,0BAA0B,EAAE,EAAE;IAC9B,iBAAiB,EAAE,EAAE;IACrB,yBAAyB,EAAE,EAAE;IAC7B,QAAQ,EAAE,EAAE;IACZ,cAAc,EAAE,EAAE;IAClB,MAAM,EAAE,EAAE;IACV,iBAAiB,EAAE,EAAE;IACrB,cAAc,EAAE,EAAE;IAClB,eAAe,EAAE,EAAE;IACnB,UAAU,EAAE,EAAE;IACd,sBAAsB,EAAE,EAAE;IAC1B,OAAO,EAAE,EAAE;IACX,aAAa,EAAE,EAAE;IACjB,SAAS,EAAE,IAAI;CACN,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport const EShapeType = {\n\tCIRCLE: 0,\n\tRECTANGLE: 1,\n\tRECTANGLE_ROUNDED: 2,\n\tTRIANGLE: 3,\n\tTRIANGLE_ROUNDED: 4,\n\tLINE: 5,\n\tIMAGE: 6,\n\tIMAGE_SDF: 7,\n\tGROUP: 8,\n\tBAR: 9,\n\tLABEL: 10,\n\tNULL: 11,\n\tGROUP_SHADOWED: 12,\n\tLINE_OF_CIRCLES: 13,\n\tLINE_OF_RECTANGLES: 14,\n\tLINE_OF_RECTANGLE_ROUNDEDS: 15,\n\tLINE_OF_TRIANGLES: 16,\n\tLINE_OF_TRIANGLE_ROUNDEDS: 17,\n\tEMBEDDED: 18,\n\tEMBEDDED_LAYER: 19,\n\tBUTTON: 20,\n\tRECTANGLE_PIVOTED: 21,\n\tCONNECTOR_LINE: 22,\n\tCONNECTOR_ELBOW: 23,\n\tSEMICIRCLE: 24,\n\tEMBEDDED_ACCEPTOR_EDGE: 25,\n\tPOLYGON: 26,\n\tCIRCLE_LEGACY: 27,\n\tEXTENSION: 1000\n} as const;\n\nexport type EShapeType = number;\n"]}
1
+ {"version":3,"file":"e-shape-type.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/shape/e-shape-type.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,CAAC,IAAM,UAAU,GAAG;IACzB,MAAM,EAAE,CAAC;IACT,SAAS,EAAE,CAAC;IACZ,iBAAiB,EAAE,CAAC;IACpB,QAAQ,EAAE,CAAC;IACX,gBAAgB,EAAE,CAAC;IACnB,IAAI,EAAE,CAAC;IACP,KAAK,EAAE,CAAC;IACR,SAAS,EAAE,CAAC;IACZ,KAAK,EAAE,CAAC;IACR,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,EAAE;IACT,IAAI,EAAE,EAAE;IACR,cAAc,EAAE,EAAE;IAClB,eAAe,EAAE,EAAE;IACnB,kBAAkB,EAAE,EAAE;IACtB,0BAA0B,EAAE,EAAE;IAC9B,iBAAiB,EAAE,EAAE;IACrB,yBAAyB,EAAE,EAAE;IAC7B,QAAQ,EAAE,EAAE;IACZ,cAAc,EAAE,EAAE;IAClB,MAAM,EAAE,EAAE;IACV,iBAAiB,EAAE,EAAE;IACrB,cAAc,EAAE,EAAE;IAClB,eAAe,EAAE,EAAE;IACnB,UAAU,EAAE,EAAE;IACd,sBAAsB,EAAE,EAAE;IAC1B,OAAO,EAAE,EAAE;IACX,aAAa,EAAE,EAAE;IACjB,gBAAgB,EAAE,EAAE;IACpB,SAAS,EAAE,IAAI;CACN,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport const EShapeType = {\n\tCIRCLE: 0,\n\tRECTANGLE: 1,\n\tRECTANGLE_ROUNDED: 2,\n\tTRIANGLE: 3,\n\tTRIANGLE_ROUNDED: 4,\n\tLINE: 5,\n\tIMAGE: 6,\n\tIMAGE_SDF: 7,\n\tGROUP: 8,\n\tBAR: 9,\n\tLABEL: 10,\n\tNULL: 11,\n\tGROUP_SHADOWED: 12,\n\tLINE_OF_CIRCLES: 13,\n\tLINE_OF_RECTANGLES: 14,\n\tLINE_OF_RECTANGLE_ROUNDEDS: 15,\n\tLINE_OF_TRIANGLES: 16,\n\tLINE_OF_TRIANGLE_ROUNDEDS: 17,\n\tEMBEDDED: 18,\n\tEMBEDDED_LAYER: 19,\n\tBUTTON: 20,\n\tRECTANGLE_PIVOTED: 21,\n\tCONNECTOR_LINE: 22,\n\tCONNECTOR_ELBOW: 23,\n\tSEMICIRCLE: 24,\n\tEMBEDDED_ACCEPTOR_EDGE: 25,\n\tPOLYGON: 26,\n\tCIRCLE_LEGACY: 27,\n\tRECTANGLE_LEGACY: 28,\n\tEXTENSION: 1000\n} as const;\n\nexport type EShapeType = number;\n"]}
@@ -23,6 +23,8 @@ export * from "./load-shape-line-of-triangles";
23
23
  export * from "./load-shape-line";
24
24
  export * from "./load-shape-null";
25
25
  export * from "./load-shape-polygon";
26
+ export * from "./load-shape-rectangle-legacy";
27
+ export * from "./load-shape-rectangle-pivoted";
26
28
  export * from "./load-shape-rectangle-rounded";
27
29
  export * from "./load-shape-rectangle";
28
30
  export * from "./load-shape-semicircle";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/load/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yCAAyC,CAAC;AACxD,cAAc,iCAAiC,CAAC;AAChD,cAAc,wCAAwC,CAAC;AACvD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport * from \"./load-shape-all\";\nexport * from \"./load-shape-bar\";\nexport * from \"./load-shape-button\";\nexport * from \"./load-shape-circle-legacy\";\nexport * from \"./load-shape-circle\";\nexport * from \"./load-shape-clipper-ex\";\nexport * from \"./load-shape-connector-elbow\";\nexport * from \"./load-shape-connector-line\";\nexport * from \"./load-shape-embedded\";\nexport * from \"./load-shape-group-shadowed\";\nexport * from \"./load-shape-group\";\nexport * from \"./load-shape-image\";\nexport * from \"./load-shape-label\";\nexport * from \"./load-shape-line-of-circles\";\nexport * from \"./load-shape-line-of-rectangle-roundeds\";\nexport * from \"./load-shape-line-of-rectangles\";\nexport * from \"./load-shape-line-of-triangle-roundeds\";\nexport * from \"./load-shape-line-of-triangles\";\nexport * from \"./load-shape-line\";\nexport * from \"./load-shape-null\";\nexport * from \"./load-shape-polygon\";\nexport * from \"./load-shape-rectangle-rounded\";\nexport * from \"./load-shape-rectangle\";\nexport * from \"./load-shape-semicircle\";\nexport * from \"./load-shape-triangle-rounded\";\nexport * from \"./load-shape-triangle\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/load/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yCAAyC,CAAC;AACxD,cAAc,iCAAiC,CAAC;AAChD,cAAc,wCAAwC,CAAC;AACvD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport * from \"./load-shape-all\";\nexport * from \"./load-shape-bar\";\nexport * from \"./load-shape-button\";\nexport * from \"./load-shape-circle-legacy\";\nexport * from \"./load-shape-circle\";\nexport * from \"./load-shape-clipper-ex\";\nexport * from \"./load-shape-connector-elbow\";\nexport * from \"./load-shape-connector-line\";\nexport * from \"./load-shape-embedded\";\nexport * from \"./load-shape-group-shadowed\";\nexport * from \"./load-shape-group\";\nexport * from \"./load-shape-image\";\nexport * from \"./load-shape-label\";\nexport * from \"./load-shape-line-of-circles\";\nexport * from \"./load-shape-line-of-rectangle-roundeds\";\nexport * from \"./load-shape-line-of-rectangles\";\nexport * from \"./load-shape-line-of-triangle-roundeds\";\nexport * from \"./load-shape-line-of-triangles\";\nexport * from \"./load-shape-line\";\nexport * from \"./load-shape-null\";\nexport * from \"./load-shape-polygon\";\nexport * from \"./load-shape-rectangle-legacy\";\nexport * from \"./load-shape-rectangle-pivoted\";\nexport * from \"./load-shape-rectangle-rounded\";\nexport * from \"./load-shape-rectangle\";\nexport * from \"./load-shape-semicircle\";\nexport * from \"./load-shape-triangle-rounded\";\nexport * from \"./load-shape-triangle\";\n"]}
@@ -23,6 +23,7 @@ import { loadShapeLineOfTriangles } from "./load-shape-line-of-triangles";
23
23
  import { loadShapeNull } from "./load-shape-null";
24
24
  import { loadShapePolygon } from "./load-shape-polygon";
25
25
  import { loadShapeRectangle } from "./load-shape-rectangle";
26
+ import { loadShapeRectangleLegacy } from "./load-shape-rectangle-legacy";
26
27
  import { loadShapeRectanglePivoted } from "./load-shape-rectangle-pivoted";
27
28
  import { loadShapeRectangleRounded } from "./load-shape-rectangle-rounded";
28
29
  import { loadShapeSemicircle } from "./load-shape-semicircle";
@@ -44,6 +45,7 @@ export var loadShapeAll = function () {
44
45
  loadShapeLine();
45
46
  loadShapeNull();
46
47
  loadShapePolygon();
48
+ loadShapeRectangleLegacy();
47
49
  loadShapeRectanglePivoted();
48
50
  loadShapeRectangleRounded();
49
51
  loadShapeRectangle();
@@ -1 +1 @@
1
- {"version":3,"file":"load-shape-all.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/load/load-shape-all.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,gCAAgC,EAAE,MAAM,yCAAyC,CAAC;AAC3F,OAAO,EAAE,yBAAyB,E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B,EAAE,CAAC;IAClC,wBAAwB,EAAE,CAAC;AAC5B,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { loadShapeBar } from \"./load-shape-bar\";\nimport { loadShapeButton } from \"./load-shape-button\";\nimport { loadShapeCircle } from \"./load-shape-circle\";\nimport { loadShapeCircleLegacy } from \"./load-shape-circle-legacy\";\nimport { loadShapeConnectorElbow } from \"./load-shape-connector-elbow\";\nimport { loadShapeConnectorLine } from \"./load-shape-connector-line\";\nimport { loadShapeEmbedded } from \"./load-shape-embedded\";\nimport { loadShapeGroup } from \"./load-shape-group\";\nimport { loadShapeGroupShadowed } from \"./load-shape-group-shadowed\";\nimport { loadShapeImage } from \"./load-shape-image\";\nimport { loadShapeImageSdf } from \"./load-shape-image-sdf\";\nimport { loadShapeLabel } from \"./load-shape-label\";\nimport { loadShapeLine } from \"./load-shape-line\";\nimport { loadShapeLineOfCircles } from \"./load-shape-line-of-circles\";\nimport { loadShapeLineOfRectangleRoundeds } from \"./load-shape-line-of-rectangle-roundeds\";\nimport { loadShapeLineOfRectangles } from \"./load-shape-line-of-rectangles\";\nimport { loadShapeLineOfTriangleRoundeds } from \"./load-shape-line-of-triangle-roundeds\";\nimport { loadShapeLineOfTriangles } from \"./load-shape-line-of-triangles\";\nimport { loadShapeNull } from \"./load-shape-null\";\nimport { loadShapePolygon } from \"./load-shape-polygon\";\nimport { loadShapeRectangle } from \"./load-shape-rectangle\";\nimport { loadShapeRectanglePivoted } from \"./load-shape-rectangle-pivoted\";\nimport { loadShapeRectangleRounded } from \"./load-shape-rectangle-rounded\";\nimport { loadShapeSemicircle } from \"./load-shape-semicircle\";\nimport { loadShapeTriangle } from \"./load-shape-triangle\";\nimport { loadShapeTriangleRounded } from \"./load-shape-triangle-rounded\";\n\nexport const loadShapeAll = (): void => {\n\tloadShapeBar();\n\tloadShapeButton();\n\tloadShapeCircleLegacy();\n\tloadShapeCircle();\n\tloadShapeConnectorElbow();\n\tloadShapeConnectorLine();\n\tloadShapeEmbedded();\n\tloadShapeGroupShadowed();\n\tloadShapeGroup();\n\tloadShapeImage();\n\tloadShapeImageSdf();\n\tloadShapeLabel();\n\tloadShapeLine();\n\tloadShapeNull();\n\tloadShapePolygon();\n\tloadShapeRectanglePivoted();\n\tloadShapeRectangleRounded();\n\tloadShapeRectangle();\n\tloadShapeSemicircle();\n\tloadShapeTriangleRounded();\n\tloadShapeTriangle();\n\tloadShapeLineOfCircles();\n\tloadShapeLineOfRectangleRoundeds();\n\tloadShapeLineOfRectangles();\n\tloadShapeLineOfTriangleRoundeds();\n\tloadShapeLineOfTriangles();\n};\n"]}
1
+ {"version":3,"file":"load-shape-all.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/load/load-shape-all.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,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C;IAC5B,kBAAkB,EAAE,CAAC;IACrB,mBAAmB,EAAE,CAAC;IACtB,wBAAwB,EAAE,CAAC;IAC3B,iBAAiB,EAAE,CAAC;IACpB,sBAAsB,EAAE,CAAC;IACzB,gCAAgC,EAAE,CAAC;IACnC,yBAAyB,EAAE,CAAC;IAC5B,+BAA+B,EAAE,CAAC;IAClC,wBAAwB,EAAE,CAAC;AAC5B,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { loadShapeBar } from \"./load-shape-bar\";\nimport { loadShapeButton } from \"./load-shape-button\";\nimport { loadShapeCircle } from \"./load-shape-circle\";\nimport { loadShapeCircleLegacy } from \"./load-shape-circle-legacy\";\nimport { loadShapeConnectorElbow } from \"./load-shape-connector-elbow\";\nimport { loadShapeConnectorLine } from \"./load-shape-connector-line\";\nimport { loadShapeEmbedded } from \"./load-shape-embedded\";\nimport { loadShapeGroup } from \"./load-shape-group\";\nimport { loadShapeGroupShadowed } from \"./load-shape-group-shadowed\";\nimport { loadShapeImage } from \"./load-shape-image\";\nimport { loadShapeImageSdf } from \"./load-shape-image-sdf\";\nimport { loadShapeLabel } from \"./load-shape-label\";\nimport { loadShapeLine } from \"./load-shape-line\";\nimport { loadShapeLineOfCircles } from \"./load-shape-line-of-circles\";\nimport { loadShapeLineOfRectangleRoundeds } from \"./load-shape-line-of-rectangle-roundeds\";\nimport { loadShapeLineOfRectangles } from \"./load-shape-line-of-rectangles\";\nimport { loadShapeLineOfTriangleRoundeds } from \"./load-shape-line-of-triangle-roundeds\";\nimport { loadShapeLineOfTriangles } from \"./load-shape-line-of-triangles\";\nimport { loadShapeNull } from \"./load-shape-null\";\nimport { loadShapePolygon } from \"./load-shape-polygon\";\nimport { loadShapeRectangle } from \"./load-shape-rectangle\";\nimport { loadShapeRectangleLegacy } from \"./load-shape-rectangle-legacy\";\nimport { loadShapeRectanglePivoted } from \"./load-shape-rectangle-pivoted\";\nimport { loadShapeRectangleRounded } from \"./load-shape-rectangle-rounded\";\nimport { loadShapeSemicircle } from \"./load-shape-semicircle\";\nimport { loadShapeTriangle } from \"./load-shape-triangle\";\nimport { loadShapeTriangleRounded } from \"./load-shape-triangle-rounded\";\n\nexport const loadShapeAll = (): void => {\n\tloadShapeBar();\n\tloadShapeButton();\n\tloadShapeCircleLegacy();\n\tloadShapeCircle();\n\tloadShapeConnectorElbow();\n\tloadShapeConnectorLine();\n\tloadShapeEmbedded();\n\tloadShapeGroupShadowed();\n\tloadShapeGroup();\n\tloadShapeImage();\n\tloadShapeImageSdf();\n\tloadShapeLabel();\n\tloadShapeLine();\n\tloadShapeNull();\n\tloadShapePolygon();\n\tloadShapeRectangleLegacy();\n\tloadShapeRectanglePivoted();\n\tloadShapeRectangleRounded();\n\tloadShapeRectangle();\n\tloadShapeSemicircle();\n\tloadShapeTriangleRounded();\n\tloadShapeTriangle();\n\tloadShapeLineOfCircles();\n\tloadShapeLineOfRectangleRoundeds();\n\tloadShapeLineOfRectangles();\n\tloadShapeLineOfTriangleRoundeds();\n\tloadShapeLineOfTriangles();\n};\n"]}
@@ -5,10 +5,10 @@
5
5
  import { EShapeDeserializers } from "../e-shape-deserializers";
6
6
  import { EShapeType } from "../e-shape-type";
7
7
  import { EShapeUploadeds } from "../e-shape-uploadeds";
8
- import { createRectangleUploaded } from "../variant/create-rectangle-uploaded";
8
+ import { createPolygonUploaded } from "../variant";
9
9
  import { deserializeImage } from "../variant/deserialize-image";
10
10
  export var loadShapeImage = function () {
11
- EShapeUploadeds[EShapeType.IMAGE] = createRectangleUploaded;
11
+ EShapeUploadeds[EShapeType.IMAGE] = createPolygonUploaded;
12
12
  EShapeDeserializers[EShapeType.IMAGE] = deserializeImage;
13
13
  };
14
14
  //# sourceMappingURL=load-shape-image.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"load-shape-image.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/load/load-shape-image.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE,MAAM,CAAC,IAAM,cAAc,GAAG;IAC7B,eAAe,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,uBAAuB,CAAC;IAC5D,mBAAmB,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,gBAAgB,CAAC;AAC1D,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShapeDeserializers } from \"../e-shape-deserializers\";\nimport { EShapeType } from \"../e-shape-type\";\nimport { EShapeUploadeds } from \"../e-shape-uploadeds\";\nimport { createRectangleUploaded } from \"../variant/create-rectangle-uploaded\";\nimport { deserializeImage } from \"../variant/deserialize-image\";\n\nexport const loadShapeImage = (): void => {\n\tEShapeUploadeds[EShapeType.IMAGE] = createRectangleUploaded;\n\tEShapeDeserializers[EShapeType.IMAGE] = deserializeImage;\n};\n"]}
1
+ {"version":3,"file":"load-shape-image.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/load/load-shape-image.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE,MAAM,CAAC,IAAM,cAAc,GAAG;IAC7B,eAAe,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,qBAAqB,CAAC;IAC1D,mBAAmB,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,gBAAgB,CAAC;AAC1D,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShapeDeserializers } from \"../e-shape-deserializers\";\nimport { EShapeType } from \"../e-shape-type\";\nimport { EShapeUploadeds } from \"../e-shape-uploadeds\";\nimport { createPolygonUploaded } from \"../variant\";\nimport { deserializeImage } from \"../variant/deserialize-image\";\n\nexport const loadShapeImage = (): void => {\n\tEShapeUploadeds[EShapeType.IMAGE] = createPolygonUploaded;\n\tEShapeDeserializers[EShapeType.IMAGE] = deserializeImage;\n};\n"]}
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Copyright (C) 2019 Toshiba Corporation
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ */
5
+ import { EShapeCapabilities } from "../e-shape-capabilities";
6
+ import { EShapeCapability } from "../e-shape-capability";
7
+ import { EShapeDeserializers } from "../e-shape-deserializers";
8
+ import { EShapeType } from "../e-shape-type";
9
+ import { EShapeUploadeds } from "../e-shape-uploadeds";
10
+ import { createRectangleLegacyUploaded } from "../variant/create-rectangle-legacy-uploaded";
11
+ import { deserializeRectangleLegacy } from "../variant/deserialize-rectangle-legacy";
12
+ export var loadShapeRectangleLegacy = function () {
13
+ EShapeUploadeds[EShapeType.RECTANGLE_LEGACY] = createRectangleLegacyUploaded;
14
+ EShapeDeserializers[EShapeType.RECTANGLE_LEGACY] = deserializeRectangleLegacy;
15
+ EShapeCapabilities.set(EShapeType.RECTANGLE_LEGACY, EShapeCapability.PRIMITIVE | EShapeCapability.STROKE_SIDE);
16
+ };
17
+ //# sourceMappingURL=load-shape-rectangle-legacy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"load-shape-rectangle-legacy.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/load/load-shape-rectangle-legacy.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,6BAA6B,EAAE,MAAM,6CAA6C,CAAC;AAC5F,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAErF,MAAM,CAAC,IAAM,wBAAwB,GAAG;IACvC,eAAe,CAAC,UAAU,CAAC,gBAAgB,CAAC,GAAG,6BAA6B,CAAC;IAC7E,mBAAmB,CAAC,UAAU,CAAC,gBAAgB,CAAC,GAAG,0BAA0B,CAAC;IAC9E,kBAAkB,CAAC,GAAG,CACrB,UAAU,CAAC,gBAAgB,EAC3B,gBAAgB,CAAC,SAAS,GAAG,gBAAgB,CAAC,WAAW,CACzD,CAAC;AACH,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShapeCapabilities } from \"../e-shape-capabilities\";\nimport { EShapeCapability } from \"../e-shape-capability\";\nimport { EShapeDeserializers } from \"../e-shape-deserializers\";\nimport { EShapeType } from \"../e-shape-type\";\nimport { EShapeUploadeds } from \"../e-shape-uploadeds\";\nimport { createRectangleLegacyUploaded } from \"../variant/create-rectangle-legacy-uploaded\";\nimport { deserializeRectangleLegacy } from \"../variant/deserialize-rectangle-legacy\";\n\nexport const loadShapeRectangleLegacy = (): void => {\n\tEShapeUploadeds[EShapeType.RECTANGLE_LEGACY] = createRectangleLegacyUploaded;\n\tEShapeDeserializers[EShapeType.RECTANGLE_LEGACY] = deserializeRectangleLegacy;\n\tEShapeCapabilities.set(\n\t\tEShapeType.RECTANGLE_LEGACY,\n\t\tEShapeCapability.PRIMITIVE | EShapeCapability.STROKE_SIDE\n\t);\n};\n"]}
@@ -7,10 +7,10 @@ import { EShapeCapability } from "../e-shape-capability";
7
7
  import { EShapeDeserializers } from "../e-shape-deserializers";
8
8
  import { EShapeType } from "../e-shape-type";
9
9
  import { EShapeUploadeds } from "../e-shape-uploadeds";
10
- import { createRectangleUploaded } from "../variant/create-rectangle-uploaded";
10
+ import { createPolygonUploaded } from "../variant/create-polygon-uploaded";
11
11
  import { deserializeRectangle } from "../variant/deserialize-rectangle";
12
12
  export var loadShapeRectangle = function () {
13
- EShapeUploadeds[EShapeType.RECTANGLE] = createRectangleUploaded;
13
+ EShapeUploadeds[EShapeType.RECTANGLE] = createPolygonUploaded;
14
14
  EShapeDeserializers[EShapeType.RECTANGLE] = deserializeRectangle;
15
15
  EShapeCapabilities.set(EShapeType.RECTANGLE, EShapeCapability.PRIMITIVE | EShapeCapability.STROKE_SIDE);
16
16
  };
@@ -1 +1 @@
1
- {"version":3,"file":"load-shape-rectangle.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/load/load-shape-rectangle.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAExE,MAAM,CAAC,IAAM,kBAAkB,GAAG;IACjC,eAAe,CAAC,UAAU,CAAC,SAAS,CAAC,GAAG,uBAAuB,CAAC;IAChE,mBAAmB,CAAC,UAAU,CAAC,SAAS,CAAC,GAAG,oBAAoB,CAAC;IACjE,kBAAkB,CAAC,GAAG,CACrB,UAAU,CAAC,SAAS,EACpB,gBAAgB,CAAC,SAAS,GAAG,gBAAgB,CAAC,WAAW,CACzD,CAAC;AACH,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShapeCapabilities } from \"../e-shape-capabilities\";\nimport { EShapeCapability } from \"../e-shape-capability\";\nimport { EShapeDeserializers } from \"../e-shape-deserializers\";\nimport { EShapeType } from \"../e-shape-type\";\nimport { EShapeUploadeds } from \"../e-shape-uploadeds\";\nimport { createRectangleUploaded } from \"../variant/create-rectangle-uploaded\";\nimport { deserializeRectangle } from \"../variant/deserialize-rectangle\";\n\nexport const loadShapeRectangle = (): void => {\n\tEShapeUploadeds[EShapeType.RECTANGLE] = createRectangleUploaded;\n\tEShapeDeserializers[EShapeType.RECTANGLE] = deserializeRectangle;\n\tEShapeCapabilities.set(\n\t\tEShapeType.RECTANGLE,\n\t\tEShapeCapability.PRIMITIVE | EShapeCapability.STROKE_SIDE\n\t);\n};\n"]}
1
+ {"version":3,"file":"load-shape-rectangle.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/load/load-shape-rectangle.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAExE,MAAM,CAAC,IAAM,kBAAkB,GAAG;IACjC,eAAe,CAAC,UAAU,CAAC,SAAS,CAAC,GAAG,qBAAqB,CAAC;IAC9D,mBAAmB,CAAC,UAAU,CAAC,SAAS,CAAC,GAAG,oBAAoB,CAAC;IACjE,kBAAkB,CAAC,GAAG,CACrB,UAAU,CAAC,SAAS,EACpB,gBAAgB,CAAC,SAAS,GAAG,gBAAgB,CAAC,WAAW,CACzD,CAAC;AACH,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShapeCapabilities } from \"../e-shape-capabilities\";\nimport { EShapeCapability } from \"../e-shape-capability\";\nimport { EShapeDeserializers } from \"../e-shape-deserializers\";\nimport { EShapeType } from \"../e-shape-type\";\nimport { EShapeUploadeds } from \"../e-shape-uploadeds\";\nimport { createPolygonUploaded } from \"../variant/create-polygon-uploaded\";\nimport { deserializeRectangle } from \"../variant/deserialize-rectangle\";\n\nexport const loadShapeRectangle = (): void => {\n\tEShapeUploadeds[EShapeType.RECTANGLE] = createPolygonUploaded;\n\tEShapeDeserializers[EShapeType.RECTANGLE] = deserializeRectangle;\n\tEShapeCapabilities.set(\n\t\tEShapeType.RECTANGLE,\n\t\tEShapeCapability.PRIMITIVE | EShapeCapability.STROKE_SIDE\n\t);\n};\n"]}
@@ -40,7 +40,7 @@ export var buildPolygonVertex = function (vertices, polygonVertices, voffset, in
40
40
  export var buildPolygonStep = function (steps, polygonDistances, polygonLengths, polygonClippings, polygonUvs, polygonBoundary, voffset, vertexCount, fillDirection, fillPercent, strokeWidth, strokeSide, strokeStyle) {
41
41
  var scaleInvariant = toScaleInvariant(strokeStyle);
42
42
  var dash = toDash(strokeStyle);
43
- var w = (strokeSide & EShapeStrokeSide.ALL) === EShapeStrokeSide.ALL ? 1 : 0;
43
+ var w = strokeSide !== EShapeStrokeSide.NONE ? 1 : 0;
44
44
  var e = toPackedI4x64(7 + dash, scaleInvariant, w, 0);
45
45
  var fp = Math.max(0, Math.min(1, fillPercent));
46
46
  switch (fillDirection) {
@@ -1 +1 @@
1
- {"version":3,"file":"build-polygon.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/build-polygon.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAGhE;;GAEG;AACH,MAAM,CAAC,IAAM,iBAAiB,GAAG,UAChC,OAAkC,EAClC,cAAwB,EACxB,OAAe,EACf,OAAe;IAEf,IAAI,EAAE,GAAG,OAAO,GAAG,CAAC,GAAG,CAAC,CAAC;IACzB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,cAAc,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC;QACvD,OAAO,CAAC,EAAE,EAAE,CAAC,GAAG,OAAO,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC;IAC7C,CAAC;AACF,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,IAAM,kBAAkB,GAAG,UACjC,QAAsB,EACtB,eAAyB,EACzB,OAAe,EACf,iBAAyB;IAEzB,IAAM,CAAC,GAAG,iBAAiB,CAAC,CAAC,CAAC;IAC9B,IAAM,CAAC,GAAG,iBAAiB,CAAC,CAAC,CAAC;IAC9B,IAAM,CAAC,GAAG,iBAAiB,CAAC,CAAC,CAAC;IAC9B,IAAM,CAAC,GAAG,iBAAiB,CAAC,CAAC,CAAC;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AAE,GAAG,CAAC,GAAG,EAAE,GAAG,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC;IAC1C,CAAC;AACF,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { Matrix, TextureUvs } from \"pixi.js\";\nimport { EShapeStrokeStyle } from \"../e-shape-stroke-style\";\nimport { toPackedClippings, toPackedI4x64 } from \"./to-packed\";\nimport { toScaleInvariant } from \"./to-scale-invariant\";\nimport { EShapeStrokeSide } from \"../e-shape-stroke-side\";\nimport { toDash } from \"./to-dash\";\nimport { EShapeFillDirection } from \"../e-shape-fill-direction\";\nimport { EShapeBoundary } from \"../e-shape-boundary\";\n\n/**\n * Build index buffer for polygons.\n */\nexport const buildPolygonIndex = (\n\tindices: Uint16Array | Uint32Array,\n\tpolygonIndices: number[],\n\tvoffset: number,\n\tioffset: number\n): void => {\n\tlet ii = ioffset * 3 - 1;\n\tfor (let i = 0, n = polygonIndices.length; i < n; ++i) {\n\t\tindices[++ii] = voffset + polygonIndices[i];\n\t}\n};\n\n/**\n * Build vertices buffer for polygons.\n */\nexport const buildPolygonVertex = (\n\tvertices: Float32Array,\n\tpolygonVertices: number[],\n\tvoffset: number,\n\tinternalTransform: Matrix\n): void => {\n\tconst a = internalTransform.a;\n\tconst b = internalTransform.b;\n\tconst c = internalTransform.c;\n\tconst d = internalTransform.d;\n\tconst tx = internalTransform.tx;\n\tconst ty = internalTransform.ty;\n\tlet iv = (voffset << 1) - 1;\n\tfor (let i = 0, n = polygonVertices.length; i < n; i += 2) {\n\t\tconst x = polygonVertices[i];\n\t\tconst y = polygonVertices[i + 1];\n\t\tvertices[++iv] = a * x + c * y + tx;\n\t\tvertices[++iv] = b * x + d * y + ty;\n\t}\n};\n\n/**\n * Build step buffer for polygons.\n */\nexport const buildPolygonStep = (\n\tsteps: Float32Array,\n\tpolygonDistances: number[],\n\tpolygonLengths: number[],\n\tpolygonClippings: number[],\n\tpolygonUvs: number[],\n\tpolygonBoundary: EShapeBoundary,\n\tvoffset: number,\n\tvertexCount: number,\n\tfillDirection: EShapeFillDirection,\n\tfillPercent: number,\n\tstrokeWidth: number,\n\tstrokeSide: EShapeStrokeSide,\n\tstrokeStyle: EShapeStrokeStyle\n): void => {\n\tconst scaleInvariant = toScaleInvariant(strokeStyle);\n\tconst dash = toDash(strokeStyle);\n\tconst w = (strokeSide & EShapeStrokeSide.ALL) === EShapeStrokeSide.ALL ? 1 : 0;\n\tconst e = toPackedI4x64(7 + dash, scaleInvariant, w, 0);\n\tconst fp = Math.max(0, Math.min(1, fillPercent));\n\tswitch (fillDirection) {\n\t\tcase EShapeFillDirection.TOP:\n\t\t\tbuildPolygonStepY(\n\t\t\t\tsteps,\n\t\t\t\tpolygonDistances,\n\t\t\t\tpolygonLengths,\n\t\t\t\tpolygonClippings,\n\t\t\t\tpolygonUvs,\n\t\t\t\tvoffset,\n\t\t\t\tvertexCount,\n\t\t\t\tstrokeWidth,\n\t\t\t\te,\n\t\t\t\tpolygonBoundary[3] - polygonBoundary[1],\n\t\t\t\tfp\n\t\t\t);\n\t\t\tbreak;\n\t\tcase EShapeFillDirection.RIGHT:\n\t\t\tbuildPolygonStepX(\n\t\t\t\tsteps,\n\t\t\t\tpolygonDistances,\n\t\t\t\tpolygonLengths,\n\t\t\t\tpolygonClippings,\n\t\t\t\tpolygonUvs,\n\t\t\t\tvoffset,\n\t\t\t\tvertexCount,\n\t\t\t\tstrokeWidth,\n\t\t\t\te,\n\t\t\t\tpolygonBoundary[0] - polygonBoundary[2],\n\t\t\t\t1 - fp\n\t\t\t);\n\t\t\tbreak;\n\t\tcase EShapeFillDirection.BOTTOM:\n\t\t\tbuildPolygonStepY(\n\t\t\t\tsteps,\n\t\t\t\tpolygonDistances,\n\t\t\t\tpolygonLengths,\n\t\t\t\tpolygonClippings,\n\t\t\t\tpolygonUvs,\n\t\t\t\tvoffset,\n\t\t\t\tvertexCount,\n\t\t\t\tstrokeWidth,\n\t\t\t\te,\n\t\t\t\tpolygonBoundary[1] - polygonBoundary[3],\n\t\t\t\t1 - fp\n\t\t\t);\n\t\t\tbreak;\n\t\tcase EShapeFillDirection.LEFT:\n\t\t\tbuildPolygonStepX(\n\t\t\t\tsteps,\n\t\t\t\tpolygonDistances,\n\t\t\t\tpolygonLengths,\n\t\t\t\tpolygonClippings,\n\t\t\t\tpolygonUvs,\n\t\t\t\tvoffset,\n\t\t\t\tvertexCount,\n\t\t\t\tstrokeWidth,\n\t\t\t\te,\n\t\t\t\tpolygonBoundary[2] - polygonBoundary[0],\n\t\t\t\tfp\n\t\t\t);\n\t\t\tbreak;\n\t}\n};\n\nexport const buildPolygonStepX = (\n\tsteps: Float32Array,\n\tpolygonDistances: number[],\n\tpolygonLengths: number[],\n\tpolygonClippings: number[],\n\tpolygonUvs: number[],\n\tvoffset: number,\n\tvertexCount: number,\n\tstrokeWidth: number,\n\te: number,\n\tafp: number,\n\tfp: number\n): void => {\n\tlet is = voffset * 6 - 1;\n\tfor (let i = 0, j = 0; i < vertexCount; i += 1, j += 2) {\n\t\tsteps[++is] = strokeWidth;\n\t\tsteps[++is] = e;\n\t\tsteps[++is] = polygonDistances[i];\n\t\tsteps[++is] = afp * (fp - polygonUvs[j]);\n\t\tsteps[++is] = toPackedClippings(polygonClippings[i], 0);\n\t\tsteps[++is] = polygonLengths[i];\n\t}\n};\n\nexport const buildPolygonStepY = (\n\tsteps: Float32Array,\n\tpolygonDistances: number[],\n\tpolygonLengths: number[],\n\tpolygonClippings: number[],\n\tpolygonUvs: number[],\n\tvoffset: number,\n\tvertexCount: number,\n\tstrokeWidth: number,\n\te: number,\n\tafp: number,\n\tfp: number\n): void => {\n\tlet is = voffset * 6 - 1;\n\tfor (let i = 0, j = 1; i < vertexCount; i += 1, j += 2) {\n\t\tsteps[++is] = strokeWidth;\n\t\tsteps[++is] = e;\n\t\tsteps[++is] = polygonDistances[i];\n\t\tsteps[++is] = afp * (fp - polygonUvs[j]);\n\t\tsteps[++is] = toPackedClippings(polygonClippings[i], 0);\n\t\tsteps[++is] = polygonLengths[i];\n\t}\n};\n\n/**\n * Build UV buffer for polygons.\n */\nexport const buildPolygonUv = (\n\tuvs: Float32Array,\n\tpolygonUvs: number[],\n\tvoffset: number,\n\ttextureUvs: TextureUvs\n): void => {\n\tconst x0 = textureUvs.x0;\n\tconst x1 = textureUvs.x1;\n\tconst y0 = textureUvs.y0;\n\tconst y3 = textureUvs.y3;\n\tconst dx = x1 - x0;\n\tconst dy = y3 - y0;\n\tlet iuv = (voffset << 1) - 1;\n\tfor (let i = 0, n = polygonUvs.length; i < n; i += 2) {\n\t\tuvs[++iuv] = x0 + polygonUvs[i] * dx;\n\t\tuvs[++iuv] = y0 + polygonUvs[i + 1] * dy;\n\t}\n};\n"]}
1
+ {"version":3,"file":"build-polygon.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/build-polygon.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAGhE;;GAEG;AACH,MAAM,CAAC,IAAM,iBAAiB,GAAG,UAChC,OAAkC,EAClC,cAAwB,EACxB,OAAe,EACf,OAAe;IAEf,IAAI,EAAE,GAAG,OAAO,GAAG,CAAC,GAAG,CAAC,CAAC;IACzB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,cAAc,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC;QACvD,OAAO,CAAC,EAAE,EAAE,CAAC,GAAG,OAAO,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G,EAAE,CAAC;IACnB,IAAI,GAAG,GAAG,CAAC,OAAO,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;IAC7B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;QACtD,GAAG,CAAC,EAAE,GAAG,CAAC,GAAG,EAAE,GAAG,UAAU,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;QACrC,GAAG,CAAC,EAAE,GAAG,CAAC,GAAG,EAAE,GAAG,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC;IAC1C,CAAC;AACF,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { Matrix, TextureUvs } from \"pixi.js\";\nimport { EShapeStrokeStyle } from \"../e-shape-stroke-style\";\nimport { toPackedClippings, toPackedI4x64 } from \"./to-packed\";\nimport { toScaleInvariant } from \"./to-scale-invariant\";\nimport { EShapeStrokeSide } from \"../e-shape-stroke-side\";\nimport { toDash } from \"./to-dash\";\nimport { EShapeFillDirection } from \"../e-shape-fill-direction\";\nimport { EShapeBoundary } from \"../e-shape-boundary\";\n\n/**\n * Build index buffer for polygons.\n */\nexport const buildPolygonIndex = (\n\tindices: Uint16Array | Uint32Array,\n\tpolygonIndices: number[],\n\tvoffset: number,\n\tioffset: number\n): void => {\n\tlet ii = ioffset * 3 - 1;\n\tfor (let i = 0, n = polygonIndices.length; i < n; ++i) {\n\t\tindices[++ii] = voffset + polygonIndices[i];\n\t}\n};\n\n/**\n * Build vertices buffer for polygons.\n */\nexport const buildPolygonVertex = (\n\tvertices: Float32Array,\n\tpolygonVertices: number[],\n\tvoffset: number,\n\tinternalTransform: Matrix\n): void => {\n\tconst a = internalTransform.a;\n\tconst b = internalTransform.b;\n\tconst c = internalTransform.c;\n\tconst d = internalTransform.d;\n\tconst tx = internalTransform.tx;\n\tconst ty = internalTransform.ty;\n\tlet iv = (voffset << 1) - 1;\n\tfor (let i = 0, n = polygonVertices.length; i < n; i += 2) {\n\t\tconst x = polygonVertices[i];\n\t\tconst y = polygonVertices[i + 1];\n\t\tvertices[++iv] = a * x + c * y + tx;\n\t\tvertices[++iv] = b * x + d * y + ty;\n\t}\n};\n\n/**\n * Build step buffer for polygons.\n */\nexport const buildPolygonStep = (\n\tsteps: Float32Array,\n\tpolygonDistances: number[],\n\tpolygonLengths: number[],\n\tpolygonClippings: number[],\n\tpolygonUvs: number[],\n\tpolygonBoundary: EShapeBoundary,\n\tvoffset: number,\n\tvertexCount: number,\n\tfillDirection: EShapeFillDirection,\n\tfillPercent: number,\n\tstrokeWidth: number,\n\tstrokeSide: EShapeStrokeSide,\n\tstrokeStyle: EShapeStrokeStyle\n): void => {\n\tconst scaleInvariant = toScaleInvariant(strokeStyle);\n\tconst dash = toDash(strokeStyle);\n\tconst w = strokeSide !== EShapeStrokeSide.NONE ? 1 : 0;\n\tconst e = toPackedI4x64(7 + dash, scaleInvariant, w, 0);\n\tconst fp = Math.max(0, Math.min(1, fillPercent));\n\tswitch (fillDirection) {\n\t\tcase EShapeFillDirection.TOP:\n\t\t\tbuildPolygonStepY(\n\t\t\t\tsteps,\n\t\t\t\tpolygonDistances,\n\t\t\t\tpolygonLengths,\n\t\t\t\tpolygonClippings,\n\t\t\t\tpolygonUvs,\n\t\t\t\tvoffset,\n\t\t\t\tvertexCount,\n\t\t\t\tstrokeWidth,\n\t\t\t\te,\n\t\t\t\tpolygonBoundary[3] - polygonBoundary[1],\n\t\t\t\tfp\n\t\t\t);\n\t\t\tbreak;\n\t\tcase EShapeFillDirection.RIGHT:\n\t\t\tbuildPolygonStepX(\n\t\t\t\tsteps,\n\t\t\t\tpolygonDistances,\n\t\t\t\tpolygonLengths,\n\t\t\t\tpolygonClippings,\n\t\t\t\tpolygonUvs,\n\t\t\t\tvoffset,\n\t\t\t\tvertexCount,\n\t\t\t\tstrokeWidth,\n\t\t\t\te,\n\t\t\t\tpolygonBoundary[0] - polygonBoundary[2],\n\t\t\t\t1 - fp\n\t\t\t);\n\t\t\tbreak;\n\t\tcase EShapeFillDirection.BOTTOM:\n\t\t\tbuildPolygonStepY(\n\t\t\t\tsteps,\n\t\t\t\tpolygonDistances,\n\t\t\t\tpolygonLengths,\n\t\t\t\tpolygonClippings,\n\t\t\t\tpolygonUvs,\n\t\t\t\tvoffset,\n\t\t\t\tvertexCount,\n\t\t\t\tstrokeWidth,\n\t\t\t\te,\n\t\t\t\tpolygonBoundary[1] - polygonBoundary[3],\n\t\t\t\t1 - fp\n\t\t\t);\n\t\t\tbreak;\n\t\tcase EShapeFillDirection.LEFT:\n\t\t\tbuildPolygonStepX(\n\t\t\t\tsteps,\n\t\t\t\tpolygonDistances,\n\t\t\t\tpolygonLengths,\n\t\t\t\tpolygonClippings,\n\t\t\t\tpolygonUvs,\n\t\t\t\tvoffset,\n\t\t\t\tvertexCount,\n\t\t\t\tstrokeWidth,\n\t\t\t\te,\n\t\t\t\tpolygonBoundary[2] - polygonBoundary[0],\n\t\t\t\tfp\n\t\t\t);\n\t\t\tbreak;\n\t}\n};\n\nexport const buildPolygonStepX = (\n\tsteps: Float32Array,\n\tpolygonDistances: number[],\n\tpolygonLengths: number[],\n\tpolygonClippings: number[],\n\tpolygonUvs: number[],\n\tvoffset: number,\n\tvertexCount: number,\n\tstrokeWidth: number,\n\te: number,\n\tafp: number,\n\tfp: number\n): void => {\n\tlet is = voffset * 6 - 1;\n\tfor (let i = 0, j = 0; i < vertexCount; i += 1, j += 2) {\n\t\tsteps[++is] = strokeWidth;\n\t\tsteps[++is] = e;\n\t\tsteps[++is] = polygonDistances[i];\n\t\tsteps[++is] = afp * (fp - polygonUvs[j]);\n\t\tsteps[++is] = toPackedClippings(polygonClippings[i], 0);\n\t\tsteps[++is] = polygonLengths[i];\n\t}\n};\n\nexport const buildPolygonStepY = (\n\tsteps: Float32Array,\n\tpolygonDistances: number[],\n\tpolygonLengths: number[],\n\tpolygonClippings: number[],\n\tpolygonUvs: number[],\n\tvoffset: number,\n\tvertexCount: number,\n\tstrokeWidth: number,\n\te: number,\n\tafp: number,\n\tfp: number\n): void => {\n\tlet is = voffset * 6 - 1;\n\tfor (let i = 0, j = 1; i < vertexCount; i += 1, j += 2) {\n\t\tsteps[++is] = strokeWidth;\n\t\tsteps[++is] = e;\n\t\tsteps[++is] = polygonDistances[i];\n\t\tsteps[++is] = afp * (fp - polygonUvs[j]);\n\t\tsteps[++is] = toPackedClippings(polygonClippings[i], 0);\n\t\tsteps[++is] = polygonLengths[i];\n\t}\n};\n\n/**\n * Build UV buffer for polygons.\n */\nexport const buildPolygonUv = (\n\tuvs: Float32Array,\n\tpolygonUvs: number[],\n\tvoffset: number,\n\ttextureUvs: TextureUvs\n): void => {\n\tconst x0 = textureUvs.x0;\n\tconst x1 = textureUvs.x1;\n\tconst y0 = textureUvs.y0;\n\tconst y3 = textureUvs.y3;\n\tconst dx = x1 - x0;\n\tconst dy = y3 - y0;\n\tlet iuv = (voffset << 1) - 1;\n\tfor (let i = 0, n = polygonUvs.length; i < n; i += 2) {\n\t\tuvs[++iuv] = x0 + polygonUvs[i] * dx;\n\t\tuvs[++iuv] = y0 + polygonUvs[i + 1] * dy;\n\t}\n};\n"]}