@wcardinal/wcardinal-ui 0.468.0 → 0.469.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/dist/types/wcardinal/ui/d-diagram-serialized.d.ts +1 -1
  2. package/dist/types/wcardinal/ui/shape/e-shape-capability.d.ts +4 -0
  3. package/dist/types/wcardinal/ui/shape/e-shape-defaults.d.ts +2 -0
  4. package/dist/types/wcardinal/ui/shape/e-shape-type.d.ts +2 -0
  5. package/dist/types/wcardinal/ui/shape/e-shape.d.ts +1 -0
  6. package/dist/types/wcardinal/ui/shape/load/index.d.ts +2 -0
  7. package/dist/types/wcardinal/ui/shape/load/load-shape-fan.d.ts +1 -0
  8. package/dist/types/wcardinal/ui/shape/load/load-shape-semicircle-legacy.d.ts +1 -0
  9. package/dist/types/wcardinal/ui/shape/variant/build-semicircle-legacy.d.ts +9 -0
  10. package/dist/types/wcardinal/ui/shape/variant/build-semicircle.d.ts +1 -9
  11. package/dist/types/wcardinal/ui/shape/variant/builder-semicircle-legacy.d.ts +10 -0
  12. package/dist/types/wcardinal/ui/shape/variant/builder-semicircle.d.ts +1 -10
  13. package/dist/types/wcardinal/ui/shape/variant/create-semicircle-legacy-uploaded.d.ts +4 -0
  14. package/dist/types/wcardinal/ui/shape/variant/create-semicircle-uploaded.d.ts +1 -4
  15. package/dist/types/wcardinal/ui/shape/variant/deserialize-fan.d.ts +4 -0
  16. package/dist/types/wcardinal/ui/shape/variant/deserialize-semicircle-legacy.d.ts +4 -0
  17. package/dist/types/wcardinal/ui/shape/variant/e-shape-base.d.ts +1 -0
  18. package/dist/types/wcardinal/ui/shape/variant/e-shape-button.d.ts +2 -1
  19. package/dist/types/wcardinal/ui/shape/variant/e-shape-fan-triangulated-impl.d.ts +200 -0
  20. package/dist/types/wcardinal/ui/shape/variant/e-shape-fan-triangulated.d.ts +3 -0
  21. package/dist/types/wcardinal/ui/shape/variant/e-shape-fan.d.ts +26 -0
  22. package/dist/types/wcardinal/ui/shape/variant/e-shape-group-viewer.d.ts +2 -0
  23. package/dist/types/wcardinal/ui/shape/variant/e-shape-group.d.ts +2 -0
  24. package/dist/types/wcardinal/ui/shape/variant/e-shape-primitive.d.ts +2 -0
  25. package/dist/types/wcardinal/ui/shape/variant/e-shape-semicircle-legacy.d.ts +10 -0
  26. package/dist/types/wcardinal/ui/shape/variant/e-shape-semicircle.d.ts +9 -2
  27. package/dist/types/wcardinal/ui/shape/variant/e-shape-triangle-triangulated-impl.d.ts +1 -1
  28. package/dist/types/wcardinal/ui/shape/variant/hit-test-fan.d.ts +2 -0
  29. package/dist/types/wcardinal/ui/shape/variant/index.d.ts +11 -0
  30. package/dist/types/wcardinal/ui/shape/variant/to-fan-angle-centric.d.ts +4 -0
  31. package/dist/types/wcardinal/ui/shape/variant/to-fan-angle-eccentric.d.ts +5 -0
  32. package/dist/types/wcardinal/ui/theme/dark/e-theme-dark-shape.d.ts +1 -0
  33. package/dist/types/wcardinal/ui/theme/white/e-theme-white-shape.d.ts +1 -0
  34. package/dist/wcardinal/ui/d-diagram-serialized.js.map +1 -1
  35. package/dist/wcardinal/ui/shape/e-shape-capability.js +6 -1
  36. package/dist/wcardinal/ui/shape/e-shape-capability.js.map +1 -1
  37. package/dist/wcardinal/ui/shape/e-shape-defaults.js +7 -0
  38. package/dist/wcardinal/ui/shape/e-shape-defaults.js.map +1 -1
  39. package/dist/wcardinal/ui/shape/e-shape-type.js +2 -0
  40. package/dist/wcardinal/ui/shape/e-shape-type.js.map +1 -1
  41. package/dist/wcardinal/ui/shape/e-shape.js.map +1 -1
  42. package/dist/wcardinal/ui/shape/load/index.js +2 -0
  43. package/dist/wcardinal/ui/shape/load/index.js.map +1 -1
  44. package/dist/wcardinal/ui/shape/load/load-shape-all.js +4 -0
  45. package/dist/wcardinal/ui/shape/load/load-shape-all.js.map +1 -1
  46. package/dist/wcardinal/ui/shape/load/load-shape-fan.js +17 -0
  47. package/dist/wcardinal/ui/shape/load/load-shape-fan.js.map +1 -0
  48. package/dist/wcardinal/ui/shape/load/load-shape-semicircle-legacy.js +14 -0
  49. package/dist/wcardinal/ui/shape/load/load-shape-semicircle-legacy.js.map +1 -0
  50. package/dist/wcardinal/ui/shape/load/load-shape-semicircle.js +5 -2
  51. package/dist/wcardinal/ui/shape/load/load-shape-semicircle.js.map +1 -1
  52. package/dist/wcardinal/ui/shape/variant/build-semicircle-legacy.js +137 -0
  53. package/dist/wcardinal/ui/shape/variant/build-semicircle-legacy.js.map +1 -0
  54. package/dist/wcardinal/ui/shape/variant/build-semicircle.js +1 -139
  55. package/dist/wcardinal/ui/shape/variant/build-semicircle.js.map +1 -1
  56. package/dist/wcardinal/ui/shape/variant/builder-semicircle-legacy.js +76 -0
  57. package/dist/wcardinal/ui/shape/variant/builder-semicircle-legacy.js.map +1 -0
  58. package/dist/wcardinal/ui/shape/variant/builder-semicircle.js +1 -71
  59. package/dist/wcardinal/ui/shape/variant/builder-semicircle.js.map +1 -1
  60. package/dist/wcardinal/ui/shape/variant/create-semicircle-legacy-uploaded.js +24 -0
  61. package/dist/wcardinal/ui/shape/variant/create-semicircle-legacy-uploaded.js.map +1 -0
  62. package/dist/wcardinal/ui/shape/variant/create-semicircle-uploaded.js +1 -19
  63. package/dist/wcardinal/ui/shape/variant/create-semicircle-uploaded.js.map +1 -1
  64. package/dist/wcardinal/ui/shape/variant/deserialize-fan.js +12 -0
  65. package/dist/wcardinal/ui/shape/variant/deserialize-fan.js.map +1 -0
  66. package/dist/wcardinal/ui/shape/variant/deserialize-semicircle-legacy.js +10 -0
  67. package/dist/wcardinal/ui/shape/variant/deserialize-semicircle-legacy.js.map +1 -0
  68. package/dist/wcardinal/ui/shape/variant/e-shape-base.js.map +1 -1
  69. package/dist/wcardinal/ui/shape/variant/e-shape-button.js.map +1 -1
  70. package/dist/wcardinal/ui/shape/variant/e-shape-connector-line.js +0 -2
  71. package/dist/wcardinal/ui/shape/variant/e-shape-connector-line.js.map +1 -1
  72. package/dist/wcardinal/ui/shape/variant/e-shape-embedded-acceptor-edge.js +0 -2
  73. package/dist/wcardinal/ui/shape/variant/e-shape-embedded-acceptor-edge.js.map +1 -1
  74. package/dist/wcardinal/ui/shape/variant/e-shape-fan-triangulated-impl.js +724 -0
  75. package/dist/wcardinal/ui/shape/variant/e-shape-fan-triangulated-impl.js.map +1 -0
  76. package/dist/wcardinal/ui/shape/variant/e-shape-fan-triangulated.js +6 -0
  77. package/dist/wcardinal/ui/shape/variant/e-shape-fan-triangulated.js.map +1 -0
  78. package/dist/wcardinal/ui/shape/variant/e-shape-fan.js +85 -0
  79. package/dist/wcardinal/ui/shape/variant/e-shape-fan.js.map +1 -0
  80. package/dist/wcardinal/ui/shape/variant/e-shape-group-viewer.js +10 -0
  81. package/dist/wcardinal/ui/shape/variant/e-shape-group-viewer.js.map +1 -1
  82. package/dist/wcardinal/ui/shape/variant/e-shape-group.js +18 -1
  83. package/dist/wcardinal/ui/shape/variant/e-shape-group.js.map +1 -1
  84. package/dist/wcardinal/ui/shape/variant/e-shape-polygon.js +3 -4
  85. package/dist/wcardinal/ui/shape/variant/e-shape-polygon.js.map +1 -1
  86. package/dist/wcardinal/ui/shape/variant/e-shape-primitive.js +10 -0
  87. package/dist/wcardinal/ui/shape/variant/e-shape-primitive.js.map +1 -1
  88. package/dist/wcardinal/ui/shape/variant/e-shape-semicircle-legacy.js +33 -0
  89. package/dist/wcardinal/ui/shape/variant/e-shape-semicircle-legacy.js.map +1 -0
  90. package/dist/wcardinal/ui/shape/variant/e-shape-semicircle.js +36 -6
  91. package/dist/wcardinal/ui/shape/variant/e-shape-semicircle.js.map +1 -1
  92. package/dist/wcardinal/ui/shape/variant/e-shape-triangle-triangulated-impl.js +31 -30
  93. package/dist/wcardinal/ui/shape/variant/e-shape-triangle-triangulated-impl.js.map +1 -1
  94. package/dist/wcardinal/ui/shape/variant/hit-test-fan.js +79 -0
  95. package/dist/wcardinal/ui/shape/variant/hit-test-fan.js.map +1 -0
  96. package/dist/wcardinal/ui/shape/variant/index.js +11 -0
  97. package/dist/wcardinal/ui/shape/variant/index.js.map +1 -1
  98. package/dist/wcardinal/ui/shape/variant/to-fan-angle-centric.js +11 -0
  99. package/dist/wcardinal/ui/shape/variant/to-fan-angle-centric.js.map +1 -0
  100. package/dist/wcardinal/ui/shape/variant/to-fan-angle-eccentric.js +12 -0
  101. package/dist/wcardinal/ui/shape/variant/to-fan-angle-eccentric.js.map +1 -0
  102. package/dist/wcardinal/ui/theme/dark/e-theme-dark-shape.js +3 -0
  103. package/dist/wcardinal/ui/theme/dark/e-theme-dark-shape.js.map +1 -1
  104. package/dist/wcardinal/ui/theme/white/e-theme-white-shape.js +3 -0
  105. package/dist/wcardinal/ui/theme/white/e-theme-white-shape.js.map +1 -1
  106. package/dist/wcardinal-ui-theme-dark-en-us.js +4 -1
  107. package/dist/wcardinal-ui-theme-dark-en-us.min.js +2 -2
  108. package/dist/wcardinal-ui-theme-dark-en-us.min.js.map +1 -1
  109. package/dist/wcardinal-ui-theme-dark-ja-jp.js +4 -1
  110. package/dist/wcardinal-ui-theme-dark-ja-jp.min.js +2 -2
  111. package/dist/wcardinal-ui-theme-dark-ja-jp.min.js.map +1 -1
  112. package/dist/wcardinal-ui-theme-dark.js +4 -1
  113. package/dist/wcardinal-ui-theme-dark.min.js +2 -2
  114. package/dist/wcardinal-ui-theme-white-en-us.js +4 -1
  115. package/dist/wcardinal-ui-theme-white-en-us.min.js +2 -2
  116. package/dist/wcardinal-ui-theme-white-en-us.min.js.map +1 -1
  117. package/dist/wcardinal-ui-theme-white-ja-jp.js +4 -1
  118. package/dist/wcardinal-ui-theme-white-ja-jp.min.js +2 -2
  119. package/dist/wcardinal-ui-theme-white-ja-jp.min.js.map +1 -1
  120. package/dist/wcardinal-ui-theme-white.js +4 -1
  121. package/dist/wcardinal-ui-theme-white.min.js +2 -2
  122. package/dist/wcardinal-ui.cjs.js +1160 -103
  123. package/dist/wcardinal-ui.js +1154 -103
  124. package/dist/wcardinal-ui.min.js +2 -2
  125. package/dist/wcardinal-ui.min.js.map +1 -1
  126. package/package.json +1 -1
@@ -1,31 +1,61 @@
1
1
  /*
2
- * Copyright (C) 2019 Toshiba Corporation
2
+ * Copyright (C) 2019-2026 Toshiba Corporation
3
3
  * SPDX-License-Identifier: Apache-2.0
4
4
  */
5
5
  import { __extends } from "tslib";
6
+ import { EShapeDefaults } from "../e-shape-defaults";
6
7
  import { EShapeStrokeSide } from "../e-shape-stroke-side";
7
8
  import { EShapeType } from "../e-shape-type";
9
+ import { EShapeFanTriangulatedImpl } from "./e-shape-fan-triangulated-impl";
8
10
  import { EShapePrimitive } from "./e-shape-primitive";
9
- import { hitTestSemicircle } from "./hit-test-semicircle";
11
+ import { EShapeStrokeImpl } from "./e-shape-stroke-impl";
12
+ import { hitTestFan } from "./hit-test-fan";
10
13
  /**
11
14
  * A semicircle shape.
12
- *
13
- * @beta
14
15
  */
15
16
  var EShapeSemicircle = /** @class */ (function (_super) {
16
17
  __extends(EShapeSemicircle, _super);
17
18
  function EShapeSemicircle(type) {
18
19
  if (type === void 0) { type = EShapeType.SEMICIRCLE; }
19
20
  var _this = _super.call(this, type) || this;
20
- _this.stroke.side = EShapeStrokeSide.ALL & ~EShapeStrokeSide.BOTTOM;
21
+ _this._triangulated = _this.newTriangulated();
21
22
  return _this;
22
23
  }
24
+ EShapeSemicircle.prototype.newStroke = function () {
25
+ return new EShapeStrokeImpl(this, true, EShapeDefaults.STROKE_COLOR, EShapeDefaults.STROKE_ALPHA, EShapeDefaults.STROKE_WIDTH, EShapeDefaults.STROKE_ALIGN, EShapeDefaults.STROKE_SIDE & ~EShapeStrokeSide.BOTTOM, EShapeDefaults.STROKE_STYLE);
26
+ };
27
+ EShapeSemicircle.prototype.newTriangulated = function () {
28
+ return new EShapeFanTriangulatedImpl(this);
29
+ };
30
+ Object.defineProperty(EShapeSemicircle.prototype, "triangulated", {
31
+ get: function () {
32
+ return this._triangulated;
33
+ },
34
+ enumerable: false,
35
+ configurable: true
36
+ });
37
+ Object.defineProperty(EShapeSemicircle.prototype, "angle", {
38
+ get: function () {
39
+ return 0.5;
40
+ },
41
+ set: function (angle) {
42
+ // DO NOTHING
43
+ },
44
+ enumerable: false,
45
+ configurable: true
46
+ });
47
+ EShapeSemicircle.prototype.toHitTestStrokeShift = function (strokeWidth, strokeScale, strokeAlign) {
48
+ if ((this.stroke.side & EShapeStrokeSide.TOP_OR_BOTTOM) !== 0) {
49
+ return _super.prototype.toHitTestStrokeShift.call(this, strokeWidth, strokeScale, strokeAlign);
50
+ }
51
+ return 0;
52
+ };
23
53
  EShapeSemicircle.prototype.clone = function () {
24
54
  return new EShapeSemicircle(this.type).copy(this);
25
55
  };
26
56
  EShapeSemicircle.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
27
57
  if (_super.prototype.containsAbsBBox.call(this, x, y, ax, ay)) {
28
- return hitTestSemicircle(this, x, y, ax, ay, sw, ss);
58
+ return hitTestFan(this, x, y, ax, ay, sw, ss);
29
59
  }
30
60
  return false;
31
61
  };
@@ -1 +1 @@
1
- {"version":3,"file":"e-shape-semicircle.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-semicircle.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D;;;;GAIG;AACH;IAAsC,oCAAe;IACpD,0BAAY,IAAwC;QAAxC,qBAAA,EAAA,OAAmB,UAAU,CAAC,UAAU;QACnD,YAAA,MAAK,YAAC,IAAI,CAAC,SAAC;QACZ,KAAI,CAAC,MAAM,CAAC,IAAI,GAAG,gBAAgB,CAAC,GAAG,GAAG,CAAC,gBAAgB,CAAC,MAAM,CAAC;;IACpE,CAAC;IAED,gCAAK,GAAL;QACC,OAAO,IAAI,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACnD,CAAC;IAED,sCAAW,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,iBAAiB,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;QACtD,CAAC;QACD,OAAO,KAAK,CAAC;IACd,CAAC;IACF,uBAAC;AAAD,CAAC,AAxBD,CAAsC,eAAe,GAwBpD","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShapeStrokeSide } from \"../e-shape-stroke-side\";\nimport { EShapeType } from \"../e-shape-type\";\nimport { EShapePrimitive } from \"./e-shape-primitive\";\nimport { hitTestSemicircle } from \"./hit-test-semicircle\";\n\n/**\n * A semicircle shape.\n *\n * @beta\n */\nexport class EShapeSemicircle extends EShapePrimitive {\n\tconstructor(type: EShapeType = EShapeType.SEMICIRCLE) {\n\t\tsuper(type);\n\t\tthis.stroke.side = EShapeStrokeSide.ALL & ~EShapeStrokeSide.BOTTOM;\n\t}\n\n\tclone(): EShapeSemicircle {\n\t\treturn new EShapeSemicircle(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 hitTestSemicircle(this, x, y, ax, ay, sw, ss);\n\t\t}\n\t\treturn false;\n\t}\n}\n"]}
1
+ {"version":3,"file":"e-shape-semicircle.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-semicircle.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C;;GAEG;AACH;IAAsC,oCAAe;IAGpD,0BAAY,IAAwC;QAAxC,qBAAA,EAAA,OAAmB,UAAU,CAAC,UAAU;QACnD,YAAA,MAAK,YAAC,IAAI,CAAC,SAAC;QACZ,KAAI,CAAC,aAAa,GAAG,KAAI,CAAC,eAAe,EAAE,CAAC;;IAC7C,CAAC;IAEkB,oCAAS,GAA5B;QACC,OAAO,IAAI,gBAAgB,CAC1B,IAAI,EACJ,IAAI,EACJ,cAAc,CAAC,YAAY,EAC3B,cAAc,CAAC,YAAY,EAC3B,cAAc,CAAC,YAAY,EAC3B,cAAc,CAAC,YAAY,EAC3B,cAAc,CAAC,WAAW,GAAG,CAAC,gBAAgB,CAAC,MAAM,EACrD,cAAc,CAAC,YAAY,CAC3B,CAAC;IACH,CAAC;IAES,0CAAe,GAAzB;QACC,OAAO,IAAI,yBAAyB,CAAC,IAAI,CAAC,CAAC;IAC5C,CAAC;IAED,sBAAI,0CAAY;aAAhB;YACC,OAAO,IAAI,CAAC,aAAa,CAAC;QAC3B,CAAC;;;OAAA;IAED,sBAAa,mCAAK;aAAlB;YACC,OAAO,GAAG,CAAC;QACZ,CAAC;aAED,UAAmB,KAAa;YAC/B,aAAa;QACd,CAAC;;;OAJA;IAMkB,+CAAoB,GAAvC,UACC,WAAmB,EACnB,WAAmB,EACnB,WAAmB;QAEnB,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,GAAG,gBAAgB,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC;YAC/D,OAAO,gBAAK,CAAC,oBAAoB,YAAC,WAAW,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC;QAC1E,CAAC;QACD,OAAO,CAAC,CAAC;IACV,CAAC;IAEQ,gCAAK,GAAd;QACC,OAAO,IAAI,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACnD,CAAC;IAEQ,sCAAW,GAApB,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,UAAU,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;QAC/C,CAAC;QACD,OAAO,KAAK,CAAC;IACd,CAAC;IACF,uBAAC;AAAD,CAAC,AAlED,CAAsC,eAAe,GAkEpD","sourcesContent":["/*\n * Copyright (C) 2019-2026 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShapeDefaults } from \"../e-shape-defaults\";\nimport { EShapeStroke } from \"../e-shape-stroke\";\nimport { EShapeStrokeSide } from \"../e-shape-stroke-side\";\nimport { EShapeType } from \"../e-shape-type\";\nimport { EShapeFanTriangulated } from \"./e-shape-fan-triangulated\";\nimport { EShapeFanTriangulatedImpl } from \"./e-shape-fan-triangulated-impl\";\nimport { EShapePrimitive } from \"./e-shape-primitive\";\nimport { EShapeStrokeImpl } from \"./e-shape-stroke-impl\";\nimport { hitTestFan } from \"./hit-test-fan\";\n\n/**\n * A semicircle shape.\n */\nexport class EShapeSemicircle extends EShapePrimitive {\n\tprotected readonly _triangulated: EShapeFanTriangulated;\n\n\tconstructor(type: EShapeType = EShapeType.SEMICIRCLE) {\n\t\tsuper(type);\n\t\tthis._triangulated = this.newTriangulated();\n\t}\n\n\tprotected override newStroke(): EShapeStroke {\n\t\treturn new EShapeStrokeImpl(\n\t\t\tthis,\n\t\t\ttrue,\n\t\t\tEShapeDefaults.STROKE_COLOR,\n\t\t\tEShapeDefaults.STROKE_ALPHA,\n\t\t\tEShapeDefaults.STROKE_WIDTH,\n\t\t\tEShapeDefaults.STROKE_ALIGN,\n\t\t\tEShapeDefaults.STROKE_SIDE & ~EShapeStrokeSide.BOTTOM,\n\t\t\tEShapeDefaults.STROKE_STYLE\n\t\t);\n\t}\n\n\tprotected newTriangulated(): EShapeFanTriangulated {\n\t\treturn new EShapeFanTriangulatedImpl(this);\n\t}\n\n\tget triangulated(): EShapeFanTriangulated {\n\t\treturn this._triangulated;\n\t}\n\n\toverride get angle(): number {\n\t\treturn 0.5;\n\t}\n\n\toverride set angle(angle: number) {\n\t\t// DO NOTHING\n\t}\n\n\tprotected override toHitTestStrokeShift(\n\t\tstrokeWidth: number,\n\t\tstrokeScale: number,\n\t\tstrokeAlign: number\n\t): number {\n\t\tif ((this.stroke.side & EShapeStrokeSide.TOP_OR_BOTTOM) !== 0) {\n\t\t\treturn super.toHitTestStrokeShift(strokeWidth, strokeScale, strokeAlign);\n\t\t}\n\t\treturn 0;\n\t}\n\n\toverride clone(): EShapeSemicircle {\n\t\treturn new EShapeSemicircle(this.type).copy(this);\n\t}\n\n\toverride containsAbs(\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 hitTestFan(this, x, y, ax, ay, sw, ss);\n\t\t}\n\t\treturn false;\n\t}\n}\n"]}
@@ -142,7 +142,7 @@ var EShapeTriangleTriangulatedImpl = /** @class */ (function () {
142
142
  boundary[2] = +ax;
143
143
  boundary[3] = +ay;
144
144
  // # of vertices and # of indices
145
- var nv = 7;
145
+ var nv = 9;
146
146
  var ni = 3;
147
147
  this._nvertices = nv;
148
148
  this._nindices = ni;
@@ -197,11 +197,7 @@ var EShapeTriangleTriangulatedImpl = /** @class */ (function () {
197
197
  // vertices (-sx, sy) and (sx, sy). The signs of sx and
198
198
  // sy intentionally preserve horizontal and vertical reflections.
199
199
  // The sloped edge spans ax horizontally and 2 * ay vertically.
200
- var side = Math.sqrt(ax * ax + 4 * ay * ay);
201
- // The base is horizontal, so its length is twice the half-width.
202
- var base = 2 * ax;
203
- // Length values are measured along the triangle perimeter.
204
- var perimeter = 2 * side + base;
200
+ var b = Math.sqrt(ax * ax + 4 * ay * ay);
205
201
  // The incenter lies on the vertical center line. This is its y-coordinate.
206
202
  // Along the median, the distances from the top vertex to the incenter and
207
203
  // from the incenter to the base are in the ratio 2 * side : base.
@@ -213,42 +209,47 @@ var EShapeTriangleTriangulatedImpl = /** @class */ (function () {
213
209
  // cy = ay (2 side - 2 ax) / (2 side + 2 ax)
214
210
  // cy = ay (side - ax) / (side + ax)
215
211
  var cx = 0;
216
- var cy = (sy * (side - ax)) / (side + ax);
212
+ var cy = (sy * (b - ax)) / (b + ax);
217
213
  // The distance from the incenter to every edge is the inradius.
218
214
  // Since 0 <= (side - ax) / (side + ax) <= 1, the incenter remains
219
215
  // between the apex and the base even when sy is negative.
220
- var distance = Math.abs(sy - cy);
221
- var fdistance = 1 / distance;
216
+ var d = Math.abs(sy - cy);
217
+ var fd = 1 / d;
222
218
  // Expand the triangle around its incenter for anti-aliasing and strokes.
223
- // The outer vertices are shared where their interpolated attributes match.
224
219
  var x0 = 0;
225
220
  var y0 = cy + scale * (-sy - cy);
226
221
  var x1 = scale * sx;
227
222
  var y1 = cy + scale * (sy - cy);
228
223
  var x2 = -x1;
229
224
  var y2 = y1;
230
- // Top-to-right edge cell. The inner vertex carries the fill attributes.
231
- this.updateVertex(0, x0, y0, fdistance, 0, scale, fx, fy);
232
- this.updateVertex(1, x1, y1, fdistance, side, scale, fx, fy);
233
- this.updateVertex(2, cx, cy, fdistance, side - ax, 0, fx, fy);
225
+ // Each cell has its own vertices because `length` is the arc length projected onto
226
+ // the cell's edge. It is `lc` at the incenter (the tangent point) and
227
+ // `lc + scale * (l - lc)` at the outer vertices so that it equals `l` at clipping = 1.
234
228
  var indices = this._indices;
235
- indices[0] = 0;
236
- indices[1] = 1;
237
- indices[2] = 2;
238
- // Right-to-left base edge cell. The right and left outer vertices are reused.
239
- this.updateVertex(3, x2, y2, fdistance, side + base, scale, fx, fy);
240
- this.updateVertex(4, cx, cy, fdistance, side + ax, 0, fx, fy);
241
- indices[3] = 1;
242
- indices[4] = 3;
243
- indices[5] = 4;
244
- // Left-to-top edge cell. The top vertex is duplicated for the perimeter seam.
245
- this.updateVertex(5, x0, y0, fdistance, perimeter, scale, fx, fy);
246
- this.updateVertex(6, cx, cy, fdistance, perimeter - (side - ax), 0, fx, fy);
247
- indices[6] = 3;
248
- indices[7] = 5;
249
- indices[8] = 6;
229
+ // Top-to-right edge cell
230
+ var l0 = 0;
231
+ var l1 = l0 + b;
232
+ var lc0 = b - ax;
233
+ this.writeVertex(0, x0, y0, fd, lc0 + scale * (l0 - lc0), scale, fx, fy);
234
+ this.writeVertex(1, x1, y1, fd, lc0 + scale * (l1 - lc0), scale, fx, fy);
235
+ this.writeVertex(2, cx, cy, fd, lc0, 0, fx, fy);
236
+ // Right-to-left base edge cell
237
+ var l2 = l1 + 2 * ax;
238
+ var lc1 = b + ax;
239
+ this.writeVertex(3, x1, y1, fd, lc1 + scale * (l1 - lc1), scale, fx, fy);
240
+ this.writeVertex(4, x2, y2, fd, lc1 + scale * (l2 - lc1), scale, fx, fy);
241
+ this.writeVertex(5, cx, cy, fd, lc1, 0, fx, fy);
242
+ // Left-to-top edge cell
243
+ var l3 = l2 + b;
244
+ var lc2 = b + 3 * ax;
245
+ this.writeVertex(6, x2, y2, fd, lc2 + scale * (l2 - lc2), scale, fx, fy);
246
+ this.writeVertex(7, x0, y0, fd, lc2 + scale * (l3 - lc2), scale, fx, fy);
247
+ this.writeVertex(8, cx, cy, fd, lc2, 0, fx, fy);
248
+ for (var i = 0; i < 9; ++i) {
249
+ indices[i] = i;
250
+ }
250
251
  };
251
- EShapeTriangleTriangulatedImpl.prototype.updateVertex = function (vertex, x, y, distance, length, clipping, fx, fy) {
252
+ EShapeTriangleTriangulatedImpl.prototype.writeVertex = function (vertex, x, y, distance, length, clipping, fx, fy) {
252
253
  var vertex2 = vertex << 1;
253
254
  this._vertices[vertex2] = x;
254
255
  this._vertices[vertex2 + 1] = y;
@@ -1 +1 @@
1
- {"version":3,"file":"e-shape-triangle-triangulated-impl.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-triangle-triangulated-impl.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH;IAmBC,wCAAY,MAAsB;QACjC,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC;QACb,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;QAChB,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;QACjB,IAAI,CAAC,YAAY,GAAG,CAAC,CAAC;QACtB,IAAI,CAAC,YAAY,GAAG,CAAC,CAAC;QACtB,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;QAChB,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;QAChB,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;QACpB,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC;QACpB,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;QACnB,IAAI,CAAC,UAAU,GAAG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M,IAAI,CAAC,CAAC;QAC5B,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAC5B,IAAI,CAAC,SAAS,CAAC,OAAO,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;QAChC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,QAAQ,CAAC;QACnC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;QAC/B,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,QAAQ,CAAC;QACnC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;QACxC,IAAI,CAAC,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;IAC7C,CAAC;IACF,qCAAC;AAAD,CAAC,AA/QD,IA+QC","sourcesContent":["/*\n * Copyright (C) 2019-2026 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShapeBoundary } from \"../e-shape-boundary\";\nimport type { EShapeTriangle } from \"./e-shape-triangle\";\nimport { EShapeTriangleTriangulated } from \"./e-shape-triangle-triangulated\";\n\nexport class EShapeTriangleTriangulatedImpl implements EShapeTriangleTriangulated {\n\tprotected _id: number;\n\tprotected _parent: EShapeTriangle;\n\tprotected _width: number;\n\tprotected _height: number;\n\tprotected _strokeAlign: number;\n\tprotected _strokeWidth: number;\n\tprotected _sizeX: number;\n\tprotected _sizeY: number;\n\tprotected _vertices: number[];\n\tprotected _nvertices: number;\n\tprotected _distances: number[];\n\tprotected _lengths: number[];\n\tprotected _clippings: number[];\n\tprotected _uvs: number[];\n\tprotected _indices: number[];\n\tprotected _nindices: number;\n\tprotected _boundary: EShapeBoundary;\n\n\tconstructor(parent: EShapeTriangle) {\n\t\tthis._id = 0;\n\t\tthis._parent = parent;\n\t\tthis._width = 0;\n\t\tthis._height = 0;\n\t\tthis._strokeAlign = 0;\n\t\tthis._strokeWidth = 0;\n\t\tthis._sizeX = 0;\n\t\tthis._sizeY = 0;\n\t\tthis._vertices = [];\n\t\tthis._nvertices = 0;\n\t\tthis._distances = [];\n\t\tthis._lengths = [];\n\t\tthis._clippings = [];\n\t\tthis._uvs = [];\n\t\tthis._indices = [];\n\t\tthis._nindices = 0;\n\t\tthis._boundary = [0, 0, 0, 0];\n\t}\n\n\tget id(): number {\n\t\tthis.triangulate();\n\t\treturn this._id;\n\t}\n\n\tget vertices(): number[] {\n\t\tthis.triangulate();\n\t\treturn this._vertices;\n\t}\n\n\tget nvertices(): number {\n\t\tthis.triangulate();\n\t\treturn this._nvertices;\n\t}\n\n\tget distances(): number[] {\n\t\tthis.triangulate();\n\t\treturn this._distances;\n\t}\n\n\tget lengths(): number[] {\n\t\tthis.triangulate();\n\t\treturn this._lengths;\n\t}\n\n\tget clippings(): number[] {\n\t\tthis.triangulate();\n\t\treturn this._clippings;\n\t}\n\n\tget uvs(): number[] {\n\t\tthis.triangulate();\n\t\treturn this._uvs;\n\t}\n\n\tget indices(): number[] {\n\t\tthis.triangulate();\n\t\treturn this._indices;\n\t}\n\n\tget nindices(): number {\n\t\tthis.triangulate();\n\t\treturn this._nindices;\n\t}\n\n\tget boundary(): EShapeBoundary {\n\t\tthis.triangulate();\n\t\treturn this._boundary;\n\t}\n\n\tprotected triangulate(): void {\n\t\tconst isNotInitialized = this._id === 0;\n\n\t\tconst parent = this._parent;\n\t\tconst size = parent.size;\n\t\tconst width = size.x;\n\t\tconst height = size.y;\n\t\tconst isRectChanged = this._width !== width || this._height !== height;\n\n\t\tconst stroke = parent.stroke;\n\t\tconst strokeAlign = stroke.align;\n\t\tconst strokeWidth = stroke.enable ? stroke.width : 0;\n\t\tconst isStrokeChanged =\n\t\t\tthis._strokeAlign !== strokeAlign || this._strokeWidth !== strokeWidth;\n\n\t\tlet isSizeChanged = false;\n\t\tlet sizeX = this._sizeX;\n\t\tlet sizeY = this._sizeY;\n\t\tif (isRectChanged || isStrokeChanged) {\n\t\t\tthis._width = width;\n\t\t\tthis._height = height;\n\t\t\tthis._strokeAlign = strokeAlign;\n\t\t\tthis._strokeWidth = strokeWidth;\n\n\t\t\tconst s = strokeAlign * strokeWidth;\n\t\t\tsizeX = width * 0.5 + (0 <= width ? +s : -s);\n\t\t\tsizeY = height * 0.5 + (0 <= height ? +s : -s);\n\t\t\tisSizeChanged = this._sizeX !== sizeX || this._sizeY !== sizeY;\n\t\t}\n\n\t\tif (isNotInitialized || isSizeChanged || isStrokeChanged) {\n\t\t\tthis._sizeX = sizeX;\n\t\t\tthis._sizeY = sizeY;\n\t\t\tthis.update(sizeX, sizeY, 1.1);\n\t\t}\n\t}\n\n\tprotected update(sizeX: number, sizeY: number, scale: number): void {\n\t\t// Boundary\n\t\tconst ax = Math.abs(sizeX);\n\t\tconst ay = Math.abs(sizeY);\n\t\tconst boundary = this._boundary;\n\t\tboundary[0] = -ax;\n\t\tboundary[1] = -ay;\n\t\tboundary[2] = +ax;\n\t\tboundary[3] = +ay;\n\n\t\t// # of vertices and # of indices\n\t\tconst nv = 7;\n\t\tconst ni = 3;\n\t\tthis._nvertices = nv;\n\t\tthis._nindices = ni;\n\n\t\t// ID\n\t\tthis._id += 1;\n\n\t\t//\n\t\tif (sizeX === 0 || sizeY === 0) {\n\t\t\tthis.pad(0, 0, nv, ni, 0);\n\t\t} else {\n\t\t\tthis.updateAll(sizeX, sizeY, scale);\n\t\t}\n\t}\n\n\t/**\n\t * Fills the unused tail with degenerated triangles and trims the arrays\n\t * so that the buffers always hold exactly `nv` vertices and `ni` triangles.\n\t */\n\tprotected pad(iv: number, ii: number, nv: number, ni: number, fd: number): void {\n\t\tconst vertices = this._vertices;\n\t\tconst distances = this._distances;\n\t\tconst lengths = this._lengths;\n\t\tconst clippings = this._clippings;\n\t\tconst uvs = this._uvs;\n\t\tconst indices = this._indices;\n\n\t\tfor (let i = iv; i < nv; ++i) {\n\t\t\tconst i2 = i << 1;\n\t\t\tvertices[i2] = 0;\n\t\t\tvertices[i2 + 1] = 0;\n\t\t\tdistances[i] = fd;\n\t\t\tlengths[i] = 0;\n\t\t\tclippings[i] = 0;\n\t\t\tuvs[i2] = 0.5;\n\t\t\tuvs[i2 + 1] = 0.5;\n\t\t}\n\t\tfor (let i = ii, imax = ni * 3; i < imax; ++i) {\n\t\t\tindices[i] = 0;\n\t\t}\n\n\t\tconst nv2 = nv << 1;\n\t\tvertices.length = nv2;\n\t\tdistances.length = nv;\n\t\tlengths.length = nv;\n\t\tclippings.length = nv;\n\t\tuvs.length = nv2;\n\t\tindices.length = ni * 3;\n\t}\n\n\tprotected updateAll(sx: number, sy: number, scale: number): void {\n\t\tconst fx = 1 / sx;\n\t\tconst fy = 1 / sy;\n\t\tconst ax = Math.abs(sx);\n\t\tconst ay = Math.abs(sy);\n\t\t// The triangle is defined by the apex (0, -sy) and the two base\n\t\t// vertices (-sx, sy) and (sx, sy). The signs of sx and\n\t\t// sy intentionally preserve horizontal and vertical reflections.\n\t\t// The sloped edge spans ax horizontally and 2 * ay vertically.\n\t\tconst side = Math.sqrt(ax * ax + 4 * ay * ay);\n\t\t// The base is horizontal, so its length is twice the half-width.\n\t\tconst base = 2 * ax;\n\t\t// Length values are measured along the triangle perimeter.\n\t\tconst perimeter = 2 * side + base;\n\t\t// The incenter lies on the vertical center line. This is its y-coordinate.\n\t\t// Along the median, the distances from the top vertex to the incenter and\n\t\t// from the incenter to the base are in the ratio 2 * side : base.\n\t\t// Thus, (ay + cy) : (ay - cy) = 2 * side : base.\n\t\t// 2 side (ay - cy) = base * (ay + cy)\n\t\t// 2 side ay - 2 side cy = base ay + base cy\n\t\t// (base + 2 side) cy = ay (2 side - base)\n\t\t// cy = ay (2 side - base) / (2 side + base)\n\t\t// cy = ay (2 side - 2 ax) / (2 side + 2 ax)\n\t\t// cy = ay (side - ax) / (side + ax)\n\t\tconst cx = 0;\n\t\tconst cy = (sy * (side - ax)) / (side + ax);\n\t\t// The distance from the incenter to every edge is the inradius.\n\t\t// Since 0 <= (side - ax) / (side + ax) <= 1, the incenter remains\n\t\t// between the apex and the base even when sy is negative.\n\t\tconst distance = Math.abs(sy - cy);\n\t\tconst fdistance = 1 / distance;\n\t\t// Expand the triangle around its incenter for anti-aliasing and strokes.\n\t\t// The outer vertices are shared where their interpolated attributes match.\n\t\tconst x0 = 0;\n\t\tconst y0 = cy + scale * (-sy - cy);\n\t\tconst x1 = scale * sx;\n\t\tconst y1 = cy + scale * (sy - cy);\n\t\tconst x2 = -x1;\n\t\tconst y2 = y1;\n\n\t\t// Top-to-right edge cell. The inner vertex carries the fill attributes.\n\t\tthis.updateVertex(0, x0, y0, fdistance, 0, scale, fx, fy);\n\t\tthis.updateVertex(1, x1, y1, fdistance, side, scale, fx, fy);\n\t\tthis.updateVertex(2, cx, cy, fdistance, side - ax, 0, fx, fy);\n\t\tconst indices = this._indices;\n\t\tindices[0] = 0;\n\t\tindices[1] = 1;\n\t\tindices[2] = 2;\n\n\t\t// Right-to-left base edge cell. The right and left outer vertices are reused.\n\t\tthis.updateVertex(3, x2, y2, fdistance, side + base, scale, fx, fy);\n\t\tthis.updateVertex(4, cx, cy, fdistance, side + ax, 0, fx, fy);\n\t\tindices[3] = 1;\n\t\tindices[4] = 3;\n\t\tindices[5] = 4;\n\n\t\t// Left-to-top edge cell. The top vertex is duplicated for the perimeter seam.\n\t\tthis.updateVertex(5, x0, y0, fdistance, perimeter, scale, fx, fy);\n\t\tthis.updateVertex(6, cx, cy, fdistance, perimeter - (side - ax), 0, fx, fy);\n\t\tindices[6] = 3;\n\t\tindices[7] = 5;\n\t\tindices[8] = 6;\n\t}\n\n\tprotected updateVertex(\n\t\tvertex: number,\n\t\tx: number,\n\t\ty: number,\n\t\tdistance: number,\n\t\tlength: number,\n\t\tclipping: number,\n\t\tfx: number,\n\t\tfy: number\n\t): void {\n\t\tconst vertex2 = vertex << 1;\n\t\tthis._vertices[vertex2] = x;\n\t\tthis._vertices[vertex2 + 1] = y;\n\t\tthis._distances[vertex] = distance;\n\t\tthis._lengths[vertex] = length;\n\t\tthis._clippings[vertex] = clipping;\n\t\tthis._uvs[vertex2] = 0.5 * (x * fx + 1);\n\t\tthis._uvs[vertex2 + 1] = 0.5 * (y * fy + 1);\n\t}\n}\n"]}
1
+ {"version":3,"file":"e-shape-triangle-triangulated-impl.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-triangle-triangulated-impl.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH;IAmBC,wCAAY,MAAsB;QACjC,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC;QACb,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;QAChB,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;QACjB,IAAI,CAAC,YAAY,GAAG,CAAC,CAAC;QACtB,IAAI,CAAC,YAAY,GAAG,CAAC,CAAC;QACtB,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;QAChB,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;QAChB,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;QACpB,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC;QACpB,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;QACnB,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC;QACf,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;QACnB,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC;QACnB,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAC/B,CAAC;IAED,sBAAI,8CAAE;aAAN;YACC,IAAI,CAAC,WAAW,EAAE,CAAC;YACnB,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GAArB,UACC,MAAc,EACd,CAAS,EACT,CAAS,EACT,QAAgB,EAChB,MAAc,EACd,QAAgB,EAChB,EAAU,EACV,EAAU;QAEV,IAAM,OAAO,GAAG,MAAM,IAAI,CAAC,CAAC;QAC5B,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAC5B,IAAI,CAAC,SAAS,CAAC,OAAO,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;QAChC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,QAAQ,CAAC;QACnC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;QAC/B,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,QAAQ,CAAC;QACnC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;QACxC,IAAI,CAAC,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;IAC7C,CAAC;IACF,qCAAC;AAAD,CAAC,AAlRD,IAkRC","sourcesContent":["/*\n * Copyright (C) 2019-2026 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShapeBoundary } from \"../e-shape-boundary\";\nimport type { EShapeTriangle } from \"./e-shape-triangle\";\nimport { EShapeTriangleTriangulated } from \"./e-shape-triangle-triangulated\";\n\nexport class EShapeTriangleTriangulatedImpl implements EShapeTriangleTriangulated {\n\tprotected _id: number;\n\tprotected _parent: EShapeTriangle;\n\tprotected _width: number;\n\tprotected _height: number;\n\tprotected _strokeAlign: number;\n\tprotected _strokeWidth: number;\n\tprotected _sizeX: number;\n\tprotected _sizeY: number;\n\tprotected _vertices: number[];\n\tprotected _nvertices: number;\n\tprotected _distances: number[];\n\tprotected _lengths: number[];\n\tprotected _clippings: number[];\n\tprotected _uvs: number[];\n\tprotected _indices: number[];\n\tprotected _nindices: number;\n\tprotected _boundary: EShapeBoundary;\n\n\tconstructor(parent: EShapeTriangle) {\n\t\tthis._id = 0;\n\t\tthis._parent = parent;\n\t\tthis._width = 0;\n\t\tthis._height = 0;\n\t\tthis._strokeAlign = 0;\n\t\tthis._strokeWidth = 0;\n\t\tthis._sizeX = 0;\n\t\tthis._sizeY = 0;\n\t\tthis._vertices = [];\n\t\tthis._nvertices = 0;\n\t\tthis._distances = [];\n\t\tthis._lengths = [];\n\t\tthis._clippings = [];\n\t\tthis._uvs = [];\n\t\tthis._indices = [];\n\t\tthis._nindices = 0;\n\t\tthis._boundary = [0, 0, 0, 0];\n\t}\n\n\tget id(): number {\n\t\tthis.triangulate();\n\t\treturn this._id;\n\t}\n\n\tget vertices(): number[] {\n\t\tthis.triangulate();\n\t\treturn this._vertices;\n\t}\n\n\tget nvertices(): number {\n\t\tthis.triangulate();\n\t\treturn this._nvertices;\n\t}\n\n\tget distances(): number[] {\n\t\tthis.triangulate();\n\t\treturn this._distances;\n\t}\n\n\tget lengths(): number[] {\n\t\tthis.triangulate();\n\t\treturn this._lengths;\n\t}\n\n\tget clippings(): number[] {\n\t\tthis.triangulate();\n\t\treturn this._clippings;\n\t}\n\n\tget uvs(): number[] {\n\t\tthis.triangulate();\n\t\treturn this._uvs;\n\t}\n\n\tget indices(): number[] {\n\t\tthis.triangulate();\n\t\treturn this._indices;\n\t}\n\n\tget nindices(): number {\n\t\tthis.triangulate();\n\t\treturn this._nindices;\n\t}\n\n\tget boundary(): EShapeBoundary {\n\t\tthis.triangulate();\n\t\treturn this._boundary;\n\t}\n\n\tprotected triangulate(): void {\n\t\tconst isNotInitialized = this._id === 0;\n\n\t\tconst parent = this._parent;\n\t\tconst size = parent.size;\n\t\tconst width = size.x;\n\t\tconst height = size.y;\n\t\tconst isRectChanged = this._width !== width || this._height !== height;\n\n\t\tconst stroke = parent.stroke;\n\t\tconst strokeAlign = stroke.align;\n\t\tconst strokeWidth = stroke.enable ? stroke.width : 0;\n\t\tconst isStrokeChanged =\n\t\t\tthis._strokeAlign !== strokeAlign || this._strokeWidth !== strokeWidth;\n\n\t\tlet isSizeChanged = false;\n\t\tlet sizeX = this._sizeX;\n\t\tlet sizeY = this._sizeY;\n\t\tif (isRectChanged || isStrokeChanged) {\n\t\t\tthis._width = width;\n\t\t\tthis._height = height;\n\t\t\tthis._strokeAlign = strokeAlign;\n\t\t\tthis._strokeWidth = strokeWidth;\n\n\t\t\tconst s = strokeAlign * strokeWidth;\n\t\t\tsizeX = width * 0.5 + (0 <= width ? +s : -s);\n\t\t\tsizeY = height * 0.5 + (0 <= height ? +s : -s);\n\t\t\tisSizeChanged = this._sizeX !== sizeX || this._sizeY !== sizeY;\n\t\t}\n\n\t\tif (isNotInitialized || isSizeChanged || isStrokeChanged) {\n\t\t\tthis._sizeX = sizeX;\n\t\t\tthis._sizeY = sizeY;\n\t\t\tthis.update(sizeX, sizeY, 1.1);\n\t\t}\n\t}\n\n\tprotected update(sizeX: number, sizeY: number, scale: number): void {\n\t\t// Boundary\n\t\tconst ax = Math.abs(sizeX);\n\t\tconst ay = Math.abs(sizeY);\n\t\tconst boundary = this._boundary;\n\t\tboundary[0] = -ax;\n\t\tboundary[1] = -ay;\n\t\tboundary[2] = +ax;\n\t\tboundary[3] = +ay;\n\n\t\t// # of vertices and # of indices\n\t\tconst nv = 9;\n\t\tconst ni = 3;\n\t\tthis._nvertices = nv;\n\t\tthis._nindices = ni;\n\n\t\t// ID\n\t\tthis._id += 1;\n\n\t\t//\n\t\tif (sizeX === 0 || sizeY === 0) {\n\t\t\tthis.pad(0, 0, nv, ni, 0);\n\t\t} else {\n\t\t\tthis.updateAll(sizeX, sizeY, scale);\n\t\t}\n\t}\n\n\t/**\n\t * Fills the unused tail with degenerated triangles and trims the arrays\n\t * so that the buffers always hold exactly `nv` vertices and `ni` triangles.\n\t */\n\tprotected pad(iv: number, ii: number, nv: number, ni: number, fd: number): void {\n\t\tconst vertices = this._vertices;\n\t\tconst distances = this._distances;\n\t\tconst lengths = this._lengths;\n\t\tconst clippings = this._clippings;\n\t\tconst uvs = this._uvs;\n\t\tconst indices = this._indices;\n\n\t\tfor (let i = iv; i < nv; ++i) {\n\t\t\tconst i2 = i << 1;\n\t\t\tvertices[i2] = 0;\n\t\t\tvertices[i2 + 1] = 0;\n\t\t\tdistances[i] = fd;\n\t\t\tlengths[i] = 0;\n\t\t\tclippings[i] = 0;\n\t\t\tuvs[i2] = 0.5;\n\t\t\tuvs[i2 + 1] = 0.5;\n\t\t}\n\t\tfor (let i = ii, imax = ni * 3; i < imax; ++i) {\n\t\t\tindices[i] = 0;\n\t\t}\n\n\t\tconst nv2 = nv << 1;\n\t\tvertices.length = nv2;\n\t\tdistances.length = nv;\n\t\tlengths.length = nv;\n\t\tclippings.length = nv;\n\t\tuvs.length = nv2;\n\t\tindices.length = ni * 3;\n\t}\n\n\tprotected updateAll(sx: number, sy: number, scale: number): void {\n\t\tconst fx = 1 / sx;\n\t\tconst fy = 1 / sy;\n\t\tconst ax = Math.abs(sx);\n\t\tconst ay = Math.abs(sy);\n\t\t// The triangle is defined by the apex (0, -sy) and the two base\n\t\t// vertices (-sx, sy) and (sx, sy). The signs of sx and\n\t\t// sy intentionally preserve horizontal and vertical reflections.\n\t\t// The sloped edge spans ax horizontally and 2 * ay vertically.\n\t\tconst b = Math.sqrt(ax * ax + 4 * ay * ay);\n\t\t// The incenter lies on the vertical center line. This is its y-coordinate.\n\t\t// Along the median, the distances from the top vertex to the incenter and\n\t\t// from the incenter to the base are in the ratio 2 * side : base.\n\t\t// Thus, (ay + cy) : (ay - cy) = 2 * side : base.\n\t\t// 2 side (ay - cy) = base * (ay + cy)\n\t\t// 2 side ay - 2 side cy = base ay + base cy\n\t\t// (base + 2 side) cy = ay (2 side - base)\n\t\t// cy = ay (2 side - base) / (2 side + base)\n\t\t// cy = ay (2 side - 2 ax) / (2 side + 2 ax)\n\t\t// cy = ay (side - ax) / (side + ax)\n\t\tconst cx = 0;\n\t\tconst cy = (sy * (b - ax)) / (b + ax);\n\t\t// The distance from the incenter to every edge is the inradius.\n\t\t// Since 0 <= (side - ax) / (side + ax) <= 1, the incenter remains\n\t\t// between the apex and the base even when sy is negative.\n\t\tconst d = Math.abs(sy - cy);\n\t\tconst fd = 1 / d;\n\t\t// Expand the triangle around its incenter for anti-aliasing and strokes.\n\t\tconst x0 = 0;\n\t\tconst y0 = cy + scale * (-sy - cy);\n\t\tconst x1 = scale * sx;\n\t\tconst y1 = cy + scale * (sy - cy);\n\t\tconst x2 = -x1;\n\t\tconst y2 = y1;\n\n\t\t// Each cell has its own vertices because `length` is the arc length projected onto\n\t\t// the cell's edge. It is `lc` at the incenter (the tangent point) and\n\t\t// `lc + scale * (l - lc)` at the outer vertices so that it equals `l` at clipping = 1.\n\t\tconst indices = this._indices;\n\n\t\t// Top-to-right edge cell\n\t\tconst l0 = 0;\n\t\tconst l1 = l0 + b;\n\t\tconst lc0 = b - ax;\n\t\tthis.writeVertex(0, x0, y0, fd, lc0 + scale * (l0 - lc0), scale, fx, fy);\n\t\tthis.writeVertex(1, x1, y1, fd, lc0 + scale * (l1 - lc0), scale, fx, fy);\n\t\tthis.writeVertex(2, cx, cy, fd, lc0, 0, fx, fy);\n\n\t\t// Right-to-left base edge cell\n\t\tconst l2 = l1 + 2 * ax;\n\t\tconst lc1 = b + ax;\n\t\tthis.writeVertex(3, x1, y1, fd, lc1 + scale * (l1 - lc1), scale, fx, fy);\n\t\tthis.writeVertex(4, x2, y2, fd, lc1 + scale * (l2 - lc1), scale, fx, fy);\n\t\tthis.writeVertex(5, cx, cy, fd, lc1, 0, fx, fy);\n\n\t\t// Left-to-top edge cell\n\t\tconst l3 = l2 + b;\n\t\tconst lc2 = b + 3 * ax;\n\t\tthis.writeVertex(6, x2, y2, fd, lc2 + scale * (l2 - lc2), scale, fx, fy);\n\t\tthis.writeVertex(7, x0, y0, fd, lc2 + scale * (l3 - lc2), scale, fx, fy);\n\t\tthis.writeVertex(8, cx, cy, fd, lc2, 0, fx, fy);\n\n\t\tfor (let i = 0; i < 9; ++i) {\n\t\t\tindices[i] = i;\n\t\t}\n\t}\n\n\tprotected writeVertex(\n\t\tvertex: number,\n\t\tx: number,\n\t\ty: number,\n\t\tdistance: number,\n\t\tlength: number,\n\t\tclipping: number,\n\t\tfx: number,\n\t\tfy: number\n\t): void {\n\t\tconst vertex2 = vertex << 1;\n\t\tthis._vertices[vertex2] = x;\n\t\tthis._vertices[vertex2 + 1] = y;\n\t\tthis._distances[vertex] = distance;\n\t\tthis._lengths[vertex] = length;\n\t\tthis._clippings[vertex] = clipping;\n\t\tthis._uvs[vertex2] = 0.5 * (x * fx + 1);\n\t\tthis._uvs[vertex2 + 1] = 0.5 * (y * fy + 1);\n\t}\n}\n"]}
@@ -0,0 +1,79 @@
1
+ /*
2
+ * Copyright (C) 2019-2026 Toshiba Corporation
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ */
5
+ import { EShapeFillDirection } from "../e-shape-fill-direction";
6
+ import { EShapeStrokeSide } from "../e-shape-stroke-side";
7
+ import { toFanAngleCentric } from "./to-fan-angle-centric";
8
+ import { toFanAngleEccentric } from "./to-fan-angle-eccentric";
9
+ /**
10
+ * Tests whether the point is in the fan shrunk by `sa` at the arc and by `ss` at the straight sides.
11
+ *
12
+ * @param st - The sine of the half central angle
13
+ * @param ct - The cosine of the half central angle
14
+ */
15
+ var isInFan = function (x, y, ax, ay, st, ct, sa, ss) {
16
+ var wx = ax - sa;
17
+ var wy = ay - sa;
18
+ if (wx <= 0 || wy <= 0) {
19
+ return false;
20
+ }
21
+ var ex = x * wy;
22
+ var ey = y * wx;
23
+ if (wx * wy * wx * wy < ex * ex + ey * ey) {
24
+ return false;
25
+ }
26
+ var ay1 = st * y;
27
+ return -ct * x + ay1 <= -ss && ct * x + ay1 <= -ss;
28
+ };
29
+ var hitTestFanFill = function (shape, x, y, bx, by) {
30
+ var fill = shape.fill;
31
+ if (fill.enable) {
32
+ var percent = Math.max(0, Math.min(1, fill.percent));
33
+ if (1 <= percent) {
34
+ return true;
35
+ }
36
+ // The fill is relative to the bounding box [-bx, +bx] x [-by, 0] of the fan.
37
+ switch (fill.direction) {
38
+ case EShapeFillDirection.TOP:
39
+ return y + by <= percent * by;
40
+ case EShapeFillDirection.RIGHT:
41
+ return (1 - percent) * (2 * bx) <= x + bx;
42
+ case EShapeFillDirection.BOTTOM:
43
+ return (1 - percent) * by <= y + by;
44
+ case EShapeFillDirection.LEFT:
45
+ return x + bx <= percent * (2 * bx);
46
+ }
47
+ }
48
+ return false;
49
+ };
50
+ export var hitTestFan = function (shape, x, y, ax, ay, sw, ss) {
51
+ var ca = toFanAngleCentric(shape.angle);
52
+ if (ca <= 0 || ax <= 0 || ay <= 0) {
53
+ return false;
54
+ }
55
+ var ea = toFanAngleEccentric(ax, ay, ca);
56
+ var bx = ax * Math.sin(ea);
57
+ var st = Math.sin(ca);
58
+ var ct = Math.cos(ca);
59
+ var fill = shape.fill;
60
+ var strokeSide = shape.stroke.side;
61
+ var strokeSideTop = (strokeSide & EShapeStrokeSide.TOP) !== 0;
62
+ var strokeSideBottom = (strokeSide & EShapeStrokeSide.BOTTOM) !== 0;
63
+ var strokeWidth = strokeSideTop || strokeSideBottom ? sw : 0;
64
+ if ((fill.enable || 0 < strokeWidth) && isInFan(x, y, ax, ay, st, ct, 0, 0)) {
65
+ if (fill.enable && hitTestFanFill(shape, x, y, bx, ay)) {
66
+ return true;
67
+ }
68
+ if (0 < strokeWidth) {
69
+ var s = strokeWidth * ss;
70
+ var arc = strokeSideTop ? s : 0;
71
+ var sides = strokeSideBottom ? s : 0;
72
+ if (!isInFan(x, y, ax, ay, st, ct, arc, sides)) {
73
+ return true;
74
+ }
75
+ }
76
+ }
77
+ return false;
78
+ };
79
+ //# sourceMappingURL=hit-test-fan.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hit-test-fan.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/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,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC;gBAChD,OAAO,IAAI,CAAC;YACb,CAAC;QACF,CAAC;IACF,CAAC;IACD,OAAO,KAAK,CAAC;AACd,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019-2026 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type { EShape } from \"../e-shape\";\nimport { EShapeFillDirection } from \"../e-shape-fill-direction\";\nimport { EShapeStrokeSide } from \"../e-shape-stroke-side\";\nimport { toFanAngleCentric } from \"./to-fan-angle-centric\";\nimport { toFanAngleEccentric } from \"./to-fan-angle-eccentric\";\n\n/**\n * Tests whether the point is in the fan shrunk by `sa` at the arc and by `ss` at the straight sides.\n *\n * @param st - The sine of the half central angle\n * @param ct - The cosine of the half central angle\n */\nconst isInFan = (\n\tx: number,\n\ty: number,\n\tax: number,\n\tay: number,\n\tst: number,\n\tct: number,\n\tsa: number,\n\tss: number\n): boolean => {\n\tconst wx = ax - sa;\n\tconst wy = ay - sa;\n\tif (wx <= 0 || wy <= 0) {\n\t\treturn false;\n\t}\n\tconst ex = x * wy;\n\tconst ey = y * wx;\n\tif (wx * wy * wx * wy < ex * ex + ey * ey) {\n\t\treturn false;\n\t}\n\tconst ay1 = st * y;\n\treturn -ct * x + ay1 <= -ss && ct * x + ay1 <= -ss;\n};\n\nconst hitTestFanFill = (shape: EShape, x: number, y: number, bx: number, by: number): boolean => {\n\tconst fill = shape.fill;\n\tif (fill.enable) {\n\t\tconst percent = Math.max(0, Math.min(1, fill.percent));\n\t\tif (1 <= percent) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// The fill is relative to the bounding box [-bx, +bx] x [-by, 0] of the fan.\n\t\tswitch (fill.direction) {\n\t\t\tcase EShapeFillDirection.TOP:\n\t\t\t\treturn y + by <= percent * by;\n\t\t\tcase EShapeFillDirection.RIGHT:\n\t\t\t\treturn (1 - percent) * (2 * bx) <= x + bx;\n\t\t\tcase EShapeFillDirection.BOTTOM:\n\t\t\t\treturn (1 - percent) * by <= y + by;\n\t\t\tcase EShapeFillDirection.LEFT:\n\t\t\t\treturn x + bx <= percent * (2 * bx);\n\t\t}\n\t}\n\treturn false;\n};\n\nexport const hitTestFan = (\n\tshape: EShape,\n\tx: number,\n\ty: number,\n\tax: number,\n\tay: number,\n\tsw: number,\n\tss: number\n): boolean => {\n\tconst ca = toFanAngleCentric(shape.angle);\n\tif (ca <= 0 || ax <= 0 || ay <= 0) {\n\t\treturn false;\n\t}\n\n\tconst ea = toFanAngleEccentric(ax, ay, ca);\n\tconst bx = ax * Math.sin(ea);\n\tconst st = Math.sin(ca);\n\tconst ct = Math.cos(ca);\n\tconst fill = shape.fill;\n\tconst strokeSide = shape.stroke.side;\n\tconst strokeSideTop = (strokeSide & EShapeStrokeSide.TOP) !== 0;\n\tconst strokeSideBottom = (strokeSide & EShapeStrokeSide.BOTTOM) !== 0;\n\tconst strokeWidth = strokeSideTop || strokeSideBottom ? sw : 0;\n\tif ((fill.enable || 0 < strokeWidth) && isInFan(x, y, ax, ay, st, ct, 0, 0)) {\n\t\tif (fill.enable && hitTestFanFill(shape, x, y, bx, ay)) {\n\t\t\treturn true;\n\t\t}\n\t\tif (0 < strokeWidth) {\n\t\t\tconst s = strokeWidth * ss;\n\t\t\tconst arc = strokeSideTop ? s : 0;\n\t\t\tconst sides = strokeSideBottom ? s : 0;\n\t\t\tif (!isInFan(x, y, ax, ay, st, ct, arc, sides)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t}\n\treturn false;\n};\n"]}
@@ -15,6 +15,7 @@ export * from "./build-rectangle-legacy";
15
15
  export * from "./build-rectangle-rounded-legacy";
16
16
  export * from "./build-rectangle-rounded";
17
17
  export * from "./build-rectangle";
18
+ export * from "./build-semicircle-legacy";
18
19
  export * from "./build-semicircle";
19
20
  export * from "./build-text";
20
21
  export * from "./build-triangle-legacy";
@@ -87,6 +88,7 @@ export * from "./create-rectangle-pivoted-uploaded";
87
88
  export * from "./create-rectangle-rounded-legacy-uploaded";
88
89
  export * from "./create-rectangle-rounded-uploaded";
89
90
  export * from "./create-rectangle-uploaded";
91
+ export * from "./create-semicircle-legacy-uploaded";
90
92
  export * from "./create-semicircle-uploaded";
91
93
  export * from "./create-triangle-legacy-uploaded";
92
94
  export * from "./create-triangle-rounded-uploaded";
@@ -103,6 +105,7 @@ export * from "./deserialize-connector-line";
103
105
  export * from "./deserialize-embedded-acceptor-edge";
104
106
  export * from "./deserialize-embedded-layer";
105
107
  export * from "./deserialize-embedded";
108
+ export * from "./deserialize-fan";
106
109
  export * from "./deserialize-gradient";
107
110
  export * from "./deserialize-group-shadowed";
108
111
  export * from "./deserialize-group";
@@ -122,6 +125,7 @@ export * from "./deserialize-rectangle-pivoted";
122
125
  export * from "./deserialize-rectangle-rounded-legacy";
123
126
  export * from "./deserialize-rectangle-rounded";
124
127
  export * from "./deserialize-rectangle";
128
+ export * from "./deserialize-semicircle-legacy";
125
129
  export * from "./deserialize-semicircle";
126
130
  export * from "./deserialize-triangle-legacy";
127
131
  export * from "./deserialize-triangle-rounded";
@@ -151,6 +155,9 @@ export * from "./e-shape-embedded-layer-container";
151
155
  export * from "./e-shape-embedded-layer";
152
156
  export * from "./e-shape-embedded";
153
157
  export * from "./e-shape-embeddeds";
158
+ export * from "./e-shape-fan-triangulated-impl";
159
+ export * from "./e-shape-fan-triangulated";
160
+ export * from "./e-shape-fan";
154
161
  export * from "./e-shape-fill-impl-parent";
155
162
  export * from "./e-shape-fill-impl";
156
163
  export * from "./e-shape-group-fill-editor";
@@ -216,6 +223,7 @@ export * from "./e-shape-rectangle-rounded";
216
223
  export * from "./e-shape-rectangle-triangulated-impl";
217
224
  export * from "./e-shape-rectangle-triangulated";
218
225
  export * from "./e-shape-rectangle";
226
+ export * from "./e-shape-semicircle-legacy";
219
227
  export * from "./e-shape-semicircle";
220
228
  export * from "./e-shape-stroke-impl-parent";
221
229
  export * from "./e-shape-stroke-impl";
@@ -237,6 +245,7 @@ export * from "./e-shape-triangle-triangulated";
237
245
  export * from "./e-shape-triangle";
238
246
  export * from "./hit-test-bbox";
239
247
  export * from "./hit-test-circle";
248
+ export * from "./hit-test-fan";
240
249
  export * from "./hit-test-semicircle";
241
250
  export * from "./hit-test-rectangle-rounded";
242
251
  export * from "./hit-test-rectangle";
@@ -246,6 +255,8 @@ export * from "./is-shape-polygon-like";
246
255
  export * from "./is-static";
247
256
  export * from "./to-computed";
248
257
  export * from "./to-dash";
258
+ export * from "./to-fan-angle-centric";
259
+ export * from "./to-fan-angle-eccentric";
249
260
  export * from "./to-gradient-image-url";
250
261
  export * from "./to-gradient-serialized";
251
262
  export * from "./to-image-element";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kCAAkC,CAAC;AACjD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAA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6BAA6B,CAAC;AAC5C,cAAc,uCAAuC,CAAC;AACtD,cAAc,kCAAkC,CAAC;AACjD,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,kCAAkC,CAAC;AACjD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,mCAAmC,CAAC;AAClD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oCAAoC,CAAC;AACnD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mCAAmC,CAAC;AAClD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,yCAAyC,CAAC;AACxD,cAAc,sCAAsC,CAAC;AACrD,cAAc,iCAAiC,CAAC;AAChD,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport * from \"./build-bar\";\nexport * from \"./build-circle-legacy\";\nexport * from \"./build-circle\";\nexport * from \"./build-color\";\nexport * from \"./build-image-sdf\";\nexport * from \"./build-line-of-any\";\nexport * from \"./build-line\";\nexport * from \"./build-null\";\nexport * from \"./build-polygon\";\nexport * from \"./build-rectangle-legacy\";\nexport * from \"./build-rectangle-rounded-legacy\";\nexport * from \"./build-rectangle-rounded\";\nexport * from \"./build-rectangle\";\nexport * from \"./build-semicircle\";\nexport * from \"./build-text\";\nexport * from \"./build-triangle-legacy\";\nexport * from \"./build-triangle-rounded\";\nexport * from \"./build-triangle-rounded-legacy\";\nexport * from \"./build-triangle\";\nexport * from \"./builder-bar\";\nexport * from \"./builder-base\";\nexport * from \"./builder-circle-legacy\";\nexport * from \"./builder-circle\";\nexport * from \"./builder-image-sdf\";\nexport * from \"./builder-label\";\nexport * from \"./builder-line-of-any\";\nexport * from \"./builder-line-of-circles\";\nexport * from \"./builder-line-of-rectangle-roundeds\";\nexport * from \"./builder-line-of-rectangles\";\nexport * from \"./builder-line-of-triangle-roundeds\";\nexport * from \"./builder-line-of-triangles\";\nexport * from \"./builder-line\";\nexport * from \"./builder-marker-circle-head\";\nexport * from \"./builder-marker-circle-tail\";\nexport * from \"./builder-marker-circle\";\nexport * from \"./builder-marker-rectangle-head\";\nexport * from \"./builder-marker-rectangle-tail\";\nexport * from \"./builder-marker-rectangle\";\nexport * from \"./builder-marker-triangle-head\";\nexport * from \"./builder-marker-triangle-tail\";\nexport * from \"./builder-marker-triangle\";\nexport * from \"./builder-null\";\nexport * from \"./builder-polygon\";\nexport * from \"./builder-rectangle-legacy\";\nexport * from \"./builder-rectangle-pivoted\";\nexport * from \"./builder-rectangle-rounded-legacy\";\nexport * from \"./builder-rectangle-rounded\";\nexport * from \"./builder-rectangle\";\nexport * from \"./builder-semicircle\";\nexport * from \"./builder-text\";\nexport * from \"./builder-triangle-legacy\";\nexport * from \"./builder-triangle-rounded\";\nexport * from \"./builder-triangle-rounded-legacy\";\nexport * from \"./builder-triangle\";\nexport * from \"./builder\";\nexport * from \"./builders\";\nexport * from \"./copy-index\";\nexport * from \"./copy-step\";\nexport * from \"./copy-uv\";\nexport * from \"./copy-vertex\";\nexport * from \"./create-bar-uploaded\";\nexport * from \"./create-button-uploaded\";\nexport * from \"./create-circle-legacy-uploaded\";\nexport * from \"./create-circle-uploaded\";\nexport * from \"./create-group-uploaded\";\nexport * from \"./create-image-sdf-uploaded\";\nexport * from \"./create-image-sdf\";\nexport * from \"./create-image\";\nexport * from \"./create-label-uploaded\";\nexport * from \"./create-line-of-any-uploaded\";\nexport * from \"./create-line-of-circles-uploaded\";\nexport * from \"./create-line-of-rectangle-roundeds-uploaded\";\nexport * from \"./create-line-of-rectangles-uploaded\";\nexport * from \"./create-line-of-triangle-roundeds-uploaded\";\nexport * from \"./create-line-of-triangles-uploaded\";\nexport * from \"./create-line-uploaded\";\nexport * from \"./create-line\";\nexport * from \"./create-null-uploaded\";\nexport * from \"./create-polygon-uploaded\";\nexport * from \"./create-polygon\";\nexport * from \"./create-rectangle-legacy-uploaded\";\nexport * from \"./create-rectangle-pivoted-uploaded\";\nexport * from \"./create-rectangle-rounded-legacy-uploaded\";\nexport * from \"./create-rectangle-rounded-uploaded\";\nexport * from \"./create-rectangle-uploaded\";\nexport * from \"./create-semicircle-uploaded\";\nexport * from \"./create-triangle-legacy-uploaded\";\nexport * from \"./create-triangle-rounded-uploaded\";\nexport * from \"./create-triangle-rounded-legacy-uploaded\";\nexport * from \"./create-triangle-uploaded\";\nexport * from \"./deserialize-all\";\nexport * from \"./deserialize-bar\";\nexport * from \"./deserialize-base\";\nexport * from \"./deserialize-button\";\nexport * from \"./deserialize-circle-legacy\";\nexport * from \"./deserialize-circle\";\nexport * from \"./deserialize-connector-elbow\";\nexport * from \"./deserialize-connector-line\";\nexport * from \"./deserialize-embedded-acceptor-edge\";\nexport * from \"./deserialize-embedded-layer\";\nexport * from \"./deserialize-embedded\";\nexport * from \"./deserialize-gradient\";\nexport * from \"./deserialize-group-shadowed\";\nexport * from \"./deserialize-group\";\nexport * from \"./deserialize-image-sdf\";\nexport * from \"./deserialize-image\";\nexport * from \"./deserialize-label\";\nexport * from \"./deserialize-line-of-circles\";\nexport * from \"./deserialize-line-of-rectangle-roundeds\";\nexport * from \"./deserialize-line-of-rectangles\";\nexport * from \"./deserialize-line-of-triangle-roundeds\";\nexport * from \"./deserialize-line-of-triangles\";\nexport * from \"./deserialize-line\";\nexport * from \"./deserialize-null\";\nexport * from \"./deserialize-polygon\";\nexport * from \"./deserialize-rectangle-legacy\";\nexport * from \"./deserialize-rectangle-pivoted\";\nexport * from \"./deserialize-rectangle-rounded-legacy\";\nexport * from \"./deserialize-rectangle-rounded\";\nexport * from \"./deserialize-rectangle\";\nexport * from \"./deserialize-semicircle\";\nexport * from \"./deserialize-triangle-legacy\";\nexport * from \"./deserialize-triangle-rounded\";\nexport * from \"./deserialize-triangle-rounded-legacy\";\nexport * from \"./deserialize-triangle\";\nexport * from \"./deserialize\";\nexport * from \"./e-shape-bar-points\";\nexport * from \"./e-shape-bar-position\";\nexport * from \"./e-shape-bar\";\nexport * from \"./e-shape-base-hit-test-data\";\nexport * from \"./e-shape-base\";\nexport * from \"./e-shape-button-runtime-action-toggle\";\nexport * from \"./e-shape-button-runtime-action\";\nexport * from \"./e-shape-button-runtime\";\nexport * from \"./e-shape-button\";\nexport * from \"./e-shape-circle-legacy\";\nexport * from \"./e-shape-circle-triangulated-impl\";\nexport * from \"./e-shape-circle-triangulated\";\nexport * from \"./e-shape-circle\";\nexport * from \"./e-shape-connector-elbow-points-filler\";\nexport * from \"./e-shape-connector-elbow\";\nexport * from \"./e-shape-connector-line\";\nexport * from \"./e-shape-embedded-acceptor-edge\";\nexport * from \"./e-shape-embedded-acceptor\";\nexport * from \"./e-shape-embedded-datum\";\nexport * from \"./e-shape-embedded-layer-container\";\nexport * from \"./e-shape-embedded-layer\";\nexport * from \"./e-shape-embedded\";\nexport * from \"./e-shape-embeddeds\";\nexport * from \"./e-shape-fill-impl-parent\";\nexport * from \"./e-shape-fill-impl\";\nexport * from \"./e-shape-group-fill-editor\";\nexport * from \"./e-shape-group-fill-viewer\";\nexport * from \"./e-shape-group-points\";\nexport * from \"./e-shape-group-property-parent\";\nexport * from \"./e-shape-group-shadowed\";\nexport * from \"./e-shape-group-size-editor\";\nexport * from \"./e-shape-group-size-layout\";\nexport * from \"./e-shape-group-size-parent\";\nexport * from \"./e-shape-group-size-shadowed\";\nexport * from \"./e-shape-group-size-viewer\";\nexport * from \"./e-shape-group-size\";\nexport * from \"./e-shape-group-stroke-editor\";\nexport * from \"./e-shape-group-stroke-viewer\";\nexport * from \"./e-shape-group-viewer\";\nexport * from \"./e-shape-group\";\nexport * from \"./e-shape-image-sdf\";\nexport * from \"./e-shape-image\";\nexport * from \"./e-shape-label\";\nexport * from \"./e-shape-line-base-hit-part\";\nexport * from \"./e-shape-line-base-points-hit-tester-to-range\";\nexport * from \"./e-shape-line-base-points-hit-tester-to-threshold\";\nexport * from \"./e-shape-line-base-points-hit-tester\";\nexport * from \"./e-shape-line-base-points\";\nexport * from \"./e-shape-line-base\";\nexport * from \"./e-shape-line-of-any-points-fill-impl\";\nexport * from \"./e-shape-line-of-any-points-fill\";\nexport * from \"./e-shape-line-of-any-points-hit-tester-to-range\";\nexport * from \"./e-shape-line-of-any-points-hit-tester-to-threshold\";\nexport * from \"./e-shape-line-of-any-points-hit-tester\";\nexport * from \"./e-shape-line-of-any-points-impl\";\nexport * from \"./e-shape-line-of-any-points-point-impl\";\nexport * from \"./e-shape-line-of-any-points-point\";\nexport * from \"./e-shape-line-of-any-points-stroke-impl\";\nexport * from \"./e-shape-line-of-any-points-stroke\";\nexport * from \"./e-shape-line-of-any-points\";\nexport * from \"./e-shape-line-of-any-value\";\nexport * from \"./e-shape-line-of-any\";\nexport * from \"./e-shape-line-of-circles\";\nexport * from \"./e-shape-line-of-rectangle-roundeds\";\nexport * from \"./e-shape-line-of-rectangles\";\nexport * from \"./e-shape-line-of-triangle-roundeds\";\nexport * from \"./e-shape-line-of-triangles\";\nexport * from \"./e-shape-line-points\";\nexport * from \"./e-shape-line\";\nexport * from \"./e-shape-lock-part\";\nexport * from \"./e-shape-lock\";\nexport * from \"./e-shape-null\";\nexport * from \"./e-shape-polygon-like\";\nexport * from \"./e-shape-polygon-points\";\nexport * from \"./e-shape-polygon-triangulated-impl\";\nexport * from \"./e-shape-polygon-triangulated-like\";\nexport * from \"./e-shape-polygon-triangulated\";\nexport * from \"./e-shape-polygon\";\nexport * from \"./e-shape-primitive\";\nexport * from \"./e-shape-rectangle-legacy\";\nexport * from \"./e-shape-rectangle-pivoted\";\nexport * from \"./e-shape-rectangle-rounded-legacy\";\nexport * from \"./e-shape-rectangle-rounded-triangulated-impl\";\nexport * from \"./e-shape-rectangle-rounded-triangulated\";\nexport * from \"./e-shape-rectangle-rounded\";\nexport * from \"./e-shape-rectangle-triangulated-impl\";\nexport * from \"./e-shape-rectangle-triangulated\";\nexport * from \"./e-shape-rectangle\";\nexport * from \"./e-shape-semicircle\";\nexport * from \"./e-shape-stroke-impl-parent\";\nexport * from \"./e-shape-stroke-impl\";\nexport * from \"./e-shape-text-align-impl-parent\";\nexport * from \"./e-shape-text-align-impl\";\nexport * from \"./e-shape-text-impl-parent\";\nexport * from \"./e-shape-text-impl\";\nexport * from \"./e-shape-text-offset-impl-parent\";\nexport * from \"./e-shape-text-offset-impl\";\nexport * from \"./e-shape-text-outline-impl-parent\";\nexport * from \"./e-shape-text-outline-impl\";\nexport * from \"./e-shape-triangle-legacy\";\nexport * from \"./e-shape-triangle-rounded\";\nexport * from \"./e-shape-triangle-rounded-legacy\";\nexport * from \"./e-shape-triangle-rounded-triangulated-impl\";\nexport * from \"./e-shape-triangle-rounded-triangulated\";\nexport * from \"./e-shape-triangle-triangulated-impl\";\nexport * from \"./e-shape-triangle-triangulated\";\nexport * from \"./e-shape-triangle\";\nexport * from \"./hit-test-bbox\";\nexport * from \"./hit-test-circle\";\nexport * from \"./hit-test-semicircle\";\nexport * from \"./hit-test-rectangle-rounded\";\nexport * from \"./hit-test-rectangle\";\nexport * from \"./hit-test-triangle-rounded\";\nexport * from \"./hit-test-triangle\";\nexport * from \"./is-shape-polygon-like\";\nexport * from \"./is-static\";\nexport * from \"./to-computed\";\nexport * from \"./to-dash\";\nexport * from \"./to-gradient-image-url\";\nexport * from \"./to-gradient-serialized\";\nexport * from \"./to-image-element\";\nexport * from \"./to-length\";\nexport * from \"./to-resized\";\nexport * from \"./to-scale-invariant\";\nexport * from \"./to-size-normalized\";\nexport * from \"./to-size-rounded\";\nexport * from \"./to-threshold-default\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kCAAkC,CAAC;AACjD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sCA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AAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport * from \"./build-bar\";\nexport * from \"./build-circle-legacy\";\nexport * from \"./build-circle\";\nexport * from \"./build-color\";\nexport * from \"./build-image-sdf\";\nexport * from \"./build-line-of-any\";\nexport * from \"./build-line\";\nexport * from \"./build-null\";\nexport * from \"./build-polygon\";\nexport * from \"./build-rectangle-legacy\";\nexport * from \"./build-rectangle-rounded-legacy\";\nexport * from \"./build-rectangle-rounded\";\nexport * from \"./build-rectangle\";\nexport * from \"./build-semicircle-legacy\";\nexport * from \"./build-semicircle\";\nexport * from \"./build-text\";\nexport * from \"./build-triangle-legacy\";\nexport * from \"./build-triangle-rounded\";\nexport * from \"./build-triangle-rounded-legacy\";\nexport * from \"./build-triangle\";\nexport * from \"./builder-bar\";\nexport * from \"./builder-base\";\nexport * from \"./builder-circle-legacy\";\nexport * from \"./builder-circle\";\nexport * from \"./builder-image-sdf\";\nexport * from \"./builder-label\";\nexport * from \"./builder-line-of-any\";\nexport * from \"./builder-line-of-circles\";\nexport * from \"./builder-line-of-rectangle-roundeds\";\nexport * from \"./builder-line-of-rectangles\";\nexport * from \"./builder-line-of-triangle-roundeds\";\nexport * from \"./builder-line-of-triangles\";\nexport * from \"./builder-line\";\nexport * from \"./builder-marker-circle-head\";\nexport * from \"./builder-marker-circle-tail\";\nexport * from \"./builder-marker-circle\";\nexport * from \"./builder-marker-rectangle-head\";\nexport * from \"./builder-marker-rectangle-tail\";\nexport * from \"./builder-marker-rectangle\";\nexport * from \"./builder-marker-triangle-head\";\nexport * from \"./builder-marker-triangle-tail\";\nexport * from \"./builder-marker-triangle\";\nexport * from \"./builder-null\";\nexport * from \"./builder-polygon\";\nexport * from \"./builder-rectangle-legacy\";\nexport * from \"./builder-rectangle-pivoted\";\nexport * from \"./builder-rectangle-rounded-legacy\";\nexport * from \"./builder-rectangle-rounded\";\nexport * from \"./builder-rectangle\";\nexport * from \"./builder-semicircle\";\nexport * from \"./builder-text\";\nexport * from \"./builder-triangle-legacy\";\nexport * from \"./builder-triangle-rounded\";\nexport * from \"./builder-triangle-rounded-legacy\";\nexport * from \"./builder-triangle\";\nexport * from \"./builder\";\nexport * from \"./builders\";\nexport * from \"./copy-index\";\nexport * from \"./copy-step\";\nexport * from \"./copy-uv\";\nexport * from \"./copy-vertex\";\nexport * from \"./create-bar-uploaded\";\nexport * from \"./create-button-uploaded\";\nexport * from \"./create-circle-legacy-uploaded\";\nexport * from \"./create-circle-uploaded\";\nexport * from \"./create-group-uploaded\";\nexport * from \"./create-image-sdf-uploaded\";\nexport * from \"./create-image-sdf\";\nexport * from \"./create-image\";\nexport * from \"./create-label-uploaded\";\nexport * from \"./create-line-of-any-uploaded\";\nexport * from \"./create-line-of-circles-uploaded\";\nexport * from \"./create-line-of-rectangle-roundeds-uploaded\";\nexport * from \"./create-line-of-rectangles-uploaded\";\nexport * from \"./create-line-of-triangle-roundeds-uploaded\";\nexport * from \"./create-line-of-triangles-uploaded\";\nexport * from \"./create-line-uploaded\";\nexport * from \"./create-line\";\nexport * from \"./create-null-uploaded\";\nexport * from \"./create-polygon-uploaded\";\nexport * from \"./create-polygon\";\nexport * from \"./create-rectangle-legacy-uploaded\";\nexport * from \"./create-rectangle-pivoted-uploaded\";\nexport * from \"./create-rectangle-rounded-legacy-uploaded\";\nexport * from \"./create-rectangle-rounded-uploaded\";\nexport * from \"./create-rectangle-uploaded\";\nexport * from \"./create-semicircle-legacy-uploaded\";\nexport * from \"./create-semicircle-uploaded\";\nexport * from \"./create-triangle-legacy-uploaded\";\nexport * from \"./create-triangle-rounded-uploaded\";\nexport * from \"./create-triangle-rounded-legacy-uploaded\";\nexport * from \"./create-triangle-uploaded\";\nexport * from \"./deserialize-all\";\nexport * from \"./deserialize-bar\";\nexport * from \"./deserialize-base\";\nexport * from \"./deserialize-button\";\nexport * from \"./deserialize-circle-legacy\";\nexport * from \"./deserialize-circle\";\nexport * from \"./deserialize-connector-elbow\";\nexport * from \"./deserialize-connector-line\";\nexport * from \"./deserialize-embedded-acceptor-edge\";\nexport * from \"./deserialize-embedded-layer\";\nexport * from \"./deserialize-embedded\";\nexport * from \"./deserialize-fan\";\nexport * from \"./deserialize-gradient\";\nexport * from \"./deserialize-group-shadowed\";\nexport * from \"./deserialize-group\";\nexport * from \"./deserialize-image-sdf\";\nexport * from \"./deserialize-image\";\nexport * from \"./deserialize-label\";\nexport * from \"./deserialize-line-of-circles\";\nexport * from \"./deserialize-line-of-rectangle-roundeds\";\nexport * from \"./deserialize-line-of-rectangles\";\nexport * from \"./deserialize-line-of-triangle-roundeds\";\nexport * from \"./deserialize-line-of-triangles\";\nexport * from \"./deserialize-line\";\nexport * from \"./deserialize-null\";\nexport * from \"./deserialize-polygon\";\nexport * from \"./deserialize-rectangle-legacy\";\nexport * from \"./deserialize-rectangle-pivoted\";\nexport * from \"./deserialize-rectangle-rounded-legacy\";\nexport * from \"./deserialize-rectangle-rounded\";\nexport * from \"./deserialize-rectangle\";\nexport * from \"./deserialize-semicircle-legacy\";\nexport * from \"./deserialize-semicircle\";\nexport * from \"./deserialize-triangle-legacy\";\nexport * from \"./deserialize-triangle-rounded\";\nexport * from \"./deserialize-triangle-rounded-legacy\";\nexport * from \"./deserialize-triangle\";\nexport * from \"./deserialize\";\nexport * from \"./e-shape-bar-points\";\nexport * from \"./e-shape-bar-position\";\nexport * from \"./e-shape-bar\";\nexport * from \"./e-shape-base-hit-test-data\";\nexport * from \"./e-shape-base\";\nexport * from \"./e-shape-button-runtime-action-toggle\";\nexport * from \"./e-shape-button-runtime-action\";\nexport * from \"./e-shape-button-runtime\";\nexport * from \"./e-shape-button\";\nexport * from \"./e-shape-circle-legacy\";\nexport * from \"./e-shape-circle-triangulated-impl\";\nexport * from \"./e-shape-circle-triangulated\";\nexport * from \"./e-shape-circle\";\nexport * from \"./e-shape-connector-elbow-points-filler\";\nexport * from \"./e-shape-connector-elbow\";\nexport * from \"./e-shape-connector-line\";\nexport * from \"./e-shape-embedded-acceptor-edge\";\nexport * from \"./e-shape-embedded-acceptor\";\nexport * from \"./e-shape-embedded-datum\";\nexport * from \"./e-shape-embedded-layer-container\";\nexport * from \"./e-shape-embedded-layer\";\nexport * from \"./e-shape-embedded\";\nexport * from \"./e-shape-embeddeds\";\nexport * from \"./e-shape-fan-triangulated-impl\";\nexport * from \"./e-shape-fan-triangulated\";\nexport * from \"./e-shape-fan\";\nexport * from \"./e-shape-fill-impl-parent\";\nexport * from \"./e-shape-fill-impl\";\nexport * from \"./e-shape-group-fill-editor\";\nexport * from \"./e-shape-group-fill-viewer\";\nexport * from \"./e-shape-group-points\";\nexport * from \"./e-shape-group-property-parent\";\nexport * from \"./e-shape-group-shadowed\";\nexport * from \"./e-shape-group-size-editor\";\nexport * from \"./e-shape-group-size-layout\";\nexport * from \"./e-shape-group-size-parent\";\nexport * from \"./e-shape-group-size-shadowed\";\nexport * from \"./e-shape-group-size-viewer\";\nexport * from \"./e-shape-group-size\";\nexport * from \"./e-shape-group-stroke-editor\";\nexport * from \"./e-shape-group-stroke-viewer\";\nexport * from \"./e-shape-group-viewer\";\nexport * from \"./e-shape-group\";\nexport * from \"./e-shape-image-sdf\";\nexport * from \"./e-shape-image\";\nexport * from \"./e-shape-label\";\nexport * from \"./e-shape-line-base-hit-part\";\nexport * from \"./e-shape-line-base-points-hit-tester-to-range\";\nexport * from \"./e-shape-line-base-points-hit-tester-to-threshold\";\nexport * from \"./e-shape-line-base-points-hit-tester\";\nexport * from \"./e-shape-line-base-points\";\nexport * from \"./e-shape-line-base\";\nexport * from \"./e-shape-line-of-any-points-fill-impl\";\nexport * from \"./e-shape-line-of-any-points-fill\";\nexport * from \"./e-shape-line-of-any-points-hit-tester-to-range\";\nexport * from \"./e-shape-line-of-any-points-hit-tester-to-threshold\";\nexport * from \"./e-shape-line-of-any-points-hit-tester\";\nexport * from \"./e-shape-line-of-any-points-impl\";\nexport * from \"./e-shape-line-of-any-points-point-impl\";\nexport * from \"./e-shape-line-of-any-points-point\";\nexport * from \"./e-shape-line-of-any-points-stroke-impl\";\nexport * from \"./e-shape-line-of-any-points-stroke\";\nexport * from \"./e-shape-line-of-any-points\";\nexport * from \"./e-shape-line-of-any-value\";\nexport * from \"./e-shape-line-of-any\";\nexport * from \"./e-shape-line-of-circles\";\nexport * from \"./e-shape-line-of-rectangle-roundeds\";\nexport * from \"./e-shape-line-of-rectangles\";\nexport * from \"./e-shape-line-of-triangle-roundeds\";\nexport * from \"./e-shape-line-of-triangles\";\nexport * from \"./e-shape-line-points\";\nexport * from \"./e-shape-line\";\nexport * from \"./e-shape-lock-part\";\nexport * from \"./e-shape-lock\";\nexport * from \"./e-shape-null\";\nexport * from \"./e-shape-polygon-like\";\nexport * from \"./e-shape-polygon-points\";\nexport * from \"./e-shape-polygon-triangulated-impl\";\nexport * from \"./e-shape-polygon-triangulated-like\";\nexport * from \"./e-shape-polygon-triangulated\";\nexport * from \"./e-shape-polygon\";\nexport * from \"./e-shape-primitive\";\nexport * from \"./e-shape-rectangle-legacy\";\nexport * from \"./e-shape-rectangle-pivoted\";\nexport * from \"./e-shape-rectangle-rounded-legacy\";\nexport * from \"./e-shape-rectangle-rounded-triangulated-impl\";\nexport * from \"./e-shape-rectangle-rounded-triangulated\";\nexport * from \"./e-shape-rectangle-rounded\";\nexport * from \"./e-shape-rectangle-triangulated-impl\";\nexport * from \"./e-shape-rectangle-triangulated\";\nexport * from \"./e-shape-rectangle\";\nexport * from \"./e-shape-semicircle-legacy\";\nexport * from \"./e-shape-semicircle\";\nexport * from \"./e-shape-stroke-impl-parent\";\nexport * from \"./e-shape-stroke-impl\";\nexport * from \"./e-shape-text-align-impl-parent\";\nexport * from \"./e-shape-text-align-impl\";\nexport * from \"./e-shape-text-impl-parent\";\nexport * from \"./e-shape-text-impl\";\nexport * from \"./e-shape-text-offset-impl-parent\";\nexport * from \"./e-shape-text-offset-impl\";\nexport * from \"./e-shape-text-outline-impl-parent\";\nexport * from \"./e-shape-text-outline-impl\";\nexport * from \"./e-shape-triangle-legacy\";\nexport * from \"./e-shape-triangle-rounded\";\nexport * from \"./e-shape-triangle-rounded-legacy\";\nexport * from \"./e-shape-triangle-rounded-triangulated-impl\";\nexport * from \"./e-shape-triangle-rounded-triangulated\";\nexport * from \"./e-shape-triangle-triangulated-impl\";\nexport * from \"./e-shape-triangle-triangulated\";\nexport * from \"./e-shape-triangle\";\nexport * from \"./hit-test-bbox\";\nexport * from \"./hit-test-circle\";\nexport * from \"./hit-test-fan\";\nexport * from \"./hit-test-semicircle\";\nexport * from \"./hit-test-rectangle-rounded\";\nexport * from \"./hit-test-rectangle\";\nexport * from \"./hit-test-triangle-rounded\";\nexport * from \"./hit-test-triangle\";\nexport * from \"./is-shape-polygon-like\";\nexport * from \"./is-static\";\nexport * from \"./to-computed\";\nexport * from \"./to-dash\";\nexport * from \"./to-fan-angle-centric\";\nexport * from \"./to-fan-angle-eccentric\";\nexport * from \"./to-gradient-image-url\";\nexport * from \"./to-gradient-serialized\";\nexport * from \"./to-image-element\";\nexport * from \"./to-length\";\nexport * from \"./to-resized\";\nexport * from \"./to-scale-invariant\";\nexport * from \"./to-size-normalized\";\nexport * from \"./to-size-rounded\";\nexport * from \"./to-threshold-default\";\n"]}
@@ -0,0 +1,11 @@
1
+ /*
2
+ * Copyright (C) 2019-2026 Toshiba Corporation
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ */
5
+ /**
6
+ * Converts an angle ratio to the half central angle of a fan in [0, PI / 2].
7
+ */
8
+ export var toFanAngleCentric = function (angle) {
9
+ return Math.PI * Math.max(0, Math.min(0.5, angle));
10
+ };
11
+ //# sourceMappingURL=to-fan-angle-centric.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"to-fan-angle-centric.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/to-fan-angle-centric.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,CAAC,IAAM,iBAAiB,GAAG,UAAC,KAAa;IAC9C,OAAO,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;AACpD,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019-2026 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * Converts an angle ratio to the half central angle of a fan in [0, PI / 2].\n */\nexport const toFanAngleCentric = (angle: number): number => {\n\treturn Math.PI * Math.max(0, Math.min(0.5, angle));\n};\n"]}
@@ -0,0 +1,12 @@
1
+ /*
2
+ * Copyright (C) 2019-2026 Toshiba Corporation
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ */
5
+ /**
6
+ * Converts the half central angle of fans to the eccentric angle of the arc end points
7
+ * of the fan whose arc is on the ellipse with the semi-axes (w, h).
8
+ */
9
+ export var toFanAngleEccentric = function (w, h, theta) {
10
+ return Math.atan((h / w) * Math.tan(theta));
11
+ };
12
+ //# sourceMappingURL=to-fan-angle-eccentric.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"to-fan-angle-eccentric.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/to-fan-angle-eccentric.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;GAGG;AACH,MAAM,CAAC,IAAM,mBAAmB,GAAG,UAAC,CAAS,EAAE,CAAS,EAAE,KAAa;IACtE,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;AAC7C,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019-2026 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * Converts the half central angle of fans to the eccentric angle of the arc end points\n * of the fan whose arc is on the ellipse with the semi-axes (w, h).\n */\nexport const toFanAngleEccentric = (w: number, h: number, theta: number): number => {\n\treturn Math.atan((h / w) * Math.tan(theta));\n};\n"]}
@@ -56,6 +56,9 @@ var EThemeDarkShape = /** @class */ (function () {
56
56
  EThemeDarkShape.prototype.getRadius = function () {
57
57
  return 0.25;
58
58
  };
59
+ EThemeDarkShape.prototype.getAngle = function () {
60
+ return 0.333;
61
+ };
59
62
  EThemeDarkShape.prototype.getSizeX = function () {
60
63
  return 100;
61
64
  };
@@ -1 +1 @@
1
- {"version":3,"file":"e-theme-dark-shape.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/theme/dark/e-theme-dark-shape.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAErE;IAAA;IAoFA,CAAC;IAnFA,sCAAY,GAAZ;QACC,OAAO,QAAQ,CAAC;IACjB,CAAC;IAED,sCAAY,GAAZ;QACC,OAAO,GAAG,CAAC;IACZ,CAAC;IAED,0CAAgB,GAAhB;QACC,OAAO,mBAAmB,CAAC,MAAM,CAAC;IACnC,CAAC;IAED,wCAAc,GAAd;QACC,OAAO,CAAC,CAAC;IACV,CAAC;IAED,wCAAc,GAAd;QACC,OAAO,QAAQ,CAAC;IACjB,CAAC;IAED,wCAAc,GAAd;QACC,OAAO,CAAC,CAAC;IACV,CAAC;IAED,wCAAc,GAAd;QACC,OAAO,CAAC,CAAC;IACV,CAAC;IAED,wCAAc,GAAd;QACC,OAAO,CAAC,CAAC;IACV,CAAC;IAED,uCAAa,GAAb;QACC,OAAO,gBAAgB,CAAC,GAAG,CAAC;IAC7B,CAAC;IAED,wCAAc,GAAd;QACC,OAAO,iBAAiB,CAAC,IAAI,CAAC;IAC/B,CAAC;IAED,sCAAY,GAAZ;QACC,OAAO,EAAE,CAAC;IACX,CAAC;IAED,sCAAY,GAAZ;QACC,OAAO,IAAI,CAAC,cAAc,EAAE,CAAC;IAC9B,CAAC;IAED,sCAAY,GAAZ;QACC,OAAO,IAAI,CAAC,cAAc,EAAE,CAAC;IAC9B,CAAC;IAED,uCAAa,GAAb;QACC,OAAO,MAAM,CAAC;IACf,CAAC;IAED,qCAAW,GAAX;QACC,OAAO,EAAE,CAAC;IACX,CAAC;IAED,mCAAS,GAAT;QACC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,kCAAQ,GAAR;QACC,OAAO,GAAG,CAAC;IACZ,CAAC;IAED,kCAAQ,GAAR;QACC,OAAO,GAAG,CAAC;IACZ,CAAC;IAED,2CAAiB,GAAjB;QACC,OAAO,QAAQ,CAAC;IACjB,CAAC;IAED,8CAAoB,GAApB;QACC,OAAO,EAAE,CAAC;IACX,CAAC;IAED,+CAAqB,GAArB;QACC,OAAO,EAAE,CAAC;IACX,CAAC;IACF,sBAAC;AAAD,CAAC,AApFD,IAoFC","sourcesContent":["/*\n * Copyright (C) 2021 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EThemeShape } from \"../../shape/e-shape-defaults\";\nimport { EShapeFillDirection } from \"../../shape/e-shape-fill-direction\";\nimport { EShapeStrokeSide } from \"../../shape/e-shape-stroke-side\";\nimport { EShapeStrokeStyle } from \"../../shape/e-shape-stroke-style\";\n\nexport class EThemeDarkShape implements EThemeShape {\n\tgetFillColor(): number {\n\t\treturn 0xffffff;\n\t}\n\n\tgetFillAlpha(): number {\n\t\treturn 0.2;\n\t}\n\n\tgetFillDirection(): EShapeFillDirection {\n\t\treturn EShapeFillDirection.BOTTOM;\n\t}\n\n\tgetFillPercent(): number {\n\t\treturn 1;\n\t}\n\n\tgetStrokeColor(): number {\n\t\treturn 0xdddddd;\n\t}\n\n\tgetStrokeAlpha(): number {\n\t\treturn 1;\n\t}\n\n\tgetStrokeWidth(): number {\n\t\treturn 2;\n\t}\n\n\tgetStrokeAlign(): number {\n\t\treturn 0;\n\t}\n\n\tgetStrokeSide(): EShapeStrokeSide {\n\t\treturn EShapeStrokeSide.ALL;\n\t}\n\n\tgetStrokeStyle(): EShapeStrokeStyle {\n\t\treturn EShapeStrokeStyle.NONE;\n\t}\n\n\tgetTextValue(): string {\n\t\treturn \"\";\n\t}\n\n\tgetTextColor(): number {\n\t\treturn this.getStrokeColor();\n\t}\n\n\tgetTextAlpha(): number {\n\t\treturn this.getStrokeAlpha();\n\t}\n\n\tgetTextFamily(): string {\n\t\treturn \"auto\";\n\t}\n\n\tgetTextSize(): number {\n\t\treturn 14;\n\t}\n\n\tgetRadius(): number {\n\t\treturn 0.25;\n\t}\n\n\tgetSizeX(): number {\n\t\treturn 100;\n\t}\n\n\tgetSizeY(): number {\n\t\treturn 100;\n\t}\n\n\tgetHighlightColor(): number {\n\t\treturn 0x1e87f0;\n\t}\n\n\tgetCurveSegmentCount(): number {\n\t\treturn 24;\n\t}\n\n\tgetCircleSegmentCount(): number {\n\t\treturn 48;\n\t}\n}\n"]}
1
+ {"version":3,"file":"e-theme-dark-shape.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/theme/dark/e-theme-dark-shape.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAErE;IAAA;IAwFA,CAAC;IAvFA,sCAAY,GAAZ;QACC,OAAO,QAAQ,CAAC;IACjB,CAAC;IAED,sCAAY,GAAZ;QACC,OAAO,GAAG,CAAC;IACZ,CAAC;IAED,0CAAgB,GAAhB;QACC,OAAO,mBAAmB,CAAC,MAAM,CAAC;IACnC,CAAC;IAED,wCAAc,GAAd;QACC,OAAO,CAAC,CAAC;IACV,CAAC;IAED,wCAAc,GAAd;QACC,OAAO,QAAQ,CAAC;IACjB,CAAC;IAED,wCAAc,GAAd;QACC,OAAO,CAAC,CAAC;IACV,CAAC;IAED,wCAAc,GAAd;QACC,OAAO,CAAC,CAAC;IACV,CAAC;IAED,wCAAc,GAAd;QACC,OAAO,CAAC,CAAC;IACV,CAAC;IAED,uCAAa,GAAb;QACC,OAAO,gBAAgB,CAAC,GAAG,CAAC;IAC7B,CAAC;IAED,wCAAc,GAAd;QACC,OAAO,iBAAiB,CAAC,IAAI,CAAC;IAC/B,CAAC;IAED,sCAAY,GAAZ;QACC,OAAO,EAAE,CAAC;IACX,CAAC;IAED,sCAAY,GAAZ;QACC,OAAO,IAAI,CAAC,cAAc,EAAE,CAAC;IAC9B,CAAC;IAED,sCAAY,GAAZ;QACC,OAAO,IAAI,CAAC,cAAc,EAAE,CAAC;IAC9B,CAAC;IAED,uCAAa,GAAb;QACC,OAAO,MAAM,CAAC;IACf,CAAC;IAED,qCAAW,GAAX;QACC,OAAO,EAAE,CAAC;IACX,CAAC;IAED,mCAAS,GAAT;QACC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,kCAAQ,GAAR;QACC,OAAO,KAAK,CAAC;IACd,CAAC;IAED,kCAAQ,GAAR;QACC,OAAO,GAAG,CAAC;IACZ,CAAC;IAED,kCAAQ,GAAR;QACC,OAAO,GAAG,CAAC;IACZ,CAAC;IAED,2CAAiB,GAAjB;QACC,OAAO,QAAQ,CAAC;IACjB,CAAC;IAED,8CAAoB,GAApB;QACC,OAAO,EAAE,CAAC;IACX,CAAC;IAED,+CAAqB,GAArB;QACC,OAAO,EAAE,CAAC;IACX,CAAC;IACF,sBAAC;AAAD,CAAC,AAxFD,IAwFC","sourcesContent":["/*\n * Copyright (C) 2021 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EThemeShape } from \"../../shape/e-shape-defaults\";\nimport { EShapeFillDirection } from \"../../shape/e-shape-fill-direction\";\nimport { EShapeStrokeSide } from \"../../shape/e-shape-stroke-side\";\nimport { EShapeStrokeStyle } from \"../../shape/e-shape-stroke-style\";\n\nexport class EThemeDarkShape implements EThemeShape {\n\tgetFillColor(): number {\n\t\treturn 0xffffff;\n\t}\n\n\tgetFillAlpha(): number {\n\t\treturn 0.2;\n\t}\n\n\tgetFillDirection(): EShapeFillDirection {\n\t\treturn EShapeFillDirection.BOTTOM;\n\t}\n\n\tgetFillPercent(): number {\n\t\treturn 1;\n\t}\n\n\tgetStrokeColor(): number {\n\t\treturn 0xdddddd;\n\t}\n\n\tgetStrokeAlpha(): number {\n\t\treturn 1;\n\t}\n\n\tgetStrokeWidth(): number {\n\t\treturn 2;\n\t}\n\n\tgetStrokeAlign(): number {\n\t\treturn 0;\n\t}\n\n\tgetStrokeSide(): EShapeStrokeSide {\n\t\treturn EShapeStrokeSide.ALL;\n\t}\n\n\tgetStrokeStyle(): EShapeStrokeStyle {\n\t\treturn EShapeStrokeStyle.NONE;\n\t}\n\n\tgetTextValue(): string {\n\t\treturn \"\";\n\t}\n\n\tgetTextColor(): number {\n\t\treturn this.getStrokeColor();\n\t}\n\n\tgetTextAlpha(): number {\n\t\treturn this.getStrokeAlpha();\n\t}\n\n\tgetTextFamily(): string {\n\t\treturn \"auto\";\n\t}\n\n\tgetTextSize(): number {\n\t\treturn 14;\n\t}\n\n\tgetRadius(): number {\n\t\treturn 0.25;\n\t}\n\n\tgetAngle(): number {\n\t\treturn 0.333;\n\t}\n\n\tgetSizeX(): number {\n\t\treturn 100;\n\t}\n\n\tgetSizeY(): number {\n\t\treturn 100;\n\t}\n\n\tgetHighlightColor(): number {\n\t\treturn 0x1e87f0;\n\t}\n\n\tgetCurveSegmentCount(): number {\n\t\treturn 24;\n\t}\n\n\tgetCircleSegmentCount(): number {\n\t\treturn 48;\n\t}\n}\n"]}
@@ -56,6 +56,9 @@ var EThemeWhiteShape = /** @class */ (function () {
56
56
  EThemeWhiteShape.prototype.getRadius = function () {
57
57
  return 0.25;
58
58
  };
59
+ EThemeWhiteShape.prototype.getAngle = function () {
60
+ return 0.333;
61
+ };
59
62
  EThemeWhiteShape.prototype.getSizeX = function () {
60
63
  return 100;
61
64
  };