@wcardinal/wcardinal-ui 0.311.0 → 0.313.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/wcardinal/ui/shape/e-shape-points-formatters.d.ts +10 -5
- package/dist/types/wcardinal/ui/shape/index.d.ts +1 -0
- package/dist/wcardinal/ui/shape/e-shape-points-formatters.js +20 -9
- package/dist/wcardinal/ui/shape/e-shape-points-formatters.js.map +1 -1
- package/dist/wcardinal/ui/shape/index.js +1 -0
- package/dist/wcardinal/ui/shape/index.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-line-points.js +2 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-line-points.js.map +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.js +1 -1
- package/dist/wcardinal-ui-theme-white.min.js +1 -1
- package/dist/wcardinal-ui.cjs.js +24 -11
- package/dist/wcardinal-ui.js +24 -11
- package/dist/wcardinal-ui.min.js +2 -2
- package/dist/wcardinal-ui.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { EShapePointsFormatter } from "./e-shape-points-formatter";
|
|
2
2
|
import { EShapePointsStyle } from "./e-shape-points-style";
|
|
3
|
+
export interface EShapePointsFormatterDatum {
|
|
4
|
+
label: string;
|
|
5
|
+
formatter: EShapePointsFormatter;
|
|
6
|
+
}
|
|
3
7
|
export declare class EShapePointsFormatters {
|
|
4
|
-
private static
|
|
5
|
-
static set(id: number,
|
|
6
|
-
static get(index: number):
|
|
7
|
-
static
|
|
8
|
-
|
|
8
|
+
private static data?;
|
|
9
|
+
static set(id: number, datum: EShapePointsFormatterDatum): void;
|
|
10
|
+
static get(index: number): EShapePointsFormatterDatum | undefined;
|
|
11
|
+
static each(iteratee: (id: number, datum: EShapePointsFormatterDatum) => void): void;
|
|
12
|
+
static find(style: EShapePointsStyle): EShapePointsFormatterDatum | undefined;
|
|
13
|
+
private static newData;
|
|
9
14
|
}
|
|
@@ -62,6 +62,7 @@ export * from "./e-shape-layout";
|
|
|
62
62
|
export * from "./e-shape-points-formatted";
|
|
63
63
|
export * from "./e-shape-points-formatter-curve";
|
|
64
64
|
export * from "./e-shape-points-formatter";
|
|
65
|
+
export * from "./e-shape-points-formatters";
|
|
65
66
|
export * from "./e-shape-points-marker-base";
|
|
66
67
|
export * from "./e-shape-points-marker-container-impl-noop";
|
|
67
68
|
export * from "./e-shape-points-marker-container-impl";
|
|
@@ -7,24 +7,35 @@ import { EShapePointsStyle } from "./e-shape-points-style";
|
|
|
7
7
|
var EShapePointsFormatters = /** @class */ (function () {
|
|
8
8
|
function EShapePointsFormatters() {
|
|
9
9
|
}
|
|
10
|
-
EShapePointsFormatters.set = function (id,
|
|
11
|
-
if (this.
|
|
12
|
-
this.
|
|
10
|
+
EShapePointsFormatters.set = function (id, datum) {
|
|
11
|
+
if (this.data == null) {
|
|
12
|
+
this.data = this.newData();
|
|
13
13
|
}
|
|
14
|
-
this.
|
|
14
|
+
this.data.set(id, datum);
|
|
15
15
|
};
|
|
16
16
|
EShapePointsFormatters.get = function (index) {
|
|
17
|
-
if (this.
|
|
18
|
-
this.
|
|
17
|
+
if (this.data == null) {
|
|
18
|
+
this.data = this.newData();
|
|
19
19
|
}
|
|
20
|
-
return this.
|
|
20
|
+
return this.data.get(index);
|
|
21
|
+
};
|
|
22
|
+
EShapePointsFormatters.each = function (iteratee) {
|
|
23
|
+
if (this.data == null) {
|
|
24
|
+
this.data = this.newData();
|
|
25
|
+
}
|
|
26
|
+
this.data.forEach(function (datum, id) {
|
|
27
|
+
iteratee(id, datum);
|
|
28
|
+
});
|
|
21
29
|
};
|
|
22
30
|
EShapePointsFormatters.find = function (style) {
|
|
23
31
|
return this.get((style & EShapePointsStyle.FORMATTER_MASK) >> EShapePointsStyle.FORMATTER_SHIFT);
|
|
24
32
|
};
|
|
25
|
-
EShapePointsFormatters.
|
|
33
|
+
EShapePointsFormatters.newData = function () {
|
|
26
34
|
var result = new Map();
|
|
27
|
-
result.set(EShapePointsStyle.FORMATTER_CURVE,
|
|
35
|
+
result.set(EShapePointsStyle.FORMATTER_CURVE, {
|
|
36
|
+
label: "Curve",
|
|
37
|
+
formatter: eShapePointsFormatterCurve
|
|
38
|
+
});
|
|
28
39
|
return result;
|
|
29
40
|
};
|
|
30
41
|
return EShapePointsFormatters;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"e-shape-points-formatters.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/shape/e-shape-points-formatters.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"e-shape-points-formatters.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/shape/e-shape-points-formatters.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAO3D;IAAA;IAwCA,CAAC;IArCO,0BAAG,GAAV,UAAW,EAAU,EAAE,KAAiC;QACvD,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACtB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;SAC3B;QACD,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;IAC1B,CAAC;IAEM,0BAAG,GAAV,UAAW,KAAa;QACvB,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACtB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;SAC3B;QACD,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC;IAEM,2BAAI,GAAX,UAAY,QAAiE;QAC5E,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACtB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;SAC3B;QACD,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,UAAC,KAAK,EAAE,EAAE;YAC3B,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;QACrB,CAAC,CAAC,CAAC;IACJ,CAAC;IAEM,2BAAI,GAAX,UAAY,KAAwB;QACnC,OAAO,IAAI,CAAC,GAAG,CACd,CAAC,KAAK,GAAG,iBAAiB,CAAC,cAAc,CAAC,IAAI,iBAAiB,CAAC,eAAe,CAC/E,CAAC;IACH,CAAC;IAEc,8BAAO,GAAtB;QACC,IAAM,MAAM,GAAG,IAAI,GAAG,EAAsC,CAAC;QAC7D,MAAM,CAAC,GAAG,CAAC,iBAAiB,CAAC,eAAe,EAAE;YAC7C,KAAK,EAAE,OAAO;YACd,SAAS,EAAE,0BAA0B;SACrC,CAAC,CAAC;QACH,OAAO,MAAM,CAAC;IACf,CAAC;IACF,6BAAC;AAAD,CAAC,AAxCD,IAwCC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShapePointsFormatter } from \"./e-shape-points-formatter\";\nimport { eShapePointsFormatterCurve } from \"./e-shape-points-formatter-curve\";\nimport { EShapePointsStyle } from \"./e-shape-points-style\";\n\nexport interface EShapePointsFormatterDatum {\n\tlabel: string;\n\tformatter: EShapePointsFormatter;\n}\n\nexport class EShapePointsFormatters {\n\tprivate static data?: Map<number, EShapePointsFormatterDatum>;\n\n\tstatic set(id: number, datum: EShapePointsFormatterDatum): void {\n\t\tif (this.data == null) {\n\t\t\tthis.data = this.newData();\n\t\t}\n\t\tthis.data.set(id, datum);\n\t}\n\n\tstatic get(index: number): EShapePointsFormatterDatum | undefined {\n\t\tif (this.data == null) {\n\t\t\tthis.data = this.newData();\n\t\t}\n\t\treturn this.data.get(index);\n\t}\n\n\tstatic each(iteratee: (id: number, datum: EShapePointsFormatterDatum) => void): void {\n\t\tif (this.data == null) {\n\t\t\tthis.data = this.newData();\n\t\t}\n\t\tthis.data.forEach((datum, id) => {\n\t\t\titeratee(id, datum);\n\t\t});\n\t}\n\n\tstatic find(style: EShapePointsStyle): EShapePointsFormatterDatum | undefined {\n\t\treturn this.get(\n\t\t\t(style & EShapePointsStyle.FORMATTER_MASK) >> EShapePointsStyle.FORMATTER_SHIFT\n\t\t);\n\t}\n\n\tprivate static newData(): Map<number, EShapePointsFormatterDatum> {\n\t\tconst result = new Map<number, EShapePointsFormatterDatum>();\n\t\tresult.set(EShapePointsStyle.FORMATTER_CURVE, {\n\t\t\tlabel: \"Curve\",\n\t\t\tformatter: eShapePointsFormatterCurve\n\t\t});\n\t\treturn result;\n\t}\n}\n"]}
|
|
@@ -66,6 +66,7 @@ export * from "./e-shape-layout";
|
|
|
66
66
|
export * from "./e-shape-points-formatted";
|
|
67
67
|
export * from "./e-shape-points-formatter-curve";
|
|
68
68
|
export * from "./e-shape-points-formatter";
|
|
69
|
+
export * from "./e-shape-points-formatters";
|
|
69
70
|
export * from "./e-shape-points-marker-base";
|
|
70
71
|
export * from "./e-shape-points-marker-container-impl-noop";
|
|
71
72
|
export * from "./e-shape-points-marker-container-impl";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/shape/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,+BAA+B,CA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BAAgB,CAAC;AAC/B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,WAAW,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport * from \"./action\";\nexport * from \"./load\";\nexport * from \"./variant\";\nexport * from \"./e-shape-acceptor-impl\";\nexport * from \"./e-shape-acceptor-type\";\nexport * from \"./e-shape-acceptor\";\nexport * from \"./e-shape-acceptors\";\nexport * from \"./e-shape-buffer-unit-builder\";\nexport * from \"./e-shape-buffer-unit\";\nexport * from \"./e-shape-buffer\";\nexport * from \"./e-shape-capabilities\";\nexport * from \"./e-shape-capability-container-impl\";\nexport * from \"./e-shape-capability-container\";\nexport * from \"./e-shape-capability\";\nexport * from \"./e-shape-connector-bodies\";\nexport * from \"./e-shape-connector-body-impl\";\nexport * from \"./e-shape-connector-body\";\nexport * from \"./e-shape-connector-container-impl\";\nexport * from \"./e-shape-connector-container\";\nexport * from \"./e-shape-connector-edge-acceptor-impl\";\nexport * from \"./e-shape-connector-edge-acceptor\";\nexport * from \"./e-shape-connector-edge-container-impl\";\nexport * from \"./e-shape-connector-edge-container\";\nexport * from \"./e-shape-connector-edge-impl\";\nexport * from \"./e-shape-connector-edge\";\nexport * from \"./e-shape-connector\";\nexport * from \"./e-shape-connectors\";\nexport * from \"./e-shape-container\";\nexport * from \"./e-shape-copy-part\";\nexport * from \"./e-shape-corner\";\nexport * from \"./e-shape-data-impl\";\nexport * from \"./e-shape-data-mapper-impl\";\nexport * from \"./e-shape-data-mapper\";\nexport * from \"./e-shape-data-mapping-impl\";\nexport * from \"./e-shape-data-mapping\";\nexport * from \"./e-shape-data-scoped-impl\";\nexport * from \"./e-shape-data-scoped\";\nexport * from \"./e-shape-data-system-impl\";\nexport * from \"./e-shape-data-system\";\nexport * from \"./e-shape-data-value-extension\";\nexport * from \"./e-shape-data-value-extensions\";\nexport * from \"./e-shape-data-value-formatter\";\nexport * from \"./e-shape-data-value-impl\";\nexport * from \"./e-shape-data-value-order\";\nexport * from \"./e-shape-data-value-range-impl\";\nexport * from \"./e-shape-data-value-range\";\nexport * from \"./e-shape-data-value-scope\";\nexport * from \"./e-shape-data-value-state\";\nexport * from \"./e-shape-data-value-type\";\nexport * from \"./e-shape-data-value\";\nexport * from \"./e-shape-data\";\nexport * from \"./e-shape-defaults\";\nexport * from \"./e-shape-deleter\";\nexport * from \"./e-shape-deserializers\";\nexport * from \"./e-shape-editor\";\nexport * from \"./e-shape-fill\";\nexport * from \"./e-shape-gradient\";\nexport * from \"./e-shape-layer-container\";\nexport * from \"./e-shape-layer-state\";\nexport * from \"./e-shape-layer\";\nexport * from \"./e-shape-layout\";\nexport * from \"./e-shape-points-formatted\";\nexport * from \"./e-shape-points-formatter-curve\";\nexport * from \"./e-shape-points-formatter\";\nexport * from \"./e-shape-points-marker-base\";\nexport * from \"./e-shape-points-marker-container-impl-noop\";\nexport * from \"./e-shape-points-marker-container-impl\";\nexport * from \"./e-shape-points-marker-container\";\nexport * from \"./e-shape-points-marker-head\";\nexport * from \"./e-shape-points-marker-noop\";\nexport * from \"./e-shape-points-marker-tail\";\nexport * from \"./e-shape-points-marker-type\";\nexport * from \"./e-shape-points-marker\";\nexport * from \"./e-shape-points-style\";\nexport * from \"./e-shape-points-styles\";\nexport * from \"./e-shape-points\";\nexport * from \"./e-shape-renderer-iterator-datum\";\nexport * from \"./e-shape-renderer-iterator\";\nexport * from \"./e-shape-renderer\";\nexport * from \"./e-shape-resource-manager-deserialization-mode\";\nexport * from \"./e-shape-resource-manager-deserialization\";\nexport * from \"./e-shape-resource-manager-serialization\";\nexport * from \"./e-shape-runtime-impl\";\nexport * from \"./e-shape-runtime-reset\";\nexport * from \"./e-shape-runtime\";\nexport * from \"./e-shape-runtimes\";\nexport * from \"./e-shape-search\";\nexport * from \"./e-shape-state-set-impl-observable\";\nexport * from \"./e-shape-state-set\";\nexport * from \"./e-shape-state\";\nexport * from \"./e-shape-stroke-side\";\nexport * from \"./e-shape-stroke-style\";\nexport * from \"./e-shape-stroke\";\nexport * from \"./e-shape-text-align-horizontal\";\nexport * from \"./e-shape-text-align-vertical\";\nexport * from \"./e-shape-text-align\";\nexport * from \"./e-shape-text-direction\";\nexport * from \"./e-shape-text-offset\";\nexport * from \"./e-shape-text-outline\";\nexport * from \"./e-shape-text\";\nexport * from \"./e-shape-transform-parent\";\nexport * from \"./e-shape-transform\";\nexport * from \"./e-shape-transforms\";\nexport * from \"./e-shape-type\";\nexport * from \"./e-shape-uploaded-constructor\";\nexport * from \"./e-shape-uploaded\";\nexport * from \"./e-shape-uploadeds\";\nexport * from \"./e-shape-uuid-mapping-impl\";\nexport * from \"./e-shape-uuid-mapping\";\nexport * from \"./e-shape\";\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/shape/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qCAAqC,CAAC;AACpD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACz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,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,WAAW,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport * from \"./action\";\nexport * from \"./load\";\nexport * from \"./variant\";\nexport * from \"./e-shape-acceptor-impl\";\nexport * from \"./e-shape-acceptor-type\";\nexport * from \"./e-shape-acceptor\";\nexport * from \"./e-shape-acceptors\";\nexport * from \"./e-shape-buffer-unit-builder\";\nexport * from \"./e-shape-buffer-unit\";\nexport * from \"./e-shape-buffer\";\nexport * from \"./e-shape-capabilities\";\nexport * from \"./e-shape-capability-container-impl\";\nexport * from \"./e-shape-capability-container\";\nexport * from \"./e-shape-capability\";\nexport * from \"./e-shape-connector-bodies\";\nexport * from \"./e-shape-connector-body-impl\";\nexport * from \"./e-shape-connector-body\";\nexport * from \"./e-shape-connector-container-impl\";\nexport * from \"./e-shape-connector-container\";\nexport * from \"./e-shape-connector-edge-acceptor-impl\";\nexport * from \"./e-shape-connector-edge-acceptor\";\nexport * from \"./e-shape-connector-edge-container-impl\";\nexport * from \"./e-shape-connector-edge-container\";\nexport * from \"./e-shape-connector-edge-impl\";\nexport * from \"./e-shape-connector-edge\";\nexport * from \"./e-shape-connector\";\nexport * from \"./e-shape-connectors\";\nexport * from \"./e-shape-container\";\nexport * from \"./e-shape-copy-part\";\nexport * from \"./e-shape-corner\";\nexport * from \"./e-shape-data-impl\";\nexport * from \"./e-shape-data-mapper-impl\";\nexport * from \"./e-shape-data-mapper\";\nexport * from \"./e-shape-data-mapping-impl\";\nexport * from \"./e-shape-data-mapping\";\nexport * from \"./e-shape-data-scoped-impl\";\nexport * from \"./e-shape-data-scoped\";\nexport * from \"./e-shape-data-system-impl\";\nexport * from \"./e-shape-data-system\";\nexport * from \"./e-shape-data-value-extension\";\nexport * from \"./e-shape-data-value-extensions\";\nexport * from \"./e-shape-data-value-formatter\";\nexport * from \"./e-shape-data-value-impl\";\nexport * from \"./e-shape-data-value-order\";\nexport * from \"./e-shape-data-value-range-impl\";\nexport * from \"./e-shape-data-value-range\";\nexport * from \"./e-shape-data-value-scope\";\nexport * from \"./e-shape-data-value-state\";\nexport * from \"./e-shape-data-value-type\";\nexport * from \"./e-shape-data-value\";\nexport * from \"./e-shape-data\";\nexport * from \"./e-shape-defaults\";\nexport * from \"./e-shape-deleter\";\nexport * from \"./e-shape-deserializers\";\nexport * from \"./e-shape-editor\";\nexport * from \"./e-shape-fill\";\nexport * from \"./e-shape-gradient\";\nexport * from \"./e-shape-layer-container\";\nexport * from \"./e-shape-layer-state\";\nexport * from \"./e-shape-layer\";\nexport * from \"./e-shape-layout\";\nexport * from \"./e-shape-points-formatted\";\nexport * from \"./e-shape-points-formatter-curve\";\nexport * from \"./e-shape-points-formatter\";\nexport * from \"./e-shape-points-formatters\";\nexport * from \"./e-shape-points-marker-base\";\nexport * from \"./e-shape-points-marker-container-impl-noop\";\nexport * from \"./e-shape-points-marker-container-impl\";\nexport * from \"./e-shape-points-marker-container\";\nexport * from \"./e-shape-points-marker-head\";\nexport * from \"./e-shape-points-marker-noop\";\nexport * from \"./e-shape-points-marker-tail\";\nexport * from \"./e-shape-points-marker-type\";\nexport * from \"./e-shape-points-marker\";\nexport * from \"./e-shape-points-style\";\nexport * from \"./e-shape-points-styles\";\nexport * from \"./e-shape-points\";\nexport * from \"./e-shape-renderer-iterator-datum\";\nexport * from \"./e-shape-renderer-iterator\";\nexport * from \"./e-shape-renderer\";\nexport * from \"./e-shape-resource-manager-deserialization-mode\";\nexport * from \"./e-shape-resource-manager-deserialization\";\nexport * from \"./e-shape-resource-manager-serialization\";\nexport * from \"./e-shape-runtime-impl\";\nexport * from \"./e-shape-runtime-reset\";\nexport * from \"./e-shape-runtime\";\nexport * from \"./e-shape-runtimes\";\nexport * from \"./e-shape-search\";\nexport * from \"./e-shape-state-set-impl-observable\";\nexport * from \"./e-shape-state-set\";\nexport * from \"./e-shape-state\";\nexport * from \"./e-shape-stroke-side\";\nexport * from \"./e-shape-stroke-style\";\nexport * from \"./e-shape-stroke\";\nexport * from \"./e-shape-text-align-horizontal\";\nexport * from \"./e-shape-text-align-vertical\";\nexport * from \"./e-shape-text-align\";\nexport * from \"./e-shape-text-direction\";\nexport * from \"./e-shape-text-offset\";\nexport * from \"./e-shape-text-outline\";\nexport * from \"./e-shape-text\";\nexport * from \"./e-shape-transform-parent\";\nexport * from \"./e-shape-transform\";\nexport * from \"./e-shape-transforms\";\nexport * from \"./e-shape-type\";\nexport * from \"./e-shape-uploaded-constructor\";\nexport * from \"./e-shape-uploaded\";\nexport * from \"./e-shape-uploadeds\";\nexport * from \"./e-shape-uuid-mapping-impl\";\nexport * from \"./e-shape-uuid-mapping\";\nexport * from \"./e-shape\";\n"]}
|
|
@@ -210,13 +210,14 @@ var EShapeLinePoints = /** @class */ (function () {
|
|
|
210
210
|
});
|
|
211
211
|
Object.defineProperty(EShapeLinePoints.prototype, "formatted", {
|
|
212
212
|
get: function () {
|
|
213
|
+
var _a, _b;
|
|
213
214
|
this.fit();
|
|
214
215
|
var id = this._id;
|
|
215
216
|
var result = this._formatted;
|
|
216
217
|
if (this._formattedId !== id) {
|
|
217
218
|
this._formattedId = id;
|
|
218
219
|
var style = this._style;
|
|
219
|
-
var formatter = this._formatter
|
|
220
|
+
var formatter = (_a = this._formatter) !== null && _a !== void 0 ? _a : (_b = EShapePointsFormatters.find(style)) === null || _b === void 0 ? void 0 : _b.formatter;
|
|
220
221
|
if (formatter != null) {
|
|
221
222
|
if (result == null) {
|
|
222
223
|
result = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"e-shape-line-points.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-line-points.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAU,KAAK,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAGnD,OAAO,EAAE,i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EAAE,SAAS,EAAE,MAAM,CAAC,EAAE;wBAC3D,OAAO,IAAI,CAAC;qBACZ;iBACD;aACD;YACD,IAAI,CAAC,GAAG,MAAM,IAAI,MAAM,IAAI,IAAI,IAAI,KAAK,GAAG,iBAAiB,CAAC,MAAM,EAAE;gBACrE,IAAI,SAAS,CAAC,QAAQ,EAAE,CAAC,CAAC,GAAG,CAAC,EAAE;oBAC/B,IAAM,CAAC,GAAG,MAAM,GAAG,CAAC,CAAC;oBACrB,IAAM,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC;oBAClB,IAAM,GAAG,GAAG,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;oBAC3B,IAAM,GAAG,GAAG,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;oBAC3B,IAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;oBACtB,IAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;oBACtB,IAAI,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,SAAS,EAAE,MAAM,CAAC,EAAE;wBAC3D,OAAO,IAAI,CAAC;qBACZ;iBACD;aACD;SACD;QACD,OAAO,KAAK,CAAC;IACd,CAAC;IArhBgB,2BAAU,GAAqB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAshBxD,uBAAC;CAAA,AAvhBD,IAuhBC;SAvhBY,gBAAgB","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { Matrix, Point } from \"pixi.js\";\nimport { toIndexOf } from \"../../util/to-index-of\";\nimport { EShape } from \"../e-shape\";\nimport { EShapePoints } from \"../e-shape-points\";\nimport { EShapePointsStyle } from \"../e-shape-points-style\";\nimport { EShapeResourceManagerSerialization } from \"../e-shape-resource-manager-serialization\";\nimport { EShapePointsFormatter } from \"../e-shape-points-formatter\";\nimport {\n\tEShapePointsFormatted,\n\tEShapePointsFormattedBoundary,\n\tEShapePointsFormattedWithBoundary,\n\ttoPointsBoundary\n} from \"../e-shape-points-formatted\";\nimport { EShapeLineBasePointsHitTester } from \"./e-shape-line-base-points-hit-tester\";\nimport { EShapeLineBasePointsHitTesterToRange } from \"./e-shape-line-base-points-hit-tester-to-range\";\nimport { EShapeResourceManagerDeserialization } from \"../e-shape-resource-manager-deserialization\";\nimport { EShapePointsMarkerContainer } from \"../e-shape-points-marker-container\";\nimport { EShapePointsMarkerContainerImpl } from \"../e-shape-points-marker-container-impl\";\nimport { EShapePointsFormatters } from \"../e-shape-points-formatters\";\n\nexport type EShapeLinePointsSerialized = [number[], number[], number, number?];\n\nexport class EShapeLinePoints implements EShapePoints {\n\tprotected static WORK_RANGE: [number, number] = [0, 0];\n\n\tprotected _parent: EShape;\n\tprotected _valuesBase?: number[];\n\tprotected _valuesBaseLength: number;\n\tprotected _values: number[];\n\tprotected _segments: number[];\n\tprotected _parentSizeBase: Point;\n\tprotected _parentSizeFitted: Point;\n\tprotected _id: number;\n\tprotected _style: EShapePointsStyle;\n\tprotected _formattedId: number;\n\tprotected _formatter?: EShapePointsFormatter | null;\n\tprotected _formatted?: EShapePointsFormattedWithBoundary;\n\tprotected _formattedValuesBase?: number[];\n\tprotected _formattedBoundaryBase?: EShapePointsFormattedBoundary;\n\n\tprotected _marker?: EShapePointsMarkerContainer;\n\n\tconstructor(parent: EShape) {\n\t\tthis._parent = parent;\n\t\tthis._valuesBaseLength = 0;\n\t\tthis._values = [];\n\t\tthis._segments = [];\n\t\tconst parentSize = parent.size;\n\t\tconst parentSizeX = parentSize.x;\n\t\tconst parentSizeY = parentSize.y;\n\t\tthis._parentSizeBase = new Point(parentSizeX, parentSizeY);\n\t\tthis._parentSizeFitted = new Point(parentSizeX, parentSizeY);\n\t\tthis._id = 0;\n\t\tthis._style = EShapePointsStyle.NONE;\n\t\tthis._formattedId = -1;\n\t}\n\n\tget length(): number {\n\t\treturn this._values.length >> 1;\n\t}\n\n\ttoFitted(): void {\n\t\tthis._valuesBase = undefined;\n\t\tconst parentSize = this._parent.size;\n\t\tthis._parentSizeFitted.copyFrom(parentSize);\n\t\tthis._parentSizeBase.copyFrom(parentSize);\n\t}\n\n\tprotected fit(): void {\n\t\tconst psizef = this._parentSizeFitted;\n\t\tconst psize = this._parent.size;\n\t\tconst psizeX = psize.x;\n\t\tconst psizeY = psize.y;\n\t\tconst threshold = 0.00001;\n\t\tif (threshold < Math.abs(psizeX - psizef.x) || threshold < Math.abs(psizeY - psizef.y)) {\n\t\t\tpsizef.set(psizeX, psizeY);\n\n\t\t\tconst psizeBase = this._parentSizeBase;\n\t\t\tconst isValidX = threshold < Math.abs(psizeBase.x);\n\t\t\tconst isValidY = threshold < Math.abs(psizeBase.y);\n\t\t\tif (isValidX || isValidY) {\n\t\t\t\tconst scaleX = isValidX ? psizeX / psizeBase.x : 1;\n\t\t\t\tconst scaleY = isValidY ? psizeY / psizeBase.y : 1;\n\n\t\t\t\t// Values\n\t\t\t\tconst values = this._values;\n\t\t\t\tlet valuesBase = this._valuesBase;\n\t\t\t\tif (valuesBase == null) {\n\t\t\t\t\tvaluesBase = [];\n\t\t\t\t\tthis._valuesBase = valuesBase;\n\n\t\t\t\t\tfor (let i = 0, imax = values.length; i < imax; i += 2) {\n\t\t\t\t\t\tconst x = values[i];\n\t\t\t\t\t\tconst y = values[i + 1];\n\t\t\t\t\t\tvalues[i] = x * scaleX;\n\t\t\t\t\t\tvalues[i + 1] = y * scaleY;\n\t\t\t\t\t\tvaluesBase.push(x, y);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (let i = 0, imax = values.length; i < imax; i += 2) {\n\t\t\t\t\t\tvalues[i] = valuesBase[i] * scaleX;\n\t\t\t\t\t\tvalues[i + 1] = valuesBase[i + 1] * scaleY;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Formatted ID, values and boundary\n\t\t\t\tif (this._id === this._formattedId) {\n\t\t\t\t\tconst formatted = this._formatted;\n\t\t\t\t\tif (formatted != null) {\n\t\t\t\t\t\t// Formatted values\n\t\t\t\t\t\tconst formattedValues = formatted.values;\n\t\t\t\t\t\tlet formattedValuesBase = this._formattedValuesBase;\n\t\t\t\t\t\tif (formattedValuesBase == null) {\n\t\t\t\t\t\t\tformattedValuesBase = [];\n\t\t\t\t\t\t\tthis._formattedValuesBase = formattedValuesBase;\n\n\t\t\t\t\t\t\tfor (let i = 0, imax = formattedValues.length; i < imax; i += 2) {\n\t\t\t\t\t\t\t\tconst x = formattedValues[i];\n\t\t\t\t\t\t\t\tconst y = formattedValues[i + 1];\n\t\t\t\t\t\t\t\tformattedValues[i] = x * scaleX;\n\t\t\t\t\t\t\t\tformattedValues[i + 1] = y * scaleY;\n\t\t\t\t\t\t\t\tformattedValuesBase.push(x, y);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tfor (let i = 0, imax = formattedValues.length; i < imax; i += 2) {\n\t\t\t\t\t\t\t\tformattedValues[i] = formattedValuesBase[i] * scaleX;\n\t\t\t\t\t\t\t\tformattedValues[i + 1] = formattedValuesBase[i + 1] * scaleY;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Formatted boundary\n\t\t\t\t\t\tconst formattedBoundary = formatted.boundary;\n\t\t\t\t\t\tlet formattedBoundaryBase = this._formattedBoundaryBase;\n\t\t\t\t\t\tif (formattedBoundaryBase == null) {\n\t\t\t\t\t\t\tformattedBoundaryBase = [0, 0, 0, 0];\n\t\t\t\t\t\t\tthis._formattedBoundaryBase = formattedBoundaryBase;\n\n\t\t\t\t\t\t\tfor (let i = 0, imax = formattedBoundary.length; i < imax; i += 2) {\n\t\t\t\t\t\t\t\tconst x = formattedBoundary[i];\n\t\t\t\t\t\t\t\tconst y = formattedBoundary[i + 1];\n\t\t\t\t\t\t\t\tformattedBoundary[i] = x * scaleX;\n\t\t\t\t\t\t\t\tformattedBoundary[i + 1] = y * scaleY;\n\t\t\t\t\t\t\t\tformattedBoundaryBase[i] = x;\n\t\t\t\t\t\t\t\tformattedBoundaryBase[i + 1] = y;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tfor (let i = 0, imax = formattedBoundary.length; i < imax; i += 2) {\n\t\t\t\t\t\t\t\tformattedBoundary[i] = formattedBoundaryBase[i] * scaleX;\n\t\t\t\t\t\t\t\tformattedBoundary[i + 1] = formattedBoundaryBase[i + 1] * scaleY;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Formatted ID\n\t\t\t\t\t\tthis._formattedId += 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tthis._id += 1;\n\t\t\t}\n\t\t}\n\t}\n\n\tget id(): number {\n\t\tthis.fit();\n\t\treturn this._id;\n\t}\n\n\tget values(): number[] {\n\t\tthis.fit();\n\t\treturn this._values;\n\t}\n\n\tset values(values: number[]) {\n\t\tthis.set(values, undefined, undefined);\n\t}\n\n\tget segments(): number[] {\n\t\treturn this._segments;\n\t}\n\n\t/**\n\t * Must be sorted in ascending order.\n\t */\n\tset segments(segments: number[]) {\n\t\tthis.set(undefined, segments, undefined);\n\t}\n\n\tget style(): EShapePointsStyle {\n\t\treturn this._style;\n\t}\n\n\tset style(style: EShapePointsStyle) {\n\t\tthis.set(undefined, undefined, style);\n\t}\n\n\tget marker(): EShapePointsMarkerContainer {\n\t\tlet result = this._marker;\n\t\tif (result == null) {\n\t\t\tresult = this.newMarker();\n\t\t\tthis._marker = result;\n\t\t}\n\t\treturn result;\n\t}\n\n\tgetMarker(): EShapePointsMarkerContainer | undefined {\n\t\treturn this._marker;\n\t}\n\n\tprotected newMarker(): EShapePointsMarkerContainer {\n\t\treturn new EShapePointsMarkerContainerImpl(this);\n\t}\n\n\tonMarkerTypeChange(): void {\n\t\tconst parent = this._parent;\n\t\tparent.uploaded = undefined;\n\t\tparent.toDirty();\n\t}\n\n\tonMarkerSizeChange(): void {\n\t\tthis._parent.updateUploaded();\n\t}\n\n\tonMarkerFillChange(): void {\n\t\tthis._parent.updateUploaded();\n\t}\n\n\tget formatter(): EShapePointsFormatter | null {\n\t\treturn this._formatter || null;\n\t}\n\n\tset formatter(formatter: EShapePointsFormatter | null) {\n\t\tif (this._formatter !== formatter) {\n\t\t\tthis._formattedId = -1;\n\t\t\tthis._formatter = formatter;\n\t\t\tthis.toDirty(true);\n\t\t}\n\t}\n\n\tget formatted(): EShapePointsFormatted {\n\t\tthis.fit();\n\t\tconst id = this._id;\n\t\tlet result = this._formatted;\n\t\tif (this._formattedId !== id) {\n\t\t\tthis._formattedId = id;\n\n\t\t\tconst style = this._style;\n\t\t\tconst formatter = this._formatter || EShapePointsFormatters.find(style);\n\t\t\tif (formatter != null) {\n\t\t\t\tif (result == null) {\n\t\t\t\t\tresult = {\n\t\t\t\t\t\tlength: 0,\n\t\t\t\t\t\tvalues: [],\n\t\t\t\t\t\tsegments: [],\n\t\t\t\t\t\tboundary: [0, 0, 0, 0],\n\t\t\t\t\t\tstyle: EShapePointsStyle.NONE\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tconst valuesBase = this._valuesBase;\n\t\t\t\tconst segments = this._segments;\n\t\t\t\tif (valuesBase != null) {\n\t\t\t\t\tconst length = valuesBase.length >> 1;\n\t\t\t\t\tformatter(length, valuesBase, segments, style, result);\n\t\t\t\t\ttoPointsBoundary(result.values, result.boundary);\n\n\t\t\t\t\tconst formattedValues = result.values;\n\t\t\t\t\tconst formattedValuesBase = formattedValues.splice(0);\n\t\t\t\t\tthis._formattedValuesBase = formattedValuesBase;\n\n\t\t\t\t\tconst formattedBoundary = result.boundary;\n\t\t\t\t\tconst formattedBoundaryBase: EShapePointsFormattedBoundary = [\n\t\t\t\t\t\tformattedBoundary[0],\n\t\t\t\t\t\tformattedBoundary[1],\n\t\t\t\t\t\tformattedBoundary[2],\n\t\t\t\t\t\tformattedBoundary[3]\n\t\t\t\t\t];\n\t\t\t\t\tthis._formattedBoundaryBase = formattedBoundaryBase;\n\n\t\t\t\t\tthis.toScaled(\n\t\t\t\t\t\tformattedValues,\n\t\t\t\t\t\tformattedValuesBase,\n\t\t\t\t\t\tformattedBoundary,\n\t\t\t\t\t\tformattedBoundaryBase\n\t\t\t\t\t);\n\t\t\t\t} else {\n\t\t\t\t\tconst values = this._values;\n\t\t\t\t\tconst length = values.length >> 1;\n\t\t\t\t\tformatter(length, values, segments, style, result);\n\t\t\t\t\ttoPointsBoundary(result.values, result.boundary);\n\t\t\t\t\tthis._formattedValuesBase = undefined;\n\t\t\t\t\tthis._formattedBoundaryBase = undefined;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tresult = undefined;\n\t\t\t\tthis._formattedValuesBase = undefined;\n\t\t\t\tthis._formattedBoundaryBase = undefined;\n\t\t\t}\n\t\t\tthis._formatted = result;\n\t\t}\n\t\treturn result || this;\n\t}\n\n\tprotected toScaled(\n\t\tvalues: number[],\n\t\tvaluesBase: number[],\n\t\tboundary: EShapePointsFormattedBoundary,\n\t\tboundaryBase: EShapePointsFormattedBoundary\n\t): void {\n\t\tconst size = this._parentSizeFitted;\n\t\tconst sizeBase = this._parentSizeBase;\n\t\tconst threshold = 0.00001;\n\t\tconst hasSizeBaseX = threshold < Math.abs(sizeBase.x);\n\t\tconst hasSizeBaseY = threshold < Math.abs(sizeBase.y);\n\t\tif (hasSizeBaseX || hasSizeBaseY) {\n\t\t\tconst scaleX = hasSizeBaseX ? size.x / sizeBase.x : 1;\n\t\t\tconst scaleY = hasSizeBaseY ? size.y / sizeBase.y : 1;\n\n\t\t\tfor (let i = 0, imax = valuesBase.length; i < imax; i += 2) {\n\t\t\t\tvalues[i] = valuesBase[i] * scaleX;\n\t\t\t\tvalues[i + 1] = valuesBase[i + 1] * scaleY;\n\t\t\t}\n\n\t\t\tfor (let i = 0, imax = boundaryBase.length; i < imax; i += 2) {\n\t\t\t\tboundary[i] = boundaryBase[i] * scaleX;\n\t\t\t\tboundary[i + 1] = boundaryBase[i + 1] * scaleY;\n\t\t\t}\n\t\t}\n\t}\n\n\tcopy(source: EShapePoints): this {\n\t\tthis.set(source.values, source.segments, source.style);\n\t\tconst marker = source.getMarker();\n\t\tif (marker) {\n\t\t\tthis.marker.copy(marker);\n\t\t}\n\t\treturn this;\n\t}\n\n\tset(newValues?: number[], newSegments?: number[], newStyle?: EShapePointsStyle): this {\n\t\tlet isDirty = false;\n\t\tlet isUpdated = false;\n\n\t\t// Formatter\n\t\tconst style = this._style;\n\t\tconst styleFormatter = style & EShapePointsStyle.FORMATTER_MASK;\n\t\tconst formatter = this._formatter;\n\n\t\t// Values\n\t\tif (newValues != null) {\n\t\t\tconst values = this._values;\n\t\t\tconst valuesBaseLength = this._valuesBaseLength;\n\t\t\tconst newValuesLength = newValues.length;\n\t\t\tconst iupdate = Math.min(newValuesLength, valuesBaseLength);\n\t\t\tthis.toFitted();\n\t\t\tif (values !== newValues) {\n\t\t\t\tfor (let i = 0; i < iupdate; ++i) {\n\t\t\t\t\tvalues[i] = newValues[i];\n\t\t\t\t}\n\n\t\t\t\tfor (let i = iupdate; i < newValuesLength; ++i) {\n\t\t\t\t\tvalues.push(newValues[i]);\n\t\t\t\t}\n\n\t\t\t\tif (valuesBaseLength !== newValuesLength) {\n\t\t\t\t\tvalues.length = newValuesLength;\n\t\t\t\t\tthis._valuesBaseLength = newValuesLength;\n\t\t\t\t\tisDirty = true;\n\t\t\t\t} else {\n\t\t\t\t\tif (formatter != null || styleFormatter) {\n\t\t\t\t\t\tisDirty = true;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tisUpdated = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (valuesBaseLength !== newValuesLength) {\n\t\t\t\t\tthis._valuesBaseLength = newValuesLength;\n\t\t\t\t\tisDirty = true;\n\t\t\t\t} else {\n\t\t\t\t\tif (formatter != null || styleFormatter) {\n\t\t\t\t\t\tisDirty = true;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tisUpdated = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Segments\n\t\tif (newSegments != null) {\n\t\t\tconst segments = this._segments;\n\t\t\tif (segments !== newSegments) {\n\t\t\t\tconst newSegmentsLength = newSegments.length;\n\t\t\t\tconst iupdate = Math.min(segments.length, newSegmentsLength);\n\t\t\t\tfor (let i = 0; i < iupdate; ++i) {\n\t\t\t\t\tsegments[i] = newSegments[i];\n\t\t\t\t}\n\n\t\t\t\tfor (let i = iupdate; i < newSegmentsLength; ++i) {\n\t\t\t\t\tsegments.push(newSegments[i]);\n\t\t\t\t}\n\n\t\t\t\tif (segments.length !== newSegmentsLength) {\n\t\t\t\t\tsegments.length = newSegmentsLength;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (formatter != null || styleFormatter) {\n\t\t\t\tisDirty = true;\n\t\t\t} else {\n\t\t\t\tisUpdated = true;\n\t\t\t}\n\t\t}\n\n\t\t// Style\n\t\tif (newStyle != null) {\n\t\t\tif (style !== newStyle) {\n\t\t\t\tconst newStyleFormatter = newStyle & EShapePointsStyle.FORMATTER_MASK;\n\t\t\t\tif (styleFormatter !== newStyleFormatter) {\n\t\t\t\t\tisDirty = true;\n\t\t\t\t} else {\n\t\t\t\t\tif (formatter != null || styleFormatter) {\n\t\t\t\t\t\tconst styleClosed = style & EShapePointsStyle.CLOSED;\n\t\t\t\t\t\tconst newStyleClosed = newStyle & EShapePointsStyle.CLOSED;\n\t\t\t\t\t\tif (styleClosed !== newStyleClosed) {\n\t\t\t\t\t\t\tisDirty = true;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tisUpdated = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tisUpdated = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tthis._style = newStyle;\n\t\t\t}\n\t\t}\n\n\t\t//\n\t\tif (isUpdated || isDirty) {\n\t\t\tthis.toDirty(isDirty);\n\t\t}\n\t\treturn this;\n\t}\n\n\tprotected toDirty(revalidate: boolean): void {\n\t\tif (revalidate) {\n\t\t\tthis._id += 1;\n\t\t\tconst parent = this._parent;\n\t\t\tconst uploaded = parent.uploaded;\n\t\t\tif (uploaded) {\n\t\t\t\tif (uploaded.isCompatible(parent)) {\n\t\t\t\t\tparent.updateUploaded();\n\t\t\t\t} else {\n\t\t\t\t\tparent.uploaded = undefined;\n\t\t\t\t\tparent.toDirty();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tparent.updateUploaded();\n\t\t\t}\n\t\t} else {\n\t\t\tthis._id += 1;\n\t\t\tthis._parent.updateUploaded();\n\t\t}\n\t}\n\n\tclone(parent: EShape): EShapeLinePoints {\n\t\treturn new EShapeLinePoints(parent).copy(this);\n\t}\n\n\ttoPoints(transform: Matrix): Point[] {\n\t\tconst result: Point[] = [];\n\t\tconst values = this.values;\n\t\tfor (let i = 0, imax = values.length; i < imax; i += 2) {\n\t\t\tconst point = new Point(values[i + 0], values[i + 1]);\n\t\t\tresult.push(transform.apply(point, point));\n\t\t}\n\t\treturn result;\n\t}\n\n\tserialize(manager: EShapeResourceManagerSerialization): number {\n\t\tconst values = JSON.stringify(this._values);\n\t\tconst segments = JSON.stringify(this._segments);\n\t\tconst style = this._style;\n\t\tlet markerId = -1;\n\t\tconst marker = this._marker;\n\t\tif (marker) {\n\t\t\tmarkerId = marker.serialize(manager);\n\t\t}\n\t\treturn manager.addResource(`[${values},${segments},${style},${markerId}]`);\n\t}\n\n\tdeserialize(resourceId: number, manager: EShapeResourceManagerDeserialization): void {\n\t\tconst resources = manager.resources;\n\t\tif (0 <= resourceId && resourceId < resources.length) {\n\t\t\tlet parsed = manager.getExtension<EShapeLinePointsSerialized>(resourceId);\n\t\t\tif (parsed == null) {\n\t\t\t\tparsed = JSON.parse(resources[resourceId]) as EShapeLinePointsSerialized;\n\t\t\t\tmanager.setExtension(resourceId, parsed);\n\t\t\t}\n\t\t\tthis.set(parsed[0], parsed[1], parsed[2]);\n\t\t\tconst markerId = parsed[3];\n\t\t\tif (markerId != null && 0 <= markerId) {\n\t\t\t\tthis.marker.deserialize(markerId, manager);\n\t\t\t}\n\t\t}\n\t}\n\n\tcalcHitPointAbs<RESULT>(\n\t\tx: number,\n\t\ty: number,\n\t\tax: number,\n\t\tay: number,\n\t\tthreshold: number,\n\t\ttoRange: EShapeLineBasePointsHitTesterToRange | null,\n\t\ttester: EShapeLineBasePointsHitTester<RESULT>,\n\t\tresult: RESULT\n\t): boolean {\n\t\tconst formatted = this.formatted;\n\t\tconst length = formatted.length;\n\t\tif (2 <= length) {\n\t\t\tconst values = formatted.values;\n\t\t\tconst segments = formatted.segments;\n\t\t\tconst style = formatted.style;\n\t\t\tlet istart = 0;\n\t\t\tlet iend = length;\n\t\t\tif (toRange) {\n\t\t\t\tconst work = EShapeLinePoints.WORK_RANGE;\n\t\t\t\ttoRange(x, y, threshold, values, work);\n\t\t\t\tistart = work[0];\n\t\t\t\tiend = work[1];\n\t\t\t}\n\t\t\tfor (let i = istart, imax = Math.min(iend, length - 1); i < imax; ++i) {\n\t\t\t\tif (toIndexOf(segments, i + 1) < 0) {\n\t\t\t\t\tconst iv = i << 1;\n\t\t\t\t\tconst p0x = values[iv + 0];\n\t\t\t\t\tconst p0y = values[iv + 1];\n\t\t\t\t\tconst p1x = values[iv + 2];\n\t\t\t\t\tconst p1y = values[iv + 3];\n\t\t\t\t\tif (tester(x, y, p0x, p0y, p1x, p1y, i, threshold, result)) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (2 < length && length <= iend && style & EShapePointsStyle.CLOSED) {\n\t\t\t\tif (toIndexOf(segments, 0) < 0) {\n\t\t\t\t\tconst i = length - 1;\n\t\t\t\t\tconst iv = i << 1;\n\t\t\t\t\tconst p0x = values[iv + 0];\n\t\t\t\t\tconst p0y = values[iv + 1];\n\t\t\t\t\tconst p1x = values[0];\n\t\t\t\t\tconst p1y = values[1];\n\t\t\t\t\tif (tester(x, y, p0x, p0y, p1x, p1y, i, threshold, result)) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}\n}\n"]}
|
|
1
|
+
{"version":3,"file":"e-shape-line-points.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-line-points.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAU,KAAK,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAGnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAG5D,OAAO,EAIN,gBAAgB,EAChB,MAAM,6BAA6B,CAAC;AAKrC,OAAO,EAAE,+BAA+B,EAAE,MAAM,yCAAyC,CAAC;AAC1F,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAItE;IAoBC,0BAAY,MAAc;QACzB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,iBAAiB,GAAG,CAAC,CAAC;QAC3B,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QAClB,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;QACpB,IAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC;QAC/B,IAAM,WAAW,GAAG,UAAU,CAAC,CAAC,CAAC;QACjC,IAAM,WAAW,GAAG,UAAU,CAAC,CAAC,CAAC;QACjC,IAAI,CAAC,eAAe,GAAG,IAAI,KAAK,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;QAC3D,IAAI,CAAC,iBAAiB,GAAG,IAAI,KAAK,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;QAC7D,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC;QACb,IAAI,CAAC,MAAM,GAAG,iBAAiB,CA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AAC;qBACZ;iBACD;aACD;SACD;QACD,OAAO,KAAK,CAAC;IACd,CAAC;IArhBgB,2BAAU,GAAqB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAshBxD,uBAAC;CAAA,AAvhBD,IAuhBC;SAvhBY,gBAAgB","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { Matrix, Point } from \"pixi.js\";\nimport { toIndexOf } from \"../../util/to-index-of\";\nimport { EShape } from \"../e-shape\";\nimport { EShapePoints } from \"../e-shape-points\";\nimport { EShapePointsStyle } from \"../e-shape-points-style\";\nimport { EShapeResourceManagerSerialization } from \"../e-shape-resource-manager-serialization\";\nimport { EShapePointsFormatter } from \"../e-shape-points-formatter\";\nimport {\n\tEShapePointsFormatted,\n\tEShapePointsFormattedBoundary,\n\tEShapePointsFormattedWithBoundary,\n\ttoPointsBoundary\n} from \"../e-shape-points-formatted\";\nimport { EShapeLineBasePointsHitTester } from \"./e-shape-line-base-points-hit-tester\";\nimport { EShapeLineBasePointsHitTesterToRange } from \"./e-shape-line-base-points-hit-tester-to-range\";\nimport { EShapeResourceManagerDeserialization } from \"../e-shape-resource-manager-deserialization\";\nimport { EShapePointsMarkerContainer } from \"../e-shape-points-marker-container\";\nimport { EShapePointsMarkerContainerImpl } from \"../e-shape-points-marker-container-impl\";\nimport { EShapePointsFormatters } from \"../e-shape-points-formatters\";\n\nexport type EShapeLinePointsSerialized = [number[], number[], number, number?];\n\nexport class EShapeLinePoints implements EShapePoints {\n\tprotected static WORK_RANGE: [number, number] = [0, 0];\n\n\tprotected _parent: EShape;\n\tprotected _valuesBase?: number[];\n\tprotected _valuesBaseLength: number;\n\tprotected _values: number[];\n\tprotected _segments: number[];\n\tprotected _parentSizeBase: Point;\n\tprotected _parentSizeFitted: Point;\n\tprotected _id: number;\n\tprotected _style: EShapePointsStyle;\n\tprotected _formattedId: number;\n\tprotected _formatter?: EShapePointsFormatter | null;\n\tprotected _formatted?: EShapePointsFormattedWithBoundary;\n\tprotected _formattedValuesBase?: number[];\n\tprotected _formattedBoundaryBase?: EShapePointsFormattedBoundary;\n\n\tprotected _marker?: EShapePointsMarkerContainer;\n\n\tconstructor(parent: EShape) {\n\t\tthis._parent = parent;\n\t\tthis._valuesBaseLength = 0;\n\t\tthis._values = [];\n\t\tthis._segments = [];\n\t\tconst parentSize = parent.size;\n\t\tconst parentSizeX = parentSize.x;\n\t\tconst parentSizeY = parentSize.y;\n\t\tthis._parentSizeBase = new Point(parentSizeX, parentSizeY);\n\t\tthis._parentSizeFitted = new Point(parentSizeX, parentSizeY);\n\t\tthis._id = 0;\n\t\tthis._style = EShapePointsStyle.NONE;\n\t\tthis._formattedId = -1;\n\t}\n\n\tget length(): number {\n\t\treturn this._values.length >> 1;\n\t}\n\n\ttoFitted(): void {\n\t\tthis._valuesBase = undefined;\n\t\tconst parentSize = this._parent.size;\n\t\tthis._parentSizeFitted.copyFrom(parentSize);\n\t\tthis._parentSizeBase.copyFrom(parentSize);\n\t}\n\n\tprotected fit(): void {\n\t\tconst psizef = this._parentSizeFitted;\n\t\tconst psize = this._parent.size;\n\t\tconst psizeX = psize.x;\n\t\tconst psizeY = psize.y;\n\t\tconst threshold = 0.00001;\n\t\tif (threshold < Math.abs(psizeX - psizef.x) || threshold < Math.abs(psizeY - psizef.y)) {\n\t\t\tpsizef.set(psizeX, psizeY);\n\n\t\t\tconst psizeBase = this._parentSizeBase;\n\t\t\tconst isValidX = threshold < Math.abs(psizeBase.x);\n\t\t\tconst isValidY = threshold < Math.abs(psizeBase.y);\n\t\t\tif (isValidX || isValidY) {\n\t\t\t\tconst scaleX = isValidX ? psizeX / psizeBase.x : 1;\n\t\t\t\tconst scaleY = isValidY ? psizeY / psizeBase.y : 1;\n\n\t\t\t\t// Values\n\t\t\t\tconst values = this._values;\n\t\t\t\tlet valuesBase = this._valuesBase;\n\t\t\t\tif (valuesBase == null) {\n\t\t\t\t\tvaluesBase = [];\n\t\t\t\t\tthis._valuesBase = valuesBase;\n\n\t\t\t\t\tfor (let i = 0, imax = values.length; i < imax; i += 2) {\n\t\t\t\t\t\tconst x = values[i];\n\t\t\t\t\t\tconst y = values[i + 1];\n\t\t\t\t\t\tvalues[i] = x * scaleX;\n\t\t\t\t\t\tvalues[i + 1] = y * scaleY;\n\t\t\t\t\t\tvaluesBase.push(x, y);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (let i = 0, imax = values.length; i < imax; i += 2) {\n\t\t\t\t\t\tvalues[i] = valuesBase[i] * scaleX;\n\t\t\t\t\t\tvalues[i + 1] = valuesBase[i + 1] * scaleY;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Formatted ID, values and boundary\n\t\t\t\tif (this._id === this._formattedId) {\n\t\t\t\t\tconst formatted = this._formatted;\n\t\t\t\t\tif (formatted != null) {\n\t\t\t\t\t\t// Formatted values\n\t\t\t\t\t\tconst formattedValues = formatted.values;\n\t\t\t\t\t\tlet formattedValuesBase = this._formattedValuesBase;\n\t\t\t\t\t\tif (formattedValuesBase == null) {\n\t\t\t\t\t\t\tformattedValuesBase = [];\n\t\t\t\t\t\t\tthis._formattedValuesBase = formattedValuesBase;\n\n\t\t\t\t\t\t\tfor (let i = 0, imax = formattedValues.length; i < imax; i += 2) {\n\t\t\t\t\t\t\t\tconst x = formattedValues[i];\n\t\t\t\t\t\t\t\tconst y = formattedValues[i + 1];\n\t\t\t\t\t\t\t\tformattedValues[i] = x * scaleX;\n\t\t\t\t\t\t\t\tformattedValues[i + 1] = y * scaleY;\n\t\t\t\t\t\t\t\tformattedValuesBase.push(x, y);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tfor (let i = 0, imax = formattedValues.length; i < imax; i += 2) {\n\t\t\t\t\t\t\t\tformattedValues[i] = formattedValuesBase[i] * scaleX;\n\t\t\t\t\t\t\t\tformattedValues[i + 1] = formattedValuesBase[i + 1] * scaleY;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Formatted boundary\n\t\t\t\t\t\tconst formattedBoundary = formatted.boundary;\n\t\t\t\t\t\tlet formattedBoundaryBase = this._formattedBoundaryBase;\n\t\t\t\t\t\tif (formattedBoundaryBase == null) {\n\t\t\t\t\t\t\tformattedBoundaryBase = [0, 0, 0, 0];\n\t\t\t\t\t\t\tthis._formattedBoundaryBase = formattedBoundaryBase;\n\n\t\t\t\t\t\t\tfor (let i = 0, imax = formattedBoundary.length; i < imax; i += 2) {\n\t\t\t\t\t\t\t\tconst x = formattedBoundary[i];\n\t\t\t\t\t\t\t\tconst y = formattedBoundary[i + 1];\n\t\t\t\t\t\t\t\tformattedBoundary[i] = x * scaleX;\n\t\t\t\t\t\t\t\tformattedBoundary[i + 1] = y * scaleY;\n\t\t\t\t\t\t\t\tformattedBoundaryBase[i] = x;\n\t\t\t\t\t\t\t\tformattedBoundaryBase[i + 1] = y;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tfor (let i = 0, imax = formattedBoundary.length; i < imax; i += 2) {\n\t\t\t\t\t\t\t\tformattedBoundary[i] = formattedBoundaryBase[i] * scaleX;\n\t\t\t\t\t\t\t\tformattedBoundary[i + 1] = formattedBoundaryBase[i + 1] * scaleY;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Formatted ID\n\t\t\t\t\t\tthis._formattedId += 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tthis._id += 1;\n\t\t\t}\n\t\t}\n\t}\n\n\tget id(): number {\n\t\tthis.fit();\n\t\treturn this._id;\n\t}\n\n\tget values(): number[] {\n\t\tthis.fit();\n\t\treturn this._values;\n\t}\n\n\tset values(values: number[]) {\n\t\tthis.set(values, undefined, undefined);\n\t}\n\n\tget segments(): number[] {\n\t\treturn this._segments;\n\t}\n\n\t/**\n\t * Must be sorted in ascending order.\n\t */\n\tset segments(segments: number[]) {\n\t\tthis.set(undefined, segments, undefined);\n\t}\n\n\tget style(): EShapePointsStyle {\n\t\treturn this._style;\n\t}\n\n\tset style(style: EShapePointsStyle) {\n\t\tthis.set(undefined, undefined, style);\n\t}\n\n\tget marker(): EShapePointsMarkerContainer {\n\t\tlet result = this._marker;\n\t\tif (result == null) {\n\t\t\tresult = this.newMarker();\n\t\t\tthis._marker = result;\n\t\t}\n\t\treturn result;\n\t}\n\n\tgetMarker(): EShapePointsMarkerContainer | undefined {\n\t\treturn this._marker;\n\t}\n\n\tprotected newMarker(): EShapePointsMarkerContainer {\n\t\treturn new EShapePointsMarkerContainerImpl(this);\n\t}\n\n\tonMarkerTypeChange(): void {\n\t\tconst parent = this._parent;\n\t\tparent.uploaded = undefined;\n\t\tparent.toDirty();\n\t}\n\n\tonMarkerSizeChange(): void {\n\t\tthis._parent.updateUploaded();\n\t}\n\n\tonMarkerFillChange(): void {\n\t\tthis._parent.updateUploaded();\n\t}\n\n\tget formatter(): EShapePointsFormatter | null {\n\t\treturn this._formatter || null;\n\t}\n\n\tset formatter(formatter: EShapePointsFormatter | null) {\n\t\tif (this._formatter !== formatter) {\n\t\t\tthis._formattedId = -1;\n\t\t\tthis._formatter = formatter;\n\t\t\tthis.toDirty(true);\n\t\t}\n\t}\n\n\tget formatted(): EShapePointsFormatted {\n\t\tthis.fit();\n\t\tconst id = this._id;\n\t\tlet result = this._formatted;\n\t\tif (this._formattedId !== id) {\n\t\t\tthis._formattedId = id;\n\n\t\t\tconst style = this._style;\n\t\t\tconst formatter = this._formatter ?? EShapePointsFormatters.find(style)?.formatter;\n\t\t\tif (formatter != null) {\n\t\t\t\tif (result == null) {\n\t\t\t\t\tresult = {\n\t\t\t\t\t\tlength: 0,\n\t\t\t\t\t\tvalues: [],\n\t\t\t\t\t\tsegments: [],\n\t\t\t\t\t\tboundary: [0, 0, 0, 0],\n\t\t\t\t\t\tstyle: EShapePointsStyle.NONE\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tconst valuesBase = this._valuesBase;\n\t\t\t\tconst segments = this._segments;\n\t\t\t\tif (valuesBase != null) {\n\t\t\t\t\tconst length = valuesBase.length >> 1;\n\t\t\t\t\tformatter(length, valuesBase, segments, style, result);\n\t\t\t\t\ttoPointsBoundary(result.values, result.boundary);\n\n\t\t\t\t\tconst formattedValues = result.values;\n\t\t\t\t\tconst formattedValuesBase = formattedValues.splice(0);\n\t\t\t\t\tthis._formattedValuesBase = formattedValuesBase;\n\n\t\t\t\t\tconst formattedBoundary = result.boundary;\n\t\t\t\t\tconst formattedBoundaryBase: EShapePointsFormattedBoundary = [\n\t\t\t\t\t\tformattedBoundary[0],\n\t\t\t\t\t\tformattedBoundary[1],\n\t\t\t\t\t\tformattedBoundary[2],\n\t\t\t\t\t\tformattedBoundary[3]\n\t\t\t\t\t];\n\t\t\t\t\tthis._formattedBoundaryBase = formattedBoundaryBase;\n\n\t\t\t\t\tthis.toScaled(\n\t\t\t\t\t\tformattedValues,\n\t\t\t\t\t\tformattedValuesBase,\n\t\t\t\t\t\tformattedBoundary,\n\t\t\t\t\t\tformattedBoundaryBase\n\t\t\t\t\t);\n\t\t\t\t} else {\n\t\t\t\t\tconst values = this._values;\n\t\t\t\t\tconst length = values.length >> 1;\n\t\t\t\t\tformatter(length, values, segments, style, result);\n\t\t\t\t\ttoPointsBoundary(result.values, result.boundary);\n\t\t\t\t\tthis._formattedValuesBase = undefined;\n\t\t\t\t\tthis._formattedBoundaryBase = undefined;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tresult = undefined;\n\t\t\t\tthis._formattedValuesBase = undefined;\n\t\t\t\tthis._formattedBoundaryBase = undefined;\n\t\t\t}\n\t\t\tthis._formatted = result;\n\t\t}\n\t\treturn result || this;\n\t}\n\n\tprotected toScaled(\n\t\tvalues: number[],\n\t\tvaluesBase: number[],\n\t\tboundary: EShapePointsFormattedBoundary,\n\t\tboundaryBase: EShapePointsFormattedBoundary\n\t): void {\n\t\tconst size = this._parentSizeFitted;\n\t\tconst sizeBase = this._parentSizeBase;\n\t\tconst threshold = 0.00001;\n\t\tconst hasSizeBaseX = threshold < Math.abs(sizeBase.x);\n\t\tconst hasSizeBaseY = threshold < Math.abs(sizeBase.y);\n\t\tif (hasSizeBaseX || hasSizeBaseY) {\n\t\t\tconst scaleX = hasSizeBaseX ? size.x / sizeBase.x : 1;\n\t\t\tconst scaleY = hasSizeBaseY ? size.y / sizeBase.y : 1;\n\n\t\t\tfor (let i = 0, imax = valuesBase.length; i < imax; i += 2) {\n\t\t\t\tvalues[i] = valuesBase[i] * scaleX;\n\t\t\t\tvalues[i + 1] = valuesBase[i + 1] * scaleY;\n\t\t\t}\n\n\t\t\tfor (let i = 0, imax = boundaryBase.length; i < imax; i += 2) {\n\t\t\t\tboundary[i] = boundaryBase[i] * scaleX;\n\t\t\t\tboundary[i + 1] = boundaryBase[i + 1] * scaleY;\n\t\t\t}\n\t\t}\n\t}\n\n\tcopy(source: EShapePoints): this {\n\t\tthis.set(source.values, source.segments, source.style);\n\t\tconst marker = source.getMarker();\n\t\tif (marker) {\n\t\t\tthis.marker.copy(marker);\n\t\t}\n\t\treturn this;\n\t}\n\n\tset(newValues?: number[], newSegments?: number[], newStyle?: EShapePointsStyle): this {\n\t\tlet isDirty = false;\n\t\tlet isUpdated = false;\n\n\t\t// Formatter\n\t\tconst style = this._style;\n\t\tconst styleFormatter = style & EShapePointsStyle.FORMATTER_MASK;\n\t\tconst formatter = this._formatter;\n\n\t\t// Values\n\t\tif (newValues != null) {\n\t\t\tconst values = this._values;\n\t\t\tconst valuesBaseLength = this._valuesBaseLength;\n\t\t\tconst newValuesLength = newValues.length;\n\t\t\tconst iupdate = Math.min(newValuesLength, valuesBaseLength);\n\t\t\tthis.toFitted();\n\t\t\tif (values !== newValues) {\n\t\t\t\tfor (let i = 0; i < iupdate; ++i) {\n\t\t\t\t\tvalues[i] = newValues[i];\n\t\t\t\t}\n\n\t\t\t\tfor (let i = iupdate; i < newValuesLength; ++i) {\n\t\t\t\t\tvalues.push(newValues[i]);\n\t\t\t\t}\n\n\t\t\t\tif (valuesBaseLength !== newValuesLength) {\n\t\t\t\t\tvalues.length = newValuesLength;\n\t\t\t\t\tthis._valuesBaseLength = newValuesLength;\n\t\t\t\t\tisDirty = true;\n\t\t\t\t} else {\n\t\t\t\t\tif (formatter != null || styleFormatter) {\n\t\t\t\t\t\tisDirty = true;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tisUpdated = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (valuesBaseLength !== newValuesLength) {\n\t\t\t\t\tthis._valuesBaseLength = newValuesLength;\n\t\t\t\t\tisDirty = true;\n\t\t\t\t} else {\n\t\t\t\t\tif (formatter != null || styleFormatter) {\n\t\t\t\t\t\tisDirty = true;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tisUpdated = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Segments\n\t\tif (newSegments != null) {\n\t\t\tconst segments = this._segments;\n\t\t\tif (segments !== newSegments) {\n\t\t\t\tconst newSegmentsLength = newSegments.length;\n\t\t\t\tconst iupdate = Math.min(segments.length, newSegmentsLength);\n\t\t\t\tfor (let i = 0; i < iupdate; ++i) {\n\t\t\t\t\tsegments[i] = newSegments[i];\n\t\t\t\t}\n\n\t\t\t\tfor (let i = iupdate; i < newSegmentsLength; ++i) {\n\t\t\t\t\tsegments.push(newSegments[i]);\n\t\t\t\t}\n\n\t\t\t\tif (segments.length !== newSegmentsLength) {\n\t\t\t\t\tsegments.length = newSegmentsLength;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (formatter != null || styleFormatter) {\n\t\t\t\tisDirty = true;\n\t\t\t} else {\n\t\t\t\tisUpdated = true;\n\t\t\t}\n\t\t}\n\n\t\t// Style\n\t\tif (newStyle != null) {\n\t\t\tif (style !== newStyle) {\n\t\t\t\tconst newStyleFormatter = newStyle & EShapePointsStyle.FORMATTER_MASK;\n\t\t\t\tif (styleFormatter !== newStyleFormatter) {\n\t\t\t\t\tisDirty = true;\n\t\t\t\t} else {\n\t\t\t\t\tif (formatter != null || styleFormatter) {\n\t\t\t\t\t\tconst styleClosed = style & EShapePointsStyle.CLOSED;\n\t\t\t\t\t\tconst newStyleClosed = newStyle & EShapePointsStyle.CLOSED;\n\t\t\t\t\t\tif (styleClosed !== newStyleClosed) {\n\t\t\t\t\t\t\tisDirty = true;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tisUpdated = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tisUpdated = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tthis._style = newStyle;\n\t\t\t}\n\t\t}\n\n\t\t//\n\t\tif (isUpdated || isDirty) {\n\t\t\tthis.toDirty(isDirty);\n\t\t}\n\t\treturn this;\n\t}\n\n\tprotected toDirty(revalidate: boolean): void {\n\t\tif (revalidate) {\n\t\t\tthis._id += 1;\n\t\t\tconst parent = this._parent;\n\t\t\tconst uploaded = parent.uploaded;\n\t\t\tif (uploaded) {\n\t\t\t\tif (uploaded.isCompatible(parent)) {\n\t\t\t\t\tparent.updateUploaded();\n\t\t\t\t} else {\n\t\t\t\t\tparent.uploaded = undefined;\n\t\t\t\t\tparent.toDirty();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tparent.updateUploaded();\n\t\t\t}\n\t\t} else {\n\t\t\tthis._id += 1;\n\t\t\tthis._parent.updateUploaded();\n\t\t}\n\t}\n\n\tclone(parent: EShape): EShapeLinePoints {\n\t\treturn new EShapeLinePoints(parent).copy(this);\n\t}\n\n\ttoPoints(transform: Matrix): Point[] {\n\t\tconst result: Point[] = [];\n\t\tconst values = this.values;\n\t\tfor (let i = 0, imax = values.length; i < imax; i += 2) {\n\t\t\tconst point = new Point(values[i + 0], values[i + 1]);\n\t\t\tresult.push(transform.apply(point, point));\n\t\t}\n\t\treturn result;\n\t}\n\n\tserialize(manager: EShapeResourceManagerSerialization): number {\n\t\tconst values = JSON.stringify(this._values);\n\t\tconst segments = JSON.stringify(this._segments);\n\t\tconst style = this._style;\n\t\tlet markerId = -1;\n\t\tconst marker = this._marker;\n\t\tif (marker) {\n\t\t\tmarkerId = marker.serialize(manager);\n\t\t}\n\t\treturn manager.addResource(`[${values},${segments},${style},${markerId}]`);\n\t}\n\n\tdeserialize(resourceId: number, manager: EShapeResourceManagerDeserialization): void {\n\t\tconst resources = manager.resources;\n\t\tif (0 <= resourceId && resourceId < resources.length) {\n\t\t\tlet parsed = manager.getExtension<EShapeLinePointsSerialized>(resourceId);\n\t\t\tif (parsed == null) {\n\t\t\t\tparsed = JSON.parse(resources[resourceId]) as EShapeLinePointsSerialized;\n\t\t\t\tmanager.setExtension(resourceId, parsed);\n\t\t\t}\n\t\t\tthis.set(parsed[0], parsed[1], parsed[2]);\n\t\t\tconst markerId = parsed[3];\n\t\t\tif (markerId != null && 0 <= markerId) {\n\t\t\t\tthis.marker.deserialize(markerId, manager);\n\t\t\t}\n\t\t}\n\t}\n\n\tcalcHitPointAbs<RESULT>(\n\t\tx: number,\n\t\ty: number,\n\t\tax: number,\n\t\tay: number,\n\t\tthreshold: number,\n\t\ttoRange: EShapeLineBasePointsHitTesterToRange | null,\n\t\ttester: EShapeLineBasePointsHitTester<RESULT>,\n\t\tresult: RESULT\n\t): boolean {\n\t\tconst formatted = this.formatted;\n\t\tconst length = formatted.length;\n\t\tif (2 <= length) {\n\t\t\tconst values = formatted.values;\n\t\t\tconst segments = formatted.segments;\n\t\t\tconst style = formatted.style;\n\t\t\tlet istart = 0;\n\t\t\tlet iend = length;\n\t\t\tif (toRange) {\n\t\t\t\tconst work = EShapeLinePoints.WORK_RANGE;\n\t\t\t\ttoRange(x, y, threshold, values, work);\n\t\t\t\tistart = work[0];\n\t\t\t\tiend = work[1];\n\t\t\t}\n\t\t\tfor (let i = istart, imax = Math.min(iend, length - 1); i < imax; ++i) {\n\t\t\t\tif (toIndexOf(segments, i + 1) < 0) {\n\t\t\t\t\tconst iv = i << 1;\n\t\t\t\t\tconst p0x = values[iv + 0];\n\t\t\t\t\tconst p0y = values[iv + 1];\n\t\t\t\t\tconst p1x = values[iv + 2];\n\t\t\t\t\tconst p1y = values[iv + 3];\n\t\t\t\t\tif (tester(x, y, p0x, p0y, p1x, p1y, i, threshold, result)) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (2 < length && length <= iend && style & EShapePointsStyle.CLOSED) {\n\t\t\t\tif (toIndexOf(segments, 0) < 0) {\n\t\t\t\t\tconst i = length - 1;\n\t\t\t\t\tconst iv = i << 1;\n\t\t\t\t\tconst p0x = values[iv + 0];\n\t\t\t\t\tconst p0y = values[iv + 1];\n\t\t\t\t\tconst p1x = values[0];\n\t\t\t\t\tconst p1y = values[1];\n\t\t\t\t\tif (tester(x, y, p0x, p0y, p1x, p1y, i, threshold, result)) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}\n}\n"]}
|
package/dist/wcardinal-ui.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Winter Cardinal UI v0.
|
|
2
|
+
Winter Cardinal UI v0.313.0
|
|
3
3
|
Copyright (C) 2019 Toshiba Corporation
|
|
4
4
|
SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
|
|
@@ -19010,24 +19010,35 @@ var eShapePointsFormatterCurve = function (length, values, segments, style, resu
|
|
|
19010
19010
|
var EShapePointsFormatters = /** @class */ (function () {
|
|
19011
19011
|
function EShapePointsFormatters() {
|
|
19012
19012
|
}
|
|
19013
|
-
EShapePointsFormatters.set = function (id,
|
|
19014
|
-
if (this.
|
|
19015
|
-
this.
|
|
19013
|
+
EShapePointsFormatters.set = function (id, datum) {
|
|
19014
|
+
if (this.data == null) {
|
|
19015
|
+
this.data = this.newData();
|
|
19016
19016
|
}
|
|
19017
|
-
this.
|
|
19017
|
+
this.data.set(id, datum);
|
|
19018
19018
|
};
|
|
19019
19019
|
EShapePointsFormatters.get = function (index) {
|
|
19020
|
-
if (this.
|
|
19021
|
-
this.
|
|
19020
|
+
if (this.data == null) {
|
|
19021
|
+
this.data = this.newData();
|
|
19022
19022
|
}
|
|
19023
|
-
return this.
|
|
19023
|
+
return this.data.get(index);
|
|
19024
|
+
};
|
|
19025
|
+
EShapePointsFormatters.each = function (iteratee) {
|
|
19026
|
+
if (this.data == null) {
|
|
19027
|
+
this.data = this.newData();
|
|
19028
|
+
}
|
|
19029
|
+
this.data.forEach(function (datum, id) {
|
|
19030
|
+
iteratee(id, datum);
|
|
19031
|
+
});
|
|
19024
19032
|
};
|
|
19025
19033
|
EShapePointsFormatters.find = function (style) {
|
|
19026
19034
|
return this.get((style & EShapePointsStyle.FORMATTER_MASK) >> EShapePointsStyle.FORMATTER_SHIFT);
|
|
19027
19035
|
};
|
|
19028
|
-
EShapePointsFormatters.
|
|
19036
|
+
EShapePointsFormatters.newData = function () {
|
|
19029
19037
|
var result = new Map();
|
|
19030
|
-
result.set(EShapePointsStyle.FORMATTER_CURVE,
|
|
19038
|
+
result.set(EShapePointsStyle.FORMATTER_CURVE, {
|
|
19039
|
+
label: "Curve",
|
|
19040
|
+
formatter: eShapePointsFormatterCurve
|
|
19041
|
+
});
|
|
19031
19042
|
return result;
|
|
19032
19043
|
};
|
|
19033
19044
|
return EShapePointsFormatters;
|
|
@@ -19239,13 +19250,14 @@ var EShapeLinePoints = /** @class */ (function () {
|
|
|
19239
19250
|
});
|
|
19240
19251
|
Object.defineProperty(EShapeLinePoints.prototype, "formatted", {
|
|
19241
19252
|
get: function () {
|
|
19253
|
+
var _a, _b;
|
|
19242
19254
|
this.fit();
|
|
19243
19255
|
var id = this._id;
|
|
19244
19256
|
var result = this._formatted;
|
|
19245
19257
|
if (this._formattedId !== id) {
|
|
19246
19258
|
this._formattedId = id;
|
|
19247
19259
|
var style = this._style;
|
|
19248
|
-
var formatter = this._formatter
|
|
19260
|
+
var formatter = (_a = this._formatter) !== null && _a !== void 0 ? _a : (_b = EShapePointsFormatters.find(style)) === null || _b === void 0 ? void 0 : _b.formatter;
|
|
19249
19261
|
if (formatter != null) {
|
|
19250
19262
|
if (result == null) {
|
|
19251
19263
|
result = {
|
|
@@ -93937,6 +93949,7 @@ exports.EShapeLineOfTriangles = EShapeLineOfTriangles;
|
|
|
93937
93949
|
exports.EShapeLinePoints = EShapeLinePoints;
|
|
93938
93950
|
exports.EShapeNull = EShapeNull;
|
|
93939
93951
|
exports.EShapeOnDeserializeds = EShapeOnDeserializeds;
|
|
93952
|
+
exports.EShapePointsFormatters = EShapePointsFormatters;
|
|
93940
93953
|
exports.EShapePointsMarkerBase = EShapePointsMarkerBase;
|
|
93941
93954
|
exports.EShapePointsMarkerContainerImpl = EShapePointsMarkerContainerImpl;
|
|
93942
93955
|
exports.EShapePointsMarkerContainerImplNoop = EShapePointsMarkerContainerImplNoop;
|
package/dist/wcardinal-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Winter Cardinal UI v0.
|
|
2
|
+
Winter Cardinal UI v0.313.0
|
|
3
3
|
Copyright (C) 2019 Toshiba Corporation
|
|
4
4
|
SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
|
|
@@ -19007,24 +19007,35 @@
|
|
|
19007
19007
|
var EShapePointsFormatters = /** @class */ (function () {
|
|
19008
19008
|
function EShapePointsFormatters() {
|
|
19009
19009
|
}
|
|
19010
|
-
EShapePointsFormatters.set = function (id,
|
|
19011
|
-
if (this.
|
|
19012
|
-
this.
|
|
19010
|
+
EShapePointsFormatters.set = function (id, datum) {
|
|
19011
|
+
if (this.data == null) {
|
|
19012
|
+
this.data = this.newData();
|
|
19013
19013
|
}
|
|
19014
|
-
this.
|
|
19014
|
+
this.data.set(id, datum);
|
|
19015
19015
|
};
|
|
19016
19016
|
EShapePointsFormatters.get = function (index) {
|
|
19017
|
-
if (this.
|
|
19018
|
-
this.
|
|
19017
|
+
if (this.data == null) {
|
|
19018
|
+
this.data = this.newData();
|
|
19019
19019
|
}
|
|
19020
|
-
return this.
|
|
19020
|
+
return this.data.get(index);
|
|
19021
|
+
};
|
|
19022
|
+
EShapePointsFormatters.each = function (iteratee) {
|
|
19023
|
+
if (this.data == null) {
|
|
19024
|
+
this.data = this.newData();
|
|
19025
|
+
}
|
|
19026
|
+
this.data.forEach(function (datum, id) {
|
|
19027
|
+
iteratee(id, datum);
|
|
19028
|
+
});
|
|
19021
19029
|
};
|
|
19022
19030
|
EShapePointsFormatters.find = function (style) {
|
|
19023
19031
|
return this.get((style & EShapePointsStyle.FORMATTER_MASK) >> EShapePointsStyle.FORMATTER_SHIFT);
|
|
19024
19032
|
};
|
|
19025
|
-
EShapePointsFormatters.
|
|
19033
|
+
EShapePointsFormatters.newData = function () {
|
|
19026
19034
|
var result = new Map();
|
|
19027
|
-
result.set(EShapePointsStyle.FORMATTER_CURVE,
|
|
19035
|
+
result.set(EShapePointsStyle.FORMATTER_CURVE, {
|
|
19036
|
+
label: "Curve",
|
|
19037
|
+
formatter: eShapePointsFormatterCurve
|
|
19038
|
+
});
|
|
19028
19039
|
return result;
|
|
19029
19040
|
};
|
|
19030
19041
|
return EShapePointsFormatters;
|
|
@@ -19236,13 +19247,14 @@
|
|
|
19236
19247
|
});
|
|
19237
19248
|
Object.defineProperty(EShapeLinePoints.prototype, "formatted", {
|
|
19238
19249
|
get: function () {
|
|
19250
|
+
var _a, _b;
|
|
19239
19251
|
this.fit();
|
|
19240
19252
|
var id = this._id;
|
|
19241
19253
|
var result = this._formatted;
|
|
19242
19254
|
if (this._formattedId !== id) {
|
|
19243
19255
|
this._formattedId = id;
|
|
19244
19256
|
var style = this._style;
|
|
19245
|
-
var formatter = this._formatter
|
|
19257
|
+
var formatter = (_a = this._formatter) !== null && _a !== void 0 ? _a : (_b = EShapePointsFormatters.find(style)) === null || _b === void 0 ? void 0 : _b.formatter;
|
|
19246
19258
|
if (formatter != null) {
|
|
19247
19259
|
if (result == null) {
|
|
19248
19260
|
result = {
|
|
@@ -74996,6 +75008,7 @@
|
|
|
74996
75008
|
EShapeLayerState: EShapeLayerState,
|
|
74997
75009
|
toPointsBoundary: toPointsBoundary,
|
|
74998
75010
|
eShapePointsFormatterCurve: eShapePointsFormatterCurve,
|
|
75011
|
+
EShapePointsFormatters: EShapePointsFormatters,
|
|
74999
75012
|
EShapePointsMarkerBase: EShapePointsMarkerBase,
|
|
75000
75013
|
EShapePointsMarkerContainerImplNoop: EShapePointsMarkerContainerImplNoop,
|
|
75001
75014
|
EShapePointsMarkerContainerImpl: EShapePointsMarkerContainerImpl,
|