@wcardinal/wcardinal-ui 0.465.1 → 0.466.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 (93) hide show
  1. package/dist/types/wcardinal/ui/shape/e-shape-stroke-side.d.ts +6 -0
  2. package/dist/types/wcardinal/ui/shape/e-shape-type.d.ts +1 -0
  3. package/dist/types/wcardinal/ui/shape/load/index.d.ts +2 -0
  4. package/dist/types/wcardinal/ui/shape/load/load-shape-rectangle-legacy.d.ts +1 -0
  5. package/dist/types/wcardinal/ui/shape/variant/build-rectangle-legacy.d.ts +10 -0
  6. package/dist/types/wcardinal/ui/shape/variant/build-rectangle.d.ts +1 -10
  7. package/dist/types/wcardinal/ui/shape/variant/builder-rectangle-legacy.d.ts +9 -0
  8. package/dist/types/wcardinal/ui/shape/variant/builder-rectangle.d.ts +1 -9
  9. package/dist/types/wcardinal/ui/shape/variant/create-rectangle-legacy-uploaded.d.ts +4 -0
  10. package/dist/types/wcardinal/ui/shape/variant/create-rectangle-uploaded.d.ts +1 -4
  11. package/dist/types/wcardinal/ui/shape/variant/deserialize-rectangle-legacy.d.ts +4 -0
  12. package/dist/types/wcardinal/ui/shape/variant/e-shape-line-of-rectangles.d.ts +2 -2
  13. package/dist/types/wcardinal/ui/shape/variant/e-shape-rectangle-legacy.d.ts +7 -0
  14. package/dist/types/wcardinal/ui/shape/variant/e-shape-rectangle-pivoted.d.ts +2 -2
  15. package/dist/types/wcardinal/ui/shape/variant/e-shape-rectangle-triangulated-impl.d.ts +85 -0
  16. package/dist/types/wcardinal/ui/shape/variant/e-shape-rectangle-triangulated.d.ts +3 -0
  17. package/dist/types/wcardinal/ui/shape/variant/e-shape-rectangle.d.ts +4 -0
  18. package/dist/types/wcardinal/ui/shape/variant/index.d.ts +7 -0
  19. package/dist/wcardinal/ui/shape/e-shape-renderer.js +1 -1
  20. package/dist/wcardinal/ui/shape/e-shape-renderer.js.map +1 -1
  21. package/dist/wcardinal/ui/shape/e-shape-stroke-side.js +6 -0
  22. package/dist/wcardinal/ui/shape/e-shape-stroke-side.js.map +1 -1
  23. package/dist/wcardinal/ui/shape/e-shape-type.js +1 -0
  24. package/dist/wcardinal/ui/shape/e-shape-type.js.map +1 -1
  25. package/dist/wcardinal/ui/shape/load/index.js +2 -0
  26. package/dist/wcardinal/ui/shape/load/index.js.map +1 -1
  27. package/dist/wcardinal/ui/shape/load/load-shape-all.js +2 -0
  28. package/dist/wcardinal/ui/shape/load/load-shape-all.js.map +1 -1
  29. package/dist/wcardinal/ui/shape/load/load-shape-image.js +2 -2
  30. package/dist/wcardinal/ui/shape/load/load-shape-image.js.map +1 -1
  31. package/dist/wcardinal/ui/shape/load/load-shape-rectangle-legacy.js +17 -0
  32. package/dist/wcardinal/ui/shape/load/load-shape-rectangle-legacy.js.map +1 -0
  33. package/dist/wcardinal/ui/shape/load/load-shape-rectangle.js +2 -2
  34. package/dist/wcardinal/ui/shape/load/load-shape-rectangle.js.map +1 -1
  35. package/dist/wcardinal/ui/shape/variant/build-polygon.js +1 -1
  36. package/dist/wcardinal/ui/shape/variant/build-polygon.js.map +1 -1
  37. package/dist/wcardinal/ui/shape/variant/build-rectangle-legacy.js +336 -0
  38. package/dist/wcardinal/ui/shape/variant/build-rectangle-legacy.js.map +1 -0
  39. package/dist/wcardinal/ui/shape/variant/build-rectangle.js +5 -338
  40. package/dist/wcardinal/ui/shape/variant/build-rectangle.js.map +1 -1
  41. package/dist/wcardinal/ui/shape/variant/builder-line-of-rectangles.js +16 -16
  42. package/dist/wcardinal/ui/shape/variant/builder-line-of-rectangles.js.map +1 -1
  43. package/dist/wcardinal/ui/shape/variant/builder-marker-rectangle.js +6 -6
  44. package/dist/wcardinal/ui/shape/variant/builder-marker-rectangle.js.map +1 -1
  45. package/dist/wcardinal/ui/shape/variant/builder-rectangle-legacy.js +77 -0
  46. package/dist/wcardinal/ui/shape/variant/builder-rectangle-legacy.js.map +1 -0
  47. package/dist/wcardinal/ui/shape/variant/builder-rectangle-pivoted.js +6 -6
  48. package/dist/wcardinal/ui/shape/variant/builder-rectangle-pivoted.js.map +1 -1
  49. package/dist/wcardinal/ui/shape/variant/builder-rectangle.js +1 -72
  50. package/dist/wcardinal/ui/shape/variant/builder-rectangle.js.map +1 -1
  51. package/dist/wcardinal/ui/shape/variant/create-line-of-rectangles-uploaded.js +2 -2
  52. package/dist/wcardinal/ui/shape/variant/create-line-of-rectangles-uploaded.js.map +1 -1
  53. package/dist/wcardinal/ui/shape/variant/create-line-uploaded.js +3 -3
  54. package/dist/wcardinal/ui/shape/variant/create-line-uploaded.js.map +1 -1
  55. package/dist/wcardinal/ui/shape/variant/create-rectangle-legacy-uploaded.js +24 -0
  56. package/dist/wcardinal/ui/shape/variant/create-rectangle-legacy-uploaded.js.map +1 -0
  57. package/dist/wcardinal/ui/shape/variant/create-rectangle-pivoted-uploaded.js +4 -4
  58. package/dist/wcardinal/ui/shape/variant/create-rectangle-pivoted-uploaded.js.map +1 -1
  59. package/dist/wcardinal/ui/shape/variant/create-rectangle-uploaded.js +1 -19
  60. package/dist/wcardinal/ui/shape/variant/create-rectangle-uploaded.js.map +1 -1
  61. package/dist/wcardinal/ui/shape/variant/deserialize-rectangle-legacy.js +10 -0
  62. package/dist/wcardinal/ui/shape/variant/deserialize-rectangle-legacy.js.map +1 -0
  63. package/dist/wcardinal/ui/shape/variant/e-shape-line-of-rectangles.js +2 -2
  64. package/dist/wcardinal/ui/shape/variant/e-shape-line-of-rectangles.js.map +1 -1
  65. package/dist/wcardinal/ui/shape/variant/e-shape-rectangle-legacy.js +27 -0
  66. package/dist/wcardinal/ui/shape/variant/e-shape-rectangle-legacy.js.map +1 -0
  67. package/dist/wcardinal/ui/shape/variant/e-shape-rectangle-pivoted.js +2 -2
  68. package/dist/wcardinal/ui/shape/variant/e-shape-rectangle-pivoted.js.map +1 -1
  69. package/dist/wcardinal/ui/shape/variant/e-shape-rectangle-triangulated-impl.js +796 -0
  70. package/dist/wcardinal/ui/shape/variant/e-shape-rectangle-triangulated-impl.js.map +1 -0
  71. package/dist/wcardinal/ui/shape/variant/e-shape-rectangle-triangulated.js +6 -0
  72. package/dist/wcardinal/ui/shape/variant/e-shape-rectangle-triangulated.js.map +1 -0
  73. package/dist/wcardinal/ui/shape/variant/e-shape-rectangle.js +14 -1
  74. package/dist/wcardinal/ui/shape/variant/e-shape-rectangle.js.map +1 -1
  75. package/dist/wcardinal/ui/shape/variant/index.js +7 -0
  76. package/dist/wcardinal/ui/shape/variant/index.js.map +1 -1
  77. package/dist/wcardinal-ui-theme-dark-en-us.js +1 -1
  78. package/dist/wcardinal-ui-theme-dark-en-us.min.js +1 -1
  79. package/dist/wcardinal-ui-theme-dark-ja-jp.js +1 -1
  80. package/dist/wcardinal-ui-theme-dark-ja-jp.min.js +1 -1
  81. package/dist/wcardinal-ui-theme-dark.js +1 -1
  82. package/dist/wcardinal-ui-theme-dark.min.js +1 -1
  83. package/dist/wcardinal-ui-theme-white-en-us.js +1 -1
  84. package/dist/wcardinal-ui-theme-white-en-us.min.js +1 -1
  85. package/dist/wcardinal-ui-theme-white-ja-jp.js +1 -1
  86. package/dist/wcardinal-ui-theme-white-ja-jp.min.js +1 -1
  87. package/dist/wcardinal-ui-theme-white.js +1 -1
  88. package/dist/wcardinal-ui-theme-white.min.js +1 -1
  89. package/dist/wcardinal-ui.cjs.js +968 -102
  90. package/dist/wcardinal-ui.js +968 -102
  91. package/dist/wcardinal-ui.min.js +2 -2
  92. package/dist/wcardinal-ui.min.js.map +1 -1
  93. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Winter Cardinal UI v0.465.1
2
+ Winter Cardinal UI v0.466.1
3
3
  Copyright (C) 2019-2026 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -58,6 +58,7 @@ var EShapeType = {
58
58
  EMBEDDED_ACCEPTOR_EDGE: 25,
59
59
  POLYGON: 26,
60
60
  CIRCLE_LEGACY: 27,
61
+ RECTANGLE_LEGACY: 28,
61
62
  EXTENSION: 1000
62
63
  };
63
64
 
@@ -1469,8 +1470,14 @@ var EShapeStrokeSide = {
1469
1470
  LEFT: LEFT$1,
1470
1471
  TOP_OR_LEFT: TOP$1 | LEFT$1,
1471
1472
  TOP_OR_RIGHT: TOP$1 | RIGHT$1,
1473
+ TOP_OR_BOTTOM: TOP$1 | BOTTOM$1,
1472
1474
  BOTTOM_OR_LEFT: BOTTOM$1 | LEFT$1,
1473
1475
  BOTTOM_OR_RIGHT: BOTTOM$1 | RIGHT$1,
1476
+ LEFT_OR_RIGHT: LEFT$1 | RIGHT$1,
1477
+ NOT_TOP: RIGHT$1 | BOTTOM$1 | LEFT$1,
1478
+ NOT_RIGHT: TOP$1 | BOTTOM$1 | LEFT$1,
1479
+ NOT_BOTTOM: TOP$1 | RIGHT$1 | LEFT$1,
1480
+ NOT_LEFT: TOP$1 | RIGHT$1 | BOTTOM$1,
1474
1481
  ALL: TOP$1 | RIGHT$1 | BOTTOM$1 | LEFT$1
1475
1482
  };
1476
1483
 
@@ -16706,7 +16713,7 @@ var EShapeRendererIterator = /** @class */ (function () {
16706
16713
  * SPDX-License-Identifier: Apache-2.0
16707
16714
  */
16708
16715
  var VERTEX_SHADER$1 = "\nattribute highp vec2 aPosition;\nattribute highp vec2 aStepA;\nattribute highp vec4 aStepB;\nattribute highp vec3 aColor;\nattribute highp vec2 aUv;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mediump float shapeScale;\nuniform mediump float antialiasWeight;\n\nvarying mediump float vType;\nvarying mediump vec2 vStepA;\nvarying mediump vec4 vStepB;\nvarying mediump vec4 vLength;\nvarying mediump vec4 vColorFill;\nvarying mediump vec4 vColorStroke;\nvarying mediump vec2 vUv;\n\nvec2 toInverse(in vec2 v) {\n\treturn vec2(-v.y, v.x);\n}\n\nvec4 toGeneral(in float v) {\n\tvec4 c = vec4(1.0, 1.0/64.0, 1.0/64.0/64.0, 1.0/64.0/64.0/64.0) * v;\n\tc -= fract(c);\n\tc -= c.yzwx * vec4(64.0, 64.0, 64.0, 0.0);\n\treturn c;\n}\n\nfloat toStrokeWidthScale(in float scale) {\n\treturn (\n\t\tscale == 3.0 || scale == 7.0 ?\n\t\tshapeScale : (\n\t\t\tscale == 1.0 || scale == 5.0 ?\n\t\t\tmin(1.0, shapeScale) : (\n\t\t\t\tscale == 2.0 || scale == 6.0 ?\n\t\t\t\tmax(1.0, shapeScale) : 1.0\n\t\t\t)\n\t\t)\n\t);\n}\n\nvec2 toUnpackedClippings(in float v) {\n\tvec2 c = vec2(1.0, 1.0/1024.0) * v;\n\tc -= fract(c);\n\tc -= c.yx * vec2(1024.0, 0.0);\n\tc /= vec2(930.0, 930.0);\n\treturn c;\n}\n\nvec2 toUnpackedAlphas(in float v) {\n\tvec2 c = vec2(1.0, 1.0/1024.0) * v;\n\tc -= fract(c);\n\tc -= c.yx * vec2(1024.0, 0.0);\n\tc /= vec2(1023.0, 1023.0);\n\treturn c;\n}\n\nvec3 toUnpackedF3x256(in float v) {\n\tvec3 c = vec3(1.0, 1.0/256.0, 1.0/256.0/256.0) * v;\n\tc -= fract(c);\n\tc -= c.yzx * vec3(256.0, 256.0, 0.0);\n\tc /= 255.0;\n\treturn c;\n}\n\nvec2 toPosition012(in vec2 v) {\n\treturn (projectionMatrix * translationMatrix * vec3(v, 1.0)).xy;\n}\n\nvec4 toStepB01(in vec4 sb) {\n\treturn vec4(sb.xy, toUnpackedClippings(sb.z));\n}\n\nvec4 toStepB2(in vec4 sb, in float strokeWidth) {\n\tfloat x = min(0.4, 0.4 / 12.0 * sb.x * antialiasWeight);\n\tfloat w = clamp(strokeWidth, 0.0, 1.0) * 0.4;\n\tfloat p = w * sb.y + sb.z;\n\tfloat y = 0.5 - p;\n\tfloat z = 0.5 - p - w;\n\treturn vec4(y, z, y - max(0.01, y - x), z - max(0.01, z - x));\n}\n\nvec2 toPosition3(in float type, in vec2 p, in float npacked, in float length, in float strokeWidth, out float shift) {\n\tvec3 t = vec3(1.0, 1.0/1024.0, 1.0/1024.0/1024.0) * npacked;\n\tt -= fract(t);\n\tt -= t.yzx * vec3(1024.0, 1024.0, 0.0);\n\tt *= vec3(1.0/511.5, 1.0/511.5, 1.0);\n\tt -= vec3(1.0, 1.0, 0.0);\n\tvec2 n0 = vec2(t.x, ((0.5 < t.z && t.z < 1.5) || 2.5 < t.z ? +1.0 : -1.0) * sqrt(max(0.0, 1.0 - t.x * t.x)));\n\tvec2 n1 = vec2(t.y, (1.5 < t.z ? +1.0 : -1.0) * sqrt(max(0.0, 1.0 - t.y * t.y)));\n\n\tvec2 n0i = toInverse(n0);\n\tvec2 n1i = toInverse(n1);\n\tfloat direction = sign(4.5 - type);\n\n\t// Offset\n\tfloat cross = dot(n0i, n1);\n\tbool bcross = 0.00001 < abs(cross);\n\tfloat crossi = (bcross ? 1.0 / cross : 0.0);\n\tfloat b = dot(n1 - n0, n0) * crossi;\n\tfloat offsetSize = direction * strokeWidth * 0.5;\n\tvec2 offset = n1 + n1i * b;\n\n\t// Miter\n\tvec2 pmiter = p + offsetSize * offset;\n\tfloat miterAngle0 = dot( n0i, offsetSize * offset - length * n0i );\n\tfloat miterAngle1 = dot( n1i, offsetSize * offset + length * n1i );\n\tfloat miterLength = dot( offset, offset );\n\tfloat miterSide = direction * cross;\n\n\t// Bevel\n\tvec2 n = (type == 4.0 || type == 6.0 ? n1 : n0);\n\tvec2 pbevel = p + offsetSize * n;\n\n\t//\n\tvec2 presult = (\n\t\t0.0 <= miterSide ?\n\t\t(miterAngle0 < 0.0 && 0.0 <= miterAngle1 && bcross ? pmiter : pbevel) :\n\t\t(miterLength < 6.0 && bcross ? pmiter : pbevel)\n\t);\n\tvec2 ni = (type == 4.0 || type == 6.0 ? n1i : n0i);\n\tshift = dot(ni, p - presult);\n\treturn toPosition012(presult);\n}\n\nvec2 toStepA3(in float type, in float strokeWidth) {\n\treturn vec2(type < 4.5 ? 1.0 : 0.0, strokeWidth);\n}\n\nfloat toDotWidth(in float strokeScaling, in float strokeWidthScale) {\n\treturn aStepA.x * (\n\t\tstrokeScaling == 4.0 || strokeScaling == 5.0 ||\n\t\tstrokeScaling == 6.0 || strokeScaling == 7.0 ?\n\t\tstrokeWidthScale : 1.0\n\t);\n}\n\nvec2 toDotPattern(in float dash) {\n\treturn (dash < 0.5 ?\n\t\tvec2(1.0, 0.0) :\n\t\t(dash < 3.5 ?\n\t\t\t(dash < 1.5 ?\n\t\t\t\tvec2(1.0, 1.0) :\n\t\t\t\t(2.5 < dash ?\n\t\t\t\t\tvec2(1.0, 2.0) :\n\t\t\t\t\tvec2(1.0, 0.5)\n\t\t\t\t)\n\t\t\t) :\n\t\t\t(dash < 4.5 ?\n\t\t\t\tvec2(2.0, 1.0) :\n\t\t\t\t(5.5 < dash ?\n\t\t\t\t\tvec2(2.0, 2.0) :\n\t\t\t\t\tvec2(2.0, 0.5)\n\t\t\t\t)\n\t\t\t)\n\t\t)\n\t);\n}\n\nvec4 toLength3(in float shift, in float dash, in float strokeScaling, in float strokeWidthScale) {\n\tfloat width = toDotWidth(strokeScaling, strokeWidthScale);\n\tvec2 pattern = toDotPattern(dash);\n\treturn vec4(aStepB.y + shift, pattern.x * width, pattern.y * width, aStepB.z);\n}\n\nvec4 toLength7(in float type, in float strokeScaling, in float strokeWidthScale) {\n\tfloat width = toDotWidth(strokeScaling, strokeWidthScale);\n\tvec2 pattern = toDotPattern(type - 7.0);\n\treturn vec4(aStepB.w, pattern.x * width, pattern.y * width, -1.0);\n}\n\nvoid toColors(in vec3 source, out vec4 fillColor, out vec4 strokeColor) {\n\tvec2 a = toUnpackedAlphas(source.z);\n\tfillColor.xyz = toUnpackedF3x256(source.x).zyx * a.x;\n\tfillColor.w = a.x;\n\tstrokeColor.xyz = toUnpackedF3x256(source.y).zyx * a.y;\n\tstrokeColor.w = a.y;\n}\n\nvoid main(void) {\n\tvec4 general = toGeneral(aStepA.y);\n\tfloat type = general.x;\n\tfloat strokeScaling = general.y;\n\tfloat strokeWidthScale = toStrokeWidthScale(strokeScaling);\n\tfloat strokeWidth = strokeWidthScale * aStepA.x;\n\n\tvType = type;\n\tif (type < 2.5 || 6.5 < type) {\n\t\tgl_Position = vec4(toPosition012(aPosition), 0.0, 1.0);\n\t\tvStepA = strokeWidth * general.zw;\n\t\tif (type < 1.5) {\n\t\t\tvStepB = toStepB01(aStepB);\n\t\t\tvLength = vec4(-1.0, 0.0, 0.0, -1.0);\n\t\t} else if (type < 2.5) {\n\t\t\tvStepB = toStepB2(aStepB, strokeWidth);\n\t\t\tvLength = vec4(-1.0, 0.0, 0.0, -1.0);\n\t\t} else {\n\t\t\tvStepB = toStepB01(aStepB);\n\t\t\tvLength = toLength7(type, strokeScaling, strokeWidthScale);\n\t\t}\n\t} else {\n\t\tfloat shift3 = 0.0;\n\t\tgl_Position = vec4(toPosition3(type, aPosition, aStepB.x, aStepB.w, strokeWidth, shift3), 0.0, 1.0);\n\t\tvStepA = toStepA3(type, strokeWidth);\n\t\tvStepB = vec4(0.0);\n\t\tvLength = toLength3(shift3, general.z, strokeScaling, strokeWidthScale);\n\t}\n\ttoColors(aColor, vColorFill, vColorStroke);\n\tvUv = aUv;\n}";
16709
- var FRAGMENT_SHADER$1 = "\nvarying mediump float vType;\nvarying mediump vec2 vStepA;\nvarying mediump vec4 vStepB;\nvarying mediump vec4 vLength;\nvarying mediump vec4 vColorFill;\nvarying mediump vec4 vColorStroke;\nvarying mediump vec2 vUv;\n\nuniform sampler2D sampler;\nuniform mediump float antialiasWeight;\n\nvec4 toColor0(in vec4 texture) {\n\tvec2 f = vec2(1.0) / vStepB.xy;\n\tvec2 c = vStepB.zw;\n\tvec2 awd = 0.5 * antialiasWeight * f;\n\tvec2 swd = vStepA * f;\n\tvec2 one = vec2(1.0);\n\tvec2 s0 = smoothstep(one - awd, one + awd, c);\n\tvec2 s1 = smoothstep(one - swd - awd, one - swd + awd, c);\n\tfloat s2 = max(s0.x, s0.y);\n\tfloat s3 = max(s1.x, s1.y);\n\n\treturn texture * (\n\t\tvColorStroke * (s3 - s2) +\n\t\tvColorFill * (1.0 - s3)\n\t);\n}\n\nvec4 toColor1(in vec4 texture) {\n\tvec2 d = vStepB.xy;\n\tvec2 c = vStepB.zw;\n\tvec2 awd = 0.5 * antialiasWeight / d;\n\tvec2 swd = vStepA / d;\n\tvec2 one = vec2(1.0);\n\tfloat s0 = smoothstep(length(c/(one + awd)), length(c/(one - awd)), 1.0);\n\tfloat s1 = smoothstep(length(c/(one - swd + awd)), length(c/(one - swd - awd)), 1.0);\n\treturn texture * (\n\t\tvColorStroke * (s0 - s1) +\n\t\tvColorFill * s1\n\t);\n}\n\nvec4 toColor2(in vec4 texture) {\n\tvec2 p0 = vStepB.xy;\n\tvec2 p1 = vStepB.zw;\n\tvec2 d = vec2(dot(texture, vec4(1.0, 1.0/255.0, 1.0/255.0/255.0, 0.0)));\n\tvec2 s = smoothstep(p0 - p1, p0 + p1, d);\n\treturn vColorStroke * (s.y - s.x) + vColorFill * s.x;\n}\n\nfloat toLineStep(in vec4 parameters) {\n\tfloat l = parameters.x;\n\tfloat lp0 = parameters.y;\n\tfloat lp1 = parameters.z;\n\tfloat lt = parameters.w;\n\tfloat ld = 0.5 * antialiasWeight;\n\tfloat lm = mod(l, lp0 + lp1);\n\tfloat s0 = (0.0 < lp1 ? smoothstep(-ld, ld, lm) - smoothstep(lp0 - ld, lp0 + ld, lm) : 1.0);\n\tfloat s1 = (0.0 <= lt ? smoothstep(-ld, ld, l) - smoothstep(lt - ld, lt + ld, l) : 1.0);\n\treturn s0 * s1;\n}\n\nvec4 toColor3(in vec4 texture) {\n\tfloat c = vStepA.x;\n\tfloat awd = 0.5 * antialiasWeight / vStepA.y;\n\tfloat s0 = smoothstep(-awd, awd, c);\n\tfloat s1 = smoothstep(1.0 - awd, 1.0 + awd, c);\n\treturn texture * vColorStroke * (s0 - s1) * toLineStep(vLength);\n}\n\nvec4 toColor7(in vec4 texture) {\n\tfloat aw = 0.5 * antialiasWeight;\n\tfloat awd = aw * vStepB.x;\n\tfloat swd = vStepA.x * vStepB.x;\n\tfloat s0 = smoothstep(1.0 - awd, 1.0 + awd, vStepB.z);\n\tfloat s1 = smoothstep(1.0 - swd - awd, 1.0 - swd + awd, vStepB.z) * toLineStep(vLength);\n\tfloat s2 = smoothstep(-aw, +aw, vStepB.y);\n\treturn texture * (\n\t\tvColorStroke * (s1 - s0) +\n\t\tvColorFill * (1.0 - s1) * s2\n\t);\n}\n\nvoid main(void) {\n\tvec4 texture = texture2D(sampler, vUv);\n\tif (vType < 0.5) {\n\t\tgl_FragColor = toColor0(texture);\n\t} else if (vType < 1.5) {\n\t\tgl_FragColor = toColor1(texture);\n\t} else if (vType < 2.5) {\n\t\tgl_FragColor = toColor2(texture);\n\t} else if (vType < 6.5) {\n\t\tgl_FragColor = toColor3(texture);\n\t} else {\n\t\tgl_FragColor = toColor7(texture);\n\t}\n}";
16716
+ var FRAGMENT_SHADER$1 = "\nvarying mediump float vType;\nvarying mediump vec2 vStepA;\nvarying mediump vec4 vStepB;\nvarying mediump vec4 vLength;\nvarying mediump vec4 vColorFill;\nvarying mediump vec4 vColorStroke;\nvarying mediump vec2 vUv;\n\nuniform sampler2D sampler;\nuniform mediump float antialiasWeight;\n\nvec4 toColor0(in vec4 texture) {\n\tvec2 f = vec2(1.0) / vStepB.xy;\n\tvec2 c = vStepB.zw;\n\tvec2 awd = 0.5 * antialiasWeight * f;\n\tvec2 swd = vStepA * f;\n\tvec2 one = vec2(1.0);\n\tvec2 s0 = smoothstep(one - awd, one + awd, c);\n\tvec2 s1 = smoothstep(one - swd - awd, one - swd + awd, c);\n\tfloat s2 = max(s0.x, s0.y);\n\tfloat s3 = max(s1.x, s1.y);\n\n\treturn texture * (\n\t\tvColorStroke * (s3 - s2) +\n\t\tvColorFill * (1.0 - s3)\n\t);\n}\n\nvec4 toColor1(in vec4 texture) {\n\tvec2 d = vStepB.xy;\n\tvec2 c = vStepB.zw;\n\tvec2 awd = 0.5 * antialiasWeight / d;\n\tvec2 swd = vStepA / d;\n\tvec2 one = vec2(1.0);\n\tvec2 zero = vec2(0.0);\n\tfloat s0 = smoothstep(length(c/clamp(one + awd, zero, one)), length(c/clamp(one - awd, zero, one)), 1.0);\n\tfloat s1 = smoothstep(length(c/clamp(one - swd + awd, zero, one)), length(c/clamp(one - swd - awd, zero, one)), 1.0);\n\treturn texture * (\n\t\tvColorStroke * (s0 - s1) +\n\t\tvColorFill * s1\n\t);\n}\n\nvec4 toColor2(in vec4 texture) {\n\tvec2 p0 = vStepB.xy;\n\tvec2 p1 = vStepB.zw;\n\tvec2 d = vec2(dot(texture, vec4(1.0, 1.0/255.0, 1.0/255.0/255.0, 0.0)));\n\tvec2 s = smoothstep(p0 - p1, p0 + p1, d);\n\treturn vColorStroke * (s.y - s.x) + vColorFill * s.x;\n}\n\nfloat toLineStep(in vec4 parameters) {\n\tfloat l = parameters.x;\n\tfloat lp0 = parameters.y;\n\tfloat lp1 = parameters.z;\n\tfloat lt = parameters.w;\n\tfloat ld = 0.5 * antialiasWeight;\n\tfloat lm = mod(l, lp0 + lp1);\n\tfloat s0 = (0.0 < lp1 ? smoothstep(-ld, ld, lm) - smoothstep(lp0 - ld, lp0 + ld, lm) : 1.0);\n\tfloat s1 = (0.0 <= lt ? smoothstep(-ld, ld, l) - smoothstep(lt - ld, lt + ld, l) : 1.0);\n\treturn s0 * s1;\n}\n\nvec4 toColor3(in vec4 texture) {\n\tfloat c = vStepA.x;\n\tfloat awd = 0.5 * antialiasWeight / vStepA.y;\n\tfloat s0 = smoothstep(-awd, awd, c);\n\tfloat s1 = smoothstep(1.0 - awd, 1.0 + awd, c);\n\treturn texture * vColorStroke * (s0 - s1) * toLineStep(vLength);\n}\n\nvec4 toColor7(in vec4 texture) {\n\tfloat aw = 0.5 * antialiasWeight;\n\tfloat awd = aw * vStepB.x;\n\tfloat swd = vStepA.x * vStepB.x;\n\tfloat s0 = smoothstep(1.0 - awd, 1.0 + awd, vStepB.z);\n\tfloat s1 = smoothstep(1.0 - swd - awd, 1.0 - swd + awd, vStepB.z) * toLineStep(vLength);\n\tfloat s2 = smoothstep(-aw, +aw, vStepB.y);\n\treturn texture * (\n\t\tvColorStroke * (s1 - s0) +\n\t\tvColorFill * (1.0 - s1) * s2\n\t);\n}\n\nvoid main(void) {\n\tvec4 texture = texture2D(sampler, vUv);\n\tif (vType < 0.5) {\n\t\tgl_FragColor = toColor0(texture);\n\t} else if (vType < 1.5) {\n\t\tgl_FragColor = toColor1(texture);\n\t} else if (vType < 2.5) {\n\t\tgl_FragColor = toColor2(texture);\n\t} else if (vType < 6.5) {\n\t\tgl_FragColor = toColor3(texture);\n\t} else {\n\t\tgl_FragColor = toColor7(texture);\n\t}\n}";
16710
16717
  var EShapeRenderer = /** @class */ (function (_super) {
16711
16718
  __extends(EShapeRenderer, _super);
16712
16719
  function EShapeRenderer(renderer) {
@@ -25470,22 +25477,22 @@ var EShapeRuntimeImpl = /** @class */ (function () {
25470
25477
  * Copyright (C) 2019 Toshiba Corporation
25471
25478
  * SPDX-License-Identifier: Apache-2.0
25472
25479
  */
25473
- var EShapeRectangle = /** @class */ (function (_super) {
25474
- __extends(EShapeRectangle, _super);
25475
- function EShapeRectangle(type) {
25476
- if (type === void 0) { type = EShapeType.RECTANGLE; }
25480
+ var EShapeRectangleLegacy = /** @class */ (function (_super) {
25481
+ __extends(EShapeRectangleLegacy, _super);
25482
+ function EShapeRectangleLegacy(type) {
25483
+ if (type === void 0) { type = EShapeType.RECTANGLE_LEGACY; }
25477
25484
  return _super.call(this, type) || this;
25478
25485
  }
25479
- EShapeRectangle.prototype.clone = function () {
25480
- return new EShapeRectangle(this.type).copy(this);
25486
+ EShapeRectangleLegacy.prototype.clone = function () {
25487
+ return new EShapeRectangleLegacy(this.type).copy(this);
25481
25488
  };
25482
- EShapeRectangle.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
25489
+ EShapeRectangleLegacy.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
25483
25490
  if (_super.prototype.containsAbsBBox.call(this, x, y, ax, ay)) {
25484
25491
  return hitTestRectangle(this, x, y, ax, ay, sw, ss);
25485
25492
  }
25486
25493
  return false;
25487
25494
  };
25488
- return EShapeRectangle;
25495
+ return EShapeRectangleLegacy;
25489
25496
  }(EShapePrimitive));
25490
25497
 
25491
25498
  /*
@@ -25505,7 +25512,7 @@ var EShapeRectanglePivoted = /** @class */ (function (_super) {
25505
25512
  return result;
25506
25513
  };
25507
25514
  return EShapeRectanglePivoted;
25508
- }(EShapeRectangle));
25515
+ }(EShapeRectangleLegacy));
25509
25516
 
25510
25517
  /*
25511
25518
  * Copyright (C) 2019 Toshiba Corporation
@@ -64707,7 +64714,7 @@ var buildPolygonVertex = function (vertices, polygonVertices, voffset, internalT
64707
64714
  var buildPolygonStep = function (steps, polygonDistances, polygonLengths, polygonClippings, polygonUvs, polygonBoundary, voffset, vertexCount, fillDirection, fillPercent, strokeWidth, strokeSide, strokeStyle) {
64708
64715
  var scaleInvariant = toScaleInvariant(strokeStyle);
64709
64716
  var dash = toDash(strokeStyle);
64710
- var w = (strokeSide & EShapeStrokeSide.ALL) === EShapeStrokeSide.ALL ? 1 : 0;
64717
+ var w = strokeSide !== EShapeStrokeSide.NONE ? 1 : 0;
64711
64718
  var e = toPackedI4x64(7 + dash, scaleInvariant, w, 0);
64712
64719
  var fp = Math.max(0, Math.min(1, fillPercent));
64713
64720
  switch (fillDirection) {
@@ -66080,11 +66087,10 @@ var buildNullUv = function (uvs, voffset, vcount) {
66080
66087
  }
66081
66088
  };
66082
66089
 
66083
- var RECTANGLE_VERTEX_COUNT = 16;
66084
- var RECTANGLE_INDEX_COUNT = 8;
66085
- var RECTANGLE_WORLD_SIZE = [0, 0];
66086
- var RECTANGLE_WORK_POINT = new pixi_js.Point();
66087
- var buildRectangleIndex = function (indices, voffset, ioffset) {
66090
+ var RECTANGLE_LEGACY_VERTEX_COUNT = 16;
66091
+ var RECTANGLE_LEGACY_INDEX_COUNT = 8;
66092
+ var RECTANGLE_LEGACY_WORLD_SIZE = [0, 0];
66093
+ var buildRectangleLegacyIndex = function (indices, voffset, ioffset) {
66088
66094
  // c0 c1 c4 c5
66089
66095
  // |-----| |-----|
66090
66096
  // | | | |
@@ -66122,7 +66128,7 @@ var buildRectangleIndex = function (indices, voffset, ioffset) {
66122
66128
  indices[++ii] = voffset + 13;
66123
66129
  indices[++ii] = voffset + 15;
66124
66130
  };
66125
- var buildRectangleVertex = function (vertices, voffset, originX, originY, sizeX, sizeY, strokeAlign, strokeWidth, internalTransform, worldSize) {
66131
+ var buildRectangleLegacyVertex = function (vertices, voffset, originX, originY, sizeX, sizeY, strokeAlign, strokeWidth, internalTransform, worldSize) {
66126
66132
  // b0 b1 b2
66127
66133
  // |-------|-------|
66128
66134
  // | | |
@@ -66130,22 +66136,21 @@ var buildRectangleVertex = function (vertices, voffset, originX, originY, sizeX,
66130
66136
  // | | |
66131
66137
  // |-------|-------|
66132
66138
  // b6 b7 b8
66139
+ var a = internalTransform.a;
66140
+ var b = internalTransform.b;
66141
+ var c = internalTransform.c;
66142
+ var d = internalTransform.d;
66143
+ var tx = internalTransform.tx;
66144
+ var ty = internalTransform.ty;
66133
66145
  var s = strokeAlign * strokeWidth;
66134
66146
  var sx = sizeX * 0.5 + (0 <= sizeX ? +s : -s);
66135
66147
  var sy = sizeY * 0.5 + (0 <= sizeY ? +s : -s);
66136
- var work = RECTANGLE_WORK_POINT;
66137
- work.set(originX - sx, originY - sy);
66138
- internalTransform.apply(work, work);
66139
- var b0x = work.x;
66140
- var b0y = work.y;
66141
- work.set(originX, originY - sy);
66142
- internalTransform.apply(work, work);
66143
- var b1x = work.x;
66144
- var b1y = work.y;
66145
- work.set(originX - sx, originY);
66146
- internalTransform.apply(work, work);
66147
- var b3x = work.x;
66148
- var b3y = work.y;
66148
+ var b0x = a * (originX - sx) + c * (originY - sy) + tx;
66149
+ var b0y = b * (originX - sx) + d * (originY - sy) + ty;
66150
+ var b1x = a * originX + c * (originY - sy) + tx;
66151
+ var b1y = b * originX + d * (originY - sy) + ty;
66152
+ var b3x = a * (originX - sx) + c * originY + tx;
66153
+ var b3y = b * (originX - sx) + d * originY + ty;
66149
66154
  var d01x = b1x - b0x;
66150
66155
  var d01y = b1y - b0y;
66151
66156
  var d03x = b3x - b0x;
@@ -66210,7 +66215,7 @@ var buildRectangleVertex = function (vertices, voffset, originX, originY, sizeX,
66210
66215
  worldSize[0] = toLength(b0x, b0y, b1x, b1y);
66211
66216
  worldSize[1] = toLength(b0x, b0y, b3x, b3y);
66212
66217
  };
66213
- var buildRectangleStep = function (voffset, steps, strokeWidth, strokeSide, strokeStyle, worldSize) {
66218
+ var buildRectangleLegacyStep = function (voffset, steps, strokeWidth, strokeSide, strokeStyle, worldSize) {
66214
66219
  var scaleInvariant = toScaleInvariant(strokeStyle);
66215
66220
  var ax = worldSize[0];
66216
66221
  var ay = worldSize[1];
@@ -66338,7 +66343,7 @@ var buildRectangleStep = function (voffset, steps, strokeWidth, strokeSide, stro
66338
66343
  steps[++is] = c11;
66339
66344
  steps[++is] = 0;
66340
66345
  };
66341
- var buildRectangleUv = function (uvs, voffset, textureUvs) {
66346
+ var buildRectangleLegacyUv = function (uvs, voffset, textureUvs) {
66342
66347
  // b0 b1 b2
66343
66348
  // |-------|-------|
66344
66349
  // | | |
@@ -68486,8 +68491,8 @@ var BuilderLineOfRectangles = /** @class */ (function (_super) {
68486
68491
  var ioffset = this.indexOffset;
68487
68492
  var pointCountReserved = this.pointCountReserved;
68488
68493
  if (0 < pointCountReserved) {
68489
- buildRectangleIndex(indices, voffset, ioffset);
68490
- copyIndex(indices, RECTANGLE_VERTEX_COUNT, ioffset, RECTANGLE_INDEX_COUNT, pointCountReserved);
68494
+ buildRectangleLegacyIndex(indices, voffset, ioffset);
68495
+ copyIndex(indices, RECTANGLE_LEGACY_VERTEX_COUNT, ioffset, RECTANGLE_LEGACY_INDEX_COUNT, pointCountReserved);
68491
68496
  }
68492
68497
  this.inited |= BuilderFlag.INDEX;
68493
68498
  };
@@ -68496,7 +68501,7 @@ var BuilderLineOfRectangles = /** @class */ (function (_super) {
68496
68501
  if (points instanceof EShapeLineOfAnyPointsImpl) {
68497
68502
  var buffer = this.buffer;
68498
68503
  this.updateVertexStepAndUv(buffer, shape, points);
68499
- this.updateLineOfAnyColor(buffer, shape, points, RECTANGLE_VERTEX_COUNT);
68504
+ this.updateLineOfAnyColor(buffer, shape, points, RECTANGLE_LEGACY_VERTEX_COUNT);
68500
68505
  }
68501
68506
  };
68502
68507
  BuilderLineOfRectangles.prototype.updateVertexStepAndUv = function (buffer, shape, points) {
@@ -68561,17 +68566,17 @@ var BuilderLineOfRectangles = /** @class */ (function (_super) {
68561
68566
  var pointSizeX = pointSize.getX(0);
68562
68567
  var pointSizeY = pointSize.getY(0);
68563
68568
  // Vertices
68564
- buildRectangleVertex(vertices, voffset, 0, 0, pointSizeX, pointSizeY, strokeAlign, strokeWidth, internalTransform, RECTANGLE_WORLD_SIZE);
68565
- copyVertex(vertices, internalTransform, voffset, RECTANGLE_VERTEX_COUNT, pointCount, pointsValues, pointOffset);
68569
+ buildRectangleLegacyVertex(vertices, voffset, 0, 0, pointSizeX, pointSizeY, strokeAlign, strokeWidth, internalTransform, RECTANGLE_LEGACY_WORLD_SIZE);
68570
+ copyVertex(vertices, internalTransform, voffset, RECTANGLE_LEGACY_VERTEX_COUNT, pointCount, pointsValues, pointOffset);
68566
68571
  // Steps
68567
68572
  if (isNotInited || isVertexChanged || isTransformChanged) {
68568
- buildRectangleStep(voffset, steps, strokeWidth, strokeSide, strokeStyle, RECTANGLE_WORLD_SIZE);
68569
- copyStep(steps, voffset, RECTANGLE_VERTEX_COUNT, pointCount);
68573
+ buildRectangleLegacyStep(voffset, steps, strokeWidth, strokeSide, strokeStyle, RECTANGLE_LEGACY_WORLD_SIZE);
68574
+ copyStep(steps, voffset, RECTANGLE_LEGACY_VERTEX_COUNT, pointCount);
68570
68575
  }
68571
68576
  // UVs
68572
68577
  if (isNotInited || isVertexChanged || isTextureChanged) {
68573
- buildRectangleUv(uvs, voffset, textureUvs);
68574
- copyUvs(uvs, voffset, RECTANGLE_VERTEX_COUNT, pointCount);
68578
+ buildRectangleLegacyUv(uvs, voffset, textureUvs);
68579
+ copyUvs(uvs, voffset, RECTANGLE_LEGACY_VERTEX_COUNT, pointCount);
68575
68580
  }
68576
68581
  }
68577
68582
  else {
@@ -68581,23 +68586,23 @@ var BuilderLineOfRectangles = /** @class */ (function (_super) {
68581
68586
  var py = pointsValues[ip + 1] + pointOffset.getY(i);
68582
68587
  var pointSizeX = pointSize.getX(i);
68583
68588
  var pointSizeY = pointSize.getY(i);
68584
- var iv = voffset + i * RECTANGLE_VERTEX_COUNT;
68589
+ var iv = voffset + i * RECTANGLE_LEGACY_VERTEX_COUNT;
68585
68590
  // Vertices
68586
- buildRectangleVertex(vertices, iv, px, py, pointSizeX, pointSizeY, strokeAlign, strokeWidth, internalTransform, RECTANGLE_WORLD_SIZE);
68591
+ buildRectangleLegacyVertex(vertices, iv, px, py, pointSizeX, pointSizeY, strokeAlign, strokeWidth, internalTransform, RECTANGLE_LEGACY_WORLD_SIZE);
68587
68592
  // Steps
68588
68593
  if (isNotInited || isVertexChanged || isTransformChanged) {
68589
- buildRectangleStep(iv, steps, strokeWidth, strokeSide, strokeStyle, RECTANGLE_WORLD_SIZE);
68594
+ buildRectangleLegacyStep(iv, steps, strokeWidth, strokeSide, strokeStyle, RECTANGLE_LEGACY_WORLD_SIZE);
68590
68595
  }
68591
68596
  // UVs
68592
68597
  if (isNotInited || isVertexChanged || isTextureChanged) {
68593
- buildRectangleUv(uvs, iv, textureUvs);
68598
+ buildRectangleLegacyUv(uvs, iv, textureUvs);
68594
68599
  }
68595
68600
  }
68596
68601
  }
68597
68602
  // Fill the rest
68598
68603
  var pointCountReserved = this.pointCountReserved;
68599
- var voffsetReserved = voffset + pointCount * RECTANGLE_VERTEX_COUNT;
68600
- var vcountReserved = RECTANGLE_VERTEX_COUNT * (pointCountReserved - pointCount);
68604
+ var voffsetReserved = voffset + pointCount * RECTANGLE_LEGACY_VERTEX_COUNT;
68605
+ var vcountReserved = RECTANGLE_LEGACY_VERTEX_COUNT * (pointCountReserved - pointCount);
68601
68606
  buildNullVertex(vertices, voffsetReserved, vcountReserved);
68602
68607
  buildNullStep(steps, voffsetReserved, vcountReserved);
68603
68608
  buildNullUv(uvs, voffsetReserved, vcountReserved);
@@ -69164,14 +69169,14 @@ var BuilderMarkerCircleTail = /** @class */ (function (_super) {
69164
69169
  var BuilderMarkerRectangle = /** @class */ (function (_super) {
69165
69170
  __extends(BuilderMarkerRectangle, _super);
69166
69171
  function BuilderMarkerRectangle(buffer, vertexOffset, indexOffset) {
69167
- var _this = _super.call(this, buffer, vertexOffset, indexOffset, RECTANGLE_VERTEX_COUNT, RECTANGLE_INDEX_COUNT) || this;
69172
+ var _this = _super.call(this, buffer, vertexOffset, indexOffset, RECTANGLE_LEGACY_VERTEX_COUNT, RECTANGLE_LEGACY_INDEX_COUNT) || this;
69168
69173
  _this.pointId = -1;
69169
69174
  return _this;
69170
69175
  }
69171
69176
  BuilderMarkerRectangle.prototype.init = function () {
69172
69177
  var buffer = this.buffer;
69173
69178
  buffer.updateIndices();
69174
- buildRectangleIndex(buffer.indices, this.vertexOffset, this.indexOffset);
69179
+ buildRectangleLegacyIndex(buffer.indices, this.vertexOffset, this.indexOffset);
69175
69180
  this.inited |= BuilderFlag.INDEX;
69176
69181
  };
69177
69182
  BuilderMarkerRectangle.prototype.update = function (shape) {
@@ -69232,16 +69237,16 @@ var BuilderMarkerRectangle = /** @class */ (function (_super) {
69232
69237
  var internalTransform = ((_a = BuilderMarkerRectangle.WORK) !== null && _a !== void 0 ? _a : (BuilderMarkerRectangle.WORK = new pixi_js.Matrix()));
69233
69238
  internalTransform.copyFrom(marker.transform).prepend(shape.transform.internalTransform);
69234
69239
  buffer.updateVertices();
69235
- buildRectangleVertex(buffer.vertices, voffset, 0, 0, sizeX, sizeY, strokeAlign, strokeWidth, internalTransform, RECTANGLE_WORLD_SIZE);
69240
+ buildRectangleLegacyVertex(buffer.vertices, voffset, 0, 0, sizeX, sizeY, strokeAlign, strokeWidth, internalTransform, RECTANGLE_LEGACY_WORLD_SIZE);
69236
69241
  // Steps
69237
69242
  if (isNotInited || isVertexChanged || isTransformChanged) {
69238
69243
  buffer.updateSteps();
69239
- buildRectangleStep(voffset, buffer.steps, strokeWidth, strokeSide, strokeStyle, RECTANGLE_WORLD_SIZE);
69244
+ buildRectangleLegacyStep(voffset, buffer.steps, strokeWidth, strokeSide, strokeStyle, RECTANGLE_LEGACY_WORLD_SIZE);
69240
69245
  }
69241
69246
  // UVs
69242
69247
  if (isNotInited || isVertexChanged || isTextureChanged) {
69243
69248
  buffer.updateUvs();
69244
- buildRectangleUv(buffer.uvs, voffset, toTextureUvs(texture));
69249
+ buildRectangleLegacyUv(buffer.uvs, voffset, toTextureUvs(texture));
69245
69250
  }
69246
69251
  }
69247
69252
  };
@@ -69438,23 +69443,23 @@ var BuilderNull = /** @class */ (function () {
69438
69443
  * Copyright (C) 2019 Toshiba Corporation
69439
69444
  * SPDX-License-Identifier: Apache-2.0
69440
69445
  */
69441
- var BuilderRectanglePivoted = /** @class */ (function (_super) {
69442
- __extends(BuilderRectanglePivoted, _super);
69443
- function BuilderRectanglePivoted(buffer, vertexOffset, indexOffset) {
69444
- return _super.call(this, buffer, vertexOffset, indexOffset, RECTANGLE_VERTEX_COUNT, RECTANGLE_INDEX_COUNT) || this;
69446
+ var BuilderRectangleLegacy = /** @class */ (function (_super) {
69447
+ __extends(BuilderRectangleLegacy, _super);
69448
+ function BuilderRectangleLegacy(buffer, vertexOffset, indexOffset) {
69449
+ return _super.call(this, buffer, vertexOffset, indexOffset, RECTANGLE_LEGACY_VERTEX_COUNT, RECTANGLE_LEGACY_INDEX_COUNT) || this;
69445
69450
  }
69446
- BuilderRectanglePivoted.prototype.init = function () {
69451
+ BuilderRectangleLegacy.prototype.init = function () {
69447
69452
  var buffer = this.buffer;
69448
69453
  buffer.updateIndices();
69449
- buildRectangleIndex(buffer.indices, this.vertexOffset, this.indexOffset);
69454
+ buildRectangleLegacyIndex(buffer.indices, this.vertexOffset, this.indexOffset);
69450
69455
  this.inited |= BuilderFlag.INDEX;
69451
69456
  };
69452
- BuilderRectanglePivoted.prototype.update = function (shape) {
69457
+ BuilderRectangleLegacy.prototype.update = function (shape) {
69453
69458
  var buffer = this.buffer;
69454
69459
  this.updateVertexStepAndUv(buffer, shape);
69455
69460
  this.updateColor(buffer, shape);
69456
69461
  };
69457
- BuilderRectanglePivoted.prototype.updateVertexStepAndUv = function (buffer, shape) {
69462
+ BuilderRectangleLegacy.prototype.updateVertexStepAndUv = function (buffer, shape) {
69458
69463
  var size = shape.size;
69459
69464
  var sizeX = size.x;
69460
69465
  var sizeY = size.y;
@@ -69489,43 +69494,43 @@ var BuilderRectanglePivoted = /** @class */ (function (_super) {
69489
69494
  // Vertices
69490
69495
  var voffset = this.vertexOffset;
69491
69496
  buffer.updateVertices();
69492
- buildRectangleVertex(buffer.vertices, voffset, 0.5 * sizeX, 0.5 * sizeY, sizeX, sizeY, strokeAlign, strokeWidth, shape.transform.internalTransform, RECTANGLE_WORLD_SIZE);
69497
+ buildRectangleLegacyVertex(buffer.vertices, voffset, 0, 0, sizeX, sizeY, strokeAlign, strokeWidth, shape.transform.internalTransform, RECTANGLE_LEGACY_WORLD_SIZE);
69493
69498
  // Steps
69494
69499
  if (isNotInited || isVertexChanged || isTransformChanged) {
69495
69500
  buffer.updateSteps();
69496
- buildRectangleStep(voffset, buffer.steps, strokeWidth, strokeSide, strokeStyle, RECTANGLE_WORLD_SIZE);
69501
+ buildRectangleLegacyStep(voffset, buffer.steps, strokeWidth, strokeSide, strokeStyle, RECTANGLE_LEGACY_WORLD_SIZE);
69497
69502
  }
69498
69503
  // UVs
69499
69504
  if (isNotInited || isVertexChanged || isTextureChanged) {
69500
69505
  buffer.updateUvs();
69501
- buildRectangleUv(buffer.uvs, voffset, toTextureUvs(texture));
69506
+ buildRectangleLegacyUv(buffer.uvs, voffset, toTextureUvs(texture));
69502
69507
  }
69503
69508
  }
69504
69509
  };
69505
- return BuilderRectanglePivoted;
69510
+ return BuilderRectangleLegacy;
69506
69511
  }(BuilderBase));
69507
69512
 
69508
69513
  /*
69509
69514
  * Copyright (C) 2019 Toshiba Corporation
69510
69515
  * SPDX-License-Identifier: Apache-2.0
69511
69516
  */
69512
- var BuilderRectangle = /** @class */ (function (_super) {
69513
- __extends(BuilderRectangle, _super);
69514
- function BuilderRectangle(buffer, vertexOffset, indexOffset) {
69515
- return _super.call(this, buffer, vertexOffset, indexOffset, RECTANGLE_VERTEX_COUNT, RECTANGLE_INDEX_COUNT) || this;
69517
+ var BuilderRectanglePivoted = /** @class */ (function (_super) {
69518
+ __extends(BuilderRectanglePivoted, _super);
69519
+ function BuilderRectanglePivoted(buffer, vertexOffset, indexOffset) {
69520
+ return _super.call(this, buffer, vertexOffset, indexOffset, RECTANGLE_LEGACY_VERTEX_COUNT, RECTANGLE_LEGACY_INDEX_COUNT) || this;
69516
69521
  }
69517
- BuilderRectangle.prototype.init = function () {
69522
+ BuilderRectanglePivoted.prototype.init = function () {
69518
69523
  var buffer = this.buffer;
69519
69524
  buffer.updateIndices();
69520
- buildRectangleIndex(buffer.indices, this.vertexOffset, this.indexOffset);
69525
+ buildRectangleLegacyIndex(buffer.indices, this.vertexOffset, this.indexOffset);
69521
69526
  this.inited |= BuilderFlag.INDEX;
69522
69527
  };
69523
- BuilderRectangle.prototype.update = function (shape) {
69528
+ BuilderRectanglePivoted.prototype.update = function (shape) {
69524
69529
  var buffer = this.buffer;
69525
69530
  this.updateVertexStepAndUv(buffer, shape);
69526
69531
  this.updateColor(buffer, shape);
69527
69532
  };
69528
- BuilderRectangle.prototype.updateVertexStepAndUv = function (buffer, shape) {
69533
+ BuilderRectanglePivoted.prototype.updateVertexStepAndUv = function (buffer, shape) {
69529
69534
  var size = shape.size;
69530
69535
  var sizeX = size.x;
69531
69536
  var sizeY = size.y;
@@ -69560,20 +69565,20 @@ var BuilderRectangle = /** @class */ (function (_super) {
69560
69565
  // Vertices
69561
69566
  var voffset = this.vertexOffset;
69562
69567
  buffer.updateVertices();
69563
- buildRectangleVertex(buffer.vertices, voffset, 0, 0, sizeX, sizeY, strokeAlign, strokeWidth, shape.transform.internalTransform, RECTANGLE_WORLD_SIZE);
69568
+ buildRectangleLegacyVertex(buffer.vertices, voffset, 0.5 * sizeX, 0.5 * sizeY, sizeX, sizeY, strokeAlign, strokeWidth, shape.transform.internalTransform, RECTANGLE_LEGACY_WORLD_SIZE);
69564
69569
  // Steps
69565
69570
  if (isNotInited || isVertexChanged || isTransformChanged) {
69566
69571
  buffer.updateSteps();
69567
- buildRectangleStep(voffset, buffer.steps, strokeWidth, strokeSide, strokeStyle, RECTANGLE_WORLD_SIZE);
69572
+ buildRectangleLegacyStep(voffset, buffer.steps, strokeWidth, strokeSide, strokeStyle, RECTANGLE_LEGACY_WORLD_SIZE);
69568
69573
  }
69569
69574
  // UVs
69570
69575
  if (isNotInited || isVertexChanged || isTextureChanged) {
69571
69576
  buffer.updateUvs();
69572
- buildRectangleUv(buffer.uvs, voffset, toTextureUvs(texture));
69577
+ buildRectangleLegacyUv(buffer.uvs, voffset, toTextureUvs(texture));
69573
69578
  }
69574
69579
  }
69575
69580
  };
69576
- return BuilderRectangle;
69581
+ return BuilderRectanglePivoted;
69577
69582
  }(BuilderBase));
69578
69583
 
69579
69584
  /*
@@ -69845,6 +69850,834 @@ var createImageSdfUploaded = function (buffer, shape, voffset, ioffset, antialia
69845
69850
  return null;
69846
69851
  };
69847
69852
 
69853
+ /*
69854
+ * Copyright (C) 2019-2026 Toshiba Corporation
69855
+ * SPDX-License-Identifier: Apache-2.0
69856
+ */
69857
+ var EShapeRectangleTriangulatedImpl = /** @class */ (function () {
69858
+ function EShapeRectangleTriangulatedImpl(parent) {
69859
+ this._id = 0;
69860
+ this._parent = parent;
69861
+ this._width = 0;
69862
+ this._height = 0;
69863
+ this._strokeAlign = 0;
69864
+ this._strokeWidth = 0;
69865
+ this._strokeSide = EShapeStrokeSide.NONE;
69866
+ this._sizeX = 0;
69867
+ this._sizeY = 0;
69868
+ this._vertices = [];
69869
+ this._nvertices = 0;
69870
+ this._distances = [];
69871
+ this._lengths = [];
69872
+ this._clippings = [];
69873
+ this._uvs = [];
69874
+ this._indices = [];
69875
+ this._nindices = 0;
69876
+ this._boundary = [0, 0, 0, 0];
69877
+ }
69878
+ Object.defineProperty(EShapeRectangleTriangulatedImpl.prototype, "id", {
69879
+ get: function () {
69880
+ this.triangulate();
69881
+ return this._id;
69882
+ },
69883
+ enumerable: false,
69884
+ configurable: true
69885
+ });
69886
+ Object.defineProperty(EShapeRectangleTriangulatedImpl.prototype, "vertices", {
69887
+ get: function () {
69888
+ this.triangulate();
69889
+ return this._vertices;
69890
+ },
69891
+ enumerable: false,
69892
+ configurable: true
69893
+ });
69894
+ Object.defineProperty(EShapeRectangleTriangulatedImpl.prototype, "nvertices", {
69895
+ get: function () {
69896
+ this.triangulate();
69897
+ return this._nvertices;
69898
+ },
69899
+ enumerable: false,
69900
+ configurable: true
69901
+ });
69902
+ Object.defineProperty(EShapeRectangleTriangulatedImpl.prototype, "distances", {
69903
+ get: function () {
69904
+ this.triangulate();
69905
+ return this._distances;
69906
+ },
69907
+ enumerable: false,
69908
+ configurable: true
69909
+ });
69910
+ Object.defineProperty(EShapeRectangleTriangulatedImpl.prototype, "lengths", {
69911
+ get: function () {
69912
+ this.triangulate();
69913
+ return this._lengths;
69914
+ },
69915
+ enumerable: false,
69916
+ configurable: true
69917
+ });
69918
+ Object.defineProperty(EShapeRectangleTriangulatedImpl.prototype, "clippings", {
69919
+ get: function () {
69920
+ this.triangulate();
69921
+ return this._clippings;
69922
+ },
69923
+ enumerable: false,
69924
+ configurable: true
69925
+ });
69926
+ Object.defineProperty(EShapeRectangleTriangulatedImpl.prototype, "uvs", {
69927
+ get: function () {
69928
+ this.triangulate();
69929
+ return this._uvs;
69930
+ },
69931
+ enumerable: false,
69932
+ configurable: true
69933
+ });
69934
+ Object.defineProperty(EShapeRectangleTriangulatedImpl.prototype, "indices", {
69935
+ get: function () {
69936
+ this.triangulate();
69937
+ return this._indices;
69938
+ },
69939
+ enumerable: false,
69940
+ configurable: true
69941
+ });
69942
+ Object.defineProperty(EShapeRectangleTriangulatedImpl.prototype, "nindices", {
69943
+ get: function () {
69944
+ this.triangulate();
69945
+ return this._nindices;
69946
+ },
69947
+ enumerable: false,
69948
+ configurable: true
69949
+ });
69950
+ Object.defineProperty(EShapeRectangleTriangulatedImpl.prototype, "boundary", {
69951
+ get: function () {
69952
+ this.triangulate();
69953
+ return this._boundary;
69954
+ },
69955
+ enumerable: false,
69956
+ configurable: true
69957
+ });
69958
+ EShapeRectangleTriangulatedImpl.prototype.triangulate = function () {
69959
+ var isNotInitialized = this._id === 0;
69960
+ var parent = this._parent;
69961
+ var size = parent.size;
69962
+ var width = size.x;
69963
+ var height = size.y;
69964
+ var isRectChanged = this._width !== width || this._height !== height;
69965
+ var stroke = parent.stroke;
69966
+ var strokeAlign = stroke.align;
69967
+ var strokeWidth = stroke.enable ? stroke.width : 0;
69968
+ var strokeSide = stroke.side;
69969
+ var isStrokeChanged = this._strokeAlign !== strokeAlign ||
69970
+ this._strokeWidth !== strokeWidth ||
69971
+ this._strokeSide !== strokeSide;
69972
+ var isSizeChanged = false;
69973
+ var sizeX = this._sizeX;
69974
+ var sizeY = this._sizeY;
69975
+ if (isRectChanged || isStrokeChanged) {
69976
+ this._width = width;
69977
+ this._height = height;
69978
+ this._strokeAlign = strokeAlign;
69979
+ this._strokeWidth = strokeWidth;
69980
+ this._strokeSide = strokeSide;
69981
+ var s = strokeAlign * strokeWidth;
69982
+ sizeX = width * 0.5 + (0 <= width ? +s : -s);
69983
+ sizeY = height * 0.5 + (0 <= height ? +s : -s);
69984
+ isSizeChanged = this._sizeX !== sizeX || this._sizeY !== sizeY;
69985
+ }
69986
+ if (isNotInitialized || isSizeChanged || isStrokeChanged) {
69987
+ this._sizeX = sizeX;
69988
+ this._sizeY = sizeY;
69989
+ this.update(sizeX, sizeY, 1.1);
69990
+ }
69991
+ };
69992
+ EShapeRectangleTriangulatedImpl.prototype.update = function (sizeX, sizeY, scale) {
69993
+ // Boundary
69994
+ var ax = Math.abs(sizeX);
69995
+ var ay = Math.abs(sizeY);
69996
+ var boundary = this._boundary;
69997
+ boundary[0] = -ax;
69998
+ boundary[1] = -ay;
69999
+ boundary[2] = +ax;
70000
+ boundary[3] = +ay;
70001
+ // # of vertices and # of indices
70002
+ var nv = 14;
70003
+ var ni = 6;
70004
+ this._nvertices = nv;
70005
+ this._nindices = ni;
70006
+ // ID
70007
+ this._id += 1;
70008
+ //
70009
+ if (sizeX === 0 || sizeY === 0) {
70010
+ this.pad(0, 0, nv, ni, 0);
70011
+ }
70012
+ else {
70013
+ var fx = 1 / sizeX;
70014
+ var fy = 1 / sizeY;
70015
+ switch (this._parent.stroke.side) {
70016
+ case EShapeStrokeSide.NONE:
70017
+ this.updateNone(fx, fy, ax, ay, scale, nv, ni);
70018
+ break;
70019
+ case EShapeStrokeSide.ALL:
70020
+ if (ay <= ax) {
70021
+ this.updateAll0(fx, fy, ax, ay, scale, nv, ni);
70022
+ }
70023
+ else {
70024
+ this.updateAll1(fx, fy, ax, ay, scale, nv, ni);
70025
+ }
70026
+ break;
70027
+ case EShapeStrokeSide.TOP:
70028
+ this.updateTop(fx, fy, ax, ay, scale, nv, ni);
70029
+ break;
70030
+ case EShapeStrokeSide.RIGHT:
70031
+ this.updateRight(fx, fy, ax, ay, scale, nv, ni);
70032
+ break;
70033
+ case EShapeStrokeSide.BOTTOM:
70034
+ this.updateBottom(fx, fy, ax, ay, scale, nv, ni);
70035
+ break;
70036
+ case EShapeStrokeSide.LEFT:
70037
+ this.updateLeft(fx, fy, ax, ay, scale, nv, ni);
70038
+ break;
70039
+ case EShapeStrokeSide.TOP_OR_BOTTOM:
70040
+ this.updateTopBottom(fx, fy, ax, ay, scale, nv, ni);
70041
+ break;
70042
+ case EShapeStrokeSide.LEFT_OR_RIGHT:
70043
+ this.updateLeftRight(fx, fy, ax, ay, scale, nv, ni);
70044
+ break;
70045
+ case EShapeStrokeSide.TOP_OR_RIGHT:
70046
+ if (ay <= ax) {
70047
+ this.updateTopRight0(fx, fy, ax, ay, scale, nv, ni);
70048
+ }
70049
+ else {
70050
+ this.updateTopRight1(fx, fy, ax, ay, scale, nv, ni);
70051
+ }
70052
+ break;
70053
+ case EShapeStrokeSide.TOP_OR_LEFT:
70054
+ if (ay <= ax) {
70055
+ this.updateTopLeft0(fx, fy, ax, ay, scale, nv, ni);
70056
+ }
70057
+ else {
70058
+ this.updateTopLeft1(fx, fy, ax, ay, scale, nv, ni);
70059
+ }
70060
+ break;
70061
+ case EShapeStrokeSide.BOTTOM_OR_RIGHT:
70062
+ if (ay <= ax) {
70063
+ this.updateBottomRight0(fx, fy, ax, ay, scale, nv, ni);
70064
+ }
70065
+ else {
70066
+ this.updateBottomRight1(fx, fy, ax, ay, scale, nv, ni);
70067
+ }
70068
+ break;
70069
+ case EShapeStrokeSide.BOTTOM_OR_LEFT:
70070
+ if (ay <= ax) {
70071
+ this.updateBottomLeft0(fx, fy, ax, ay, scale, nv, ni);
70072
+ }
70073
+ else {
70074
+ this.updateBottomLeft1(fx, fy, ax, ay, scale, nv, ni);
70075
+ }
70076
+ break;
70077
+ case EShapeStrokeSide.NOT_TOP:
70078
+ if (2 * ay <= ax) {
70079
+ this.updateNotTop0(fx, fy, ax, ay, scale, nv, ni);
70080
+ }
70081
+ else {
70082
+ this.updateNotTop1(fx, fy, ax, ay, scale, nv, ni);
70083
+ }
70084
+ break;
70085
+ case EShapeStrokeSide.NOT_RIGHT:
70086
+ if (2 * ax <= ay) {
70087
+ this.updateNotRight0(fx, fy, ax, ay, scale, nv, ni);
70088
+ }
70089
+ else {
70090
+ this.updateNotRight1(fx, fy, ax, ay, scale, nv, ni);
70091
+ }
70092
+ break;
70093
+ case EShapeStrokeSide.NOT_BOTTOM:
70094
+ if (2 * ay <= ax) {
70095
+ this.updateNotBottom0(fx, fy, ax, ay, scale, nv, ni);
70096
+ }
70097
+ else {
70098
+ this.updateNotBottom1(fx, fy, ax, ay, scale, nv, ni);
70099
+ }
70100
+ break;
70101
+ case EShapeStrokeSide.NOT_LEFT:
70102
+ if (2 * ax <= ay) {
70103
+ this.updateNotLeft0(fx, fy, ax, ay, scale, nv, ni);
70104
+ }
70105
+ else {
70106
+ this.updateNotLeft1(fx, fy, ax, ay, scale, nv, ni);
70107
+ }
70108
+ break;
70109
+ }
70110
+ }
70111
+ };
70112
+ /**
70113
+ * Fills the unused tail with degenerated triangles and trims the arrays
70114
+ * so that the buffers always hold exactly `nv` vertices and `ni` triangles.
70115
+ */
70116
+ EShapeRectangleTriangulatedImpl.prototype.pad = function (iv, ii, nv, ni, fd) {
70117
+ var vertices = this._vertices;
70118
+ var distances = this._distances;
70119
+ var lengths = this._lengths;
70120
+ var clippings = this._clippings;
70121
+ var uvs = this._uvs;
70122
+ var indices = this._indices;
70123
+ for (var i = iv; i < nv; ++i) {
70124
+ var i2 = i << 1;
70125
+ vertices[i2] = 0;
70126
+ vertices[i2 + 1] = 0;
70127
+ distances[i] = fd;
70128
+ lengths[i] = 0;
70129
+ clippings[i] = 0;
70130
+ uvs[i2] = 0.5;
70131
+ uvs[i2 + 1] = 0.5;
70132
+ }
70133
+ for (var i = ii, imax = ni * 3; i < imax; ++i) {
70134
+ indices[i] = 0;
70135
+ }
70136
+ var nv2 = nv << 1;
70137
+ vertices.length = nv2;
70138
+ distances.length = nv;
70139
+ lengths.length = nv;
70140
+ clippings.length = nv;
70141
+ uvs.length = nv2;
70142
+ indices.length = ni * 3;
70143
+ };
70144
+ EShapeRectangleTriangulatedImpl.prototype.updateTop = function (fx, fy, ax, ay, scale, nv, ni) {
70145
+ var fdistance = 1 / (2 * ay);
70146
+ this.updateCellTop(-ax, -ay - (scale - 1) / fdistance, +ax, +ay, fdistance, scale, fx, fy, ax, ay, 0);
70147
+ this.pad(4, 6, nv, ni, fdistance);
70148
+ };
70149
+ EShapeRectangleTriangulatedImpl.prototype.updateRight = function (fx, fy, ax, ay, scale, nv, ni) {
70150
+ var fdistance = 1 / (2 * ax);
70151
+ this.updateCellRight(-ax, -ay, +ax + (scale - 1) / fdistance, +ay, fdistance, scale, fx, fy, ax, ay, 0);
70152
+ this.pad(4, 6, nv, ni, fdistance);
70153
+ };
70154
+ EShapeRectangleTriangulatedImpl.prototype.updateBottom = function (fx, fy, ax, ay, scale, nv, ni) {
70155
+ var fdistance = 1 / (2 * ay);
70156
+ this.updateCellBottom(-ax, -ay, +ax, +ay + (scale - 1) / fdistance, fdistance, scale, fx, fy, ax, ay, 0);
70157
+ this.pad(4, 6, nv, ni, fdistance);
70158
+ };
70159
+ EShapeRectangleTriangulatedImpl.prototype.updateLeft = function (fx, fy, ax, ay, scale, nv, ni) {
70160
+ var fdistance = 1 / (2 * ax);
70161
+ this.updateCellLeft(-ax - (scale - 1) / fdistance, -ay, +ax, +ay, fdistance, scale, fx, fy, ax, ay, 0);
70162
+ this.pad(4, 6, nv, ni, fdistance);
70163
+ };
70164
+ EShapeRectangleTriangulatedImpl.prototype.updateLeftRight = function (fx, fy, ax, ay, scale, nv, ni) {
70165
+ var fdistance = 1 / ax;
70166
+ var shift = (scale - 1) / fdistance;
70167
+ this.updateCellLeft(-ax - shift, -ay, 0, +ay, fdistance, scale, fx, fy, ax, ay, 0);
70168
+ this.updateCellRight(0, -ay, +ax + shift, +ay, fdistance, scale, fx, fy, ax, ay, 4);
70169
+ this.pad(8, 12, nv, ni, fdistance);
70170
+ };
70171
+ EShapeRectangleTriangulatedImpl.prototype.updateTopBottom = function (fx, fy, ax, ay, scale, nv, ni) {
70172
+ var fdistance = 1 / ay;
70173
+ var shift = (scale - 1) / fdistance;
70174
+ this.updateCellTop(-ax, -ay - shift, +ax, 0, fdistance, scale, fx, fy, ax, ay, 0);
70175
+ this.updateCellBottom(-ax, 0, +ax, +ay + shift, fdistance, scale, fx, fy, ax, ay, 4);
70176
+ this.pad(8, 12, nv, ni, fdistance);
70177
+ };
70178
+ EShapeRectangleTriangulatedImpl.prototype.updateTopRight0 = function (fx, fy, ax, ay, scale, nv, ni) {
70179
+ var distance = 2 * ay;
70180
+ var fdistance = 1 / distance;
70181
+ var shift = (scale - 1) * distance;
70182
+ var left = -ax;
70183
+ var right = +ax + shift;
70184
+ var top = -ay - shift;
70185
+ var bottom = +ay;
70186
+ var indices = this._indices;
70187
+ var splitX = ax - 2 * ay;
70188
+ this.updateVertexTop(0, left, top, fdistance, scale, fx, fy, ax, ay);
70189
+ this.updateVertexTop(1, right, top, fdistance, scale, fx, fy, ax, ay);
70190
+ this.updateVertexTop(2, splitX, bottom, fdistance, scale, fx, fy, ax, ay);
70191
+ this.updateVertexTop(3, left, bottom, fdistance, scale, fx, fy, ax, ay);
70192
+ this.updateVertexRight(4, right, top, fdistance, scale, fx, fy, ax, ay);
70193
+ this.updateVertexRight(5, right, bottom, fdistance, scale, fx, fy, ax, ay);
70194
+ this.updateVertexRight(6, splitX, bottom, fdistance, scale, fx, fy, ax, ay);
70195
+ indices[0] = 0;
70196
+ indices[1] = 1;
70197
+ indices[2] = 2;
70198
+ indices[3] = 0;
70199
+ indices[4] = 2;
70200
+ indices[5] = 3;
70201
+ indices[6] = 4;
70202
+ indices[7] = 5;
70203
+ indices[8] = 6;
70204
+ this.pad(7, 9, nv, ni, fdistance);
70205
+ };
70206
+ EShapeRectangleTriangulatedImpl.prototype.updateTopRight1 = function (fx, fy, ax, ay, scale, nv, ni) {
70207
+ var distance = 2 * ax;
70208
+ var fdistance = 1 / distance;
70209
+ var shift = (scale - 1) * distance;
70210
+ var left = -ax;
70211
+ var right = +ax + shift;
70212
+ var top = -ay - shift;
70213
+ var bottom = +ay;
70214
+ var indices = this._indices;
70215
+ var splitY = 2 * ax - ay;
70216
+ this.updateVertexTop(0, left, top, fdistance, scale, fx, fy, ax, ay);
70217
+ this.updateVertexTop(1, right, top, fdistance, scale, fx, fy, ax, ay);
70218
+ this.updateVertexTop(2, left, splitY, fdistance, scale, fx, fy, ax, ay);
70219
+ this.updateVertexRight(3, right, top, fdistance, scale, fx, fy, ax, ay);
70220
+ this.updateVertexRight(4, right, bottom, fdistance, scale, fx, fy, ax, ay);
70221
+ this.updateVertexRight(5, left, bottom, fdistance, scale, fx, fy, ax, ay);
70222
+ this.updateVertexRight(6, left, splitY, fdistance, scale, fx, fy, ax, ay);
70223
+ indices[0] = 0;
70224
+ indices[1] = 1;
70225
+ indices[2] = 2;
70226
+ indices[3] = 3;
70227
+ indices[4] = 4;
70228
+ indices[5] = 5;
70229
+ indices[6] = 3;
70230
+ indices[7] = 5;
70231
+ indices[8] = 6;
70232
+ this.pad(7, 9, nv, ni, fdistance);
70233
+ };
70234
+ EShapeRectangleTriangulatedImpl.prototype.updateBottomLeft0 = function (fx, fy, ax, ay, scale, nv, ni) {
70235
+ var distance = 2 * ay;
70236
+ var fdistance = 1 / distance;
70237
+ var shift = (scale - 1) * distance;
70238
+ var left = -ax - shift;
70239
+ var right = +ax;
70240
+ var top = -ay;
70241
+ var bottom = +ay + shift;
70242
+ var splitX = 2 * ay - ax;
70243
+ this.updateQuadBottom(0, 0, right, bottom, left, bottom, splitX, top, right, top, fdistance, scale, fx, fy, ax, ay);
70244
+ this.updateTriLeft(4, 6, left, bottom, left, top, splitX, top, fdistance, scale, fx, fy, ax, ay);
70245
+ this.pad(7, 9, nv, ni, fdistance);
70246
+ };
70247
+ EShapeRectangleTriangulatedImpl.prototype.updateBottomLeft1 = function (fx, fy, ax, ay, scale, nv, ni) {
70248
+ var distance = 2 * ax;
70249
+ var fdistance = 1 / distance;
70250
+ var shift = (scale - 1) * distance;
70251
+ var left = -ax - shift;
70252
+ var right = +ax;
70253
+ var top = -ay;
70254
+ var bottom = +ay + shift;
70255
+ var splitY = ay - 2 * ax;
70256
+ this.updateTriBottom(0, 0, right, bottom, left, bottom, right, splitY, fdistance, scale, fx, fy, ax, ay);
70257
+ this.updateQuadLeft(3, 3, left, bottom, left, top, right, top, right, splitY, fdistance, scale, fx, fy, ax, ay);
70258
+ this.pad(7, 9, nv, ni, fdistance);
70259
+ };
70260
+ EShapeRectangleTriangulatedImpl.prototype.updateTopLeft0 = function (fx, fy, ax, ay, scale, nv, ni) {
70261
+ var distance = 2 * ay;
70262
+ var fdistance = 1 / distance;
70263
+ var shift = (scale - 1) * distance;
70264
+ var left = -ax - shift;
70265
+ var right = +ax;
70266
+ var top = -ay - shift;
70267
+ var bottom = +ay;
70268
+ var splitX = 2 * ay - ax;
70269
+ this.updateQuadTop(0, 0, right, top, left, top, splitX, bottom, right, bottom, fdistance, scale, fx, fy, ax, ay);
70270
+ this.updateTriLeft(4, 6, left, top, left, bottom, splitX, bottom, fdistance, scale, fx, fy, ax, ay);
70271
+ this.pad(7, 9, nv, ni, fdistance);
70272
+ };
70273
+ EShapeRectangleTriangulatedImpl.prototype.updateTopLeft1 = function (fx, fy, ax, ay, scale, nv, ni) {
70274
+ var distance = 2 * ax;
70275
+ var fdistance = 1 / distance;
70276
+ var shift = (scale - 1) * distance;
70277
+ var left = -ax - shift;
70278
+ var right = +ax;
70279
+ var top = -ay - shift;
70280
+ var bottom = +ay;
70281
+ var splitY = 2 * ax - ay;
70282
+ this.updateTriTop(0, 0, right, top, left, top, right, splitY, fdistance, scale, fx, fy, ax, ay);
70283
+ this.updateQuadLeft(3, 3, left, top, left, bottom, right, bottom, right, splitY, fdistance, scale, fx, fy, ax, ay);
70284
+ this.pad(7, 9, nv, ni, fdistance);
70285
+ };
70286
+ EShapeRectangleTriangulatedImpl.prototype.updateBottomRight0 = function (fx, fy, ax, ay, scale, nv, ni) {
70287
+ var distance = 2 * ay;
70288
+ var fdistance = 1 / distance;
70289
+ var shift = (scale - 1) * distance;
70290
+ var left = -ax;
70291
+ var right = +ax + shift;
70292
+ var top = -ay;
70293
+ var bottom = +ay + shift;
70294
+ var splitX = ax - 2 * ay;
70295
+ this.updateQuadBottom(0, 0, left, bottom, right, bottom, splitX, top, left, top, fdistance, scale, fx, fy, ax, ay);
70296
+ this.updateTriRight(4, 6, right, bottom, right, top, splitX, top, fdistance, scale, fx, fy, ax, ay);
70297
+ this.pad(7, 9, nv, ni, fdistance);
70298
+ };
70299
+ EShapeRectangleTriangulatedImpl.prototype.updateBottomRight1 = function (fx, fy, ax, ay, scale, nv, ni) {
70300
+ var distance = 2 * ax;
70301
+ var fdistance = 1 / distance;
70302
+ var shift = (scale - 1) * distance;
70303
+ var left = -ax;
70304
+ var right = +ax + shift;
70305
+ var top = -ay;
70306
+ var bottom = +ay + shift;
70307
+ var splitY = ay - 2 * ax;
70308
+ this.updateTriBottom(0, 0, left, bottom, right, bottom, left, splitY, fdistance, scale, fx, fy, ax, ay);
70309
+ this.updateQuadRight(3, 3, right, bottom, right, top, left, top, left, splitY, fdistance, scale, fx, fy, ax, ay);
70310
+ this.pad(7, 9, nv, ni, fdistance);
70311
+ };
70312
+ EShapeRectangleTriangulatedImpl.prototype.updateNotTop0 = function (fx, fy, ax, ay, scale, nv, ni) {
70313
+ var distance = 2 * ay;
70314
+ var fdistance = 1 / distance;
70315
+ var shift = (scale - 1) * distance;
70316
+ var left = -ax - shift;
70317
+ var right = +ax + shift;
70318
+ var top = -ay;
70319
+ var bottom = +ay + shift;
70320
+ var splitLeft = 2 * ay - ax;
70321
+ var splitRight = ax - 2 * ay;
70322
+ this.updateTriLeft(0, 0, left, top, splitLeft, top, left, bottom, fdistance, scale, fx, fy, ax, ay);
70323
+ this.updateQuadBottom(3, 3, splitLeft, top, splitRight, top, right, bottom, left, bottom, fdistance, scale, fx, fy, ax, ay);
70324
+ this.updateTriRight(7, 9, splitRight, top, right, top, right, bottom, fdistance, scale, fx, fy, ax, ay);
70325
+ this.pad(10, 12, nv, ni, fdistance);
70326
+ };
70327
+ EShapeRectangleTriangulatedImpl.prototype.updateNotTop1 = function (fx, fy, ax, ay, scale, nv, ni) {
70328
+ var distance = ax;
70329
+ var fdistance = 1 / distance;
70330
+ var shift = (scale - 1) * distance;
70331
+ var left = -ax - shift;
70332
+ var right = +ax + shift;
70333
+ var top = -ay;
70334
+ var bottom = +ay + shift;
70335
+ var splitY = ay - ax;
70336
+ this.updateQuadLeft(0, 0, left, top, 0, top, 0, splitY, left, bottom, fdistance, scale, fx, fy, ax, ay);
70337
+ this.updateQuadRight(4, 6, 0, top, right, top, right, bottom, 0, splitY, fdistance, scale, fx, fy, ax, ay);
70338
+ this.updateTriBottom(8, 12, 0, splitY, right, bottom, left, bottom, fdistance, scale, fx, fy, ax, ay);
70339
+ this.pad(11, 15, nv, ni, fdistance);
70340
+ };
70341
+ EShapeRectangleTriangulatedImpl.prototype.updateNotBottom0 = function (fx, fy, ax, ay, scale, nv, ni) {
70342
+ var distance = 2 * ay;
70343
+ var fdistance = 1 / distance;
70344
+ var shift = (scale - 1) * distance;
70345
+ var left = -ax - shift;
70346
+ var right = +ax + shift;
70347
+ var top = -ay - shift;
70348
+ var bottom = +ay;
70349
+ var splitLeft = 2 * ay - ax;
70350
+ var splitRight = ax - 2 * ay;
70351
+ this.updateTriLeft(0, 0, left, bottom, splitLeft, bottom, left, top, fdistance, scale, fx, fy, ax, ay);
70352
+ this.updateQuadTop(3, 3, splitLeft, bottom, splitRight, bottom, right, top, left, top, fdistance, scale, fx, fy, ax, ay);
70353
+ this.updateTriRight(7, 9, splitRight, bottom, right, bottom, right, top, fdistance, scale, fx, fy, ax, ay);
70354
+ this.pad(10, 12, nv, ni, fdistance);
70355
+ };
70356
+ EShapeRectangleTriangulatedImpl.prototype.updateNotBottom1 = function (fx, fy, ax, ay, scale, nv, ni) {
70357
+ var distance = ax;
70358
+ var fdistance = 1 / distance;
70359
+ var shift = (scale - 1) * distance;
70360
+ var left = -ax - shift;
70361
+ var right = +ax + shift;
70362
+ var top = -ay - shift;
70363
+ var bottom = +ay;
70364
+ var splitY = ay - ax;
70365
+ this.updateQuadLeft(0, 0, left, bottom, 0, bottom, 0, -splitY, left, top, fdistance, scale, fx, fy, ax, ay);
70366
+ this.updateQuadRight(4, 6, 0, bottom, right, bottom, right, top, 0, -splitY, fdistance, scale, fx, fy, ax, ay);
70367
+ this.updateTriTop(8, 12, 0, -splitY, right, top, left, top, fdistance, scale, fx, fy, ax, ay);
70368
+ this.pad(11, 15, nv, ni, fdistance);
70369
+ };
70370
+ EShapeRectangleTriangulatedImpl.prototype.updateNotLeft0 = function (fx, fy, ax, ay, scale, nv, ni) {
70371
+ var distance = 2 * ax;
70372
+ var fdistance = 1 / distance;
70373
+ var shift = (scale - 1) * distance;
70374
+ var left = -ax;
70375
+ var right = +ax + shift;
70376
+ var top = -ay - shift;
70377
+ var bottom = +ay + shift;
70378
+ var splitTop = 2 * ax - ay;
70379
+ var splitBottom = ay - 2 * ax;
70380
+ this.updateTriBottom(0, 0, left, bottom, left, splitBottom, right, bottom, fdistance, scale, fx, fy, ax, ay);
70381
+ this.updateQuadRight(3, 3, left, splitBottom, left, splitTop, right, top, right, bottom, fdistance, scale, fx, fy, ax, ay);
70382
+ this.updateTriTop(7, 9, left, splitTop, left, top, right, top, fdistance, scale, fx, fy, ax, ay);
70383
+ this.pad(10, 12, nv, ni, fdistance);
70384
+ };
70385
+ EShapeRectangleTriangulatedImpl.prototype.updateNotLeft1 = function (fx, fy, ax, ay, scale, nv, ni) {
70386
+ var distance = ay;
70387
+ var fdistance = 1 / distance;
70388
+ var shift = (scale - 1) * distance;
70389
+ var left = -ax;
70390
+ var right = +ax + shift;
70391
+ var top = -ay - shift;
70392
+ var bottom = +ay + shift;
70393
+ var splitX = ax - ay;
70394
+ this.updateQuadBottom(0, 0, left, bottom, left, 0, splitX, 0, right, bottom, fdistance, scale, fx, fy, ax, ay);
70395
+ this.updateQuadTop(4, 6, left, 0, left, top, right, top, splitX, 0, fdistance, scale, fx, fy, ax, ay);
70396
+ this.updateTriRight(8, 12, splitX, 0, right, top, right, bottom, fdistance, scale, fx, fy, ax, ay);
70397
+ this.pad(11, 15, nv, ni, fdistance);
70398
+ };
70399
+ EShapeRectangleTriangulatedImpl.prototype.updateNotRight0 = function (fx, fy, ax, ay, scale, nv, ni) {
70400
+ var distance = 2 * ax;
70401
+ var fdistance = 1 / distance;
70402
+ var shift = (scale - 1) * distance;
70403
+ var left = -ax - shift;
70404
+ var right = +ax;
70405
+ var top = -ay - shift;
70406
+ var bottom = +ay + shift;
70407
+ var stop = 2 * ax - ay;
70408
+ var sbottom = ay - 2 * ax;
70409
+ this.updateTriBottom(0, 0, right, bottom, right, sbottom, left, bottom, fdistance, scale, fx, fy, ax, ay);
70410
+ this.updateQuadLeft(3, 3, right, sbottom, right, stop, left, top, left, bottom, fdistance, scale, fx, fy, ax, ay);
70411
+ this.updateTriTop(7, 9, right, stop, right, top, left, top, fdistance, scale, fx, fy, ax, ay);
70412
+ this.pad(10, 12, nv, ni, fdistance);
70413
+ };
70414
+ EShapeRectangleTriangulatedImpl.prototype.updateNotRight1 = function (fx, fy, ax, ay, scale, nv, ni) {
70415
+ var distance = ay;
70416
+ var fdistance = 1 / distance;
70417
+ var shift = (scale - 1) * distance;
70418
+ var left = -ax - shift;
70419
+ var right = +ax;
70420
+ var top = -ay - shift;
70421
+ var bottom = +ay + shift;
70422
+ var splitX = ay - ax;
70423
+ this.updateQuadBottom(0, 0, right, bottom, right, 0, splitX, 0, left, bottom, fdistance, scale, fx, fy, ax, ay);
70424
+ this.updateQuadTop(4, 6, right, 0, right, top, left, top, splitX, 0, fdistance, scale, fx, fy, ax, ay);
70425
+ this.updateTriLeft(8, 12, splitX, 0, left, top, left, bottom, fdistance, scale, fx, fy, ax, ay);
70426
+ this.pad(11, 15, nv, ni, fdistance);
70427
+ };
70428
+ EShapeRectangleTriangulatedImpl.prototype.updateTriTop = function (iv, ii, x0, y0, x1, y1, x2, y2, fdistance, scale, fx, fy, ax, ay, reverse) {
70429
+ if (reverse === void 0) { reverse = (x1 - x0) * (y2 - y0) < (y1 - y0) * (x2 - x0); }
70430
+ this.updateVertexTop(iv, x0, y0, fdistance, scale, fx, fy, ax, ay);
70431
+ this.updateVertexTop(iv + 1, x1, y1, fdistance, scale, fx, fy, ax, ay);
70432
+ this.updateVertexTop(iv + 2, x2, y2, fdistance, scale, fx, fy, ax, ay);
70433
+ this._indices[ii] = iv;
70434
+ this._indices[ii + 1] = iv + (reverse ? 2 : 1);
70435
+ this._indices[ii + 2] = iv + (reverse ? 1 : 2);
70436
+ };
70437
+ EShapeRectangleTriangulatedImpl.prototype.updateTriRight = function (iv, ii, x0, y0, x1, y1, x2, y2, fdistance, scale, fx, fy, ax, ay, reverse) {
70438
+ if (reverse === void 0) { reverse = (x1 - x0) * (y2 - y0) < (y1 - y0) * (x2 - x0); }
70439
+ this.updateVertexRight(iv, x0, y0, fdistance, scale, fx, fy, ax, ay);
70440
+ this.updateVertexRight(iv + 1, x1, y1, fdistance, scale, fx, fy, ax, ay);
70441
+ this.updateVertexRight(iv + 2, x2, y2, fdistance, scale, fx, fy, ax, ay);
70442
+ this._indices[ii] = iv;
70443
+ this._indices[ii + 1] = iv + (reverse ? 2 : 1);
70444
+ this._indices[ii + 2] = iv + (reverse ? 1 : 2);
70445
+ };
70446
+ EShapeRectangleTriangulatedImpl.prototype.updateTriBottom = function (iv, ii, x0, y0, x1, y1, x2, y2, fdistance, scale, fx, fy, ax, ay, reverse) {
70447
+ if (reverse === void 0) { reverse = (x1 - x0) * (y2 - y0) < (y1 - y0) * (x2 - x0); }
70448
+ this.updateVertexBottom(iv, x0, y0, fdistance, scale, fx, fy, ax, ay);
70449
+ this.updateVertexBottom(iv + 1, x1, y1, fdistance, scale, fx, fy, ax, ay);
70450
+ this.updateVertexBottom(iv + 2, x2, y2, fdistance, scale, fx, fy, ax, ay);
70451
+ this._indices[ii] = iv;
70452
+ this._indices[ii + 1] = iv + (reverse ? 2 : 1);
70453
+ this._indices[ii + 2] = iv + (reverse ? 1 : 2);
70454
+ };
70455
+ EShapeRectangleTriangulatedImpl.prototype.updateTriLeft = function (iv, ii, x0, y0, x1, y1, x2, y2, fdistance, scale, fx, fy, ax, ay, reverse) {
70456
+ if (reverse === void 0) { reverse = (x1 - x0) * (y2 - y0) < (y1 - y0) * (x2 - x0); }
70457
+ this.updateVertexLeft(iv, x0, y0, fdistance, scale, fx, fy, ax, ay);
70458
+ this.updateVertexLeft(iv + 1, x1, y1, fdistance, scale, fx, fy, ax, ay);
70459
+ this.updateVertexLeft(iv + 2, x2, y2, fdistance, scale, fx, fy, ax, ay);
70460
+ this._indices[ii] = iv;
70461
+ this._indices[ii + 1] = iv + (reverse ? 2 : 1);
70462
+ this._indices[ii + 2] = iv + (reverse ? 1 : 2);
70463
+ };
70464
+ EShapeRectangleTriangulatedImpl.prototype.updateQuadTop = function (iv, ii, x0, y0, x1, y1, x2, y2, x3, y3, fdistance, scale, fx, fy, ax, ay, reverse) {
70465
+ if (reverse === void 0) { reverse = (x1 - x0) * (y2 - y0) < (y1 - y0) * (x2 - x0); }
70466
+ this.updateVertexTop(iv, x0, y0, fdistance, scale, fx, fy, ax, ay);
70467
+ this.updateVertexTop(iv + 1, x1, y1, fdistance, scale, fx, fy, ax, ay);
70468
+ this.updateVertexTop(iv + 2, x2, y2, fdistance, scale, fx, fy, ax, ay);
70469
+ this.updateVertexTop(iv + 3, x3, y3, fdistance, scale, fx, fy, ax, ay);
70470
+ this._indices[ii] = iv;
70471
+ this._indices[ii + 1] = iv + (reverse ? 2 : 1);
70472
+ this._indices[ii + 2] = iv + (reverse ? 1 : 2);
70473
+ this._indices[ii + 3] = iv;
70474
+ this._indices[ii + 4] = iv + (reverse ? 3 : 2);
70475
+ this._indices[ii + 5] = iv + (reverse ? 2 : 3);
70476
+ };
70477
+ EShapeRectangleTriangulatedImpl.prototype.updateQuadRight = function (iv, ii, x0, y0, x1, y1, x2, y2, x3, y3, fdistance, scale, fx, fy, ax, ay, reverse) {
70478
+ if (reverse === void 0) { reverse = (x1 - x0) * (y2 - y0) < (y1 - y0) * (x2 - x0); }
70479
+ this.updateVertexRight(iv, x0, y0, fdistance, scale, fx, fy, ax, ay);
70480
+ this.updateVertexRight(iv + 1, x1, y1, fdistance, scale, fx, fy, ax, ay);
70481
+ this.updateVertexRight(iv + 2, x2, y2, fdistance, scale, fx, fy, ax, ay);
70482
+ this.updateVertexRight(iv + 3, x3, y3, fdistance, scale, fx, fy, ax, ay);
70483
+ this._indices[ii] = iv;
70484
+ this._indices[ii + 1] = iv + (reverse ? 2 : 1);
70485
+ this._indices[ii + 2] = iv + (reverse ? 1 : 2);
70486
+ this._indices[ii + 3] = iv;
70487
+ this._indices[ii + 4] = iv + (reverse ? 3 : 2);
70488
+ this._indices[ii + 5] = iv + (reverse ? 2 : 3);
70489
+ };
70490
+ EShapeRectangleTriangulatedImpl.prototype.updateQuadBottom = function (iv, ii, x0, y0, x1, y1, x2, y2, x3, y3, fdistance, scale, fx, fy, ax, ay, reverse) {
70491
+ if (reverse === void 0) { reverse = (x1 - x0) * (y2 - y0) < (y1 - y0) * (x2 - x0); }
70492
+ this.updateVertexBottom(iv, x0, y0, fdistance, scale, fx, fy, ax, ay);
70493
+ this.updateVertexBottom(iv + 1, x1, y1, fdistance, scale, fx, fy, ax, ay);
70494
+ this.updateVertexBottom(iv + 2, x2, y2, fdistance, scale, fx, fy, ax, ay);
70495
+ this.updateVertexBottom(iv + 3, x3, y3, fdistance, scale, fx, fy, ax, ay);
70496
+ this._indices[ii] = iv;
70497
+ this._indices[ii + 1] = iv + (reverse ? 2 : 1);
70498
+ this._indices[ii + 2] = iv + (reverse ? 1 : 2);
70499
+ this._indices[ii + 3] = iv;
70500
+ this._indices[ii + 4] = iv + (reverse ? 3 : 2);
70501
+ this._indices[ii + 5] = iv + (reverse ? 2 : 3);
70502
+ };
70503
+ EShapeRectangleTriangulatedImpl.prototype.updateQuadLeft = function (iv, ii, x0, y0, x1, y1, x2, y2, x3, y3, fdistance, scale, fx, fy, ax, ay, reverse) {
70504
+ if (reverse === void 0) { reverse = (x1 - x0) * (y2 - y0) < (y1 - y0) * (x2 - x0); }
70505
+ this.updateVertexLeft(iv, x0, y0, fdistance, scale, fx, fy, ax, ay);
70506
+ this.updateVertexLeft(iv + 1, x1, y1, fdistance, scale, fx, fy, ax, ay);
70507
+ this.updateVertexLeft(iv + 2, x2, y2, fdistance, scale, fx, fy, ax, ay);
70508
+ this.updateVertexLeft(iv + 3, x3, y3, fdistance, scale, fx, fy, ax, ay);
70509
+ this._indices[ii] = iv;
70510
+ this._indices[ii + 1] = iv + (reverse ? 2 : 1);
70511
+ this._indices[ii + 2] = iv + (reverse ? 1 : 2);
70512
+ this._indices[ii + 3] = iv;
70513
+ this._indices[ii + 4] = iv + (reverse ? 3 : 2);
70514
+ this._indices[ii + 5] = iv + (reverse ? 2 : 3);
70515
+ };
70516
+ EShapeRectangleTriangulatedImpl.prototype.updateNone = function (fx, fy, ax, ay, scale, nv, ni) {
70517
+ this.updateCellNone(-ax, -ay, +ax, +ay, 0, scale, fx, fy, ax, ay, 0);
70518
+ this.pad(4, 6, nv, ni, 0);
70519
+ };
70520
+ EShapeRectangleTriangulatedImpl.prototype.updateAll0 = function (fx, fy, ax, ay, scale, nv, ni) {
70521
+ var distance = ay;
70522
+ var fdistance = 1 / distance;
70523
+ var shift = (scale - 1) * distance;
70524
+ var outerLeft = -ax - shift;
70525
+ var outerRight = +ax + shift;
70526
+ var outerTop = -ay - shift;
70527
+ var outerBottom = +ay + shift;
70528
+ var innerLeft = -ax + ay;
70529
+ var innerRight = +ax - ay;
70530
+ this.updateQuadTop(0, 0, outerLeft, outerTop, outerRight, outerTop, innerRight, 0, innerLeft, 0, fdistance, scale, fx, fy, ax, ay);
70531
+ this.updateTriRight(4, 6, outerRight, outerTop, outerRight, outerBottom, innerRight, 0, fdistance, scale, fx, fy, ax, ay);
70532
+ this.updateQuadBottom(7, 9, outerRight, outerBottom, outerLeft, outerBottom, innerLeft, 0, innerRight, 0, fdistance, scale, fx, fy, ax, ay);
70533
+ this.updateTriLeft(11, 15, outerLeft, outerBottom, outerLeft, outerTop, innerLeft, 0, fdistance, scale, fx, fy, ax, ay);
70534
+ this.pad(14, 18, nv, ni, fdistance);
70535
+ };
70536
+ EShapeRectangleTriangulatedImpl.prototype.updateAll1 = function (fx, fy, ax, ay, scale, nv, ni) {
70537
+ var distance = ax;
70538
+ var fdistance = 1 / distance;
70539
+ var shift = (scale - 1) * distance;
70540
+ var outerLeft = -ax - shift;
70541
+ var outerRight = +ax + shift;
70542
+ var outerTop = -ay - shift;
70543
+ var outerBottom = +ay + shift;
70544
+ var innerTop = -ay + ax;
70545
+ var innerBottom = +ay - ax;
70546
+ this.updateTriTop(0, 0, outerLeft, outerTop, outerRight, outerTop, 0, innerTop, fdistance, scale, fx, fy, ax, ay);
70547
+ this.updateQuadRight(3, 3, outerRight, outerTop, outerRight, outerBottom, 0, innerBottom, 0, innerTop, fdistance, scale, fx, fy, ax, ay);
70548
+ this.updateTriBottom(7, 9, outerRight, outerBottom, outerLeft, outerBottom, 0, innerBottom, fdistance, scale, fx, fy, ax, ay);
70549
+ this.updateQuadLeft(10, 12, outerLeft, outerBottom, outerLeft, outerTop, 0, innerTop, 0, innerBottom, fdistance, scale, fx, fy, ax, ay);
70550
+ this.pad(14, 18, nv, ni, fdistance);
70551
+ };
70552
+ EShapeRectangleTriangulatedImpl.prototype.updateCellNone = function (x0, y0, x1, y1, fdistance, scale, fx, fy, ax, ay, iv) {
70553
+ this.updateVertex(iv, x0, y0, 0, 0, 0, fx, fy);
70554
+ this.updateVertex(iv + 1, x1, y0, 0, 0, 0, fx, fy);
70555
+ this.updateVertex(iv + 2, x1, y1, 0, 0, 0, fx, fy);
70556
+ this.updateVertex(iv + 3, x0, y1, 0, 0, 0, fx, fy);
70557
+ var ii = (iv >> 1) * 3;
70558
+ var indices = this._indices;
70559
+ indices[ii++] = iv;
70560
+ indices[ii++] = iv + 1;
70561
+ indices[ii++] = iv + 2;
70562
+ indices[ii++] = iv;
70563
+ indices[ii++] = iv + 2;
70564
+ indices[ii++] = iv + 3;
70565
+ };
70566
+ EShapeRectangleTriangulatedImpl.prototype.updateCellTop = function (x0, y0, x1, y1, fdistance, scale, fx, fy, ax, ay, iv) {
70567
+ this.updateVertexTop(iv, x0, y0, fdistance, scale, fx, fy, ax, ay);
70568
+ this.updateVertexTop(iv + 1, x1, y0, fdistance, scale, fx, fy, ax, ay);
70569
+ this.updateVertexTop(iv + 2, x1, y1, fdistance, scale, fx, fy, ax, ay);
70570
+ this.updateVertexTop(iv + 3, x0, y1, fdistance, scale, fx, fy, ax, ay);
70571
+ var ii = (iv >> 1) * 3;
70572
+ var indices = this._indices;
70573
+ indices[ii++] = iv;
70574
+ indices[ii++] = iv + 1;
70575
+ indices[ii++] = iv + 2;
70576
+ indices[ii++] = iv;
70577
+ indices[ii++] = iv + 2;
70578
+ indices[ii++] = iv + 3;
70579
+ };
70580
+ EShapeRectangleTriangulatedImpl.prototype.updateCellRight = function (x0, y0, x1, y1, fdistance, scale, fx, fy, ax, ay, iv) {
70581
+ this.updateVertexRight(iv, x0, y0, fdistance, scale, fx, fy, ax, ay);
70582
+ this.updateVertexRight(iv + 1, x1, y0, fdistance, scale, fx, fy, ax, ay);
70583
+ this.updateVertexRight(iv + 2, x1, y1, fdistance, scale, fx, fy, ax, ay);
70584
+ this.updateVertexRight(iv + 3, x0, y1, fdistance, scale, fx, fy, ax, ay);
70585
+ var ii = (iv >> 1) * 3;
70586
+ var indices = this._indices;
70587
+ indices[ii++] = iv;
70588
+ indices[ii++] = iv + 1;
70589
+ indices[ii++] = iv + 2;
70590
+ indices[ii++] = iv;
70591
+ indices[ii++] = iv + 2;
70592
+ indices[ii++] = iv + 3;
70593
+ };
70594
+ EShapeRectangleTriangulatedImpl.prototype.updateCellBottom = function (x0, y0, x1, y1, fdistance, scale, fx, fy, ax, ay, iv) {
70595
+ this.updateVertexBottom(iv, x0, y0, fdistance, scale, fx, fy, ax, ay);
70596
+ this.updateVertexBottom(iv + 1, x1, y0, fdistance, scale, fx, fy, ax, ay);
70597
+ this.updateVertexBottom(iv + 2, x1, y1, fdistance, scale, fx, fy, ax, ay);
70598
+ this.updateVertexBottom(iv + 3, x0, y1, fdistance, scale, fx, fy, ax, ay);
70599
+ var ii = (iv >> 1) * 3;
70600
+ var indices = this._indices;
70601
+ indices[ii++] = iv;
70602
+ indices[ii++] = iv + 1;
70603
+ indices[ii++] = iv + 2;
70604
+ indices[ii++] = iv;
70605
+ indices[ii++] = iv + 2;
70606
+ indices[ii++] = iv + 3;
70607
+ };
70608
+ EShapeRectangleTriangulatedImpl.prototype.updateCellLeft = function (x0, y0, x1, y1, fdistance, scale, fx, fy, ax, ay, iv) {
70609
+ this.updateVertexLeft(iv, x0, y0, fdistance, scale, fx, fy, ax, ay);
70610
+ this.updateVertexLeft(iv + 1, x1, y0, fdistance, scale, fx, fy, ax, ay);
70611
+ this.updateVertexLeft(iv + 2, x1, y1, fdistance, scale, fx, fy, ax, ay);
70612
+ this.updateVertexLeft(iv + 3, x0, y1, fdistance, scale, fx, fy, ax, ay);
70613
+ var ii = (iv >> 1) * 3;
70614
+ var indices = this._indices;
70615
+ indices[ii++] = iv;
70616
+ indices[ii++] = iv + 1;
70617
+ indices[ii++] = iv + 2;
70618
+ indices[ii++] = iv;
70619
+ indices[ii++] = iv + 2;
70620
+ indices[ii++] = iv + 3;
70621
+ };
70622
+ EShapeRectangleTriangulatedImpl.prototype.updateVertexTop = function (vertex, x, y, fdistance, scale, fx, fy, ax, ay) {
70623
+ this.updateVertex(vertex, x, y, fdistance, x + ax, Math.min(scale, (y + ay) * -fdistance + 1), fx, fy);
70624
+ };
70625
+ EShapeRectangleTriangulatedImpl.prototype.updateVertexRight = function (vertex, x, y, fdistance, scale, fx, fy, ax, ay) {
70626
+ this.updateVertex(vertex, x, y, fdistance, 2 * ax + y + ay, Math.min(scale, (x - ax) * fdistance + 1), fx, fy);
70627
+ };
70628
+ EShapeRectangleTriangulatedImpl.prototype.updateVertexBottom = function (vertex, x, y, fdistance, scale, fx, fy, ax, ay) {
70629
+ this.updateVertex(vertex, x, y, fdistance, 3 * ax + 2 * ay - x, Math.min(scale, (y - ay) * fdistance + 1), fx, fy);
70630
+ };
70631
+ EShapeRectangleTriangulatedImpl.prototype.updateVertexLeft = function (vertex, x, y, fdistance, scale, fx, fy, ax, ay) {
70632
+ this.updateVertex(vertex, x, y, fdistance, 4 * ax + 3 * ay - y, Math.min(scale, (x + ax) * -fdistance + 1), fx, fy);
70633
+ };
70634
+ EShapeRectangleTriangulatedImpl.prototype.updateVertex = function (vertex, x, y, distance, length, clipping, fx, fy) {
70635
+ var vertex2 = vertex << 1;
70636
+ this._vertices[vertex2] = x;
70637
+ this._vertices[vertex2 + 1] = y;
70638
+ this._distances[vertex] = distance;
70639
+ this._lengths[vertex] = length;
70640
+ this._clippings[vertex] = clipping;
70641
+ this._uvs[vertex2] = 0.5 * (x * fx + 1);
70642
+ this._uvs[vertex2 + 1] = 0.5 * (y * fy + 1);
70643
+ };
70644
+ return EShapeRectangleTriangulatedImpl;
70645
+ }());
70646
+
70647
+ /*
70648
+ * Copyright (C) 2019 Toshiba Corporation
70649
+ * SPDX-License-Identifier: Apache-2.0
70650
+ */
70651
+ var EShapeRectangle = /** @class */ (function (_super) {
70652
+ __extends(EShapeRectangle, _super);
70653
+ function EShapeRectangle(type) {
70654
+ if (type === void 0) { type = EShapeType.RECTANGLE; }
70655
+ var _this = _super.call(this, type) || this;
70656
+ _this._triangulated = _this.newTriangulated();
70657
+ return _this;
70658
+ }
70659
+ EShapeRectangle.prototype.newTriangulated = function () {
70660
+ return new EShapeRectangleTriangulatedImpl(this);
70661
+ };
70662
+ Object.defineProperty(EShapeRectangle.prototype, "triangulated", {
70663
+ get: function () {
70664
+ return this._triangulated;
70665
+ },
70666
+ enumerable: false,
70667
+ configurable: true
70668
+ });
70669
+ EShapeRectangle.prototype.clone = function () {
70670
+ return new EShapeRectangle(this.type).copy(this);
70671
+ };
70672
+ EShapeRectangle.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
70673
+ if (_super.prototype.containsAbsBBox.call(this, x, y, ax, ay)) {
70674
+ return hitTestRectangle(this, x, y, ax, ay, sw, ss);
70675
+ }
70676
+ return false;
70677
+ };
70678
+ return EShapeRectangle;
70679
+ }(EShapePrimitive));
70680
+
69848
70681
  /*
69849
70682
  * Copyright (C) 2019 Toshiba Corporation
69850
70683
  * SPDX-License-Identifier: Apache-2.0
@@ -69978,7 +70811,7 @@ var createLineOfRectangleRoundedsUploaded = function (buffer, shape, voffset, io
69978
70811
  * SPDX-License-Identifier: Apache-2.0
69979
70812
  */
69980
70813
  var createLineOfRectanglesUploaded = function (buffer, shape, voffset, ioffset, antialiasWeight) {
69981
- return createLineOfAnyUploaded(buffer, shape, voffset, RECTANGLE_VERTEX_COUNT, ioffset, RECTANGLE_INDEX_COUNT, antialiasWeight, BuilderLineOfRectangles);
70814
+ return createLineOfAnyUploaded(buffer, shape, voffset, RECTANGLE_LEGACY_VERTEX_COUNT, ioffset, RECTANGLE_LEGACY_INDEX_COUNT, antialiasWeight, BuilderLineOfRectangles);
69982
70815
  };
69983
70816
 
69984
70817
  /*
@@ -70010,7 +70843,7 @@ var toMarkerVertexCount = function (type) {
70010
70843
  case EShapePointsMarkerType.TRIANGLE:
70011
70844
  return TRIANGLE_VERTEX_COUNT;
70012
70845
  case EShapePointsMarkerType.RECTANGLE:
70013
- return RECTANGLE_VERTEX_COUNT;
70846
+ return RECTANGLE_LEGACY_VERTEX_COUNT;
70014
70847
  }
70015
70848
  return 0;
70016
70849
  };
@@ -70023,7 +70856,7 @@ var toMarkerIndexCount = function (type) {
70023
70856
  case EShapePointsMarkerType.TRIANGLE:
70024
70857
  return TRIANGLE_INDEX_COUNT;
70025
70858
  case EShapePointsMarkerType.RECTANGLE:
70026
- return RECTANGLE_INDEX_COUNT;
70859
+ return RECTANGLE_LEGACY_INDEX_COUNT;
70027
70860
  }
70028
70861
  return 0;
70029
70862
  };
@@ -72098,16 +72931,16 @@ var createPolygon = function (points, result) {
72098
72931
  * Copyright (C) 2019 Toshiba Corporation
72099
72932
  * SPDX-License-Identifier: Apache-2.0
72100
72933
  */
72101
- var createRectanglePivotedUploaded = function (buffer, shape, voffset, ioffset, antialiasWeight) {
72934
+ var createRectangleLegacyUploaded = function (buffer, shape, voffset, ioffset, antialiasWeight) {
72102
72935
  var tcount = toTextBufferCount(shape);
72103
72936
  var tvcount = tcount << TEXT_VERTEX_COUNT_SHIFT;
72104
72937
  var ticount = tcount << TEXT_INDEX_COUNT_SHIFT;
72105
- var vcount = RECTANGLE_VERTEX_COUNT + tvcount;
72106
- var icount = RECTANGLE_INDEX_COUNT + ticount;
72938
+ var vcount = RECTANGLE_LEGACY_VERTEX_COUNT + tvcount;
72939
+ var icount = RECTANGLE_LEGACY_INDEX_COUNT + ticount;
72107
72940
  if (buffer.check(voffset, ioffset, vcount, icount)) {
72108
72941
  return new EShapeUploadedImpl(buffer, voffset, ioffset, vcount, icount, [
72109
- new BuilderRectanglePivoted(buffer, voffset, ioffset),
72110
- new BuilderText(buffer, voffset + RECTANGLE_VERTEX_COUNT, ioffset + RECTANGLE_INDEX_COUNT, tvcount, ticount)
72942
+ new BuilderRectangleLegacy(buffer, voffset, ioffset),
72943
+ new BuilderText(buffer, voffset + RECTANGLE_LEGACY_VERTEX_COUNT, ioffset + RECTANGLE_LEGACY_INDEX_COUNT, tvcount, ticount)
72111
72944
  ]).init(shape);
72112
72945
  }
72113
72946
  return null;
@@ -72117,16 +72950,16 @@ var createRectanglePivotedUploaded = function (buffer, shape, voffset, ioffset,
72117
72950
  * Copyright (C) 2019 Toshiba Corporation
72118
72951
  * SPDX-License-Identifier: Apache-2.0
72119
72952
  */
72120
- var createRectangleUploaded = function (buffer, shape, voffset, ioffset, antialiasWeight) {
72953
+ var createRectanglePivotedUploaded = function (buffer, shape, voffset, ioffset, antialiasWeight) {
72121
72954
  var tcount = toTextBufferCount(shape);
72122
72955
  var tvcount = tcount << TEXT_VERTEX_COUNT_SHIFT;
72123
72956
  var ticount = tcount << TEXT_INDEX_COUNT_SHIFT;
72124
- var vcount = RECTANGLE_VERTEX_COUNT + tvcount;
72125
- var icount = RECTANGLE_INDEX_COUNT + ticount;
72957
+ var vcount = RECTANGLE_LEGACY_VERTEX_COUNT + tvcount;
72958
+ var icount = RECTANGLE_LEGACY_INDEX_COUNT + ticount;
72126
72959
  if (buffer.check(voffset, ioffset, vcount, icount)) {
72127
72960
  return new EShapeUploadedImpl(buffer, voffset, ioffset, vcount, icount, [
72128
- new BuilderRectangle(buffer, voffset, ioffset),
72129
- new BuilderText(buffer, voffset + RECTANGLE_VERTEX_COUNT, ioffset + RECTANGLE_INDEX_COUNT, tvcount, ticount)
72961
+ new BuilderRectanglePivoted(buffer, voffset, ioffset),
72962
+ new BuilderText(buffer, voffset + RECTANGLE_LEGACY_VERTEX_COUNT, ioffset + RECTANGLE_LEGACY_INDEX_COUNT, tvcount, ticount)
72130
72963
  ]).init(shape);
72131
72964
  }
72132
72965
  return null;
@@ -73855,7 +74688,7 @@ var EShapeLineOfRectangles = /** @class */ (function (_super) {
73855
74688
  return false;
73856
74689
  };
73857
74690
  return EShapeLineOfRectangles;
73858
- }(EShapeRectangle));
74691
+ }(EShapeRectangleLegacy));
73859
74692
 
73860
74693
  /*
73861
74694
  * Copyright (C) 2019 Toshiba Corporation
@@ -74192,6 +75025,14 @@ var deserializePolygon = function (item, manager, shape) {
74192
75025
  return shape;
74193
75026
  };
74194
75027
 
75028
+ /*
75029
+ * Copyright (C) 2019 Toshiba Corporation
75030
+ * SPDX-License-Identifier: Apache-2.0
75031
+ */
75032
+ var deserializeRectangleLegacy = function (item, manager, shape) {
75033
+ return deserializeBase(item, manager, shape || new EShapeRectangleLegacy());
75034
+ };
75035
+
74195
75036
  /*
74196
75037
  * Copyright (C) 2019 Toshiba Corporation
74197
75038
  * SPDX-License-Identifier: Apache-2.0
@@ -74537,7 +75378,7 @@ var loadShapeGroupShadowed = function () {
74537
75378
  * SPDX-License-Identifier: Apache-2.0
74538
75379
  */
74539
75380
  var loadShapeImage = function () {
74540
- EShapeUploadeds[EShapeType.IMAGE] = createRectangleUploaded;
75381
+ EShapeUploadeds[EShapeType.IMAGE] = createPolygonUploaded;
74541
75382
  EShapeDeserializers[EShapeType.IMAGE] = deserializeImage;
74542
75383
  };
74543
75384
 
@@ -74640,11 +75481,21 @@ var loadShapePolygon = function () {
74640
75481
  * SPDX-License-Identifier: Apache-2.0
74641
75482
  */
74642
75483
  var loadShapeRectangle = function () {
74643
- EShapeUploadeds[EShapeType.RECTANGLE] = createRectangleUploaded;
75484
+ EShapeUploadeds[EShapeType.RECTANGLE] = createPolygonUploaded;
74644
75485
  EShapeDeserializers[EShapeType.RECTANGLE] = deserializeRectangle;
74645
75486
  EShapeCapabilities.set(EShapeType.RECTANGLE, EShapeCapability.PRIMITIVE | EShapeCapability.STROKE_SIDE);
74646
75487
  };
74647
75488
 
75489
+ /*
75490
+ * Copyright (C) 2019 Toshiba Corporation
75491
+ * SPDX-License-Identifier: Apache-2.0
75492
+ */
75493
+ var loadShapeRectangleLegacy = function () {
75494
+ EShapeUploadeds[EShapeType.RECTANGLE_LEGACY] = createRectangleLegacyUploaded;
75495
+ EShapeDeserializers[EShapeType.RECTANGLE_LEGACY] = deserializeRectangleLegacy;
75496
+ EShapeCapabilities.set(EShapeType.RECTANGLE_LEGACY, EShapeCapability.PRIMITIVE | EShapeCapability.STROKE_SIDE);
75497
+ };
75498
+
74648
75499
  /*
74649
75500
  * Copyright (C) 2019 Toshiba Corporation
74650
75501
  * SPDX-License-Identifier: Apache-2.0
@@ -74713,6 +75564,7 @@ var loadShapeAll = function () {
74713
75564
  loadShapeLine();
74714
75565
  loadShapeNull();
74715
75566
  loadShapePolygon();
75567
+ loadShapeRectangleLegacy();
74716
75568
  loadShapeRectanglePivoted();
74717
75569
  loadShapeRectangleRounded();
74718
75570
  loadShapeRectangle();
@@ -105574,7 +106426,8 @@ exports.BuilderMarkerTriangleHead = BuilderMarkerTriangleHead;
105574
106426
  exports.BuilderMarkerTriangleTail = BuilderMarkerTriangleTail;
105575
106427
  exports.BuilderNull = BuilderNull;
105576
106428
  exports.BuilderPolygon = BuilderPolygon;
105577
- exports.BuilderRectangle = BuilderRectangle;
106429
+ exports.BuilderRectangle = BuilderRectangleLegacy;
106430
+ exports.BuilderRectangleLegacy = BuilderRectangleLegacy;
105578
106431
  exports.BuilderRectanglePivoted = BuilderRectanglePivoted;
105579
106432
  exports.BuilderRectangleRounded = BuilderRectangleRounded;
105580
106433
  exports.BuilderSemicircle = BuilderSemicircle;
@@ -106901,8 +107754,10 @@ exports.EShapePolygonPoints = EShapePolygonPoints;
106901
107754
  exports.EShapePolygonTriangulatedImpl = EShapePolygonTriangulatedImpl;
106902
107755
  exports.EShapePrimitive = EShapePrimitive;
106903
107756
  exports.EShapeRectangle = EShapeRectangle;
107757
+ exports.EShapeRectangleLegacy = EShapeRectangleLegacy;
106904
107758
  exports.EShapeRectanglePivoted = EShapeRectanglePivoted;
106905
107759
  exports.EShapeRectangleRounded = EShapeRectangleRounded;
107760
+ exports.EShapeRectangleTriangulatedImpl = EShapeRectangleTriangulatedImpl;
106906
107761
  exports.EShapeRenderer = EShapeRenderer;
106907
107762
  exports.EShapeRendererIterator = EShapeRendererIterator;
106908
107763
  exports.EShapeRendererIteratorDatum = EShapeRendererIteratorDatum;
@@ -106991,12 +107846,15 @@ exports.IMAGE_SDF_WORLD_SIZE = IMAGE_SDF_WORLD_SIZE;
106991
107846
  exports.Lazy = Lazy;
106992
107847
  exports.NumberFormatterImpl = NumberFormatterImpl;
106993
107848
  exports.NumberFormatters = NumberFormatters;
106994
- exports.RECTANGLE_INDEX_COUNT = RECTANGLE_INDEX_COUNT;
107849
+ exports.RECTANGLE_INDEX_COUNT = RECTANGLE_LEGACY_INDEX_COUNT;
107850
+ exports.RECTANGLE_LEGACY_INDEX_COUNT = RECTANGLE_LEGACY_INDEX_COUNT;
107851
+ exports.RECTANGLE_LEGACY_VERTEX_COUNT = RECTANGLE_LEGACY_VERTEX_COUNT;
107852
+ exports.RECTANGLE_LEGACY_WORLD_SIZE = RECTANGLE_LEGACY_WORLD_SIZE;
106995
107853
  exports.RECTANGLE_ROUNDED_INDEX_COUNT = RECTANGLE_ROUNDED_INDEX_COUNT;
106996
107854
  exports.RECTANGLE_ROUNDED_VERTEX_COUNT = RECTANGLE_ROUNDED_VERTEX_COUNT;
106997
107855
  exports.RECTANGLE_ROUNDED_WORLD_SIZE = RECTANGLE_ROUNDED_WORLD_SIZE;
106998
- exports.RECTANGLE_VERTEX_COUNT = RECTANGLE_VERTEX_COUNT;
106999
- exports.RECTANGLE_WORLD_SIZE = RECTANGLE_WORLD_SIZE;
107856
+ exports.RECTANGLE_VERTEX_COUNT = RECTANGLE_LEGACY_VERTEX_COUNT;
107857
+ exports.RECTANGLE_WORLD_SIZE = RECTANGLE_LEGACY_WORLD_SIZE;
107000
107858
  exports.SEMICIRCLE_INDEX_COUNT = SEMICIRCLE_INDEX_COUNT;
107001
107859
  exports.SEMICIRCLE_VERTEX_COUNT = SEMICIRCLE_VERTEX_COUNT;
107002
107860
  exports.SEMICIRCLE_WORLD_SIZE = SEMICIRCLE_WORLD_SIZE;
@@ -107087,14 +107945,18 @@ exports.buildPolygonStepX = buildPolygonStepX;
107087
107945
  exports.buildPolygonStepY = buildPolygonStepY;
107088
107946
  exports.buildPolygonUv = buildPolygonUv;
107089
107947
  exports.buildPolygonVertex = buildPolygonVertex;
107090
- exports.buildRectangleIndex = buildRectangleIndex;
107948
+ exports.buildRectangleIndex = buildRectangleLegacyIndex;
107949
+ exports.buildRectangleLegacyIndex = buildRectangleLegacyIndex;
107950
+ exports.buildRectangleLegacyStep = buildRectangleLegacyStep;
107951
+ exports.buildRectangleLegacyUv = buildRectangleLegacyUv;
107952
+ exports.buildRectangleLegacyVertex = buildRectangleLegacyVertex;
107091
107953
  exports.buildRectangleRoundedIndex = buildRectangleRoundedIndex;
107092
107954
  exports.buildRectangleRoundedStep = buildRectangleRoundedStep;
107093
107955
  exports.buildRectangleRoundedUv = buildRectangleRoundedUv;
107094
107956
  exports.buildRectangleRoundedVertex = buildRectangleRoundedVertex;
107095
- exports.buildRectangleStep = buildRectangleStep;
107096
- exports.buildRectangleUv = buildRectangleUv;
107097
- exports.buildRectangleVertex = buildRectangleVertex;
107957
+ exports.buildRectangleStep = buildRectangleLegacyStep;
107958
+ exports.buildRectangleUv = buildRectangleLegacyUv;
107959
+ exports.buildRectangleVertex = buildRectangleLegacyVertex;
107098
107960
  exports.buildSemicircleIndex = buildSemicircleIndex;
107099
107961
  exports.buildSemicircleStep = buildSemicircleStep;
107100
107962
  exports.buildSemicircleUv = buildSemicircleUv;
@@ -107134,9 +107996,10 @@ exports.createLineUploaded = createLineUploaded;
107134
107996
  exports.createNullUploaded = createNullUploaded;
107135
107997
  exports.createPolygon = createPolygon;
107136
107998
  exports.createPolygonUploaded = createPolygonUploaded;
107999
+ exports.createRectangleLegacyUploaded = createRectangleLegacyUploaded;
107137
108000
  exports.createRectanglePivotedUploaded = createRectanglePivotedUploaded;
107138
108001
  exports.createRectangleRoundedUploaded = createRectangleRoundedUploaded;
107139
- exports.createRectangleUploaded = createRectangleUploaded;
108002
+ exports.createRectangleUploaded = createRectangleLegacyUploaded;
107140
108003
  exports.createSemicircleUploaded = createSemicircleUploaded;
107141
108004
  exports.createTriangleRoundedUploaded = createTriangleRoundedUploaded;
107142
108005
  exports.createTriangleUploaded = createTriangleUploaded;
@@ -107172,6 +108035,7 @@ exports.deserializeLineOfTriangles = deserializeLineOfTriangles;
107172
108035
  exports.deserializeNull = deserializeNull;
107173
108036
  exports.deserializePolygon = deserializePolygon;
107174
108037
  exports.deserializeRectangle = deserializeRectangle;
108038
+ exports.deserializeRectangleLegacy = deserializeRectangleLegacy;
107175
108039
  exports.deserializeRectanglePivoted = deserializeRectanglePivoted;
107176
108040
  exports.deserializeRectangleRounded = deserializeRectangleRounded;
107177
108041
  exports.deserializeSemicircle = deserializeSemicircle;
@@ -107224,6 +108088,8 @@ exports.loadShapeLineOfTriangles = loadShapeLineOfTriangles;
107224
108088
  exports.loadShapeNull = loadShapeNull;
107225
108089
  exports.loadShapePolygon = loadShapePolygon;
107226
108090
  exports.loadShapeRectangle = loadShapeRectangle;
108091
+ exports.loadShapeRectangleLegacy = loadShapeRectangleLegacy;
108092
+ exports.loadShapeRectanglePivoted = loadShapeRectanglePivoted;
107227
108093
  exports.loadShapeRectangleRounded = loadShapeRectangleRounded;
107228
108094
  exports.loadShapeSemicircle = loadShapeSemicircle;
107229
108095
  exports.loadShapeTriangle = loadShapeTriangle;