@wcardinal/wcardinal-ui 0.469.0 → 0.470.1
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/shape/e-shape-type.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/load/index.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/load/load-shape-sector.d.ts +1 -0
- package/dist/types/wcardinal/ui/shape/variant/deserialize-sector.d.ts +4 -0
- package/dist/types/wcardinal/ui/shape/variant/{e-shape-fan-triangulated-impl.d.ts → e-shape-sector-triangulated-impl.d.ts} +9 -9
- package/dist/types/wcardinal/ui/shape/variant/{e-shape-fan-triangulated.d.ts → e-shape-sector-triangulated.d.ts} +1 -1
- package/dist/types/wcardinal/ui/shape/variant/{e-shape-fan.d.ts → e-shape-sector.d.ts} +7 -7
- package/dist/types/wcardinal/ui/shape/variant/e-shape-semicircle.d.ts +4 -4
- package/dist/types/wcardinal/ui/shape/variant/e-shape-triangle-rounded-triangulated-impl.d.ts +2 -1
- package/dist/types/wcardinal/ui/shape/variant/hit-test-sector.d.ts +2 -0
- package/dist/types/wcardinal/ui/shape/variant/index.d.ts +7 -7
- package/dist/types/wcardinal/ui/shape/variant/to-sector-angle-centric.d.ts +4 -0
- package/dist/types/wcardinal/ui/shape/variant/to-sector-angle-eccentric.d.ts +5 -0
- package/dist/wcardinal/ui/shape/e-shape-type.js +1 -1
- package/dist/wcardinal/ui/shape/e-shape-type.js.map +1 -1
- package/dist/wcardinal/ui/shape/load/index.js +1 -1
- package/dist/wcardinal/ui/shape/load/index.js.map +1 -1
- package/dist/wcardinal/ui/shape/load/load-shape-all.js +2 -2
- package/dist/wcardinal/ui/shape/load/load-shape-all.js.map +1 -1
- package/dist/wcardinal/ui/shape/load/{load-shape-fan.js → load-shape-sector.js} +6 -6
- package/dist/wcardinal/ui/shape/load/load-shape-sector.js.map +1 -0
- package/dist/wcardinal/ui/shape/variant/{deserialize-fan.js → deserialize-sector.js} +4 -4
- package/dist/wcardinal/ui/shape/variant/deserialize-sector.js.map +1 -0
- package/dist/wcardinal/ui/shape/variant/{e-shape-fan-triangulated-impl.js → e-shape-sector-triangulated-impl.js} +103 -103
- package/dist/wcardinal/ui/shape/variant/e-shape-sector-triangulated-impl.js.map +1 -0
- package/dist/wcardinal/ui/shape/variant/{e-shape-fan-triangulated.js → e-shape-sector-triangulated.js} +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-sector-triangulated.js.map +1 -0
- package/dist/wcardinal/ui/shape/variant/{e-shape-fan.js → e-shape-sector.js} +23 -23
- package/dist/wcardinal/ui/shape/variant/e-shape-sector.js.map +1 -0
- package/dist/wcardinal/ui/shape/variant/e-shape-semicircle.js +4 -4
- package/dist/wcardinal/ui/shape/variant/e-shape-semicircle.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-triangle-rounded-triangulated-impl.js +44 -11
- package/dist/wcardinal/ui/shape/variant/e-shape-triangle-rounded-triangulated-impl.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/{hit-test-fan.js → hit-test-sector.js} +13 -13
- package/dist/wcardinal/ui/shape/variant/hit-test-sector.js.map +1 -0
- package/dist/wcardinal/ui/shape/variant/hit-test-triangle-rounded.js +33 -2
- package/dist/wcardinal/ui/shape/variant/hit-test-triangle-rounded.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/index.js +7 -7
- package/dist/wcardinal/ui/shape/variant/index.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/to-sector-angle-centric.js +11 -0
- package/dist/wcardinal/ui/shape/variant/to-sector-angle-centric.js.map +1 -0
- package/dist/wcardinal/ui/shape/variant/to-sector-angle-eccentric.js +12 -0
- package/dist/wcardinal/ui/shape/variant/to-sector-angle-eccentric.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 +227 -163
- package/dist/wcardinal-ui.js +227 -163
- 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/load/load-shape-fan.d.ts +0 -1
- package/dist/types/wcardinal/ui/shape/variant/deserialize-fan.d.ts +0 -4
- package/dist/types/wcardinal/ui/shape/variant/hit-test-fan.d.ts +0 -2
- package/dist/types/wcardinal/ui/shape/variant/to-fan-angle-centric.d.ts +0 -4
- package/dist/types/wcardinal/ui/shape/variant/to-fan-angle-eccentric.d.ts +0 -5
- package/dist/wcardinal/ui/shape/load/load-shape-fan.js.map +0 -1
- package/dist/wcardinal/ui/shape/variant/deserialize-fan.js.map +0 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-fan-triangulated-impl.js.map +0 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-fan-triangulated.js.map +0 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-fan.js.map +0 -1
- package/dist/wcardinal/ui/shape/variant/hit-test-fan.js.map +0 -1
- package/dist/wcardinal/ui/shape/variant/to-fan-angle-centric.js +0 -11
- package/dist/wcardinal/ui/shape/variant/to-fan-angle-centric.js.map +0 -1
- package/dist/wcardinal/ui/shape/variant/to-fan-angle-eccentric.js +0 -12
- package/dist/wcardinal/ui/shape/variant/to-fan-angle-eccentric.js.map +0 -1
|
@@ -31,7 +31,7 @@ export declare const EShapeType: {
|
|
|
31
31
|
readonly TRIANGLE_LEGACY: 29;
|
|
32
32
|
readonly RECTANGLE_ROUNDED_LEGACY: 30;
|
|
33
33
|
readonly TRIANGLE_ROUNDED_LEGACY: 31;
|
|
34
|
-
readonly
|
|
34
|
+
readonly SECTOR: 32;
|
|
35
35
|
readonly SEMICIRCLE_LEGACY: 33;
|
|
36
36
|
readonly EXTENSION: 1000;
|
|
37
37
|
};
|
|
@@ -7,7 +7,7 @@ export * from "./load-shape-clipper-ex";
|
|
|
7
7
|
export * from "./load-shape-connector-elbow";
|
|
8
8
|
export * from "./load-shape-connector-line";
|
|
9
9
|
export * from "./load-shape-embedded";
|
|
10
|
-
export * from "./load-shape-
|
|
10
|
+
export * from "./load-shape-sector";
|
|
11
11
|
export * from "./load-shape-group-shadowed";
|
|
12
12
|
export * from "./load-shape-group";
|
|
13
13
|
export * from "./load-shape-image";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const loadShapeSector: () => void;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DDiagramSerializedItem } from "../../d-diagram-serialized";
|
|
2
|
+
import { EShapeResourceManagerDeserialization } from "../e-shape-resource-manager-deserialization";
|
|
3
|
+
import { EShapeSector } from "./e-shape-sector";
|
|
4
|
+
export declare const deserializeSector: (item: DDiagramSerializedItem, manager: EShapeResourceManagerDeserialization, shape?: EShapeSector) => Promise<EShapeSector> | EShapeSector;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type { EShape } from "../e-shape";
|
|
2
2
|
import { EShapeBoundary } from "../e-shape-boundary";
|
|
3
|
-
import {
|
|
3
|
+
import { EShapeSectorTriangulated } from "./e-shape-sector-triangulated";
|
|
4
4
|
/**
|
|
5
|
-
* Triangulates a
|
|
5
|
+
* Triangulates a sector whose arc is on the ellipse with the semi-axes (w, h) centered at the origin O.
|
|
6
6
|
* The vertices are computed in the frame where w and h are positive and flipped at the end.
|
|
7
7
|
*
|
|
8
8
|
* ## Points
|
|
9
9
|
*
|
|
10
|
-
* - O: the apex of the
|
|
10
|
+
* - O: the apex of the sector, the origin
|
|
11
11
|
* - A, B: the end points of the arc, (-w sin(ea), -h cos(ea)) and (+w sin(ea), -h cos(ea))
|
|
12
|
-
* - C: the point where the area of the
|
|
12
|
+
* - C: the point where the area of the sector becomes zero when the sector shrinks, (0, -h / (1 + sin(ca)))
|
|
13
13
|
* - P[k]: the points on the arc, k in [0, 2N] (P[0] = A, P[N] is the top, P[2N] = B)
|
|
14
|
-
* - Q[k]: the points on the medial axis of the
|
|
14
|
+
* - Q[k]: the points on the medial axis of the sector, which are on the normal of the arc at P[k]
|
|
15
15
|
* and equidistant from the arc and the straight sides (Q[0] = A, Q[N] = C, Q[2N] = B)
|
|
16
16
|
* - R[k]: the points P[k] shifted outward for the anti-aliasing
|
|
17
17
|
* - O': the point O shifted outward for the anti-aliasing
|
|
@@ -24,17 +24,17 @@ import { EShapeFanTriangulated } from "./e-shape-fan-triangulated";
|
|
|
24
24
|
* where the outline is the arc and/or the straight sides depending on the stroke side.
|
|
25
25
|
*
|
|
26
26
|
* - ARC and BOTTOM (and NONE): the stroke is at the arc and the straight sides.
|
|
27
|
-
* The
|
|
27
|
+
* The sector is triangulated into the strip P[k], P[k + 1], Q[k + 1], Q[k] and
|
|
28
28
|
* the two polygons O', A', Q[0], ..., Q[N] and O', B', Q[2N], ..., Q[N] at the bottom.
|
|
29
29
|
* - ARC: the stroke is only at the arc.
|
|
30
|
-
* For a circle and a semi-ellipse, Q[k] are the points on the axis, which gives the exact
|
|
30
|
+
* For a circle and a semi-ellipse, Q[k] are the points on the axis, which gives the exact sector with the strip only.
|
|
31
31
|
* For the other ellipses, Q[k] are on the medial axis as ARC and BOTTOM, and the two polygons
|
|
32
32
|
* O, Q[0], ..., Q[N] and O, Q[2N], ..., Q[N] are added at the bottom without the stroke and the anti-aliasing.
|
|
33
33
|
* - BOTTOM: the stroke is only at the straight sides.
|
|
34
34
|
* It is the same as a polygon. Two triangle fans from C cover the area between the arc and the segments CA and CB,
|
|
35
35
|
* and two quads O', A', A, C and O', B', B, C cover the rest.
|
|
36
36
|
*/
|
|
37
|
-
export declare class
|
|
37
|
+
export declare class EShapeSectorTriangulatedImpl implements EShapeSectorTriangulated {
|
|
38
38
|
/** The ratio of the outer edge, where the clipping is 1, to the edge of the anti-aliasing */
|
|
39
39
|
protected static readonly SCALE = 1.1;
|
|
40
40
|
/** P: the points on the arc */
|
|
@@ -89,7 +89,7 @@ export declare class EShapeFanTriangulatedImpl implements EShapeFanTriangulated
|
|
|
89
89
|
protected triangulate(): void;
|
|
90
90
|
protected update(sx: number, sy: number, angle: number, ssa: boolean, ssb: boolean): void;
|
|
91
91
|
/**
|
|
92
|
-
* Fills the empty
|
|
92
|
+
* Fills the empty sector, which has no vertices to draw.
|
|
93
93
|
*/
|
|
94
94
|
protected updateEmpty(w: number, h: number, nv: number, ni: number): void;
|
|
95
95
|
protected updateArc(w: number, h: number, n: number, ea: number, sea: number, cea: number, bx: number, oa: number, st: number, ct: number, fx: number, fy: number, gx: number, gy: number, ssa: boolean, ssb: boolean, nv: number, ni: number): void;
|
|
@@ -3,24 +3,24 @@ import { EShape } from "../e-shape";
|
|
|
3
3
|
import { EShapeCopyPart } from "../e-shape-copy-part";
|
|
4
4
|
import { EShapeResourceManagerSerialization } from "../e-shape-resource-manager-serialization";
|
|
5
5
|
import { EShapeType } from "../e-shape-type";
|
|
6
|
-
import {
|
|
6
|
+
import { EShapeSectorTriangulated } from "./e-shape-sector-triangulated";
|
|
7
7
|
import { EShapePrimitive } from "./e-shape-primitive";
|
|
8
|
-
export declare class
|
|
8
|
+
export declare class EShapeSector extends EShapePrimitive {
|
|
9
9
|
protected _angle: number;
|
|
10
|
-
protected readonly _triangulated:
|
|
10
|
+
protected readonly _triangulated: EShapeSectorTriangulated;
|
|
11
11
|
constructor(type?: EShapeType);
|
|
12
12
|
protected newAngle(): number;
|
|
13
|
-
protected newTriangulated():
|
|
14
|
-
get triangulated():
|
|
13
|
+
protected newTriangulated(): EShapeSectorTriangulated;
|
|
14
|
+
get triangulated(): EShapeSectorTriangulated;
|
|
15
15
|
/**
|
|
16
|
-
* The ratio of the half central angle of the
|
|
16
|
+
* The ratio of the half central angle of the sector to PI. Must be in [0, 0.5].
|
|
17
17
|
* 0.5 results in a semicircle.
|
|
18
18
|
*/
|
|
19
19
|
get angle(): number;
|
|
20
20
|
set angle(angle: number);
|
|
21
21
|
protected toHitTestStrokeShift(strokeWidth: number, strokeScale: number, strokeAlign: number): number;
|
|
22
22
|
copy(source: EShape, part?: EShapeCopyPart): this;
|
|
23
|
-
clone():
|
|
23
|
+
clone(): EShapeSector;
|
|
24
24
|
containsAbs(x: number, y: number, ax: number, ay: number, sw: number, ss: number, sa: number): boolean;
|
|
25
25
|
serialize(manager: EShapeResourceManagerSerialization): DDiagramSerializedItem;
|
|
26
26
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { EShapeStroke } from "../e-shape-stroke";
|
|
2
2
|
import { EShapeType } from "../e-shape-type";
|
|
3
|
-
import {
|
|
3
|
+
import { EShapeSectorTriangulated } from "./e-shape-sector-triangulated";
|
|
4
4
|
import { EShapePrimitive } from "./e-shape-primitive";
|
|
5
5
|
/**
|
|
6
6
|
* A semicircle shape.
|
|
7
7
|
*/
|
|
8
8
|
export declare class EShapeSemicircle extends EShapePrimitive {
|
|
9
|
-
protected readonly _triangulated:
|
|
9
|
+
protected readonly _triangulated: EShapeSectorTriangulated;
|
|
10
10
|
constructor(type?: EShapeType);
|
|
11
11
|
protected newStroke(): EShapeStroke;
|
|
12
|
-
protected newTriangulated():
|
|
13
|
-
get triangulated():
|
|
12
|
+
protected newTriangulated(): EShapeSectorTriangulated;
|
|
13
|
+
get triangulated(): EShapeSectorTriangulated;
|
|
14
14
|
get angle(): number;
|
|
15
15
|
set angle(angle: number);
|
|
16
16
|
protected toHitTestStrokeShift(strokeWidth: number, strokeScale: number, strokeAlign: number): number;
|
package/dist/types/wcardinal/ui/shape/variant/e-shape-triangle-rounded-triangulated-impl.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export declare class EShapeTriangleRoundedTriangulatedImpl implements EShapeTria
|
|
|
22
22
|
protected _indices: number[];
|
|
23
23
|
protected _nindices: number;
|
|
24
24
|
protected _boundary: EShapeBoundary;
|
|
25
|
+
protected _uvo: [number, number];
|
|
25
26
|
constructor(parent: EShapeTriangleRounded);
|
|
26
27
|
get id(): number;
|
|
27
28
|
get vertices(): number[];
|
|
@@ -37,6 +38,6 @@ export declare class EShapeTriangleRoundedTriangulatedImpl implements EShapeTria
|
|
|
37
38
|
protected update(sx: number, sy: number, radius: number, corner: EShapeCorner): void;
|
|
38
39
|
protected writePenta(x0: number, y0: number, x1: number, y1: number, x2: number, y2: number, x3: number, y3: number, x4: number, y4: number, length0: number, length1: number, length2: number, length3: number, length4: number, clipping0: number, clipping1: number, clipping2: number, clipping3: number, clipping4: number, distance: number, fx: number, fy: number, iv: number, ii: number): void;
|
|
39
40
|
protected writeFan(cx: number, cy: number, x0: number, y0: number, dt: number, nx: number, ny: number, l0: number, r: number, rs: number, fd: number, scale: number, fx: number, fy: number, n: number, iv: number, ii: number): number;
|
|
40
|
-
protected writeVertex(
|
|
41
|
+
protected writeVertex(iv: number, x: number, y: number, distance: number, length: number, clipping: number, fx: number, fy: number): void;
|
|
41
42
|
protected pad(iv: number, ii: number, nv: number, ni: number, distance: number): void;
|
|
42
43
|
}
|
|
@@ -101,7 +101,6 @@ export * from "./deserialize-connector-line";
|
|
|
101
101
|
export * from "./deserialize-embedded-acceptor-edge";
|
|
102
102
|
export * from "./deserialize-embedded-layer";
|
|
103
103
|
export * from "./deserialize-embedded";
|
|
104
|
-
export * from "./deserialize-fan";
|
|
105
104
|
export * from "./deserialize-gradient";
|
|
106
105
|
export * from "./deserialize-group-shadowed";
|
|
107
106
|
export * from "./deserialize-group";
|
|
@@ -121,6 +120,7 @@ export * from "./deserialize-rectangle-pivoted";
|
|
|
121
120
|
export * from "./deserialize-rectangle-rounded-legacy";
|
|
122
121
|
export * from "./deserialize-rectangle-rounded";
|
|
123
122
|
export * from "./deserialize-rectangle";
|
|
123
|
+
export * from "./deserialize-sector";
|
|
124
124
|
export * from "./deserialize-semicircle-legacy";
|
|
125
125
|
export * from "./deserialize-semicircle";
|
|
126
126
|
export * from "./deserialize-triangle-legacy";
|
|
@@ -151,9 +151,6 @@ export * from "./e-shape-embedded-layer-container";
|
|
|
151
151
|
export * from "./e-shape-embedded-layer";
|
|
152
152
|
export * from "./e-shape-embedded";
|
|
153
153
|
export * from "./e-shape-embeddeds";
|
|
154
|
-
export * from "./e-shape-fan-triangulated-impl";
|
|
155
|
-
export * from "./e-shape-fan-triangulated";
|
|
156
|
-
export * from "./e-shape-fan";
|
|
157
154
|
export * from "./e-shape-fill-impl-parent";
|
|
158
155
|
export * from "./e-shape-fill-impl";
|
|
159
156
|
export * from "./e-shape-group-fill-editor";
|
|
@@ -219,6 +216,9 @@ export * from "./e-shape-rectangle-rounded";
|
|
|
219
216
|
export * from "./e-shape-rectangle-triangulated-impl";
|
|
220
217
|
export * from "./e-shape-rectangle-triangulated";
|
|
221
218
|
export * from "./e-shape-rectangle";
|
|
219
|
+
export * from "./e-shape-sector-triangulated-impl";
|
|
220
|
+
export * from "./e-shape-sector-triangulated";
|
|
221
|
+
export * from "./e-shape-sector";
|
|
222
222
|
export * from "./e-shape-semicircle-legacy";
|
|
223
223
|
export * from "./e-shape-semicircle";
|
|
224
224
|
export * from "./e-shape-stroke-impl-parent";
|
|
@@ -241,24 +241,24 @@ export * from "./e-shape-triangle-triangulated";
|
|
|
241
241
|
export * from "./e-shape-triangle";
|
|
242
242
|
export * from "./hit-test-bbox";
|
|
243
243
|
export * from "./hit-test-circle";
|
|
244
|
-
export * from "./hit-test-fan";
|
|
245
244
|
export * from "./hit-test-semicircle";
|
|
246
245
|
export * from "./hit-test-rectangle-rounded";
|
|
247
246
|
export * from "./hit-test-rectangle";
|
|
248
247
|
export * from "./hit-test-triangle-rounded";
|
|
249
248
|
export * from "./hit-test-triangle";
|
|
249
|
+
export * from "./hit-test-sector";
|
|
250
250
|
export * from "./is-shape-polygon-like";
|
|
251
251
|
export * from "./is-static";
|
|
252
252
|
export * from "./to-computed";
|
|
253
253
|
export * from "./to-dash";
|
|
254
|
-
export * from "./to-fan-angle-centric";
|
|
255
|
-
export * from "./to-fan-angle-eccentric";
|
|
256
254
|
export * from "./to-gradient-image-url";
|
|
257
255
|
export * from "./to-gradient-serialized";
|
|
258
256
|
export * from "./to-image-element";
|
|
259
257
|
export * from "./to-length";
|
|
260
258
|
export * from "./to-resized";
|
|
261
259
|
export * from "./to-scale-invariant";
|
|
260
|
+
export * from "./to-sector-angle-centric";
|
|
261
|
+
export * from "./to-sector-angle-eccentric";
|
|
262
262
|
export * from "./to-size-normalized";
|
|
263
263
|
export * from "./to-size-rounded";
|
|
264
264
|
export * from "./to-threshold-default";
|
|
@@ -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,gBAAgB,EAAE,EAAE;IACpB,eAAe,EAAE,EAAE;IACnB,wBAAwB,EAAE,EAAE;IAC5B,uBAAuB,EAAE,EAAE;IAC3B,
|
|
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,eAAe,EAAE,EAAE;IACnB,wBAAwB,EAAE,EAAE;IAC5B,uBAAuB,EAAE,EAAE;IAC3B,MAAM,EAAE,EAAE;IACV,iBAAiB,EAAE,EAAE;IACrB,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\tTRIANGLE_LEGACY: 29,\n\tRECTANGLE_ROUNDED_LEGACY: 30,\n\tTRIANGLE_ROUNDED_LEGACY: 31,\n\tSECTOR: 32,\n\tSEMICIRCLE_LEGACY: 33,\n\tEXTENSION: 1000\n} as const;\n\nexport type EShapeType = number;\n"]}
|
|
@@ -11,7 +11,7 @@ export * from "./load-shape-clipper-ex";
|
|
|
11
11
|
export * from "./load-shape-connector-elbow";
|
|
12
12
|
export * from "./load-shape-connector-line";
|
|
13
13
|
export * from "./load-shape-embedded";
|
|
14
|
-
export * from "./load-shape-
|
|
14
|
+
export * from "./load-shape-sector";
|
|
15
15
|
export * from "./load-shape-group-shadowed";
|
|
16
16
|
export * from "./load-shape-group";
|
|
17
17
|
export * from "./load-shape-image";
|
|
@@ -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,
|
|
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,qBAAqB,CAAC;AACpC,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,uCAAuC,CAAC;AACtD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sCAAsC,CAAC;AACrD,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-sector\";\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-legacy\";\nexport * from \"./load-shape-rectangle-rounded\";\nexport * from \"./load-shape-rectangle\";\nexport * from \"./load-shape-semicircle-legacy\";\nexport * from \"./load-shape-semicircle\";\nexport * from \"./load-shape-triangle-legacy\";\nexport * from \"./load-shape-triangle-rounded-legacy\";\nexport * from \"./load-shape-triangle-rounded\";\nexport * from \"./load-shape-triangle\";\n"]}
|
|
@@ -9,7 +9,7 @@ import { loadShapeCircleLegacy } from "./load-shape-circle-legacy";
|
|
|
9
9
|
import { loadShapeConnectorElbow } from "./load-shape-connector-elbow";
|
|
10
10
|
import { loadShapeConnectorLine } from "./load-shape-connector-line";
|
|
11
11
|
import { loadShapeEmbedded } from "./load-shape-embedded";
|
|
12
|
-
import {
|
|
12
|
+
import { loadShapeSector } from "./load-shape-sector";
|
|
13
13
|
import { loadShapeGroup } from "./load-shape-group";
|
|
14
14
|
import { loadShapeGroupShadowed } from "./load-shape-group-shadowed";
|
|
15
15
|
import { loadShapeImage } from "./load-shape-image";
|
|
@@ -42,7 +42,7 @@ export var loadShapeAll = function () {
|
|
|
42
42
|
loadShapeConnectorElbow();
|
|
43
43
|
loadShapeConnectorLine();
|
|
44
44
|
loadShapeEmbedded();
|
|
45
|
-
|
|
45
|
+
loadShapeSector();
|
|
46
46
|
loadShapeGroupShadowed();
|
|
47
47
|
loadShapeGroup();
|
|
48
48
|
loadShapeImage();
|
|
@@ -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,
|
|
1
|
+
{"version":3,"file":"load-shape-all.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/load/load-shape-all.ts"],"names":[],"mappings":"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","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 { loadShapeSector } from \"./load-shape-sector\";\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 { loadShapeRectangleRoundedLegacy } from \"./load-shape-rectangle-rounded-legacy\";\nimport { loadShapeSemicircle } from \"./load-shape-semicircle\";\nimport { loadShapeSemicircleLegacy } from \"./load-shape-semicircle-legacy\";\nimport { loadShapeTriangle } from \"./load-shape-triangle\";\nimport { loadShapeTriangleLegacy } from \"./load-shape-triangle-legacy\";\nimport { loadShapeTriangleRounded } from \"./load-shape-triangle-rounded\";\nimport { loadShapeTriangleRoundedLegacy } from \"./load-shape-triangle-rounded-legacy\";\n\nexport const loadShapeAll = (): void => {\n\tloadShapeBar();\n\tloadShapeButton();\n\tloadShapeCircleLegacy();\n\tloadShapeCircle();\n\tloadShapeConnectorElbow();\n\tloadShapeConnectorLine();\n\tloadShapeEmbedded();\n\tloadShapeSector();\n\tloadShapeGroupShadowed();\n\tloadShapeGroup();\n\tloadShapeImage();\n\tloadShapeImageSdf();\n\tloadShapeLabel();\n\tloadShapeLine();\n\tloadShapeNull();\n\tloadShapePolygon();\n\tloadShapeRectangleLegacy();\n\tloadShapeRectanglePivoted();\n\tloadShapeRectangleRoundedLegacy();\n\tloadShapeRectangleRounded();\n\tloadShapeRectangle();\n\tloadShapeSemicircleLegacy();\n\tloadShapeSemicircle();\n\tloadShapeTriangleLegacy();\n\tloadShapeTriangleRoundedLegacy();\n\tloadShapeTriangleRounded();\n\tloadShapeTriangle();\n\tloadShapeLineOfCircles();\n\tloadShapeLineOfRectangleRoundeds();\n\tloadShapeLineOfRectangles();\n\tloadShapeLineOfTriangleRoundeds();\n\tloadShapeLineOfTriangles();\n};\n"]}
|
|
@@ -8,10 +8,10 @@ import { EShapeDeserializers } from "../e-shape-deserializers";
|
|
|
8
8
|
import { EShapeType } from "../e-shape-type";
|
|
9
9
|
import { EShapeUploadeds } from "../e-shape-uploadeds";
|
|
10
10
|
import { createPolygonUploaded } from "../variant/create-polygon-uploaded";
|
|
11
|
-
import {
|
|
12
|
-
export var
|
|
13
|
-
EShapeUploadeds[EShapeType.
|
|
14
|
-
EShapeDeserializers[EShapeType.
|
|
15
|
-
EShapeCapabilities.set(EShapeType.
|
|
11
|
+
import { deserializeSector } from "../variant/deserialize-sector";
|
|
12
|
+
export var loadShapeSector = function () {
|
|
13
|
+
EShapeUploadeds[EShapeType.SECTOR] = createPolygonUploaded;
|
|
14
|
+
EShapeDeserializers[EShapeType.SECTOR] = deserializeSector;
|
|
15
|
+
EShapeCapabilities.set(EShapeType.SECTOR, EShapeCapability.PRIMITIVE | EShapeCapability.STROKE_SIDE | EShapeCapability.ANGLE);
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=load-shape-
|
|
17
|
+
//# sourceMappingURL=load-shape-sector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"load-shape-sector.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/load/load-shape-sector.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,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,MAAM,CAAC,IAAM,eAAe,GAAG;IAC9B,eAAe,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,qBAAqB,CAAC;IAC3D,mBAAmB,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,iBAAiB,CAAC;IAC3D,kBAAkB,CAAC,GAAG,CACrB,UAAU,CAAC,MAAM,EACjB,gBAAgB,CAAC,SAAS,GAAG,gBAAgB,CAAC,WAAW,GAAG,gBAAgB,CAAC,KAAK,CAClF,CAAC;AACH,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019-2026 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 { deserializeSector } from \"../variant/deserialize-sector\";\n\nexport const loadShapeSector = (): void => {\n\tEShapeUploadeds[EShapeType.SECTOR] = createPolygonUploaded;\n\tEShapeDeserializers[EShapeType.SECTOR] = deserializeSector;\n\tEShapeCapabilities.set(\n\t\tEShapeType.SECTOR,\n\t\tEShapeCapability.PRIMITIVE | EShapeCapability.STROKE_SIDE | EShapeCapability.ANGLE\n\t);\n};\n"]}
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
5
|
import { deserializeBase } from "./deserialize-base";
|
|
6
|
-
import {
|
|
7
|
-
export var
|
|
8
|
-
shape = shape || new
|
|
6
|
+
import { EShapeSector } from "./e-shape-sector";
|
|
7
|
+
export var deserializeSector = function (item, manager, shape) {
|
|
8
|
+
shape = shape || new EShapeSector();
|
|
9
9
|
shape.angle = item[15];
|
|
10
10
|
return deserializeBase(item, manager, shape);
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=deserialize-
|
|
12
|
+
//# sourceMappingURL=deserialize-sector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deserialize-sector.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/deserialize-sector.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,MAAM,CAAC,IAAM,iBAAiB,GAAG,UAChC,IAA4B,EAC5B,OAA6C,EAC7C,KAAoB;IAEpB,KAAK,GAAG,KAAK,IAAI,IAAI,YAAY,EAAE,CAAC;IACpC,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC;IACvB,OAAO,eAAe,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;AAC9C,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019-2026 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DDiagramSerializedItem } from \"../../d-diagram-serialized\";\nimport { EShapeResourceManagerDeserialization } from \"../e-shape-resource-manager-deserialization\";\nimport { deserializeBase } from \"./deserialize-base\";\nimport { EShapeSector } from \"./e-shape-sector\";\n\nexport const deserializeSector = (\n\titem: DDiagramSerializedItem,\n\tmanager: EShapeResourceManagerDeserialization,\n\tshape?: EShapeSector\n): Promise<EShapeSector> | EShapeSector => {\n\tshape = shape || new EShapeSector();\n\tshape.angle = item[15];\n\treturn deserializeBase(item, manager, shape);\n};\n"]}
|