@wcardinal/wcardinal-ui 0.469.0 → 0.470.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/dist/types/wcardinal/ui/shape/e-shape-type.d.ts +1 -1
  2. package/dist/types/wcardinal/ui/shape/load/index.d.ts +1 -1
  3. package/dist/types/wcardinal/ui/shape/load/load-shape-sector.d.ts +1 -0
  4. package/dist/types/wcardinal/ui/shape/variant/deserialize-sector.d.ts +4 -0
  5. package/dist/types/wcardinal/ui/shape/variant/{e-shape-fan-triangulated-impl.d.ts → e-shape-sector-triangulated-impl.d.ts} +9 -9
  6. package/dist/types/wcardinal/ui/shape/variant/{e-shape-fan-triangulated.d.ts → e-shape-sector-triangulated.d.ts} +1 -1
  7. package/dist/types/wcardinal/ui/shape/variant/{e-shape-fan.d.ts → e-shape-sector.d.ts} +7 -7
  8. package/dist/types/wcardinal/ui/shape/variant/e-shape-semicircle.d.ts +4 -4
  9. package/dist/types/wcardinal/ui/shape/variant/e-shape-triangle-rounded-triangulated-impl.d.ts +2 -1
  10. package/dist/types/wcardinal/ui/shape/variant/hit-test-sector.d.ts +2 -0
  11. package/dist/types/wcardinal/ui/shape/variant/index.d.ts +7 -7
  12. package/dist/types/wcardinal/ui/shape/variant/to-sector-angle-centric.d.ts +4 -0
  13. package/dist/types/wcardinal/ui/shape/variant/to-sector-angle-eccentric.d.ts +5 -0
  14. package/dist/wcardinal/ui/shape/e-shape-type.js +1 -1
  15. package/dist/wcardinal/ui/shape/e-shape-type.js.map +1 -1
  16. package/dist/wcardinal/ui/shape/load/index.js +1 -1
  17. package/dist/wcardinal/ui/shape/load/index.js.map +1 -1
  18. package/dist/wcardinal/ui/shape/load/load-shape-all.js +2 -2
  19. package/dist/wcardinal/ui/shape/load/load-shape-all.js.map +1 -1
  20. package/dist/wcardinal/ui/shape/load/{load-shape-fan.js → load-shape-sector.js} +6 -6
  21. package/dist/wcardinal/ui/shape/load/load-shape-sector.js.map +1 -0
  22. package/dist/wcardinal/ui/shape/variant/{deserialize-fan.js → deserialize-sector.js} +4 -4
  23. package/dist/wcardinal/ui/shape/variant/deserialize-sector.js.map +1 -0
  24. package/dist/wcardinal/ui/shape/variant/{e-shape-fan-triangulated-impl.js → e-shape-sector-triangulated-impl.js} +103 -103
  25. package/dist/wcardinal/ui/shape/variant/e-shape-sector-triangulated-impl.js.map +1 -0
  26. package/dist/wcardinal/ui/shape/variant/{e-shape-fan-triangulated.js → e-shape-sector-triangulated.js} +1 -1
  27. package/dist/wcardinal/ui/shape/variant/e-shape-sector-triangulated.js.map +1 -0
  28. package/dist/wcardinal/ui/shape/variant/{e-shape-fan.js → e-shape-sector.js} +23 -23
  29. package/dist/wcardinal/ui/shape/variant/e-shape-sector.js.map +1 -0
  30. package/dist/wcardinal/ui/shape/variant/e-shape-semicircle.js +4 -4
  31. package/dist/wcardinal/ui/shape/variant/e-shape-semicircle.js.map +1 -1
  32. package/dist/wcardinal/ui/shape/variant/e-shape-triangle-rounded-triangulated-impl.js +44 -11
  33. package/dist/wcardinal/ui/shape/variant/e-shape-triangle-rounded-triangulated-impl.js.map +1 -1
  34. package/dist/wcardinal/ui/shape/variant/{hit-test-fan.js → hit-test-sector.js} +13 -13
  35. package/dist/wcardinal/ui/shape/variant/hit-test-sector.js.map +1 -0
  36. package/dist/wcardinal/ui/shape/variant/hit-test-triangle-rounded.js +33 -2
  37. package/dist/wcardinal/ui/shape/variant/hit-test-triangle-rounded.js.map +1 -1
  38. package/dist/wcardinal/ui/shape/variant/index.js +7 -7
  39. package/dist/wcardinal/ui/shape/variant/index.js.map +1 -1
  40. package/dist/wcardinal/ui/shape/variant/to-sector-angle-centric.js +11 -0
  41. package/dist/wcardinal/ui/shape/variant/to-sector-angle-centric.js.map +1 -0
  42. package/dist/wcardinal/ui/shape/variant/to-sector-angle-eccentric.js +12 -0
  43. package/dist/wcardinal/ui/shape/variant/to-sector-angle-eccentric.js.map +1 -0
  44. package/dist/wcardinal-ui-theme-dark-en-us.js +1 -1
  45. package/dist/wcardinal-ui-theme-dark-en-us.min.js +1 -1
  46. package/dist/wcardinal-ui-theme-dark-ja-jp.js +1 -1
  47. package/dist/wcardinal-ui-theme-dark-ja-jp.min.js +1 -1
  48. package/dist/wcardinal-ui-theme-dark.js +1 -1
  49. package/dist/wcardinal-ui-theme-dark.min.js +1 -1
  50. package/dist/wcardinal-ui-theme-white-en-us.js +1 -1
  51. package/dist/wcardinal-ui-theme-white-en-us.min.js +1 -1
  52. package/dist/wcardinal-ui-theme-white-ja-jp.js +1 -1
  53. package/dist/wcardinal-ui-theme-white-ja-jp.min.js +1 -1
  54. package/dist/wcardinal-ui-theme-white.js +1 -1
  55. package/dist/wcardinal-ui-theme-white.min.js +1 -1
  56. package/dist/wcardinal-ui.cjs.js +227 -163
  57. package/dist/wcardinal-ui.js +227 -163
  58. package/dist/wcardinal-ui.min.js +2 -2
  59. package/dist/wcardinal-ui.min.js.map +1 -1
  60. package/package.json +1 -1
  61. package/dist/types/wcardinal/ui/shape/load/load-shape-fan.d.ts +0 -1
  62. package/dist/types/wcardinal/ui/shape/variant/deserialize-fan.d.ts +0 -4
  63. package/dist/types/wcardinal/ui/shape/variant/hit-test-fan.d.ts +0 -2
  64. package/dist/types/wcardinal/ui/shape/variant/to-fan-angle-centric.d.ts +0 -4
  65. package/dist/types/wcardinal/ui/shape/variant/to-fan-angle-eccentric.d.ts +0 -5
  66. package/dist/wcardinal/ui/shape/load/load-shape-fan.js.map +0 -1
  67. package/dist/wcardinal/ui/shape/variant/deserialize-fan.js.map +0 -1
  68. package/dist/wcardinal/ui/shape/variant/e-shape-fan-triangulated-impl.js.map +0 -1
  69. package/dist/wcardinal/ui/shape/variant/e-shape-fan-triangulated.js.map +0 -1
  70. package/dist/wcardinal/ui/shape/variant/e-shape-fan.js.map +0 -1
  71. package/dist/wcardinal/ui/shape/variant/hit-test-fan.js.map +0 -1
  72. package/dist/wcardinal/ui/shape/variant/to-fan-angle-centric.js +0 -11
  73. package/dist/wcardinal/ui/shape/variant/to-fan-angle-centric.js.map +0 -1
  74. package/dist/wcardinal/ui/shape/variant/to-fan-angle-eccentric.js +0 -12
  75. package/dist/wcardinal/ui/shape/variant/to-fan-angle-eccentric.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"hit-test-triangle-rounded.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/hit-test-triangle-rounded.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,IAAM,eAAe,GAAG,UACvB,CAAS,EACT,CAAS,EACT,CAAS,EACT,EAAU,EACV,EAAU,EACV,EAAU,EACV,MAAe;IAEf,IAAI,MAAM,EAAE,CAAC;QACZ,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;YAC5B,OAAO,IAAI,CAAC;QACb,CAAC;IACF,CAAC;SAAM,CAAC;QACP,IAAI,CAAC,GAAG,EAAE,EAAE,CAAC;YACZ,IAAM,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YACxB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;gBAChB,IAAM,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;gBAClD,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;oBAChB,OAAO,IAAI,CAAC;gBACb,CAAC;YACF,CAAC;QACF,CAAC;IACF,CAAC;IACD,OAAO,KAAK,CAAC;AACd,CAAC,C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AAI,CAAC,GAAG,EAAE,CAAC,IAAI,2BAA2B,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC;QACpF,IAAI,IAAI,CAAC,MAAM,IAAI,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,CAAC;YACpD,OAAO,IAAI,CAAC;QACb,CAAC;QACD,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,2BAA2B,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;YAC1E,OAAO,IAAI,CAAC;QACb,CAAC;IACF,CAAC;IACD,OAAO,KAAK,CAAC;AACd,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShape } from \"../e-shape\";\nimport { EShapeCorner } from \"../e-shape-corner\";\nimport { hitTestTriangleFilled } from \"./hit-test-triangle\";\nimport { hitTestFill } from \"./hit-test-fill\";\n\nconst containsCorner_ = (\n\tx: number,\n\ty: number,\n\tr: number,\n\taw: number,\n\tsw: number,\n\tss: number,\n\tfilled: boolean\n): boolean => {\n\tif (filled) {\n\t\tif (x * x + y * y <= r * r) {\n\t\t\treturn true;\n\t\t}\n\t} else {\n\t\tif (0 < sw) {\n\t\t\tconst d = x * x + y * y;\n\t\t\tif (d <= r * r) {\n\t\t\t\tconst w = Math.max(0.0, r * (1 - (sw * ss) / aw));\n\t\t\t\tif (w * w <= d) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn false;\n};\n\nconst containsCorner = (\n\tx: number,\n\ty: number,\n\tx0: number,\n\ty0: number,\n\tx1: number,\n\ty1: number,\n\tx2: number,\n\ty2: number,\n\tx3: number,\n\ty3: number,\n\tr12: number,\n\tr13: number,\n\taw: number,\n\tradius: number,\n\tsw: number,\n\tss: number,\n\tfilled: boolean\n): boolean => {\n\tconst xl = x1 + r12 * (x2 - x1) - x0;\n\tconst yl = y1 + r12 * (y2 - y1) - y0;\n\tconst n = Math.sqrt(xl * xl + yl * yl);\n\tconst threshold = 0.00001;\n\tif (threshold < n) {\n\t\tconst ni = 1 / n;\n\t\tconst nlx = xl * ni;\n\t\tconst nly = yl * ni;\n\n\t\tconst xr = x1 + r13 * (x3 - x1) - x0;\n\t\tconst yr = y1 + r13 * (y3 - y1) - y0;\n\t\tconst nrx = xr * ni;\n\t\tconst nry = yr * ni;\n\n\t\tconst det = nlx * nry - nrx * nly;\n\t\tif (threshold < Math.abs(det)) {\n\t\t\tconst deti = 1 / det;\n\t\t\tconst xc = x - x0;\n\t\t\tconst yc = y - y0;\n\t\t\tconst dx = (+nry * xc - nrx * yc) * deti;\n\t\t\tconst dy = (-nly * xc + nlx * yc) * deti;\n\t\t\tif (containsCorner_(dx, dy, n, aw * radius, sw, ss, filled)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t}\n\treturn false;\n};\n\nconst hitTestTriangleRoundedImpl = (\n\tshape: EShape,\n\tx: number,\n\ty: number,\n\tax: number,\n\tay: number,\n\tsw: number,\n\tss: number,\n\tfilled: boolean\n): boolean => {\n\tconst a = (2 * ay) / ax;\n\tif (hitTestTriangleFilled(x, y, a, -ay, +ay)) {\n\t\tconst az = Math.sqrt(ax * ax + 4 * ay * ay);\n\t\tconst aw = (2 * ax * ay) / (ax + az);\n\t\tconst radius = shape.radius;\n\n\t\tconst x0 = 0;\n\t\tconst y0 = ay - aw;\n\t\tconst x1 = 0;\n\t\tconst y1 = -ay;\n\t\tconst x4 = +ax;\n\t\tconst y4 = +ay;\n\t\tconst x7 = -x4;\n\t\tconst y7 = +y4;\n\t\tconst x10 = x1 + radius * (x0 - x1);\n\t\tconst y10 = y1 + radius * (y0 - y1);\n\t\tconst x11 = x4 + radius * (x0 - x4);\n\t\tconst y11 = y4 + radius * (y0 - y4);\n\t\tconst y12 = +y11;\n\t\tconst x12 = -x11;\n\n\t\tconst c0 = -a * x + y10 - y <= 0;\n\t\tconst c1 = +a * x + y10 - y <= 0;\n\t\tconst c2 = y <= y11;\n\t\tconst corner = shape.corner;\n\t\tif (!c0 && !c1 && corner & EShapeCorner.TOP) {\n\t\t\t// Top corner\n\t\t\tconst rz = (0.5 * (az - aw) * radius) / az;\n\t\t\tif (\n\t\t\t\tcontainsCorner(\n\t\t\t\t\tx,\n\t\t\t\t\ty,\n\t\t\t\t\tx10,\n\t\t\t\t\ty10,\n\t\t\t\t\tx1,\n\t\t\t\t\ty1,\n\t\t\t\t\tx7,\n\t\t\t\t\ty7,\n\t\t\t\t\tx4,\n\t\t\t\t\ty4,\n\t\t\t\t\trz,\n\t\t\t\t\trz,\n\t\t\t\t\taw,\n\t\t\t\t\tradius,\n\t\t\t\t\tsw,\n\t\t\t\t\tss,\n\t\t\t\t\tfilled\n\t\t\t\t)\n\t\t\t) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} else if (!c0 && !c2 && corner & EShapeCorner.BOTTOM_LEFT) {\n\t\t\t// Bottom-left corner\n\t\t\tconst ry = (aw * radius) / (2 * ay);\n\t\t\tconst rx = (ry * az) / (2 * ax);\n\t\t\tif (\n\t\t\t\tcontainsCorner(\n\t\t\t\t\tx,\n\t\t\t\t\ty,\n\t\t\t\t\tx12,\n\t\t\t\t\ty12,\n\t\t\t\t\tx7,\n\t\t\t\t\ty7,\n\t\t\t\t\tx4,\n\t\t\t\t\ty4,\n\t\t\t\t\tx1,\n\t\t\t\t\ty1,\n\t\t\t\t\trx,\n\t\t\t\t\try,\n\t\t\t\t\taw,\n\t\t\t\t\tradius,\n\t\t\t\t\tsw,\n\t\t\t\t\tss,\n\t\t\t\t\tfilled\n\t\t\t\t)\n\t\t\t) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} else if (!c1 && !c2 && corner & EShapeCorner.BOTTOM_RIGHT) {\n\t\t\t// Bottom-right corner\n\t\t\tconst ry = (aw * radius) / (2 * ay);\n\t\t\tconst rx = (ry * az) / (2 * ax);\n\t\t\tif (\n\t\t\t\tcontainsCorner(\n\t\t\t\t\tx,\n\t\t\t\t\ty,\n\t\t\t\t\tx11,\n\t\t\t\t\ty11,\n\t\t\t\t\tx4,\n\t\t\t\t\ty4,\n\t\t\t\t\tx1,\n\t\t\t\t\ty1,\n\t\t\t\t\tx7,\n\t\t\t\t\ty7,\n\t\t\t\t\try,\n\t\t\t\t\trx,\n\t\t\t\t\taw,\n\t\t\t\t\tradius,\n\t\t\t\t\tsw,\n\t\t\t\t\tss,\n\t\t\t\t\tfilled\n\t\t\t\t)\n\t\t\t) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} else {\n\t\t\t// Others\n\t\t\tif (filled) {\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tif (0 < sw) {\n\t\t\t\t\tconst s = sw * ss;\n\t\t\t\t\tconst cy = ay - aw;\n\t\t\t\t\tconst ay1 = cy + ((-ay - cy) * Math.max(0.0, aw - s)) / aw;\n\t\t\t\t\tconst ay2 = ay - s;\n\t\t\t\t\tif (!hitTestTriangleFilled(x, y, a, ay1, ay2)) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn false;\n};\n\nexport const hitTestTriangleRoundedLegacy = (\n\tshape: EShape,\n\tx: number,\n\ty: number,\n\tax: number,\n\tay: number,\n\tsw: number,\n\tss: number\n): boolean => {\n\treturn hitTestTriangleRoundedImpl(shape, x, y, ax, ay, sw, ss, shape.fill.enable);\n};\n\n/**\n * Returns true if the point is in the cone with the apex (cx, cy) spanned by the unit normals n1 and n2\n * but outside the circle of radius `rho`, that is, in the part cut off by a rounded corner.\n */\nconst isCutByCorner = (\n\tx: number,\n\ty: number,\n\tcx: number,\n\tcy: number,\n\tn1x: number,\n\tn1y: number,\n\tn2x: number,\n\tn2y: number,\n\trho: number\n): boolean => {\n\tconst dx = x - cx;\n\tconst dy = y - cy;\n\tconst det = n1x * n2y - n1y * n2x;\n\tconst a = (dx * n2y - dy * n2x) / det;\n\tconst b = (n1x * dy - n1y * dx) / det;\n\treturn 0 <= a && 0 <= b && rho * rho < dx * dx + dy * dy;\n};\n\n/**\n * Tests whether the point is in the rounded triangle shrunk by `s`.\n * Sharp corners and corners whose radius is not larger than `s` stay sharp.\n */\nconst hitTestTriangleRoundedInset = (\n\tshape: EShape,\n\tx: number,\n\ty: number,\n\tax: number,\n\tay: number,\n\ts: number\n): boolean => {\n\tconst az = Math.sqrt(ax * ax + 4 * ay * ay);\n\t// The outward unit normals of the left side (nlx, nly) and the right side (-nlx, nly)\n\tconst nlx = (-2 * ay) / az;\n\tconst nly = -ax / az;\n\tconst yt = y + ay;\n\tif (-s < nlx * x + nly * yt || -s < -nlx * x + nly * yt || ay - s < y) {\n\t\treturn false;\n\t}\n\n\tconst radius = shape.radius;\n\tconst aw = (2 * ax * ay) / (ax + az);\n\tconst rho = radius * aw - s;\n\tif (0 < rho) {\n\t\tconst corner = shape.corner;\n\t\tconst cby = ay - radius * aw;\n\t\tif (\n\t\t\tcorner & EShapeCorner.TOP &&\n\t\t\tisCutByCorner(x, y, 0, -ay + radius * (2 * ay - aw), nlx, nly, -nlx, nly, rho)\n\t\t) {\n\t\t\treturn false;\n\t\t}\n\t\tif (\n\t\t\tcorner & EShapeCorner.BOTTOM_RIGHT &&\n\t\t\tisCutByCorner(x, y, ax * (1 - radius), cby, -nlx, nly, 0, 1, rho)\n\t\t) {\n\t\t\treturn false;\n\t\t}\n\t\tif (\n\t\t\tcorner & EShapeCorner.BOTTOM_LEFT &&\n\t\t\tisCutByCorner(x, y, -ax * (1 - radius), cby, nlx, nly, 0, 1, rho)\n\t\t) {\n\t\t\treturn false;\n\t\t}\n\t}\n\treturn true;\n};\n\nexport const hitTestTriangleRounded = (\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 fill = shape.fill;\n\tif ((fill.enable || 0 < sw) && hitTestTriangleRoundedInset(shape, x, y, ax, ay, 0)) {\n\t\tif (fill.enable && hitTestFill(x, y, ax, ay, fill)) {\n\t\t\treturn true;\n\t\t}\n\t\tif (0 < sw && !hitTestTriangleRoundedInset(shape, x, y, ax, ay, sw * ss)) {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n};\n"]}
1
+ {"version":3,"file":"hit-test-triangle-rounded.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/hit-test-triangle-rounded.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,IAAM,eAAe,GAAG,UACvB,CAAS,EACT,CAAS,EACT,CAAS,EACT,EAAU,EACV,EAAU,EACV,EAAU,EACV,MAAe;IAEf,IAAI,MAAM,EAAE,CAAC;QACZ,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;YAC5B,OAAO,IAAI,CAAC;QACb,CAAC;IACF,CAAC;SAAM,CAAC;QACP,IAAI,CAAC,GAAG,EAAE,EAAE,CAAC;YACZ,IAAM,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YACxB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;gBAChB,IAAM,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;gBAClD,IAAI,CAAC,GAAG,CAAC,IAAI,CA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,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;YAC1E,OAAO,IAAI,CAAC;QACb,CAAC;IACF,CAAC;IACD,OAAO,KAAK,CAAC;AACd,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShape } from \"../e-shape\";\nimport { EShapeCorner } from \"../e-shape-corner\";\nimport { EShapeFillDirection } from \"../e-shape-fill-direction\";\nimport { hitTestTriangleFilled } from \"./hit-test-triangle\";\n\nconst containsCorner_ = (\n\tx: number,\n\ty: number,\n\tr: number,\n\taw: number,\n\tsw: number,\n\tss: number,\n\tfilled: boolean\n): boolean => {\n\tif (filled) {\n\t\tif (x * x + y * y <= r * r) {\n\t\t\treturn true;\n\t\t}\n\t} else {\n\t\tif (0 < sw) {\n\t\t\tconst d = x * x + y * y;\n\t\t\tif (d <= r * r) {\n\t\t\t\tconst w = Math.max(0.0, r * (1 - (sw * ss) / aw));\n\t\t\t\tif (w * w <= d) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn false;\n};\n\nconst containsCorner = (\n\tx: number,\n\ty: number,\n\tx0: number,\n\ty0: number,\n\tx1: number,\n\ty1: number,\n\tx2: number,\n\ty2: number,\n\tx3: number,\n\ty3: number,\n\tr12: number,\n\tr13: number,\n\taw: number,\n\tradius: number,\n\tsw: number,\n\tss: number,\n\tfilled: boolean\n): boolean => {\n\tconst xl = x1 + r12 * (x2 - x1) - x0;\n\tconst yl = y1 + r12 * (y2 - y1) - y0;\n\tconst n = Math.sqrt(xl * xl + yl * yl);\n\tconst threshold = 0.00001;\n\tif (threshold < n) {\n\t\tconst ni = 1 / n;\n\t\tconst nlx = xl * ni;\n\t\tconst nly = yl * ni;\n\n\t\tconst xr = x1 + r13 * (x3 - x1) - x0;\n\t\tconst yr = y1 + r13 * (y3 - y1) - y0;\n\t\tconst nrx = xr * ni;\n\t\tconst nry = yr * ni;\n\n\t\tconst det = nlx * nry - nrx * nly;\n\t\tif (threshold < Math.abs(det)) {\n\t\t\tconst deti = 1 / det;\n\t\t\tconst xc = x - x0;\n\t\t\tconst yc = y - y0;\n\t\t\tconst dx = (+nry * xc - nrx * yc) * deti;\n\t\t\tconst dy = (-nly * xc + nlx * yc) * deti;\n\t\t\tif (containsCorner_(dx, dy, n, aw * radius, sw, ss, filled)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t}\n\treturn false;\n};\n\nconst hitTestTriangleRoundedImpl = (\n\tshape: EShape,\n\tx: number,\n\ty: number,\n\tax: number,\n\tay: number,\n\tsw: number,\n\tss: number,\n\tfilled: boolean\n): boolean => {\n\tconst a = (2 * ay) / ax;\n\tif (hitTestTriangleFilled(x, y, a, -ay, +ay)) {\n\t\tconst az = Math.sqrt(ax * ax + 4 * ay * ay);\n\t\tconst aw = (2 * ax * ay) / (ax + az);\n\t\tconst radius = shape.radius;\n\n\t\tconst x0 = 0;\n\t\tconst y0 = ay - aw;\n\t\tconst x1 = 0;\n\t\tconst y1 = -ay;\n\t\tconst x4 = +ax;\n\t\tconst y4 = +ay;\n\t\tconst x7 = -x4;\n\t\tconst y7 = +y4;\n\t\tconst x10 = x1 + radius * (x0 - x1);\n\t\tconst y10 = y1 + radius * (y0 - y1);\n\t\tconst x11 = x4 + radius * (x0 - x4);\n\t\tconst y11 = y4 + radius * (y0 - y4);\n\t\tconst y12 = +y11;\n\t\tconst x12 = -x11;\n\n\t\tconst c0 = -a * x + y10 - y <= 0;\n\t\tconst c1 = +a * x + y10 - y <= 0;\n\t\tconst c2 = y <= y11;\n\t\tconst corner = shape.corner;\n\t\tif (!c0 && !c1 && corner & EShapeCorner.TOP) {\n\t\t\t// Top corner\n\t\t\tconst rz = (0.5 * (az - aw) * radius) / az;\n\t\t\tif (\n\t\t\t\tcontainsCorner(\n\t\t\t\t\tx,\n\t\t\t\t\ty,\n\t\t\t\t\tx10,\n\t\t\t\t\ty10,\n\t\t\t\t\tx1,\n\t\t\t\t\ty1,\n\t\t\t\t\tx7,\n\t\t\t\t\ty7,\n\t\t\t\t\tx4,\n\t\t\t\t\ty4,\n\t\t\t\t\trz,\n\t\t\t\t\trz,\n\t\t\t\t\taw,\n\t\t\t\t\tradius,\n\t\t\t\t\tsw,\n\t\t\t\t\tss,\n\t\t\t\t\tfilled\n\t\t\t\t)\n\t\t\t) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} else if (!c0 && !c2 && corner & EShapeCorner.BOTTOM_LEFT) {\n\t\t\t// Bottom-left corner\n\t\t\tconst ry = (aw * radius) / (2 * ay);\n\t\t\tconst rx = (ry * az) / (2 * ax);\n\t\t\tif (\n\t\t\t\tcontainsCorner(\n\t\t\t\t\tx,\n\t\t\t\t\ty,\n\t\t\t\t\tx12,\n\t\t\t\t\ty12,\n\t\t\t\t\tx7,\n\t\t\t\t\ty7,\n\t\t\t\t\tx4,\n\t\t\t\t\ty4,\n\t\t\t\t\tx1,\n\t\t\t\t\ty1,\n\t\t\t\t\trx,\n\t\t\t\t\try,\n\t\t\t\t\taw,\n\t\t\t\t\tradius,\n\t\t\t\t\tsw,\n\t\t\t\t\tss,\n\t\t\t\t\tfilled\n\t\t\t\t)\n\t\t\t) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} else if (!c1 && !c2 && corner & EShapeCorner.BOTTOM_RIGHT) {\n\t\t\t// Bottom-right corner\n\t\t\tconst ry = (aw * radius) / (2 * ay);\n\t\t\tconst rx = (ry * az) / (2 * ax);\n\t\t\tif (\n\t\t\t\tcontainsCorner(\n\t\t\t\t\tx,\n\t\t\t\t\ty,\n\t\t\t\t\tx11,\n\t\t\t\t\ty11,\n\t\t\t\t\tx4,\n\t\t\t\t\ty4,\n\t\t\t\t\tx1,\n\t\t\t\t\ty1,\n\t\t\t\t\tx7,\n\t\t\t\t\ty7,\n\t\t\t\t\try,\n\t\t\t\t\trx,\n\t\t\t\t\taw,\n\t\t\t\t\tradius,\n\t\t\t\t\tsw,\n\t\t\t\t\tss,\n\t\t\t\t\tfilled\n\t\t\t\t)\n\t\t\t) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} else {\n\t\t\t// Others\n\t\t\tif (filled) {\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tif (0 < sw) {\n\t\t\t\t\tconst s = sw * ss;\n\t\t\t\t\tconst cy = ay - aw;\n\t\t\t\t\tconst ay1 = cy + ((-ay - cy) * Math.max(0.0, aw - s)) / aw;\n\t\t\t\t\tconst ay2 = ay - s;\n\t\t\t\t\tif (!hitTestTriangleFilled(x, y, a, ay1, ay2)) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn false;\n};\n\nexport const hitTestTriangleRoundedLegacy = (\n\tshape: EShape,\n\tx: number,\n\ty: number,\n\tax: number,\n\tay: number,\n\tsw: number,\n\tss: number\n): boolean => {\n\treturn hitTestTriangleRoundedImpl(shape, x, y, ax, ay, sw, ss, shape.fill.enable);\n};\n\n/**\n * Returns true if the point is in the cone with the apex (cx, cy) spanned by the unit normals n1 and n2\n * but outside the circle of radius `rho`, that is, in the part cut off by a rounded corner.\n */\nconst isCutByCorner = (\n\tx: number,\n\ty: number,\n\tcx: number,\n\tcy: number,\n\tn1x: number,\n\tn1y: number,\n\tn2x: number,\n\tn2y: number,\n\trho: number\n): boolean => {\n\tconst dx = x - cx;\n\tconst dy = y - cy;\n\tconst det = n1x * n2y - n1y * n2x;\n\tconst a = (dx * n2y - dy * n2x) / det;\n\tconst b = (n1x * dy - n1y * dx) / det;\n\treturn 0 <= a && 0 <= b && rho * rho < dx * dx + dy * dy;\n};\n\n/**\n * Tests whether the point is in the rounded triangle shrunk by `s`.\n * Sharp corners and corners whose radius is not larger than `s` stay sharp.\n */\nconst hitTestTriangleRoundedInset = (\n\tshape: EShape,\n\tx: number,\n\ty: number,\n\tax: number,\n\tay: number,\n\ts: number\n): boolean => {\n\tconst az = Math.sqrt(ax * ax + 4 * ay * ay);\n\t// The outward unit normals of the left side (nlx, nly) and the right side (-nlx, nly)\n\tconst nlx = (-2 * ay) / az;\n\tconst nly = -ax / az;\n\tconst yt = y + ay;\n\tif (-s < nlx * x + nly * yt || -s < -nlx * x + nly * yt || ay - s < y) {\n\t\treturn false;\n\t}\n\n\tconst radius = shape.radius;\n\tconst aw = (2 * ax * ay) / (ax + az);\n\tconst rho = radius * aw - s;\n\tif (0 < rho) {\n\t\tconst corner = shape.corner;\n\t\tconst cby = ay - radius * aw;\n\t\tif (\n\t\t\tcorner & EShapeCorner.TOP &&\n\t\t\tisCutByCorner(x, y, 0, -ay + radius * (2 * ay - aw), nlx, nly, -nlx, nly, rho)\n\t\t) {\n\t\t\treturn false;\n\t\t}\n\t\tif (\n\t\t\tcorner & EShapeCorner.BOTTOM_RIGHT &&\n\t\t\tisCutByCorner(x, y, ax * (1 - radius), cby, -nlx, nly, 0, 1, rho)\n\t\t) {\n\t\t\treturn false;\n\t\t}\n\t\tif (\n\t\t\tcorner & EShapeCorner.BOTTOM_LEFT &&\n\t\t\tisCutByCorner(x, y, -ax * (1 - radius), cby, nlx, nly, 0, 1, rho)\n\t\t) {\n\t\t\treturn false;\n\t\t}\n\t}\n\treturn true;\n};\n\n/**\n * Tests whether the point is in the filled part. The fill percent is measured\n * against the bounding box of the rounded triangle, which is shrunk by rounded corners.\n */\nconst hitTestTriangleRoundedFill = (\n\tshape: EShape,\n\tx: number,\n\ty: number,\n\tax: number,\n\tay: number\n): boolean => {\n\tconst fill = shape.fill;\n\tconst percent = Math.max(0, Math.min(1, fill.percent));\n\tif (1 <= percent) {\n\t\treturn true;\n\t}\n\n\tconst radius = shape.radius;\n\tconst corner = shape.corner;\n\tconst aw = (2 * ax * ay) / (ax + Math.sqrt(ax * ax + 4 * ay * ay));\n\tconst r = radius * aw;\n\tconst rounded = 0 < r;\n\tconst x0 = rounded && corner & EShapeCorner.BOTTOM_LEFT ? -ax * (1 - radius) - r : -ax;\n\tconst x1 = rounded && corner & EShapeCorner.BOTTOM_RIGHT ? +ax * (1 - radius) + r : +ax;\n\tconst y0 = rounded && corner & EShapeCorner.TOP ? -ay + radius * (2 * ay - aw) - r : -ay;\n\tconst y1 = +ay;\n\tswitch (fill.direction) {\n\t\tcase EShapeFillDirection.TOP:\n\t\t\treturn y - y0 <= percent * (y1 - y0);\n\t\tcase EShapeFillDirection.RIGHT:\n\t\t\treturn (1 - percent) * (x1 - x0) <= x - x0;\n\t\tcase EShapeFillDirection.BOTTOM:\n\t\t\treturn (1 - percent) * (y1 - y0) <= y - y0;\n\t\tcase EShapeFillDirection.LEFT:\n\t\t\treturn x - x0 <= percent * (x1 - x0);\n\t}\n\treturn false;\n};\n\nexport const hitTestTriangleRounded = (\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 fill = shape.fill;\n\tif ((fill.enable || 0 < sw) && hitTestTriangleRoundedInset(shape, x, y, ax, ay, 0)) {\n\t\tif (fill.enable && hitTestTriangleRoundedFill(shape, x, y, ax, ay)) {\n\t\t\treturn true;\n\t\t}\n\t\tif (0 < sw && !hitTestTriangleRoundedInset(shape, x, y, ax, ay, sw * ss)) {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n};\n"]}
@@ -105,7 +105,6 @@ export * from "./deserialize-connector-line";
105
105
  export * from "./deserialize-embedded-acceptor-edge";
106
106
  export * from "./deserialize-embedded-layer";
107
107
  export * from "./deserialize-embedded";
108
- export * from "./deserialize-fan";
109
108
  export * from "./deserialize-gradient";
110
109
  export * from "./deserialize-group-shadowed";
111
110
  export * from "./deserialize-group";
@@ -125,6 +124,7 @@ export * from "./deserialize-rectangle-pivoted";
125
124
  export * from "./deserialize-rectangle-rounded-legacy";
126
125
  export * from "./deserialize-rectangle-rounded";
127
126
  export * from "./deserialize-rectangle";
127
+ export * from "./deserialize-sector";
128
128
  export * from "./deserialize-semicircle-legacy";
129
129
  export * from "./deserialize-semicircle";
130
130
  export * from "./deserialize-triangle-legacy";
@@ -155,9 +155,6 @@ export * from "./e-shape-embedded-layer-container";
155
155
  export * from "./e-shape-embedded-layer";
156
156
  export * from "./e-shape-embedded";
157
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";
161
158
  export * from "./e-shape-fill-impl-parent";
162
159
  export * from "./e-shape-fill-impl";
163
160
  export * from "./e-shape-group-fill-editor";
@@ -223,6 +220,9 @@ export * from "./e-shape-rectangle-rounded";
223
220
  export * from "./e-shape-rectangle-triangulated-impl";
224
221
  export * from "./e-shape-rectangle-triangulated";
225
222
  export * from "./e-shape-rectangle";
223
+ export * from "./e-shape-sector-triangulated-impl";
224
+ export * from "./e-shape-sector-triangulated";
225
+ export * from "./e-shape-sector";
226
226
  export * from "./e-shape-semicircle-legacy";
227
227
  export * from "./e-shape-semicircle";
228
228
  export * from "./e-shape-stroke-impl-parent";
@@ -245,24 +245,24 @@ export * from "./e-shape-triangle-triangulated";
245
245
  export * from "./e-shape-triangle";
246
246
  export * from "./hit-test-bbox";
247
247
  export * from "./hit-test-circle";
248
- export * from "./hit-test-fan";
249
248
  export * from "./hit-test-semicircle";
250
249
  export * from "./hit-test-rectangle-rounded";
251
250
  export * from "./hit-test-rectangle";
252
251
  export * from "./hit-test-triangle-rounded";
253
252
  export * from "./hit-test-triangle";
253
+ export * from "./hit-test-sector";
254
254
  export * from "./is-shape-polygon-like";
255
255
  export * from "./is-static";
256
256
  export * from "./to-computed";
257
257
  export * from "./to-dash";
258
- export * from "./to-fan-angle-centric";
259
- export * from "./to-fan-angle-eccentric";
260
258
  export * from "./to-gradient-image-url";
261
259
  export * from "./to-gradient-serialized";
262
260
  export * from "./to-image-element";
263
261
  export * from "./to-length";
264
262
  export * from "./to-resized";
265
263
  export * from "./to-scale-invariant";
264
+ export * from "./to-sector-angle-centric";
265
+ export * from "./to-sector-angle-eccentric";
266
266
  export * from "./to-size-normalized";
267
267
  export * from "./to-size-rounded";
268
268
  export * from "./to-threshold-default";
@@ -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,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,sCAAsC,CAAC;AACrD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,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,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,gBAAgB,CAAC;AAC/B,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,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,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-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"]}
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,cAA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AC;AACpC,cAAc,mBAAmB,CAAC;AAClC,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,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,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-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-sector\";\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-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-sector-triangulated-impl\";\nexport * from \"./e-shape-sector-triangulated\";\nexport * from \"./e-shape-sector\";\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-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 \"./hit-test-sector\";\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-sector-angle-centric\";\nexport * from \"./to-sector-angle-eccentric\";\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 sector in [0, PI / 2].
7
+ */
8
+ export var toSectorAngleCentric = function (angle) {
9
+ return Math.PI * Math.max(0, Math.min(0.5, angle));
10
+ };
11
+ //# sourceMappingURL=to-sector-angle-centric.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"to-sector-angle-centric.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/to-sector-angle-centric.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,CAAC,IAAM,oBAAoB,GAAG,UAAC,KAAa;IACjD,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 sector in [0, PI / 2].\n */\nexport const toSectorAngleCentric = (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 sectors to the eccentric angle of the arc end points
7
+ * of the sector whose arc is on the ellipse with the semi-axes (w, h).
8
+ */
9
+ export var toSectorAngleEccentric = function (w, h, theta) {
10
+ return Math.atan((h / w) * Math.tan(theta));
11
+ };
12
+ //# sourceMappingURL=to-sector-angle-eccentric.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"to-sector-angle-eccentric.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/to-sector-angle-eccentric.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;GAGG;AACH,MAAM,CAAC,IAAM,sBAAsB,GAAG,UAAC,CAAS,EAAE,CAAS,EAAE,KAAa;IACzE,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 sectors to the eccentric angle of the arc end points\n * of the sector whose arc is on the ellipse with the semi-axes (w, h).\n */\nexport const toSectorAngleEccentric = (w: number, h: number, theta: number): number => {\n\treturn Math.atan((h / w) * Math.tan(theta));\n};\n"]}
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Winter Cardinal UI v0.469.0
2
+ Winter Cardinal UI v0.470.1
3
3
  Copyright (C) 2019-2026 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Winter Cardinal UI v0.469.0
2
+ Winter Cardinal UI v0.470.1
3
3
  Copyright (C) 2019-2026 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Winter Cardinal UI v0.469.0
2
+ Winter Cardinal UI v0.470.1
3
3
  Copyright (C) 2019-2026 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Winter Cardinal UI v0.469.0
2
+ Winter Cardinal UI v0.470.1
3
3
  Copyright (C) 2019-2026 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Winter Cardinal UI v0.469.0
2
+ Winter Cardinal UI v0.470.1
3
3
  Copyright (C) 2019-2026 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Winter Cardinal UI v0.469.0
2
+ Winter Cardinal UI v0.470.1
3
3
  Copyright (C) 2019-2026 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Winter Cardinal UI v0.469.0
2
+ Winter Cardinal UI v0.470.1
3
3
  Copyright (C) 2019-2026 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Winter Cardinal UI v0.469.0
2
+ Winter Cardinal UI v0.470.1
3
3
  Copyright (C) 2019-2026 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Winter Cardinal UI v0.469.0
2
+ Winter Cardinal UI v0.470.1
3
3
  Copyright (C) 2019-2026 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Winter Cardinal UI v0.469.0
2
+ Winter Cardinal UI v0.470.1
3
3
  Copyright (C) 2019-2026 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Winter Cardinal UI v0.469.0
2
+ Winter Cardinal UI v0.470.1
3
3
  Copyright (C) 2019-2026 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Winter Cardinal UI v0.469.0
2
+ Winter Cardinal UI v0.470.1
3
3
  Copyright (C) 2019-2026 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5