@drincs/pixi-vn 0.9.7 → 0.9.8

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 (219) hide show
  1. package/dist/{ContainerChild-B5yD0BI8.d.ts → ContainerChild-AjuVp3wW.d.ts} +4 -1
  2. package/dist/{ContainerChild-WzyxEjAc.d.cts → ContainerChild-BUFxM6Ya.d.cts} +4 -1
  3. package/dist/WebGLRenderer-EFHDNV22.js +9 -0
  4. package/dist/WebGPURenderer-LEKL575M.js +10 -0
  5. package/dist/{browserAll-2HD5EH7K.js → browserAll-S4EPEXZD.js} +5 -5
  6. package/dist/{chunk-WNOARCWH.js → chunk-3XKVLXKN.js} +2 -2
  7. package/dist/{chunk-PP5T5HEO.js → chunk-52ZSR3AN.js} +1 -1
  8. package/dist/{chunk-SAUNZQHZ.js → chunk-D753T42C.js} +1 -1
  9. package/dist/{chunk-TOG67Z7Q.js → chunk-DQ47ST7G.js} +2 -2
  10. package/dist/{chunk-73ID6GAW.js → chunk-DWJGQ2A5.js} +2 -2
  11. package/dist/{chunk-5VX2VTDZ.js → chunk-DXOIIOAQ.js} +81 -27
  12. package/dist/{chunk-Z3NBKYVU.js → chunk-DZMWRZUL.js} +10 -9
  13. package/dist/{chunk-NB4Q3GFK.js → chunk-FXH7A6UR.js} +224 -53
  14. package/dist/{chunk-6GJXIPNB.js → chunk-GEY6RTYO.js} +1 -1
  15. package/dist/{chunk-CAWOWL3P.js → chunk-IG7HSAEJ.js} +75 -34
  16. package/dist/{chunk-PP3SBC3C.js → chunk-KAHX5SKO.js} +18 -15
  17. package/dist/{chunk-ODIEVSQX.js → chunk-OPLBQKS2.js} +3 -3
  18. package/dist/{chunk-Y3WNBACN.js → chunk-R4J2U4HN.js} +2 -2
  19. package/dist/{chunk-WS3FY4Q6.js → chunk-X55ALTH7.js} +2 -2
  20. package/dist/{chunk-5JREOVCG.js → chunk-XGGTEP7V.js} +1 -1
  21. package/dist/classes/CharacterBaseModel.cjs +397 -248
  22. package/dist/classes/CharacterBaseModel.js +14 -15
  23. package/dist/classes/CharacterStoredClass.cjs +397 -248
  24. package/dist/classes/CharacterStoredClass.js +14 -15
  25. package/dist/classes/ChoiceMenuOption.cjs +325 -178
  26. package/dist/classes/ChoiceMenuOption.js +14 -15
  27. package/dist/classes/Sound.cjs +397 -248
  28. package/dist/classes/Sound.js +14 -15
  29. package/dist/classes/StoredClassModel.cjs +397 -248
  30. package/dist/classes/StoredClassModel.js +14 -15
  31. package/dist/classes/canvas/AdditionalPositions.cjs +39323 -963
  32. package/dist/classes/canvas/AdditionalPositions.d.cts +3 -1
  33. package/dist/classes/canvas/AdditionalPositions.d.ts +3 -1
  34. package/dist/classes/canvas/AdditionalPositions.js +41 -10
  35. package/dist/classes/canvas/AnchorExtension.cjs +92 -48
  36. package/dist/classes/canvas/AnchorExtension.js +8 -8
  37. package/dist/classes/canvas/CanvasBaseItem.cjs +92 -48
  38. package/dist/classes/canvas/CanvasBaseItem.d.cts +1 -1
  39. package/dist/classes/canvas/CanvasBaseItem.d.ts +1 -1
  40. package/dist/classes/canvas/CanvasBaseItem.js +9 -9
  41. package/dist/classes/canvas/Container.cjs +389 -242
  42. package/dist/classes/canvas/Container.d.cts +1 -1
  43. package/dist/classes/canvas/Container.d.ts +1 -1
  44. package/dist/classes/canvas/Container.js +14 -15
  45. package/dist/classes/canvas/ImageContainer.cjs +325 -176
  46. package/dist/classes/canvas/ImageContainer.d.cts +1 -1
  47. package/dist/classes/canvas/ImageContainer.d.ts +1 -1
  48. package/dist/classes/canvas/ImageContainer.js +14 -15
  49. package/dist/classes/canvas/ImageSprite.cjs +3041 -2892
  50. package/dist/classes/canvas/ImageSprite.d.cts +1 -1
  51. package/dist/classes/canvas/ImageSprite.d.ts +1 -1
  52. package/dist/classes/canvas/ImageSprite.js +14 -15
  53. package/dist/classes/canvas/Sprite.cjs +397 -252
  54. package/dist/classes/canvas/Sprite.d.cts +1 -1
  55. package/dist/classes/canvas/Sprite.d.ts +1 -1
  56. package/dist/classes/canvas/Sprite.js +14 -15
  57. package/dist/classes/canvas/Text.cjs +319 -172
  58. package/dist/classes/canvas/Text.d.cts +1 -1
  59. package/dist/classes/canvas/Text.d.ts +1 -1
  60. package/dist/classes/canvas/Text.js +14 -15
  61. package/dist/classes/canvas/VideoSprite.cjs +3038 -2887
  62. package/dist/classes/canvas/VideoSprite.d.cts +4 -2
  63. package/dist/classes/canvas/VideoSprite.d.ts +4 -2
  64. package/dist/classes/canvas/VideoSprite.js +14 -15
  65. package/dist/classes/index.cjs +399 -252
  66. package/dist/classes/index.d.cts +1 -1
  67. package/dist/classes/index.d.ts +1 -1
  68. package/dist/classes/index.js +14 -15
  69. package/dist/classes/ticker/FadeAlphaTicker.cjs +325 -178
  70. package/dist/classes/ticker/FadeAlphaTicker.js +14 -15
  71. package/dist/classes/ticker/MoveTicker.cjs +3563 -3418
  72. package/dist/classes/ticker/MoveTicker.js +14 -15
  73. package/dist/classes/ticker/RotateTicker.cjs +325 -178
  74. package/dist/classes/ticker/RotateTicker.js +14 -15
  75. package/dist/classes/ticker/TickerBase.cjs +397 -248
  76. package/dist/classes/ticker/TickerBase.js +14 -15
  77. package/dist/classes/ticker/ZoomTicker.cjs +325 -178
  78. package/dist/classes/ticker/ZoomTicker.js +14 -15
  79. package/dist/classes/ticker/index.cjs +397 -252
  80. package/dist/classes/ticker/index.js +14 -15
  81. package/dist/constants.cjs +93 -49
  82. package/dist/constants.d.cts +1 -1
  83. package/dist/constants.d.ts +1 -1
  84. package/dist/constants.js +10 -10
  85. package/dist/decorators/canvas-element-decorator.cjs +389 -242
  86. package/dist/decorators/canvas-element-decorator.d.cts +1 -1
  87. package/dist/decorators/canvas-element-decorator.d.ts +1 -1
  88. package/dist/decorators/canvas-element-decorator.js +14 -15
  89. package/dist/decorators/event-decorator.d.cts +1 -1
  90. package/dist/decorators/event-decorator.d.ts +1 -1
  91. package/dist/decorators/index.cjs +325 -178
  92. package/dist/decorators/index.d.cts +1 -1
  93. package/dist/decorators/index.d.ts +1 -1
  94. package/dist/decorators/index.js +14 -15
  95. package/dist/decorators/label-decorator.cjs +397 -250
  96. package/dist/decorators/label-decorator.js +14 -15
  97. package/dist/functions/canvas/canvas-effect.cjs +394 -247
  98. package/dist/functions/canvas/canvas-effect.js +14 -15
  99. package/dist/functions/canvas/canvas-memory-utility.cjs +389 -242
  100. package/dist/functions/canvas/canvas-memory-utility.d.cts +1 -1
  101. package/dist/functions/canvas/canvas-memory-utility.d.ts +1 -1
  102. package/dist/functions/canvas/canvas-memory-utility.js +14 -15
  103. package/dist/functions/canvas/canvas-transition.cjs +397 -250
  104. package/dist/functions/canvas/canvas-transition.d.cts +1 -1
  105. package/dist/functions/canvas/canvas-transition.d.ts +1 -1
  106. package/dist/functions/canvas/canvas-transition.js +14 -15
  107. package/dist/functions/canvas/canvas-utility.cjs +397 -248
  108. package/dist/functions/canvas/canvas-utility.js +14 -15
  109. package/dist/functions/canvas/image-container-utility.cjs +397 -250
  110. package/dist/functions/canvas/image-container-utility.d.cts +1 -1
  111. package/dist/functions/canvas/image-container-utility.d.ts +1 -1
  112. package/dist/functions/canvas/image-container-utility.js +14 -15
  113. package/dist/functions/canvas/image-utility.cjs +397 -250
  114. package/dist/functions/canvas/image-utility.d.cts +1 -1
  115. package/dist/functions/canvas/image-utility.d.ts +1 -1
  116. package/dist/functions/canvas/image-utility.js +14 -15
  117. package/dist/functions/canvas/video-utility.cjs +4682 -4531
  118. package/dist/functions/canvas/video-utility.d.cts +1 -1
  119. package/dist/functions/canvas/video-utility.d.ts +1 -1
  120. package/dist/functions/canvas/video-utility.js +14 -15
  121. package/dist/functions/dialogue-utility.cjs +397 -248
  122. package/dist/functions/dialogue-utility.js +14 -15
  123. package/dist/functions/flags-utility.cjs +397 -248
  124. package/dist/functions/flags-utility.js +14 -15
  125. package/dist/functions/game-utility.cjs +397 -248
  126. package/dist/functions/game-utility.js +14 -15
  127. package/dist/functions/index.cjs +397 -252
  128. package/dist/functions/index.d.cts +1 -1
  129. package/dist/functions/index.d.ts +1 -1
  130. package/dist/functions/index.js +14 -15
  131. package/dist/functions/saves-utility.cjs +397 -248
  132. package/dist/functions/saves-utility.d.cts +1 -1
  133. package/dist/functions/saves-utility.d.ts +1 -1
  134. package/dist/functions/saves-utility.js +14 -15
  135. package/dist/functions/sound-utility.cjs +92 -48
  136. package/dist/functions/sound-utility.js +10 -10
  137. package/dist/functions/texture-utility.cjs +319 -172
  138. package/dist/functions/texture-utility.d.cts +1 -1
  139. package/dist/functions/texture-utility.d.ts +1 -1
  140. package/dist/functions/texture-utility.js +14 -15
  141. package/dist/index.cjs +268 -121
  142. package/dist/index.d.cts +1 -1
  143. package/dist/index.d.ts +1 -1
  144. package/dist/index.js +14 -15
  145. package/dist/interface/HistoryStep.d.cts +1 -1
  146. package/dist/interface/HistoryStep.d.ts +1 -1
  147. package/dist/interface/SaveData.d.cts +1 -1
  148. package/dist/interface/SaveData.d.ts +1 -1
  149. package/dist/interface/canvas/canvas-memory.d.cts +1 -1
  150. package/dist/interface/canvas/canvas-memory.d.ts +1 -1
  151. package/dist/interface/canvas/canvas-options.d.cts +1 -1
  152. package/dist/interface/canvas/canvas-options.d.ts +1 -1
  153. package/dist/interface/export/ExportedCanvas.d.cts +1 -1
  154. package/dist/interface/export/ExportedCanvas.d.ts +1 -1
  155. package/dist/interface/export/ExportedStep.d.cts +1 -1
  156. package/dist/interface/export/ExportedStep.d.ts +1 -1
  157. package/dist/interface/index.d.cts +1 -1
  158. package/dist/interface/index.d.ts +1 -1
  159. package/dist/labels/BaseCanvasElementTestLabel.cjs +397 -250
  160. package/dist/labels/BaseCanvasElementTestLabel.js +14 -15
  161. package/dist/labels/CanvasEventsTestLabel.cjs +397 -250
  162. package/dist/labels/CanvasEventsTestLabel.d.cts +1 -1
  163. package/dist/labels/CanvasEventsTestLabel.d.ts +1 -1
  164. package/dist/labels/CanvasEventsTestLabel.js +14 -15
  165. package/dist/labels/CustomTickerCanvasElementTestLabel.cjs +268 -121
  166. package/dist/labels/CustomTickerCanvasElementTestLabel.js +14 -15
  167. package/dist/labels/ImagesAnimationsTestLabel.cjs +397 -250
  168. package/dist/labels/ImagesAnimationsTestLabel.js +14 -15
  169. package/dist/labels/InputTestLabel.cjs +325 -178
  170. package/dist/labels/InputTestLabel.js +14 -15
  171. package/dist/labels/MarkdownTest.cjs +325 -178
  172. package/dist/labels/MarkdownTest.js +14 -15
  173. package/dist/labels/SoundTestLabel.cjs +325 -178
  174. package/dist/labels/SoundTestLabel.js +14 -15
  175. package/dist/labels/StartLabel.cjs +397 -250
  176. package/dist/labels/StartLabel.js +14 -15
  177. package/dist/labels/StepLabelTest.cjs +325 -178
  178. package/dist/labels/StepLabelTest.js +14 -15
  179. package/dist/labels/VideoTestLabel.cjs +325 -178
  180. package/dist/labels/VideoTestLabel.js +14 -15
  181. package/dist/labels/index.cjs +397 -250
  182. package/dist/labels/index.js +14 -15
  183. package/dist/{lib-6FCVILMQ.js → lib-5KZOZFFM.js} +8 -8
  184. package/dist/managers/CanvasManager.cjs +397 -248
  185. package/dist/managers/CanvasManager.d.cts +1 -1
  186. package/dist/managers/CanvasManager.d.ts +1 -1
  187. package/dist/managers/CanvasManager.js +14 -15
  188. package/dist/managers/CanvasManagerStatic.cjs +176 -77
  189. package/dist/managers/CanvasManagerStatic.d.cts +1 -1
  190. package/dist/managers/CanvasManagerStatic.d.ts +1 -1
  191. package/dist/managers/CanvasManagerStatic.js +9 -9
  192. package/dist/managers/NarrationManager.cjs +397 -248
  193. package/dist/managers/NarrationManager.d.cts +2 -1
  194. package/dist/managers/NarrationManager.d.ts +2 -1
  195. package/dist/managers/NarrationManager.js +14 -15
  196. package/dist/managers/NarrationManagerStatic.cjs +397 -248
  197. package/dist/managers/NarrationManagerStatic.d.cts +1 -1
  198. package/dist/managers/NarrationManagerStatic.d.ts +1 -1
  199. package/dist/managers/NarrationManagerStatic.js +14 -15
  200. package/dist/managers/SoundManager.cjs +397 -248
  201. package/dist/managers/SoundManager.js +14 -15
  202. package/dist/managers/StorageManager.cjs +397 -248
  203. package/dist/managers/StorageManager.js +14 -15
  204. package/dist/managers/index.cjs +397 -248
  205. package/dist/managers/index.d.cts +1 -1
  206. package/dist/managers/index.d.ts +1 -1
  207. package/dist/managers/index.js +14 -15
  208. package/dist/types/ContainerChild.d.cts +1 -1
  209. package/dist/types/ContainerChild.d.ts +1 -1
  210. package/dist/types/index.d.cts +1 -1
  211. package/dist/types/index.d.ts +1 -1
  212. package/dist/types/ticker/MoveTickerProps.d.cts +8 -0
  213. package/dist/types/ticker/MoveTickerProps.d.ts +8 -0
  214. package/dist/webworkerAll-XFBJBJMM.js +5 -0
  215. package/package.json +1 -1
  216. package/dist/WebGLRenderer-U57ZOBH6.js +0 -9
  217. package/dist/WebGPURenderer-EYIZ7IXV.js +0 -10
  218. package/dist/chunk-IRUKNG2Y.js +0 -130
  219. package/dist/webworkerAll-GSRT3S6X.js +0 -5
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  CanvasPool,
3
3
  getTextureBatchBindGroup
4
- } from "./chunk-5JREOVCG.js";
4
+ } from "./chunk-XGGTEP7V.js";
5
5
  import {
6
6
  BatchableSprite,
7
7
  BigPool,
@@ -65,7 +65,7 @@ import {
65
65
  v8_0_0,
66
66
  v8_3_4,
67
67
  warn
68
- } from "./chunk-PP3SBC3C.js";
68
+ } from "./chunk-KAHX5SKO.js";
69
69
  import {
70
70
  __commonJS,
71
71
  __toESM
@@ -4938,17 +4938,18 @@ var Circle = class _Circle {
4938
4938
  * @param x - The X coordinate of the point to test
4939
4939
  * @param y - The Y coordinate of the point to test
4940
4940
  * @param width - The width of the line to check
4941
+ * @param alignment - The alignment of the stroke, 0.5 by default
4941
4942
  * @returns Whether the x/y coordinates are within this Circle
4942
4943
  */
4943
- strokeContains(x, y, width) {
4944
+ strokeContains(x, y, width, alignment = 0.5) {
4944
4945
  if (this.radius === 0)
4945
4946
  return false;
4946
4947
  const dx = this.x - x;
4947
4948
  const dy = this.y - y;
4948
- const r = this.radius;
4949
- const w2 = width / 2;
4949
+ const radius = this.radius;
4950
+ const outerWidth = (1 - alignment) * width;
4950
4951
  const distance = Math.sqrt(dx * dx + dy * dy);
4951
- return distance < r + w2 && distance > r - w2;
4952
+ return distance <= radius + outerWidth && distance > radius - (width - outerWidth);
4952
4953
  }
4953
4954
  /**
4954
4955
  * Returns the framing rectangle of the circle as a Rectangle object
@@ -5030,23 +5031,25 @@ var Ellipse = class _Ellipse {
5030
5031
  * Checks whether the x and y coordinates given are contained within this ellipse including stroke
5031
5032
  * @param x - The X coordinate of the point to test
5032
5033
  * @param y - The Y coordinate of the point to test
5033
- * @param width
5034
+ * @param strokeWidth - The width of the line to check
5035
+ * @param alignment - The alignment of the stroke
5034
5036
  * @returns Whether the x/y coords are within this ellipse
5035
5037
  */
5036
- strokeContains(x, y, width) {
5038
+ strokeContains(x, y, strokeWidth, alignment = 0.5) {
5037
5039
  const { halfWidth, halfHeight } = this;
5038
5040
  if (halfWidth <= 0 || halfHeight <= 0) {
5039
5041
  return false;
5040
5042
  }
5041
- const halfStrokeWidth = width / 2;
5042
- const innerA = halfWidth - halfStrokeWidth;
5043
- const innerB = halfHeight - halfStrokeWidth;
5044
- const outerA = halfWidth + halfStrokeWidth;
5045
- const outerB = halfHeight + halfStrokeWidth;
5043
+ const strokeOuterWidth = strokeWidth * (1 - alignment);
5044
+ const strokeInnerWidth = strokeWidth - strokeOuterWidth;
5045
+ const innerHorizontal = halfWidth - strokeInnerWidth;
5046
+ const innerVertical = halfHeight - strokeInnerWidth;
5047
+ const outerHorizontal = halfWidth + strokeOuterWidth;
5048
+ const outerVertical = halfHeight + strokeOuterWidth;
5046
5049
  const normalizedX = x - this.x;
5047
5050
  const normalizedY = y - this.y;
5048
- const innerEllipse = normalizedX * normalizedX / (innerA * innerA) + normalizedY * normalizedY / (innerB * innerB);
5049
- const outerEllipse = normalizedX * normalizedX / (outerA * outerA) + normalizedY * normalizedY / (outerB * outerB);
5051
+ const innerEllipse = normalizedX * normalizedX / (innerHorizontal * innerHorizontal) + normalizedY * normalizedY / (innerVertical * innerVertical);
5052
+ const outerEllipse = normalizedX * normalizedX / (outerHorizontal * outerHorizontal) + normalizedY * normalizedY / (outerVertical * outerVertical);
5050
5053
  return innerEllipse > 1 && outerEllipse <= 1;
5051
5054
  }
5052
5055
  /**
@@ -5175,11 +5178,13 @@ var Polygon = class _Polygon {
5175
5178
  * @param x - The X coordinate of the point to test
5176
5179
  * @param y - The Y coordinate of the point to test
5177
5180
  * @param strokeWidth - The width of the line to check
5181
+ * @param alignment - The alignment of the stroke, 0.5 by default
5178
5182
  * @returns Whether the x/y coordinates are within this polygon
5179
5183
  */
5180
- strokeContains(x, y, strokeWidth) {
5181
- const halfStrokeWidth = strokeWidth / 2;
5182
- const halfStrokeWidthSqrd = halfStrokeWidth * halfStrokeWidth;
5184
+ strokeContains(x, y, strokeWidth, alignment = 0.5) {
5185
+ const strokeWidthSquared = strokeWidth * strokeWidth;
5186
+ const rightWidthSquared = strokeWidthSquared * (1 - alignment);
5187
+ const leftWidthSquared = strokeWidthSquared - rightWidthSquared;
5183
5188
  const { points } = this;
5184
5189
  const iterationLength = points.length - (this.closePath ? 0 : 2);
5185
5190
  for (let i = 0; i < iterationLength; i += 2) {
@@ -5187,8 +5192,9 @@ var Polygon = class _Polygon {
5187
5192
  const y1 = points[i + 1];
5188
5193
  const x2 = points[(i + 2) % points.length];
5189
5194
  const y2 = points[(i + 3) % points.length];
5190
- const distanceSqrd = squaredDistanceToLineSegment(x, y, x1, y1, x2, y2);
5191
- if (distanceSqrd <= halfStrokeWidthSqrd) {
5195
+ const distanceSquared = squaredDistanceToLineSegment(x, y, x1, y1, x2, y2);
5196
+ const sign = Math.sign((x2 - x1) * (y - y1) - (y2 - y1) * (x - x1));
5197
+ if (distanceSquared <= (sign < 0 ? leftWidthSquared : rightWidthSquared)) {
5192
5198
  return true;
5193
5199
  }
5194
5200
  }
@@ -5273,11 +5279,11 @@ var Polygon = class _Polygon {
5273
5279
  };
5274
5280
 
5275
5281
  // node_modules/pixi.js/lib/maths/shapes/RoundedRectangle.mjs
5276
- var isCornerWithinStroke = (pX, pY, cornerX, cornerY, radius, halfStrokeWidth) => {
5282
+ var isCornerWithinStroke = (pX, pY, cornerX, cornerY, radius, strokeWidthInner, strokeWidthOuter) => {
5277
5283
  const dx = pX - cornerX;
5278
5284
  const dy = pY - cornerY;
5279
5285
  const distance = Math.sqrt(dx * dx + dy * dy);
5280
- return distance >= radius - halfStrokeWidth && distance <= radius + halfStrokeWidth;
5286
+ return distance >= radius - strokeWidthInner && distance <= radius + strokeWidthOuter;
5281
5287
  };
5282
5288
  var RoundedRectangle = class _RoundedRectangle {
5283
5289
  /**
@@ -5379,26 +5385,60 @@ var RoundedRectangle = class _RoundedRectangle {
5379
5385
  * @param pX - The X coordinate of the point to test
5380
5386
  * @param pY - The Y coordinate of the point to test
5381
5387
  * @param strokeWidth - The width of the line to check
5388
+ * @param alignment - The alignment of the stroke, 0.5 by default
5382
5389
  * @returns Whether the x/y coordinates are within this rectangle
5383
5390
  */
5384
- strokeContains(pX, pY, strokeWidth) {
5391
+ strokeContains(pX, pY, strokeWidth, alignment = 0.5) {
5385
5392
  const { x, y, width, height, radius } = this;
5386
- const halfStrokeWidth = strokeWidth / 2;
5393
+ const strokeWidthOuter = strokeWidth * (1 - alignment);
5394
+ const strokeWidthInner = strokeWidth - strokeWidthOuter;
5387
5395
  const innerX = x + radius;
5388
5396
  const innerY = y + radius;
5389
5397
  const innerWidth = width - radius * 2;
5390
5398
  const innerHeight = height - radius * 2;
5391
5399
  const rightBound = x + width;
5392
5400
  const bottomBound = y + height;
5393
- if ((pX >= x - halfStrokeWidth && pX <= x + halfStrokeWidth || pX >= rightBound - halfStrokeWidth && pX <= rightBound + halfStrokeWidth) && pY >= innerY && pY <= innerY + innerHeight) {
5401
+ if ((pX >= x - strokeWidthOuter && pX <= x + strokeWidthInner || pX >= rightBound - strokeWidthInner && pX <= rightBound + strokeWidthOuter) && pY >= innerY && pY <= innerY + innerHeight) {
5394
5402
  return true;
5395
5403
  }
5396
- if ((pY >= y - halfStrokeWidth && pY <= y + halfStrokeWidth || pY >= bottomBound - halfStrokeWidth && pY <= bottomBound + halfStrokeWidth) && pX >= innerX && pX <= innerX + innerWidth) {
5404
+ if ((pY >= y - strokeWidthOuter && pY <= y + strokeWidthInner || pY >= bottomBound - strokeWidthInner && pY <= bottomBound + strokeWidthOuter) && pX >= innerX && pX <= innerX + innerWidth) {
5397
5405
  return true;
5398
5406
  }
5399
5407
  return (
5400
5408
  // Top-left
5401
- pX < innerX && pY < innerY && isCornerWithinStroke(pX, pY, innerX, innerY, radius, halfStrokeWidth) || pX > rightBound - radius && pY < innerY && isCornerWithinStroke(pX, pY, rightBound - radius, innerY, radius, halfStrokeWidth) || pX > rightBound - radius && pY > bottomBound - radius && isCornerWithinStroke(pX, pY, rightBound - radius, bottomBound - radius, radius, halfStrokeWidth) || pX < innerX && pY > bottomBound - radius && isCornerWithinStroke(pX, pY, innerX, bottomBound - radius, radius, halfStrokeWidth)
5409
+ pX < innerX && pY < innerY && isCornerWithinStroke(
5410
+ pX,
5411
+ pY,
5412
+ innerX,
5413
+ innerY,
5414
+ radius,
5415
+ strokeWidthInner,
5416
+ strokeWidthOuter
5417
+ ) || pX > rightBound - radius && pY < innerY && isCornerWithinStroke(
5418
+ pX,
5419
+ pY,
5420
+ rightBound - radius,
5421
+ innerY,
5422
+ radius,
5423
+ strokeWidthInner,
5424
+ strokeWidthOuter
5425
+ ) || pX > rightBound - radius && pY > bottomBound - radius && isCornerWithinStroke(
5426
+ pX,
5427
+ pY,
5428
+ rightBound - radius,
5429
+ bottomBound - radius,
5430
+ radius,
5431
+ strokeWidthInner,
5432
+ strokeWidthOuter
5433
+ ) || pX < innerX && pY > bottomBound - radius && isCornerWithinStroke(
5434
+ pX,
5435
+ pY,
5436
+ innerX,
5437
+ bottomBound - radius,
5438
+ radius,
5439
+ strokeWidthInner,
5440
+ strokeWidthOuter
5441
+ )
5402
5442
  );
5403
5443
  }
5404
5444
  toString() {
@@ -6177,7 +6217,7 @@ var ShapePath = class {
6177
6217
  const delta = Math.PI * 2 / sides;
6178
6218
  const polygon = [];
6179
6219
  for (let i = 0; i < sides; i++) {
6180
- const angle = i * delta + startAngle;
6220
+ const angle = startAngle - i * delta;
6181
6221
  polygon.push(
6182
6222
  x + radius * Math.cos(angle),
6183
6223
  y + radius * Math.sin(angle)
@@ -7832,13 +7872,13 @@ var _GraphicsContext = class _GraphicsContext2 extends eventemitter3_default {
7832
7872
  if (action === "stroke") {
7833
7873
  const data = instruction.data;
7834
7874
  const alignment = data.style.alignment;
7835
- const padding = data.style.width * (1 - alignment);
7875
+ const outerPadding = data.style.width * (1 - alignment);
7836
7876
  const _bounds = data.path.bounds;
7837
7877
  bounds.addFrame(
7838
- _bounds.minX - padding,
7839
- _bounds.minY - padding,
7840
- _bounds.maxX + padding,
7841
- _bounds.maxY + padding
7878
+ _bounds.minX - outerPadding,
7879
+ _bounds.minY - outerPadding,
7880
+ _bounds.maxX + outerPadding,
7881
+ _bounds.maxY + outerPadding
7842
7882
  );
7843
7883
  }
7844
7884
  }
@@ -7871,7 +7911,8 @@ var _GraphicsContext = class _GraphicsContext2 extends eventemitter3_default {
7871
7911
  if (instruction.action === "fill") {
7872
7912
  hasHit = shape.contains(transformedPoint.x, transformedPoint.y);
7873
7913
  } else {
7874
- hasHit = shape.strokeContains(transformedPoint.x, transformedPoint.y, style.width);
7914
+ const strokeStyle = style;
7915
+ hasHit = shape.strokeContains(transformedPoint.x, transformedPoint.y, strokeStyle.width, strokeStyle.alignment);
7875
7916
  }
7876
7917
  const holes = data.hole;
7877
7918
  if (holes) {
@@ -2324,22 +2324,25 @@ var Rectangle = class _Rectangle {
2324
2324
  * @param x - The X coordinate of the point to test
2325
2325
  * @param y - The Y coordinate of the point to test
2326
2326
  * @param strokeWidth - The width of the line to check
2327
+ * @param alignment - The alignment of the stroke, 0.5 by default
2327
2328
  * @returns Whether the x/y coordinates are within this rectangle
2328
2329
  */
2329
- strokeContains(x2, y2, strokeWidth) {
2330
+ strokeContains(x2, y2, strokeWidth, alignment = 0.5) {
2330
2331
  const { width, height } = this;
2331
2332
  if (width <= 0 || height <= 0)
2332
2333
  return false;
2333
2334
  const _x = this.x;
2334
2335
  const _y = this.y;
2335
- const outerLeft = _x - strokeWidth / 2;
2336
- const outerRight = _x + width + strokeWidth / 2;
2337
- const outerTop = _y - strokeWidth / 2;
2338
- const outerBottom = _y + height + strokeWidth / 2;
2339
- const innerLeft = _x + strokeWidth / 2;
2340
- const innerRight = _x + width - strokeWidth / 2;
2341
- const innerTop = _y + strokeWidth / 2;
2342
- const innerBottom = _y + height - strokeWidth / 2;
2336
+ const strokeWidthOuter = strokeWidth * (1 - alignment);
2337
+ const strokeWidthInner = strokeWidth - strokeWidthOuter;
2338
+ const outerLeft = _x - strokeWidthOuter;
2339
+ const outerRight = _x + width + strokeWidthOuter;
2340
+ const outerTop = _y - strokeWidthOuter;
2341
+ const outerBottom = _y + height + strokeWidthOuter;
2342
+ const innerLeft = _x + strokeWidthInner;
2343
+ const innerRight = _x + width - strokeWidthInner;
2344
+ const innerTop = _y + strokeWidthInner;
2345
+ const innerBottom = _y + height - strokeWidthInner;
2343
2346
  return x2 >= outerLeft && x2 <= outerRight && y2 >= outerTop && y2 <= outerBottom && !(x2 > innerLeft && x2 < innerRight && y2 > innerTop && y2 < innerBottom);
2344
2347
  }
2345
2348
  /**
@@ -3376,19 +3379,17 @@ var toLocalGlobalMixin = {
3376
3379
  };
3377
3380
 
3378
3381
  // node_modules/pixi.js/lib/rendering/renderers/shared/instructions/InstructionSet.mjs
3379
- var _tick = 0;
3380
3382
  var InstructionSet = class {
3381
3383
  constructor() {
3382
3384
  this.uid = uid("instructionSet");
3383
3385
  this.instructions = [];
3384
3386
  this.instructionSize = 0;
3385
3387
  this.renderables = [];
3386
- this.tick = 0;
3388
+ this.gcTick = 0;
3387
3389
  }
3388
3390
  /** reset the instruction set so it can be reused set size back to 0 */
3389
3391
  reset() {
3390
3392
  this.instructionSize = 0;
3391
- this.tick = _tick++;
3392
3393
  }
3393
3394
  /**
3394
3395
  * Add an instruction to the set
@@ -4470,6 +4471,7 @@ var RenderGroup = class {
4470
4471
  this.worldAlpha = 1;
4471
4472
  this.childrenToUpdate = /* @__PURE__ */ Object.create(null);
4472
4473
  this.updateTick = 0;
4474
+ this.gcTick = 0;
4473
4475
  this.childrenRenderablesToUpdate = { list: [], index: 0 };
4474
4476
  this.structureDidChange = true;
4475
4477
  this.instructionSet = new InstructionSet();
@@ -4485,7 +4487,9 @@ var RenderGroup = class {
4485
4487
  root.didChange = true;
4486
4488
  const children = root.children;
4487
4489
  for (let i2 = 0; i2 < children.length; i2++) {
4488
- this.addChild(children[i2]);
4490
+ const child = children[i2];
4491
+ child._updateFlags = 15;
4492
+ this.addChild(child);
4489
4493
  }
4490
4494
  }
4491
4495
  enableCacheAsTexture(options = {}) {
@@ -5835,8 +5839,7 @@ var ViewContainer = class extends Container {
5835
5839
  this.canBundle = true;
5836
5840
  this.allowChildren = false;
5837
5841
  this._roundPixels = 0;
5838
- this._lastUsed = 0;
5839
- this._lastInstructionTick = -1;
5842
+ this._lastUsed = -1;
5840
5843
  this._bounds = new Bounds(0, 1, 0, 0);
5841
5844
  this._boundsDirty = true;
5842
5845
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  CanvasPool,
3
3
  getTextureBatchBindGroup
4
- } from "./chunk-5JREOVCG.js";
4
+ } from "./chunk-XGGTEP7V.js";
5
5
  import {
6
6
  AbstractRenderer,
7
7
  BufferResource,
@@ -15,7 +15,7 @@ import {
15
15
  ensureAttributes,
16
16
  textureBit,
17
17
  uboSyncFunctionsWGSL
18
- } from "./chunk-5VX2VTDZ.js";
18
+ } from "./chunk-DXOIIOAQ.js";
19
19
  import {
20
20
  BindGroup,
21
21
  Buffer,
@@ -42,7 +42,7 @@ import {
42
42
  localUniformBitGroup2,
43
43
  roundPixelsBit,
44
44
  warn
45
- } from "./chunk-PP3SBC3C.js";
45
+ } from "./chunk-KAHX5SKO.js";
46
46
 
47
47
  // node_modules/pixi.js/lib/scene/graphics/gpu/GpuGraphicsAdaptor.mjs
48
48
  var GpuGraphicsAdaptor = class {
@@ -15,10 +15,10 @@ import {
15
15
  ResizePlugin,
16
16
  TickerPlugin,
17
17
  TilingSpritePipe
18
- } from "./chunk-CAWOWL3P.js";
18
+ } from "./chunk-IG7HSAEJ.js";
19
19
  import {
20
20
  extensions
21
- } from "./chunk-PP3SBC3C.js";
21
+ } from "./chunk-KAHX5SKO.js";
22
22
 
23
23
  // node_modules/pixi.js/lib/app/init.mjs
24
24
  extensions.add(ResizePlugin);
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  LoaderParserPriority,
3
3
  path
4
- } from "./chunk-CAWOWL3P.js";
4
+ } from "./chunk-IG7HSAEJ.js";
5
5
  import {
6
6
  DOMAdapter,
7
7
  ExtensionType,
8
8
  Ticker,
9
9
  eventemitter3_default,
10
10
  extensions
11
- } from "./chunk-PP3SBC3C.js";
11
+ } from "./chunk-KAHX5SKO.js";
12
12
  import {
13
13
  __export
14
14
  } from "./chunk-N342G4HO.js";
@@ -4,7 +4,7 @@ import {
4
4
  Texture,
5
5
  getMaxTexturesPerBatch,
6
6
  nextPow2
7
- } from "./chunk-PP3SBC3C.js";
7
+ } from "./chunk-KAHX5SKO.js";
8
8
 
9
9
  // node_modules/pixi.js/lib/rendering/batcher/gpu/getTextureBatchBindGroup.mjs
10
10
  var cachedGroups = {};