plotboilerplate 1.23.3 → 1.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (230) hide show
  1. package/README.md +19 -1
  2. package/dist/index.esm.js +1684 -394
  3. package/dist/index.esm.js.map +1 -1
  4. package/dist/index.esm.min.js +1 -1
  5. package/dist/index.esm.min.js.map +1 -1
  6. package/dist/plotboilerplate.browser.min.js +1 -1
  7. package/dist/plotboilerplate.browser.min.js.map +1 -1
  8. package/dist/plotboilerplate.js +12450 -11120
  9. package/dist/plotboilerplate.min.js +1 -1
  10. package/package.json +9 -5
  11. package/src/cjs/BezierPath.d.ts +41 -5
  12. package/src/cjs/BezierPath.js +52 -2
  13. package/src/cjs/BezierPath.js.map +1 -1
  14. package/src/cjs/Bounds.d.ts +67 -3
  15. package/src/cjs/Bounds.js +101 -3
  16. package/src/cjs/Bounds.js.map +1 -1
  17. package/src/cjs/Circle.d.ts +46 -4
  18. package/src/cjs/Circle.js +82 -3
  19. package/src/cjs/Circle.js.map +1 -1
  20. package/src/cjs/CircleSector.d.ts +51 -2
  21. package/src/cjs/CircleSector.js +112 -3
  22. package/src/cjs/CircleSector.js.map +1 -1
  23. package/src/cjs/CubicBezierCurve.d.ts +113 -7
  24. package/src/cjs/CubicBezierCurve.js +281 -33
  25. package/src/cjs/CubicBezierCurve.js.map +1 -1
  26. package/src/cjs/Line.d.ts +38 -3
  27. package/src/cjs/Line.js +64 -1
  28. package/src/cjs/Line.js.map +1 -1
  29. package/src/cjs/PlotBoilerplate.d.ts +37 -6
  30. package/src/cjs/PlotBoilerplate.js +224 -125
  31. package/src/cjs/PlotBoilerplate.js.map +1 -1
  32. package/src/cjs/Polygon.d.ts +68 -5
  33. package/src/cjs/Polygon.js +143 -22
  34. package/src/cjs/Polygon.js.map +1 -1
  35. package/src/cjs/Triangle.d.ts +52 -3
  36. package/src/cjs/Triangle.js +80 -1
  37. package/src/cjs/Triangle.js.map +1 -1
  38. package/src/cjs/VEllipse.d.ts +62 -3
  39. package/src/cjs/VEllipse.js +181 -17
  40. package/src/cjs/VEllipse.js.map +1 -1
  41. package/src/cjs/VEllipseSector.d.ts +86 -2
  42. package/src/cjs/VEllipseSector.js +148 -4
  43. package/src/cjs/VEllipseSector.js.map +1 -1
  44. package/src/cjs/Vector.d.ts +12 -2
  45. package/src/cjs/Vector.js +15 -2
  46. package/src/cjs/Vector.js.map +1 -1
  47. package/src/cjs/VertTuple.d.ts +28 -4
  48. package/src/cjs/VertTuple.js +36 -3
  49. package/src/cjs/VertTuple.js.map +1 -1
  50. package/src/cjs/Vertex.d.ts +31 -4
  51. package/src/cjs/Vertex.js +35 -1
  52. package/src/cjs/Vertex.js.map +1 -1
  53. package/src/cjs/interfaces/core.d.ts +67 -0
  54. package/src/cjs/interfaces/core.js +4 -0
  55. package/src/cjs/interfaces/core.js.map +1 -1
  56. package/src/cjs/utils/algorithms/convexPolygonIncircle.d.ts +2 -1
  57. package/src/cjs/utils/algorithms/convexPolygonIncircle.js +14 -6
  58. package/src/cjs/utils/algorithms/convexPolygonIncircle.js.map +1 -1
  59. package/src/cjs/utils/createRandomizedPolygon.d.ts +14 -0
  60. package/src/cjs/utils/createRandomizedPolygon.js +32 -0
  61. package/src/cjs/utils/createRandomizedPolygon.js.map +1 -0
  62. package/src/cjs/utils/datastructures/Color.d.ts +147 -1
  63. package/src/cjs/utils/datastructures/Color.js +385 -41
  64. package/src/cjs/utils/datastructures/Color.js.map +1 -1
  65. package/src/cjs/utils/datastructures/ColorGradient.d.ts +79 -0
  66. package/src/cjs/utils/datastructures/ColorGradient.js +171 -0
  67. package/src/cjs/utils/datastructures/ColorGradient.js.map +1 -0
  68. package/src/cjs/utils/dom/components/ColorGradientPicker.d.ts +245 -0
  69. package/src/cjs/utils/dom/components/ColorGradientPicker.js +667 -0
  70. package/src/cjs/utils/dom/components/ColorGradientPicker.js.map +1 -0
  71. package/src/cjs/utils/dom/components/ColorGradientPickerJSX.d.ts +129 -0
  72. package/src/cjs/utils/dom/components/ColorGradientPickerJSX.js +520 -0
  73. package/src/cjs/utils/dom/components/ColorGradientPickerJSX.js.map +1 -0
  74. package/src/cjs/utils/dom/components/ColorGradientSelector.d.ts +117 -0
  75. package/src/cjs/utils/dom/components/ColorGradientSelector.js +325 -0
  76. package/src/cjs/utils/dom/components/ColorGradientSelector.js.map +1 -0
  77. package/src/cjs/utils/dom/components/Test.d.ts +7 -0
  78. package/src/cjs/utils/dom/components/Test.js +30 -0
  79. package/src/cjs/utils/dom/components/Test.js.map +1 -0
  80. package/src/cjs/utils/dom/guiSizeToggler.js +1 -1
  81. package/src/cjs/utils/dom/guiSizeToggler.js.map +1 -1
  82. package/src/cjs/utils/helpers/BezierPathInteractionHelper.d.ts +16 -8
  83. package/src/cjs/utils/helpers/BezierPathInteractionHelper.js +49 -28
  84. package/src/cjs/utils/helpers/BezierPathInteractionHelper.js.map +1 -1
  85. package/src/cjs/utils/helpers/CircleHelper.d.ts +10 -1
  86. package/src/cjs/utils/helpers/CircleHelper.js +13 -2
  87. package/src/cjs/utils/helpers/CircleHelper.js.map +1 -1
  88. package/src/cjs/utils/helpers/CircleSectorHelper.d.ts +11 -2
  89. package/src/cjs/utils/helpers/CircleSectorHelper.js +20 -20
  90. package/src/cjs/utils/helpers/CircleSectorHelper.js.map +1 -1
  91. package/src/cjs/utils/helpers/TriangleHelper.d.ts +57 -0
  92. package/src/cjs/utils/helpers/TriangleHelper.js +83 -0
  93. package/src/cjs/utils/helpers/TriangleHelper.js.map +1 -0
  94. package/src/cjs/utils/helpers/VEllipseHelper.d.ts +32 -0
  95. package/src/cjs/utils/helpers/VEllipseHelper.js +88 -0
  96. package/src/cjs/utils/helpers/VEllipseHelper.js.map +1 -0
  97. package/src/cjs/utils/helpers/VEllipseSectorHelper.d.ts +44 -4
  98. package/src/cjs/utils/helpers/VEllipseSectorHelper.js +108 -25
  99. package/src/cjs/utils/helpers/VEllipseSectorHelper.js.map +1 -1
  100. package/src/cjs/utils/parsers/LinearColorGradientParser.d.ts +78 -0
  101. package/src/cjs/utils/parsers/LinearColorGradientParser.js +224 -0
  102. package/src/cjs/utils/parsers/LinearColorGradientParser.js.map +1 -0
  103. package/src/createDemoDrawables.js +4 -1
  104. package/src/esm/BezierPath.d.ts +41 -5
  105. package/src/esm/BezierPath.js +50 -2
  106. package/src/esm/BezierPath.js.map +1 -1
  107. package/src/esm/Bounds.d.ts +67 -3
  108. package/src/esm/Bounds.js +101 -3
  109. package/src/esm/Bounds.js.map +1 -1
  110. package/src/esm/Circle.d.ts +46 -4
  111. package/src/esm/Circle.js +79 -3
  112. package/src/esm/Circle.js.map +1 -1
  113. package/src/esm/CircleSector.d.ts +51 -2
  114. package/src/esm/CircleSector.js +108 -3
  115. package/src/esm/CircleSector.js.map +1 -1
  116. package/src/esm/CubicBezierCurve.d.ts +113 -7
  117. package/src/esm/CubicBezierCurve.js +277 -33
  118. package/src/esm/CubicBezierCurve.js.map +1 -1
  119. package/src/esm/Line.d.ts +38 -3
  120. package/src/esm/Line.js +62 -1
  121. package/src/esm/Line.js.map +1 -1
  122. package/src/esm/PlotBoilerplate.d.ts +37 -6
  123. package/src/esm/PlotBoilerplate.js +224 -125
  124. package/src/esm/PlotBoilerplate.js.map +1 -1
  125. package/src/esm/Polygon.d.ts +68 -5
  126. package/src/esm/Polygon.js +138 -22
  127. package/src/esm/Polygon.js.map +1 -1
  128. package/src/esm/Triangle.d.ts +52 -3
  129. package/src/esm/Triangle.js +77 -1
  130. package/src/esm/Triangle.js.map +1 -1
  131. package/src/esm/VEllipse.d.ts +62 -3
  132. package/src/esm/VEllipse.js +178 -17
  133. package/src/esm/VEllipse.js.map +1 -1
  134. package/src/esm/VEllipseSector.d.ts +86 -2
  135. package/src/esm/VEllipseSector.js +146 -7
  136. package/src/esm/VEllipseSector.js.map +1 -1
  137. package/src/esm/Vector.d.ts +12 -2
  138. package/src/esm/Vector.js +15 -2
  139. package/src/esm/Vector.js.map +1 -1
  140. package/src/esm/VertTuple.d.ts +28 -4
  141. package/src/esm/VertTuple.js +36 -3
  142. package/src/esm/VertTuple.js.map +1 -1
  143. package/src/esm/Vertex.d.ts +31 -4
  144. package/src/esm/Vertex.js +35 -1
  145. package/src/esm/Vertex.js.map +1 -1
  146. package/src/esm/interfaces/core.d.ts +67 -0
  147. package/src/esm/interfaces/core.js +4 -0
  148. package/src/esm/interfaces/core.js.map +1 -1
  149. package/src/esm/utils/algorithms/convexPolygonIncircle.d.ts +2 -1
  150. package/src/esm/utils/algorithms/convexPolygonIncircle.js +15 -7
  151. package/src/esm/utils/algorithms/convexPolygonIncircle.js.map +1 -1
  152. package/src/esm/utils/algorithms/createRandomizedPolygon.d.ts +14 -0
  153. package/src/esm/utils/algorithms/createRandomizedPolygon.js +28 -0
  154. package/src/esm/utils/algorithms/createRandomizedPolygon.js.map +1 -0
  155. package/src/esm/utils/createRandomizedPolygon.d.ts +14 -0
  156. package/src/esm/utils/createRandomizedPolygon.js +28 -0
  157. package/src/esm/utils/createRandomizedPolygon.js.map +1 -0
  158. package/src/esm/utils/datastructures/Color.d.ts +147 -1
  159. package/src/esm/utils/datastructures/Color.js +386 -42
  160. package/src/esm/utils/datastructures/Color.js.map +1 -1
  161. package/src/esm/utils/datastructures/ColorGradient.d.ts +79 -0
  162. package/src/esm/utils/datastructures/ColorGradient.js +166 -0
  163. package/src/esm/utils/datastructures/ColorGradient.js.map +1 -0
  164. package/src/esm/utils/dom/components/ColorGradientPicker.d.ts +245 -0
  165. package/src/esm/utils/dom/components/ColorGradientPicker.js +732 -0
  166. package/src/esm/utils/dom/components/ColorGradientPicker.js.map +1 -0
  167. package/src/esm/utils/dom/components/ColorGradientPickerJSX.d.ts +129 -0
  168. package/src/esm/utils/dom/components/ColorGradientPickerJSX.js +582 -0
  169. package/src/esm/utils/dom/components/ColorGradientPickerJSX.js.map +1 -0
  170. package/src/esm/utils/dom/components/ColorGradientSelector.d.ts +117 -0
  171. package/src/esm/utils/dom/components/ColorGradientSelector.js +332 -0
  172. package/src/esm/utils/dom/components/ColorGradientSelector.js.map +1 -0
  173. package/src/esm/utils/dom/components/Test.d.ts +7 -0
  174. package/src/esm/utils/dom/components/Test.js +26 -0
  175. package/src/esm/utils/dom/components/Test.js.map +1 -0
  176. package/src/esm/utils/dom/guiSizeToggler.js +1 -1
  177. package/src/esm/utils/dom/guiSizeToggler.js.map +1 -1
  178. package/src/esm/utils/helpers/BezierPathInteractionHelper.d.ts +16 -8
  179. package/src/esm/utils/helpers/BezierPathInteractionHelper.js +47 -27
  180. package/src/esm/utils/helpers/BezierPathInteractionHelper.js.map +1 -1
  181. package/src/esm/utils/helpers/CircleHelper.d.ts +10 -1
  182. package/src/esm/utils/helpers/CircleHelper.js +13 -2
  183. package/src/esm/utils/helpers/CircleHelper.js.map +1 -1
  184. package/src/esm/utils/helpers/CircleSectorHelper.d.ts +11 -2
  185. package/src/esm/utils/helpers/CircleSectorHelper.js +20 -20
  186. package/src/esm/utils/helpers/CircleSectorHelper.js.map +1 -1
  187. package/src/esm/utils/helpers/TriangleHelper.d.ts +57 -0
  188. package/src/esm/utils/helpers/TriangleHelper.js +78 -0
  189. package/src/esm/utils/helpers/TriangleHelper.js.map +1 -0
  190. package/src/esm/utils/helpers/VEllipseHelper.d.ts +32 -0
  191. package/src/esm/utils/helpers/VEllipseHelper.js +83 -0
  192. package/src/esm/utils/helpers/VEllipseHelper.js.map +1 -0
  193. package/src/esm/utils/helpers/VEllipseSectorHelper.d.ts +44 -4
  194. package/src/esm/utils/helpers/VEllipseSectorHelper.js +107 -24
  195. package/src/esm/utils/helpers/VEllipseSectorHelper.js.map +1 -1
  196. package/src/esm/utils/parsers/LinearColorGradientParser.d.ts +78 -0
  197. package/src/esm/utils/parsers/LinearColorGradientParser.js +217 -0
  198. package/src/esm/utils/parsers/LinearColorGradientParser.js.map +1 -0
  199. package/src/external.d.ts +9 -0
  200. package/src/ts/BezierPath.ts +58 -5
  201. package/src/ts/Bounds.ts +110 -6
  202. package/src/ts/Circle.ts +87 -5
  203. package/src/ts/CircleSector.ts +115 -5
  204. package/src/ts/CubicBezierCurve.ts +332 -42
  205. package/src/ts/Line.ts +66 -3
  206. package/src/ts/PlotBoilerplate.ts +236 -114
  207. package/src/ts/Polygon.ts +164 -29
  208. package/src/ts/Triangle.ts +85 -3
  209. package/src/ts/VEllipse.ts +214 -19
  210. package/src/ts/VEllipseSector.ts +154 -8
  211. package/src/ts/Vector.ts +16 -2
  212. package/src/ts/VertTuple.ts +39 -4
  213. package/src/ts/Vertex.ts +40 -4
  214. package/src/ts/interfaces/core.ts +73 -0
  215. package/src/ts/utils/algorithms/convexPolygonIncircle.ts +82 -78
  216. package/src/ts/utils/createRandomizedPolygon.ts +31 -0
  217. package/src/ts/utils/datastructures/Color.ts +423 -44
  218. package/src/ts/utils/datastructures/ColorGradient.ts +196 -0
  219. package/src/ts/utils/dom/components/ColorGradientPicker.tsx +877 -0
  220. package/src/ts/utils/dom/components/ColorGradientSelector.tsx +445 -0
  221. package/src/ts/utils/dom/components/Test.tsx +44 -0
  222. package/src/ts/utils/dom/components/_ColorGradientPicker_raw.ts_ +392 -0
  223. package/src/ts/utils/dom/guiSizeToggler.ts +1 -1
  224. package/src/ts/utils/helpers/BezierPathInteractionHelper.ts +61 -35
  225. package/src/ts/utils/helpers/CircleHelper.ts +17 -3
  226. package/src/ts/utils/helpers/CircleSectorHelper.ts +118 -126
  227. package/src/ts/utils/helpers/TriangleHelper.ts +102 -0
  228. package/src/ts/utils/helpers/VEllipseHelper.ts +115 -0
  229. package/src/ts/utils/helpers/VEllipseSectorHelper.ts +144 -26
  230. package/src/ts/utils/parsers/LinearColorGradientParser.ts +297 -0
@@ -15,15 +15,21 @@
15
15
  * @modified 2021-03-19 Added the `VEllipse.rotate` function.
16
16
  * @modified 2022-02-02 Added the `destroy` method.
17
17
  * @modified 2022-02-02 Cleared the `VEllipse.toSVGString` function (deprecated). Use `drawutilssvg` instead.
18
- * @version 1.3.0
18
+ * @modified 2025-03-31 ATTENTION: modified the winding direction of the `tangentAt` method to match with the Circle method. This is a breaking change!
19
+ * @modified 2025-03-31 Adding the `VEllipse.move(amount: XYCoords)` method.
20
+ * @modified 2025-04-19 Adding the `VEllipse.getBounds()` method.
21
+ * @modified 2025-04-24 Adding the `VEllipse.getExtremePoints()` method for calculating minima and maxima.
22
+ * @version 1.4.0
19
23
  *
20
24
  * @file VEllipse
21
25
  * @fileoverview Ellipses with a center and an x- and a y-axis (stored as a vertex).
22
26
  **/
23
27
  import { Vector } from "./Vector";
24
28
  import { Vertex } from "./Vertex";
25
- import { SVGSerializable, UID, XYCoords } from "./interfaces";
29
+ import { IBounded, Intersectable, SVGSerializable, UID, XYCoords } from "./interfaces";
26
30
  import { CubicBezierCurve } from "./CubicBezierCurve";
31
+ import { VertTuple } from "./VertTuple";
32
+ import { Bounds } from "./Bounds";
27
33
  /**
28
34
  * @classdesc An ellipse class based on two vertices [centerX,centerY] and [radiusX,radiusY].
29
35
  *
@@ -32,7 +38,7 @@ import { CubicBezierCurve } from "./CubicBezierCurve";
32
38
  * @requires UIDGenerator
33
39
  * @requires Vertex
34
40
  */
35
- export declare class VEllipse implements SVGSerializable {
41
+ export declare class VEllipse implements IBounded, Intersectable, SVGSerializable {
36
42
  /**
37
43
  * Required to generate proper CSS classes and other class related IDs.
38
44
  **/
@@ -123,6 +129,37 @@ export declare class VEllipse implements SVGSerializable {
123
129
  * @return {number} The signed vertical radius of this ellipse.
124
130
  */
125
131
  signedRadiusV(): number;
132
+ /**
133
+ * Get the the minima and maxima (points) of this (rotated) ellipse.
134
+ *
135
+ * @method getExtremePoints
136
+ * @instance
137
+ * @memberof VEllipse
138
+ * @return {[Vertex, Vertex, Vertex, Vertex]} Get the the minima and maxima (points) of this (rotated) ellipse.
139
+ */
140
+ getExtremePoints(): [Vertex, Vertex, Vertex, Vertex];
141
+ /**
142
+ * Get the bounds of this ellipse.
143
+ *
144
+ * The bounds are approximated by the underlying segment buffer; the more segment there are,
145
+ * the more accurate will be the returned bounds.
146
+ *
147
+ * @method getBounds
148
+ * @instance
149
+ * @memberof VEllipse
150
+ * @return {Bounds} The bounds of this ellipse.
151
+ **/
152
+ getBounds(): Bounds;
153
+ /**
154
+ * Move the ellipse by the given amount. This is equivalent by moving the `center` and `axis` points.
155
+ *
156
+ * @method move
157
+ * @param {XYCoords} amount - The amount to move.
158
+ * @instance
159
+ * @memberof VEllipse
160
+ * @return {VEllipse} this for chaining
161
+ **/
162
+ move(amount: XYCoords): VEllipse;
126
163
  /**
127
164
  * Scale this ellipse by the given factor from the center point. The factor will be applied to both radii.
128
165
  *
@@ -204,10 +241,32 @@ export declare class VEllipse implements SVGSerializable {
204
241
  /**
205
242
  * Get equally distributed points on the outline of this ellipse.
206
243
  *
244
+ * @method getEquidistantVertices
245
+ * @instance
207
246
  * @param {number} pointCount - The number of points.
208
247
  * @returns {Array<Vertex>}
209
248
  */
210
249
  getEquidistantVertices(pointCount: number): Array<Vertex>;
250
+ /**
251
+ * Get the line intersections as vectors with this ellipse.
252
+ *
253
+ * @method lineIntersections
254
+ * @instance
255
+ * @param {VertTuple<Vector> ray - The line/ray to intersect this ellipse with.
256
+ * @param {boolean} inVectorBoundsOnly - (default=false) Set to true if only intersections within the vector bounds are of interest.
257
+ * @returns
258
+ */
259
+ lineIntersections(ray: VertTuple<Vector>, inVectorBoundsOnly?: boolean): Array<Vertex>;
260
+ /**
261
+ * Get all line intersections of this polygon and their tangents along the shape.
262
+ *
263
+ * This method returns all intersection tangents (as vectors) with this shape. The returned array of vectors is in no specific order.
264
+ *
265
+ * @param line
266
+ * @param lineIntersectionTangents
267
+ * @returns
268
+ */
269
+ lineIntersectionTangents(line: VertTuple<any>, inVectorBoundsOnly?: boolean): Array<Vector>;
211
270
  /**
212
271
  * Convert this ellipse into cubic Bézier curves.
213
272
  *
@@ -15,7 +15,11 @@
15
15
  * @modified 2021-03-19 Added the `VEllipse.rotate` function.
16
16
  * @modified 2022-02-02 Added the `destroy` method.
17
17
  * @modified 2022-02-02 Cleared the `VEllipse.toSVGString` function (deprecated). Use `drawutilssvg` instead.
18
- * @version 1.3.0
18
+ * @modified 2025-03-31 ATTENTION: modified the winding direction of the `tangentAt` method to match with the Circle method. This is a breaking change!
19
+ * @modified 2025-03-31 Adding the `VEllipse.move(amount: XYCoords)` method.
20
+ * @modified 2025-04-19 Adding the `VEllipse.getBounds()` method.
21
+ * @modified 2025-04-24 Adding the `VEllipse.getExtremePoints()` method for calculating minima and maxima.
22
+ * @version 1.4.0
19
23
  *
20
24
  * @file VEllipse
21
25
  * @fileoverview Ellipses with a center and an x- and a y-axis (stored as a vertex).
@@ -25,6 +29,8 @@ import { Vector } from "./Vector";
25
29
  import { Vertex } from "./Vertex";
26
30
  import { UIDGenerator } from "./UIDGenerator";
27
31
  import { CubicBezierCurve } from "./CubicBezierCurve";
32
+ import { Circle } from "./Circle";
33
+ import { Bounds } from "./Bounds";
28
34
  /**
29
35
  * @classdesc An ellipse class based on two vertices [centerX,centerY] and [radiusX,radiusY].
30
36
  *
@@ -106,11 +112,96 @@ export class VEllipse {
106
112
  * @return {number} The signed vertical radius of this ellipse.
107
113
  */
108
114
  signedRadiusV() {
109
- // return Math.abs(this.axis.y - this.center.y);
110
115
  // Rotate axis back to origin before calculating radius
111
- // return Math.abs(new Vertex(this.axis).rotate(-this.rotation,this.center).y - this.center.y);
112
116
  return new Vertex(this.axis).rotate(-this.rotation, this.center).y - this.center.y;
113
117
  }
118
+ /**
119
+ * Get the the minima and maxima (points) of this (rotated) ellipse.
120
+ *
121
+ * @method getExtremePoints
122
+ * @instance
123
+ * @memberof VEllipse
124
+ * @return {[Vertex, Vertex, Vertex, Vertex]} Get the the minima and maxima (points) of this (rotated) ellipse.
125
+ */
126
+ getExtremePoints() {
127
+ const a = this.radiusH();
128
+ const b = this.radiusV();
129
+ // Calculate t_x values
130
+ const t_x1 = Math.atan2(-b * Math.sin(this.rotation), a * Math.cos(this.rotation));
131
+ const t_x2 = t_x1 + Math.PI;
132
+ // Calculate x values at t_x
133
+ const x_x1 = this.center.x + a * Math.cos(t_x1) * Math.cos(this.rotation) - b * Math.sin(t_x1) * Math.sin(this.rotation);
134
+ const y_x1 = this.center.y + a * Math.cos(t_x1) * Math.sin(this.rotation) + b * Math.sin(t_x1) * Math.cos(this.rotation);
135
+ const x_x2 = this.center.x + a * Math.cos(t_x2) * Math.cos(this.rotation) - b * Math.sin(t_x2) * Math.sin(this.rotation);
136
+ const y_x2 = this.center.y + a * Math.cos(t_x2) * Math.sin(this.rotation) + b * Math.sin(t_x2) * Math.cos(this.rotation);
137
+ let x_max, x_min;
138
+ if (x_x1 > x_x2) {
139
+ x_max = new Vertex(x_x1, y_x1);
140
+ x_min = new Vertex(x_x2, y_x2);
141
+ }
142
+ else {
143
+ x_max = new Vertex(x_x2, y_x2);
144
+ x_min = new Vertex(x_x1, y_x1);
145
+ }
146
+ // Calculate t_y values
147
+ const t_y1 = Math.atan2(b * Math.cos(this.rotation), a * Math.sin(this.rotation));
148
+ const t_y2 = t_y1 + Math.PI;
149
+ // Calculate y values at t_y
150
+ const x_y1 = this.center.x + a * Math.cos(t_y1) * Math.cos(this.rotation) - b * Math.sin(t_y1) * Math.sin(this.rotation);
151
+ const y_y1 = this.center.y + a * Math.cos(t_y1) * Math.sin(this.rotation) + b * Math.sin(t_y1) * Math.cos(this.rotation);
152
+ const x_y2 = this.center.x + a * Math.cos(t_y2) * Math.cos(this.rotation) - b * Math.sin(t_y2) * Math.sin(this.rotation);
153
+ const y_y2 = this.center.y + a * Math.cos(t_y2) * Math.sin(this.rotation) + b * Math.sin(t_y2) * Math.cos(this.rotation);
154
+ let y_max, y_min;
155
+ if (y_y1 > y_y2) {
156
+ y_max = new Vertex(x_y1, y_y1);
157
+ y_min = new Vertex(x_y2, y_y2);
158
+ }
159
+ else {
160
+ y_max = new Vertex(x_y2, y_y2);
161
+ y_min = new Vertex(x_y1, y_y1);
162
+ }
163
+ return [x_max, x_min, y_max, y_min];
164
+ }
165
+ //--- BEGIN --- Implement interface `IBounded`
166
+ /**
167
+ * Get the bounds of this ellipse.
168
+ *
169
+ * The bounds are approximated by the underlying segment buffer; the more segment there are,
170
+ * the more accurate will be the returned bounds.
171
+ *
172
+ * @method getBounds
173
+ * @instance
174
+ * @memberof VEllipse
175
+ * @return {Bounds} The bounds of this ellipse.
176
+ **/
177
+ getBounds() {
178
+ // Thanks to Cuixiping
179
+ // https://stackoverflow.com/questions/87734/how-do-you-calculate-the-axis-aligned-bounding-box-of-an-ellipse
180
+ const r1 = this.radiusH();
181
+ const r2 = this.radiusV();
182
+ const ux = r1 * Math.cos(this.rotation);
183
+ const uy = r1 * Math.sin(this.rotation);
184
+ const vx = r2 * Math.cos(this.rotation + Math.PI / 2);
185
+ const vy = r2 * Math.sin(this.rotation + Math.PI / 2);
186
+ const bbox_halfwidth = Math.sqrt(ux * ux + vx * vx);
187
+ const bbox_halfheight = Math.sqrt(uy * uy + vy * vy);
188
+ return new Bounds({ x: this.center.x - bbox_halfwidth, y: this.center.y - bbox_halfheight }, { x: this.center.x + bbox_halfwidth, y: this.center.y + bbox_halfheight });
189
+ }
190
+ //--- BEGIN --- Implement interface `IBounded`
191
+ /**
192
+ * Move the ellipse by the given amount. This is equivalent by moving the `center` and `axis` points.
193
+ *
194
+ * @method move
195
+ * @param {XYCoords} amount - The amount to move.
196
+ * @instance
197
+ * @memberof VEllipse
198
+ * @return {VEllipse} this for chaining
199
+ **/
200
+ move(amount) {
201
+ this.center.add(amount);
202
+ this.axis.add(amount);
203
+ return this;
204
+ }
114
205
  /**
115
206
  * Scale this ellipse by the given factor from the center point. The factor will be applied to both radii.
116
207
  *
@@ -168,7 +259,7 @@ export class VEllipse {
168
259
  * @param {number=1.0} length - [optional, default=1] The length of the returned vector.
169
260
  */
170
261
  normalAt(angle, length) {
171
- const point = this.vertAt(angle);
262
+ const point = this.vertAt(angle - this.rotation); // HERE IS THE CORRECT BEHAVIOR!
172
263
  const foci = this.getFoci();
173
264
  // Calculate the angle between [point,focusA] and [point,focusB]
174
265
  const angleA = new Line(point, foci[0]).angle();
@@ -180,12 +271,13 @@ export class VEllipse {
180
271
  .addX(50)
181
272
  .clone()
182
273
  .rotate(Math.PI + centerAngle, point);
183
- if (this.center.distance(endPointA) < this.center.distance(endPointB)) {
184
- return new Vector(point, endPointB);
185
- }
186
- else {
187
- return new Vector(point, endPointA);
274
+ const resultVector = this.center.distance(endPointA) < this.center.distance(endPointB)
275
+ ? new Vector(point, endPointB)
276
+ : new Vector(point, endPointA);
277
+ if (typeof length === "number") {
278
+ resultVector.setLength(length);
188
279
  }
280
+ return resultVector;
189
281
  }
190
282
  /**
191
283
  * Get the tangent vector at the given angle.
@@ -204,9 +296,7 @@ export class VEllipse {
204
296
  */
205
297
  tangentAt(angle, length) {
206
298
  const normal = this.normalAt(angle, length);
207
- // Rotate the normal by 90 degrees, then it is the tangent.
208
- normal.b.rotate(Math.PI / 2, normal.a);
209
- return normal;
299
+ return normal.inv().perp();
210
300
  }
211
301
  /**
212
302
  * Get the perimeter of this ellipse.
@@ -257,6 +347,8 @@ export class VEllipse {
257
347
  /**
258
348
  * Get equally distributed points on the outline of this ellipse.
259
349
  *
350
+ * @method getEquidistantVertices
351
+ * @instance
260
352
  * @param {number} pointCount - The number of points.
261
353
  * @returns {Array<Vertex>}
262
354
  */
@@ -268,6 +360,75 @@ export class VEllipse {
268
360
  }
269
361
  return result;
270
362
  }
363
+ //--- BEGIN --- Implement interface `Intersectable`
364
+ /**
365
+ * Get the line intersections as vectors with this ellipse.
366
+ *
367
+ * @method lineIntersections
368
+ * @instance
369
+ * @param {VertTuple<Vector> ray - The line/ray to intersect this ellipse with.
370
+ * @param {boolean} inVectorBoundsOnly - (default=false) Set to true if only intersections within the vector bounds are of interest.
371
+ * @returns
372
+ */
373
+ lineIntersections(ray, inVectorBoundsOnly = false) {
374
+ // Question: what happens to extreme versions when ellipse is a line (width or height is zero)?
375
+ // This would result in a Division_by_Zero exception!
376
+ // Step A: create clones for operations (keep originals unchanged)
377
+ const ellipseCopy = this.clone(); // VEllipse
378
+ const rayCopy = ray.clone(); // Vector
379
+ // Step B: move both so ellipse's center is located at (0,0)
380
+ const moveAmount = ellipseCopy.center.clone().inv();
381
+ ellipseCopy.move(moveAmount);
382
+ rayCopy.add(moveAmount);
383
+ // Step C: rotate eclipse backwards it's rotation, so that rotation is zero (0.0).
384
+ // Rotate together with ray!
385
+ const rotationAmount = -ellipseCopy.rotation;
386
+ ellipseCopy.rotate(rotationAmount); // Rotation around (0,0) = center of translated ellipse
387
+ rayCopy.a.rotate(rotationAmount, ellipseCopy.center);
388
+ rayCopy.b.rotate(rotationAmount, ellipseCopy.center);
389
+ // Step D: find x/y factors to use for scaling to transform the ellipse to a circle.
390
+ // Scale together with vector ray.
391
+ const radiusH = ellipseCopy.radiusH();
392
+ const radiusV = ellipseCopy.radiusV();
393
+ const scalingFactors = radiusH > radiusV ? { x: radiusV / radiusH, y: 1.0 } : { x: 1.0, y: radiusH / radiusV };
394
+ // Step E: scale ellipse AND ray by calculated factors.
395
+ ellipseCopy.axis.scaleXY(scalingFactors);
396
+ rayCopy.a.scaleXY(scalingFactors);
397
+ rayCopy.b.scaleXY(scalingFactors);
398
+ // Intermediate result: now the ellipse is transformed to a circle and we can calculate intersections :)
399
+ // Step F: calculate circle+line intersecions
400
+ const tmpCircle = new Circle(new Vertex(), ellipseCopy.radiusH()); // radiusH() === radiusV()
401
+ const intersections = tmpCircle.lineIntersections(rayCopy, inVectorBoundsOnly);
402
+ // Step G: transform intersecions back to original configuration
403
+ intersections.forEach(function (intersectionPoint) {
404
+ // Reverse transformation from above.
405
+ intersectionPoint.scaleXY({ x: 1 / scalingFactors.x, y: 1 / scalingFactors.y }, ellipseCopy.center);
406
+ intersectionPoint.rotate(-rotationAmount, ellipseCopy.center);
407
+ intersectionPoint.sub(moveAmount);
408
+ });
409
+ return intersections;
410
+ }
411
+ /**
412
+ * Get all line intersections of this polygon and their tangents along the shape.
413
+ *
414
+ * This method returns all intersection tangents (as vectors) with this shape. The returned array of vectors is in no specific order.
415
+ *
416
+ * @param line
417
+ * @param lineIntersectionTangents
418
+ * @returns
419
+ */
420
+ lineIntersectionTangents(line, inVectorBoundsOnly = false) {
421
+ // Find the intersections of all lines plus their tangents inside the circle bounds
422
+ const interSectionPoints = this.lineIntersections(line, inVectorBoundsOnly);
423
+ return interSectionPoints.map((vert) => {
424
+ // Calculate angle
425
+ const lineFromCenter = new Line(this.center, vert);
426
+ const angle = lineFromCenter.angle();
427
+ // Calculate tangent at angle
428
+ return this.tangentAt(angle);
429
+ });
430
+ }
431
+ //--- END --- Implement interface `Intersectable`
271
432
  /**
272
433
  * Convert this ellipse into cubic Bézier curves.
273
434
  *
@@ -280,7 +441,7 @@ export class VEllipse {
280
441
  // Math by Luc Maisonobe
281
442
  // http://www.spaceroots.org/documents/ellipse/node22.html
282
443
  // Note that ellipses with radiusH=0 or radiusV=0 cannot be represented as Bézier curves.
283
- // Return a single line here (as a Bézier curve)
444
+ // Return a single line here (as a Bézier curve)?
284
445
  // if (Math.abs(this.radiusV()) < 0.00001) {
285
446
  // const radiusH = this.radiusH();
286
447
  // return [
@@ -310,10 +471,10 @@ export class VEllipse {
310
471
  const radiusV = this.radiusV();
311
472
  const curves = [];
312
473
  const angles = VEllipse.utils.equidistantVertAngles(radiusH, radiusV, segmentCount);
313
- let curAngle = angles[0];
474
+ let curAngle = angles[0] + this.rotation;
314
475
  let startPoint = this.vertAt(curAngle);
315
476
  for (var i = 0; i < angles.length; i++) {
316
- let nextAngle = angles[(i + 1) % angles.length];
477
+ let nextAngle = angles[(i + 1) % angles.length] + this.rotation;
317
478
  let endPoint = this.vertAt(nextAngle);
318
479
  if (Math.abs(radiusV) < 0.0001 || Math.abs(radiusH) < 0.0001) {
319
480
  // Distorted ellipses can only be approximated by linear Bézier segments
@@ -322,8 +483,8 @@ export class VEllipse {
322
483
  curves.push(curve);
323
484
  }
324
485
  else {
325
- let startTangent = this.tangentAt(curAngle);
326
- let endTangent = this.tangentAt(nextAngle);
486
+ let startTangent = this.tangentAt(curAngle + this.rotation);
487
+ let endTangent = this.tangentAt(nextAngle + this.rotation);
327
488
  // Find intersection (ignore that the result might be null in some extreme cases)
328
489
  let intersection = startTangent.intersection(endTangent);
329
490
  // What if intersection is undefined?
@@ -1 +1 @@
1
- {"version":3,"file":"VEllipse.js","sourceRoot":"","sources":["../ts/VEllipse.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;IAqBI;AAEJ,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD;;;;;;;GAOG;AACH,MAAM,OAAO,QAAQ;IA6CnB;;;;;;;;QAQI;IACJ,YAAY,MAAc,EAAE,IAAY,EAAE,QAAiB;QArD3D;;YAEI;QACK,cAAS,GAAW,UAAU,CAAC;QAmDtC,IAAI,CAAC,GAAG,GAAG,YAAY,CAAC,IAAI,EAAE,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,QAAQ,GAAG,QAAQ,IAAI,GAAG,CAAC;IAClC,CAAC;IAED;;;;OAIG;IACH,KAAK;QACH,OAAO,IAAI,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;OAOG;IACH,OAAO;QACL,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC;IACxC,CAAC;IAED;;;;;;;OAOG;IACH,aAAa;QACX,gDA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,OAAO,MAAM,CAAC;IAChB,CAAC;CACF,AAtDW,CAsDV,CAAC,YAAY"}
@@ -6,11 +6,22 @@
6
6
  * @date 2021-02-26
7
7
  * @modified 2022-02-02 Added the `destroy` method.
8
8
  * @modified 2022-11-01 Tweaked the `endpointToCenterParameters` function to handle negative values, too, without errors.
9
- * @version 1.1.1
9
+ * @modified 2025-04-01 Adapting a the `toCubicBezier` calculation to match an underlying change in the vertAt and tangentAt calculation of ellipses (was required to hamonize both methods with circles).
10
+ * @modified 2025-04-02 Adding `VEllipseSector.containsAngle` method.
11
+ * @modified 2025-04-02 Adding `VEllipseSector.lineIntersections` and `VEllipseSector.lineIntersectionTangents` and implementing `Intersectable`.
12
+ * @modified 2025-04-07 Adding value wrapping (0 to TWO_PI) to the `VEllipseSector.containsAngle` method.
13
+ * @modified 2025-04-09 Adding the `VEllipseSector.move` method.
14
+ * @modified 2025-04-19 Added the `VEllipseSector.getStartPoint` and `getEndPoint` methods.
15
+ * @modified 2025-04-23 Added the `VEllipseSector.getBounds` method.
16
+ * @version 1.2.0
10
17
  */
18
+ import { Bounds } from "./Bounds";
11
19
  import { CubicBezierCurve } from "./CubicBezierCurve";
12
- import { SVGPathParams, UID } from "./interfaces";
20
+ import { SVGPathParams, UID, XYCoords } from "./interfaces";
21
+ import { Vector } from "./Vector";
13
22
  import { VEllipse } from "./VEllipse";
23
+ import { Vertex } from "./Vertex";
24
+ import { VertTuple } from "./VertTuple";
14
25
  /**
15
26
  * @classdesc A class for elliptic sectors.
16
27
  *
@@ -74,6 +85,79 @@ export declare class VEllipseSector {
74
85
  * @param {numner} endAngle - The end angle of the sector.
75
86
  */
76
87
  constructor(ellipse: VEllipse, startAngle: number, endAngle: number);
88
+ /**
89
+ * Move the ellipse sector by the given amount.
90
+ *
91
+ * @method move
92
+ * @param {XYCoords} amount - The amount to move.
93
+ * @instance
94
+ * @memberof VEllipseSector
95
+ * @return {VEllipseSector} this for chaining
96
+ **/
97
+ move(amount: XYCoords): VEllipseSector;
98
+ /**
99
+ * Checks wether the given angle (must be inside 0 and PI*2) is contained inside this sector.
100
+ *
101
+ * @param {number} angle - The numeric angle to check.
102
+ * @method containsAngle
103
+ * @instance
104
+ * @memberof VEllipseSectpr
105
+ * @return {boolean} True if (and only if) this sector contains the given angle.
106
+ */
107
+ containsAngle(angle: number): boolean;
108
+ /**
109
+ * Get the sectors starting point (on the underlying ellipse, located at the start angle).
110
+ *
111
+ * @method getStartPoint
112
+ * @instance
113
+ * @memberof VEllipseSector
114
+ * @return {Vertex} The sector's stating point.
115
+ */
116
+ getStartPoint(): Vertex;
117
+ /**
118
+ * Get the sectors ending point (on the underlying ellipse, located at the end angle).
119
+ *
120
+ * @method getEndPoint
121
+ * @instance
122
+ * @memberof VEllipseSector
123
+ * @return {Vertex} The sector's ending point.
124
+ */
125
+ getEndPoint(): Vertex;
126
+ /**
127
+ * Get the bounds of this elliptic sector.
128
+ *
129
+ * The bounds are approximated by the underlying segment buffer; the more segment there are,
130
+ * the more accurate will be the returned bounds.
131
+ *
132
+ * @method getBounds
133
+ * @instance
134
+ * @memberof VEllipse
135
+ * @return {Bounds} The bounds of this elliptic sector.
136
+ **/
137
+ getBounds(): Bounds;
138
+ /**
139
+ * Get the line intersections as vectors with this ellipse.
140
+ *
141
+ * @method lineIntersections
142
+ * @instance
143
+ * @memberof VEllipseSectpr
144
+ * @param {VertTuple<Vector>} ray - The line/ray to intersect this ellipse with.
145
+ * @param {boolean} inVectorBoundsOnly - (default=false) Set to true if only intersections within the vector bounds are of interest.
146
+ * @returns
147
+ */
148
+ lineIntersections(ray: VertTuple<Vector>, inVectorBoundsOnly?: boolean): Array<Vertex>;
149
+ /**
150
+ * Get all line intersections of this polygon and their tangents along the shape.
151
+ *
152
+ * This method returns all intersection tangents (as vectors) with this shape. The returned array of vectors is in no specific order.
153
+ *
154
+ * @method lineIntersections
155
+ * @memberof VEllipseSectpr
156
+ * @param line
157
+ * @param lineIntersectionTangents
158
+ * @returns
159
+ */
160
+ lineIntersectionTangents(line: VertTuple<any>, inVectorBoundsOnly?: boolean): Array<Vector>;
77
161
  /**
78
162
  * Convert this elliptic sector into cubic Bézier curves.
79
163
  *