@wcardinal/wcardinal-ui 0.466.2 → 0.467.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-defaults.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/e-shape-type.d.ts +1 -0
- package/dist/types/wcardinal/ui/shape/load/index.d.ts +1 -0
- package/dist/types/wcardinal/ui/shape/load/load-shape-rectangle-rounded-legacy.d.ts +1 -0
- package/dist/types/wcardinal/ui/shape/variant/build-rectangle-rounded-legacy.d.ts +11 -0
- package/dist/types/wcardinal/ui/shape/variant/build-rectangle-rounded.d.ts +1 -11
- package/dist/types/wcardinal/ui/shape/variant/builder-rectangle-rounded-legacy.d.ts +12 -0
- package/dist/types/wcardinal/ui/shape/variant/builder-rectangle-rounded.d.ts +1 -12
- package/dist/types/wcardinal/ui/shape/variant/create-rectangle-rounded-legacy-uploaded.d.ts +4 -0
- package/dist/types/wcardinal/ui/shape/variant/create-rectangle-rounded-uploaded.d.ts +1 -4
- package/dist/types/wcardinal/ui/shape/variant/deserialize-rectangle-rounded-legacy.d.ts +4 -0
- package/dist/types/wcardinal/ui/shape/variant/e-shape-line-of-rectangle-roundeds.d.ts +2 -2
- package/dist/types/wcardinal/ui/shape/variant/e-shape-rectangle-rounded-legacy.d.ts +7 -0
- package/dist/types/wcardinal/ui/shape/variant/e-shape-rectangle-rounded-triangulated-impl.d.ts +306 -0
- package/dist/types/wcardinal/ui/shape/variant/e-shape-rectangle-rounded-triangulated.d.ts +3 -0
- package/dist/types/wcardinal/ui/shape/variant/e-shape-rectangle-rounded.d.ts +4 -0
- package/dist/types/wcardinal/ui/shape/variant/index.d.ts +7 -0
- package/dist/wcardinal/ui/shape/e-shape-defaults.js +1 -1
- package/dist/wcardinal/ui/shape/e-shape-defaults.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-renderer.js +2 -2
- package/dist/wcardinal/ui/shape/e-shape-renderer.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-type.js +1 -0
- package/dist/wcardinal/ui/shape/e-shape-type.js.map +1 -1
- package/dist/wcardinal/ui/shape/load/index.js +1 -0
- package/dist/wcardinal/ui/shape/load/index.js.map +1 -1
- package/dist/wcardinal/ui/shape/load/load-shape-all.js +2 -0
- package/dist/wcardinal/ui/shape/load/load-shape-all.js.map +1 -1
- package/dist/wcardinal/ui/shape/load/load-shape-circle-legacy.js +1 -1
- package/dist/wcardinal/ui/shape/load/load-shape-circle-legacy.js.map +1 -1
- package/dist/wcardinal/ui/shape/load/load-shape-image.js +1 -1
- package/dist/wcardinal/ui/shape/load/load-shape-image.js.map +1 -1
- package/dist/wcardinal/ui/shape/load/load-shape-rectangle-rounded-legacy.js +17 -0
- package/dist/wcardinal/ui/shape/load/load-shape-rectangle-rounded-legacy.js.map +1 -0
- package/dist/wcardinal/ui/shape/load/load-shape-rectangle-rounded.js +2 -2
- package/dist/wcardinal/ui/shape/load/load-shape-rectangle-rounded.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/build-rectangle-rounded-legacy.js +1039 -0
- package/dist/wcardinal/ui/shape/variant/build-rectangle-rounded-legacy.js.map +1 -0
- package/dist/wcardinal/ui/shape/variant/build-rectangle-rounded.js +5 -1038
- package/dist/wcardinal/ui/shape/variant/build-rectangle-rounded.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-line-of-rectangle-roundeds.js +16 -16
- package/dist/wcardinal/ui/shape/variant/builder-line-of-rectangle-roundeds.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-rectangle-rounded-legacy.js +89 -0
- package/dist/wcardinal/ui/shape/variant/builder-rectangle-rounded-legacy.js.map +1 -0
- package/dist/wcardinal/ui/shape/variant/builder-rectangle-rounded.js +1 -84
- package/dist/wcardinal/ui/shape/variant/builder-rectangle-rounded.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/create-button-uploaded.js +2 -2
- package/dist/wcardinal/ui/shape/variant/create-button-uploaded.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/create-line-of-rectangle-roundeds-uploaded.js +2 -2
- package/dist/wcardinal/ui/shape/variant/create-line-of-rectangle-roundeds-uploaded.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/create-rectangle-rounded-legacy-uploaded.js +24 -0
- package/dist/wcardinal/ui/shape/variant/create-rectangle-rounded-legacy-uploaded.js.map +1 -0
- package/dist/wcardinal/ui/shape/variant/create-rectangle-rounded-uploaded.js +1 -19
- package/dist/wcardinal/ui/shape/variant/create-rectangle-rounded-uploaded.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/deserialize-rectangle-rounded-legacy.js +10 -0
- package/dist/wcardinal/ui/shape/variant/deserialize-rectangle-rounded-legacy.js.map +1 -0
- package/dist/wcardinal/ui/shape/variant/e-shape-line-of-rectangle-roundeds.js +2 -2
- package/dist/wcardinal/ui/shape/variant/e-shape-line-of-rectangle-roundeds.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-rectangle-rounded-legacy.js +27 -0
- package/dist/wcardinal/ui/shape/variant/e-shape-rectangle-rounded-legacy.js.map +1 -0
- package/dist/wcardinal/ui/shape/variant/e-shape-rectangle-rounded-triangulated-impl.js +2663 -0
- package/dist/wcardinal/ui/shape/variant/e-shape-rectangle-rounded-triangulated-impl.js.map +1 -0
- package/dist/wcardinal/ui/shape/variant/e-shape-rectangle-rounded-triangulated.js +6 -0
- package/dist/wcardinal/ui/shape/variant/e-shape-rectangle-rounded-triangulated.js.map +1 -0
- package/dist/wcardinal/ui/shape/variant/e-shape-rectangle-rounded.js +14 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-rectangle-rounded.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-rectangle-triangulated-impl.js +31 -29
- package/dist/wcardinal/ui/shape/variant/e-shape-rectangle-triangulated-impl.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/index.js +7 -0
- package/dist/wcardinal/ui/shape/variant/index.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/to-packed.js +3 -3
- package/dist/wcardinal/ui/shape/variant/to-packed.js.map +1 -1
- 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 +13532 -10804
- package/dist/wcardinal-ui.js +14009 -11281
- package/dist/wcardinal-ui.min.js +2 -2
- package/dist/wcardinal-ui.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
import { EShapeUploadedImpl } from "../e-shape-uploaded";
|
|
6
|
+
import { RECTANGLE_ROUNDED_LEGACY_INDEX_COUNT, RECTANGLE_ROUNDED_LEGACY_VERTEX_COUNT } from "./build-rectangle-rounded-legacy";
|
|
7
|
+
import { TEXT_INDEX_COUNT_SHIFT, TEXT_VERTEX_COUNT_SHIFT, toTextBufferCount } from "./build-text";
|
|
8
|
+
import { BuilderRectangleRoundedLegacy } from "./builder-rectangle-rounded-legacy";
|
|
9
|
+
import { BuilderText } from "./builder-text";
|
|
10
|
+
export var createRectangleRoundedLegacyUploaded = function (buffer, shape, voffset, ioffset, antialiasWeight) {
|
|
11
|
+
var tcount = toTextBufferCount(shape);
|
|
12
|
+
var tvcount = tcount << TEXT_VERTEX_COUNT_SHIFT;
|
|
13
|
+
var ticount = tcount << TEXT_INDEX_COUNT_SHIFT;
|
|
14
|
+
var vcount = RECTANGLE_ROUNDED_LEGACY_VERTEX_COUNT + tvcount;
|
|
15
|
+
var icount = RECTANGLE_ROUNDED_LEGACY_INDEX_COUNT + ticount;
|
|
16
|
+
if (buffer.check(voffset, ioffset, vcount, icount)) {
|
|
17
|
+
return new EShapeUploadedImpl(buffer, voffset, ioffset, vcount, icount, [
|
|
18
|
+
new BuilderRectangleRoundedLegacy(buffer, voffset, ioffset),
|
|
19
|
+
new BuilderText(buffer, voffset + RECTANGLE_ROUNDED_LEGACY_VERTEX_COUNT, ioffset + RECTANGLE_ROUNDED_LEGACY_INDEX_COUNT, tvcount, ticount)
|
|
20
|
+
]).init(shape);
|
|
21
|
+
}
|
|
22
|
+
return null;
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=create-rectangle-rounded-legacy-uploaded.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-rectangle-rounded-legacy-uploaded.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/create-rectangle-rounded-legacy-uploaded.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAkB,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,EACN,oCAAoC,EACpC,qCAAqC,EACrC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAClG,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,CAAC,IAAM,oCAAoC,GAAG,UACnD,MAAoB,EACpB,KAAa,EACb,OAAe,EACf,OAAe,EACf,eAAuB;IAEvB,IAAM,MAAM,GAAG,iBAAiB,CAAC,KAAK,CAAC,CAAC;IACxC,IAAM,OAAO,GAAG,MAAM,IAAI,uBAAuB,CAAC;IAClD,IAAM,OAAO,GAAG,MAAM,IAAI,sBAAsB,CAAC;IACjD,IAAM,MAAM,GAAG,qCAAqC,GAAG,OAAO,CAAC;IAC/D,IAAM,MAAM,GAAG,oCAAoC,GAAG,OAAO,CAAC;IAC9D,IAAI,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;QACpD,OAAO,IAAI,kBAAkB,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE;YACvE,IAAI,6BAA6B,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC;YAC3D,IAAI,WAAW,CACd,MAAM,EACN,OAAO,GAAG,qCAAqC,EAC/C,OAAO,GAAG,oCAAoC,EAC9C,OAAO,EACP,OAAO,CACP;SACD,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAChB,CAAC;IACD,OAAO,IAAI,CAAC;AACb,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShape } from \"../e-shape\";\nimport { EShapeBuffer } from \"../e-shape-buffer\";\nimport { EShapeUploaded, EShapeUploadedImpl } from \"../e-shape-uploaded\";\nimport {\n\tRECTANGLE_ROUNDED_LEGACY_INDEX_COUNT,\n\tRECTANGLE_ROUNDED_LEGACY_VERTEX_COUNT\n} from \"./build-rectangle-rounded-legacy\";\nimport { TEXT_INDEX_COUNT_SHIFT, TEXT_VERTEX_COUNT_SHIFT, toTextBufferCount } from \"./build-text\";\nimport { BuilderRectangleRoundedLegacy } from \"./builder-rectangle-rounded-legacy\";\nimport { BuilderText } from \"./builder-text\";\n\nexport const createRectangleRoundedLegacyUploaded = (\n\tbuffer: EShapeBuffer,\n\tshape: EShape,\n\tvoffset: number,\n\tioffset: number,\n\tantialiasWeight: number\n): EShapeUploaded | null => {\n\tconst tcount = toTextBufferCount(shape);\n\tconst tvcount = tcount << TEXT_VERTEX_COUNT_SHIFT;\n\tconst ticount = tcount << TEXT_INDEX_COUNT_SHIFT;\n\tconst vcount = RECTANGLE_ROUNDED_LEGACY_VERTEX_COUNT + tvcount;\n\tconst icount = RECTANGLE_ROUNDED_LEGACY_INDEX_COUNT + ticount;\n\tif (buffer.check(voffset, ioffset, vcount, icount)) {\n\t\treturn new EShapeUploadedImpl(buffer, voffset, ioffset, vcount, icount, [\n\t\t\tnew BuilderRectangleRoundedLegacy(buffer, voffset, ioffset),\n\t\t\tnew BuilderText(\n\t\t\t\tbuffer,\n\t\t\t\tvoffset + RECTANGLE_ROUNDED_LEGACY_VERTEX_COUNT,\n\t\t\t\tioffset + RECTANGLE_ROUNDED_LEGACY_INDEX_COUNT,\n\t\t\t\ttvcount,\n\t\t\t\tticount\n\t\t\t)\n\t\t]).init(shape);\n\t}\n\treturn null;\n};\n"]}
|
|
@@ -2,23 +2,5 @@
|
|
|
2
2
|
* Copyright (C) 2019 Toshiba Corporation
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
|
-
|
|
6
|
-
import { RECTANGLE_ROUNDED_INDEX_COUNT, RECTANGLE_ROUNDED_VERTEX_COUNT } from "./build-rectangle-rounded";
|
|
7
|
-
import { TEXT_INDEX_COUNT_SHIFT, TEXT_VERTEX_COUNT_SHIFT, toTextBufferCount } from "./build-text";
|
|
8
|
-
import { BuilderRectangleRounded } from "./builder-rectangle-rounded";
|
|
9
|
-
import { BuilderText } from "./builder-text";
|
|
10
|
-
export var createRectangleRoundedUploaded = function (buffer, shape, voffset, ioffset, antialiasWeight) {
|
|
11
|
-
var tcount = toTextBufferCount(shape);
|
|
12
|
-
var tvcount = tcount << TEXT_VERTEX_COUNT_SHIFT;
|
|
13
|
-
var ticount = tcount << TEXT_INDEX_COUNT_SHIFT;
|
|
14
|
-
var vcount = RECTANGLE_ROUNDED_VERTEX_COUNT + tvcount;
|
|
15
|
-
var icount = RECTANGLE_ROUNDED_INDEX_COUNT + ticount;
|
|
16
|
-
if (buffer.check(voffset, ioffset, vcount, icount)) {
|
|
17
|
-
return new EShapeUploadedImpl(buffer, voffset, ioffset, vcount, icount, [
|
|
18
|
-
new BuilderRectangleRounded(buffer, voffset, ioffset),
|
|
19
|
-
new BuilderText(buffer, voffset + RECTANGLE_ROUNDED_VERTEX_COUNT, ioffset + RECTANGLE_ROUNDED_INDEX_COUNT, tvcount, ticount)
|
|
20
|
-
]).init(shape);
|
|
21
|
-
}
|
|
22
|
-
return null;
|
|
23
|
-
};
|
|
5
|
+
export { createRectangleRoundedLegacyUploaded as createRectangleRoundedUploaded } from "./create-rectangle-rounded-legacy-uploaded";
|
|
24
6
|
//# sourceMappingURL=create-rectangle-rounded-uploaded.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-rectangle-rounded-uploaded.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/create-rectangle-rounded-uploaded.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"create-rectangle-rounded-uploaded.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/create-rectangle-rounded-uploaded.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,oCAAoC,IAAI,8BAA8B,EAAE,MAAM,4CAA4C,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport { createRectangleRoundedLegacyUploaded as createRectangleRoundedUploaded } from \"./create-rectangle-rounded-legacy-uploaded\";\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
import { deserializeBase } from "./deserialize-base";
|
|
6
|
+
import { EShapeRectangleRoundedLegacy } from "./e-shape-rectangle-rounded-legacy";
|
|
7
|
+
export var deserializeRectangleRoundedLegacy = function (item, manager, shape) {
|
|
8
|
+
return deserializeBase(item, manager, shape || new EShapeRectangleRoundedLegacy());
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=deserialize-rectangle-rounded-legacy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deserialize-rectangle-rounded-legacy.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/deserialize-rectangle-rounded-legacy.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAElF,MAAM,CAAC,IAAM,iCAAiC,GAAG,UAChD,IAA4B,EAC5B,OAA6C,EAC7C,KAAoC;IAEpC,OAAO,eAAe,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,IAAI,4BAA4B,EAAE,CAAC,CAAC;AACpF,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 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 { EShapeRectangleRoundedLegacy } from \"./e-shape-rectangle-rounded-legacy\";\n\nexport const deserializeRectangleRoundedLegacy = (\n\titem: DDiagramSerializedItem,\n\tmanager: EShapeResourceManagerDeserialization,\n\tshape?: EShapeRectangleRoundedLegacy\n): Promise<EShapeRectangleRoundedLegacy> | EShapeRectangleRoundedLegacy => {\n\treturn deserializeBase(item, manager, shape || new EShapeRectangleRoundedLegacy());\n};\n"]}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { __extends } from "tslib";
|
|
6
6
|
import { EShapeType } from "../e-shape-type";
|
|
7
7
|
import { EShapeLineOfAnyPointsImpl } from "./e-shape-line-of-any-points-impl";
|
|
8
|
-
import {
|
|
8
|
+
import { EShapeRectangleRoundedLegacy } from "./e-shape-rectangle-rounded-legacy";
|
|
9
9
|
import { toThresholdDefault } from "./to-threshold-default";
|
|
10
10
|
var EShapeLineOfRectangleRoundeds = /** @class */ (function (_super) {
|
|
11
11
|
__extends(EShapeLineOfRectangleRoundeds, _super);
|
|
@@ -47,6 +47,6 @@ var EShapeLineOfRectangleRoundeds = /** @class */ (function (_super) {
|
|
|
47
47
|
return false;
|
|
48
48
|
};
|
|
49
49
|
return EShapeLineOfRectangleRoundeds;
|
|
50
|
-
}(
|
|
50
|
+
}(EShapeRectangleRoundedLegacy));
|
|
51
51
|
export { EShapeLineOfRectangleRoundeds };
|
|
52
52
|
//# sourceMappingURL=e-shape-line-of-rectangle-roundeds.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"e-shape-line-of-rectangle-roundeds.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-line-of-rectangle-roundeds.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAM7C,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"e-shape-line-of-rectangle-roundeds.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-line-of-rectangle-roundeds.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAM7C,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,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QACH,CAAC;QACD,OAAO,KAAK,CAAC;IACd,CAAC;IACF,oCAAC;AAAD,CAAC,AA/FD,CACS,4BAA4B,GA8FpC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShapeType } from \"../e-shape-type\";\nimport { EShapeLineOfAny } from \"./e-shape-line-of-any\";\nimport { EShapeLineOfAnyPoints } from \"./e-shape-line-of-any-points\";\nimport { EShapeLineOfAnyPointsHitTester } from \"./e-shape-line-of-any-points-hit-tester\";\nimport { EShapeLineOfAnyPointsHitTesterToRange } from \"./e-shape-line-of-any-points-hit-tester-to-range\";\nimport { EShapeLineOfAnyPointsHitTesterToThreshold } from \"./e-shape-line-of-any-points-hit-tester-to-threshold\";\nimport { EShapeLineOfAnyPointsImpl } from \"./e-shape-line-of-any-points-impl\";\nimport { EShapeRectangleRoundedLegacy } from \"./e-shape-rectangle-rounded-legacy\";\nimport { toThresholdDefault } from \"./to-threshold-default\";\n\nexport class EShapeLineOfRectangleRoundeds\n\textends EShapeRectangleRoundedLegacy\n\timplements EShapeLineOfAny\n{\n\tprotected declare _points: EShapeLineOfAnyPoints;\n\tprotected _tester: EShapeLineOfAnyPointsHitTester<unknown>;\n\n\tconstructor(type: EShapeType = EShapeType.LINE_OF_RECTANGLE_ROUNDEDS) {\n\t\tsuper(type);\n\t\tthis._points = new EShapeLineOfAnyPointsImpl(this);\n\n\t\tthis._tester = (x, y, ax, ay, ox, oy, px, py, sw, ss, sa): boolean => {\n\t\t\treturn this.containsPointAbs(x, y, ax, ay, ox, oy, px, py, sw, ss, sa);\n\t\t};\n\t}\n\n\tget points(): EShapeLineOfAnyPoints {\n\t\treturn this._points;\n\t}\n\n\tclone(): EShapeLineOfRectangleRoundeds {\n\t\treturn new EShapeLineOfRectangleRoundeds(this.type).copy(this);\n\t}\n\n\tcontainsAbs(\n\t\tx: number,\n\t\ty: number,\n\t\tax: number,\n\t\tay: number,\n\t\tsw: number,\n\t\tss: number,\n\t\tsa: number\n\t): boolean {\n\t\tconst threshold = toThresholdDefault(sw, ss, this._points.size.getLimit());\n\t\tif (this.containsAbsBBox(x, y, ax + threshold, ay + threshold)) {\n\t\t\treturn this._points.calcHitPointAbs(\n\t\t\t\tx,\n\t\t\t\ty,\n\t\t\t\tthreshold,\n\t\t\t\tsw,\n\t\t\t\tss,\n\t\t\t\tsa,\n\t\t\t\tnull,\n\t\t\t\tthis._tester,\n\t\t\t\tnull\n\t\t\t);\n\t\t}\n\t\treturn false;\n\t}\n\n\tcontainsPointAbs(\n\t\tx: number,\n\t\ty: number,\n\t\tax: number,\n\t\tay: number,\n\t\tox: number,\n\t\toy: number,\n\t\tpx: number,\n\t\tpy: number,\n\t\tsw: number,\n\t\tss: number,\n\t\tsa: number\n\t): boolean {\n\t\treturn super.containsAbs(x - px - ox, y - py - oy, ax, ay, sw, ss, sa);\n\t}\n\n\tcalcHitPoint<RESULT>(\n\t\tx: number,\n\t\ty: number,\n\t\ttoThreshold: EShapeLineOfAnyPointsHitTesterToThreshold | null,\n\t\ttoRange: EShapeLineOfAnyPointsHitTesterToRange | null,\n\t\ttester: EShapeLineOfAnyPointsHitTester<RESULT> | null,\n\t\tresult: RESULT\n\t): boolean {\n\t\tconst data = this.toHitTestData(x, y);\n\t\tconst threshold = (toThreshold || toThresholdDefault)(\n\t\t\tdata.strokeWidth,\n\t\t\tdata.strokeScale,\n\t\t\tthis._points.size.getLimit()\n\t\t);\n\t\tif (this.containsAbsBBox(data.x, data.y, data.width + threshold, data.height + threshold)) {\n\t\t\treturn this._points.calcHitPointAbs(\n\t\t\t\tdata.x,\n\t\t\t\tdata.y,\n\t\t\t\tdata.strokeWidth,\n\t\t\t\tdata.strokeScale,\n\t\t\t\tdata.strokeAlign,\n\t\t\t\tthreshold,\n\t\t\t\ttoRange,\n\t\t\t\ttester || this._tester,\n\t\t\t\tresult\n\t\t\t);\n\t\t}\n\t\treturn false;\n\t}\n}\n"]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (C) 2019-2026 Toshiba Corporation
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
import { __extends } from "tslib";
|
|
6
|
+
import { EShapeType } from "../e-shape-type";
|
|
7
|
+
import { EShapePrimitive } from "./e-shape-primitive";
|
|
8
|
+
import { hitTestRectangleRounded } from "./hit-test-rectangle-rounded";
|
|
9
|
+
var EShapeRectangleRoundedLegacy = /** @class */ (function (_super) {
|
|
10
|
+
__extends(EShapeRectangleRoundedLegacy, _super);
|
|
11
|
+
function EShapeRectangleRoundedLegacy(type) {
|
|
12
|
+
if (type === void 0) { type = EShapeType.RECTANGLE_ROUNDED_LEGACY; }
|
|
13
|
+
return _super.call(this, type) || this;
|
|
14
|
+
}
|
|
15
|
+
EShapeRectangleRoundedLegacy.prototype.clone = function () {
|
|
16
|
+
return new EShapeRectangleRoundedLegacy(this.type).copy(this);
|
|
17
|
+
};
|
|
18
|
+
EShapeRectangleRoundedLegacy.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
|
|
19
|
+
if (_super.prototype.containsAbsBBox.call(this, x, y, ax, ay)) {
|
|
20
|
+
return hitTestRectangleRounded(this, x, y, ax, ay, sw, ss);
|
|
21
|
+
}
|
|
22
|
+
return false;
|
|
23
|
+
};
|
|
24
|
+
return EShapeRectangleRoundedLegacy;
|
|
25
|
+
}(EShapePrimitive));
|
|
26
|
+
export { EShapeRectangleRoundedLegacy };
|
|
27
|
+
//# sourceMappingURL=e-shape-rectangle-rounded-legacy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"e-shape-rectangle-rounded-legacy.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-rectangle-rounded-legacy.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE;IAAkD,gDAAe;IAChE,sCAAY,IAAsD;QAAtD,qBAAA,EAAA,OAAmB,UAAU,CAAC,wBAAwB;QACjE,OAAA,MAAK,YAAC,IAAI,CAAC,SAAC;IACb,CAAC;IAED,4CAAK,GAAL;QACC,OAAO,IAAI,4BAA4B,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/D,CAAC;IAED,kDAAW,GAAX,UACC,CAAS,EACT,CAAS,EACT,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU;QAEV,IAAI,gBAAK,CAAC,eAAe,YAAC,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC;YACzC,OAAO,uBAAuB,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;QAC5D,CAAC;QACD,OAAO,KAAK,CAAC;IACd,CAAC;IACF,mCAAC;AAAD,CAAC,AAvBD,CAAkD,eAAe,GAuBhE","sourcesContent":["/*\n * Copyright (C) 2019-2026 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShapeType } from \"../e-shape-type\";\nimport { EShapePrimitive } from \"./e-shape-primitive\";\nimport { hitTestRectangleRounded } from \"./hit-test-rectangle-rounded\";\n\nexport class EShapeRectangleRoundedLegacy extends EShapePrimitive {\n\tconstructor(type: EShapeType = EShapeType.RECTANGLE_ROUNDED_LEGACY) {\n\t\tsuper(type);\n\t}\n\n\tclone(): EShapeRectangleRoundedLegacy {\n\t\treturn new EShapeRectangleRoundedLegacy(this.type).copy(this);\n\t}\n\n\tcontainsAbs(\n\t\tx: number,\n\t\ty: number,\n\t\tax: number,\n\t\tay: number,\n\t\tsw: number,\n\t\tss: number,\n\t\tsa: number\n\t): boolean {\n\t\tif (super.containsAbsBBox(x, y, ax, ay)) {\n\t\t\treturn hitTestRectangleRounded(this, x, y, ax, ay, sw, ss);\n\t\t}\n\t\treturn false;\n\t}\n}\n"]}
|