plotboilerplate 1.28.0 → 1.29.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.
- package/README.md +8 -0
- package/dist/index.esm.js +335 -39
- package/dist/index.esm.js.map +1 -1
- package/dist/index.esm.min.js +1 -1
- package/dist/index.esm.min.js.map +1 -1
- package/dist/plotboilerplate.browser.min.js +1 -1
- package/dist/plotboilerplate.browser.min.js.map +1 -1
- package/dist/plotboilerplate.js +335 -37
- package/dist/plotboilerplate.min.js +1 -1
- package/package.json +1 -1
- package/src/cjs/Circle.d.ts +70 -3
- package/src/cjs/Circle.js +159 -4
- package/src/cjs/Circle.js.map +1 -1
- package/src/cjs/Triangle.d.ts +40 -4
- package/src/cjs/Triangle.js +127 -31
- package/src/cjs/Triangle.js.map +1 -1
- package/src/cjs/VertTuple.d.ts +4 -1
- package/src/cjs/VertTuple.js +6 -1
- package/src/cjs/VertTuple.js.map +1 -1
- package/src/cjs/Vertex.d.ts +25 -2
- package/src/cjs/Vertex.js +43 -1
- package/src/cjs/Vertex.js.map +1 -1
- package/src/cjs/utils/algorithms/minimalContainingCircleFromPoints.d.ts +21 -0
- package/src/cjs/utils/algorithms/minimalContainingCircleFromPoints.js +73 -0
- package/src/cjs/utils/algorithms/minimalContainingCircleFromPoints.js.map +1 -0
- package/src/cjs/utils/algorithms/minimalEnclosingCircleFromPoints.d.ts +21 -0
- package/src/cjs/utils/algorithms/minimalEnclosingCircleFromPoints.js +73 -0
- package/src/cjs/utils/algorithms/minimalEnclosingCircleFromPoints.js.map +1 -0
- package/src/cjs/utils/algorithms/pointsMinimalContainingCircle.d.ts +21 -0
- package/src/cjs/utils/algorithms/pointsMinimalContainingCircle.js +73 -0
- package/src/cjs/utils/algorithms/pointsMinimalContainingCircle.js.map +1 -0
- package/src/cjs/utils/algorithms/solveApollonius3.d.ts +69 -0
- package/src/cjs/utils/algorithms/solveApollonius3.js +118 -0
- package/src/cjs/utils/algorithms/solveApollonius3.js.map +1 -0
- package/src/esm/Circle.d.ts +70 -3
- package/src/esm/Circle.js +159 -4
- package/src/esm/Circle.js.map +1 -1
- package/src/esm/Triangle.d.ts +40 -4
- package/src/esm/Triangle.js +128 -32
- package/src/esm/Triangle.js.map +1 -1
- package/src/esm/VertTuple.d.ts +4 -1
- package/src/esm/VertTuple.js +6 -1
- package/src/esm/VertTuple.js.map +1 -1
- package/src/esm/Vertex.d.ts +25 -2
- package/src/esm/Vertex.js +44 -2
- package/src/esm/Vertex.js.map +1 -1
- package/src/esm/utils/algorithms/minimalContainingCircleFromPoints.d.ts +21 -0
- package/src/esm/utils/algorithms/minimalContainingCircleFromPoints.js +69 -0
- package/src/esm/utils/algorithms/minimalContainingCircleFromPoints.js.map +1 -0
- package/src/esm/utils/algorithms/minimalEnclosingCircleFromPoints.d.ts +21 -0
- package/src/esm/utils/algorithms/minimalEnclosingCircleFromPoints.js +69 -0
- package/src/esm/utils/algorithms/minimalEnclosingCircleFromPoints.js.map +1 -0
- package/src/esm/utils/algorithms/pointsMinimalContainingCircle.d.ts +21 -0
- package/src/esm/utils/algorithms/pointsMinimalContainingCircle.js +69 -0
- package/src/esm/utils/algorithms/pointsMinimalContainingCircle.js.map +1 -0
- package/src/esm/utils/algorithms/solveApollonius3.d.ts +69 -0
- package/src/esm/utils/algorithms/solveApollonius3.js +114 -0
- package/src/esm/utils/algorithms/solveApollonius3.js.map +1 -0
- package/src/index-gl.js +5 -2
- package/src/index.js +25 -17
- package/src/ts/Circle.ts +178 -5
- package/src/ts/Triangle.ts +148 -41
- package/src/ts/VertTuple.ts +14 -1
- package/src/ts/Vertex.ts +44 -2
- package/src/ts/utils/algorithms/minimalEnclosingCircleFromPoints.ts +69 -0
- package/src/ts/utils/algorithms/solveApollonius3.ts +132 -0
- package/src/_cjs/BezierPath.d.ts +0 -610
- package/src/_cjs/BezierPath.js +0 -1127
- package/src/_cjs/BezierPath.js.map +0 -1
- package/src/_cjs/Bounds.d.ts +0 -252
- package/src/_cjs/Bounds.js +0 -320
- package/src/_cjs/Bounds.js.map +0 -1
- package/src/_cjs/Circle.d.ts +0 -214
- package/src/_cjs/Circle.js +0 -339
- package/src/_cjs/Circle.js.map +0 -1
- package/src/_cjs/CircleSector.d.ts +0 -211
- package/src/_cjs/CircleSector.js +0 -364
- package/src/_cjs/CircleSector.js.map +0 -1
- package/src/_cjs/CubicBezierCurve.d.ts +0 -656
- package/src/_cjs/CubicBezierCurve.js +0 -1062
- package/src/_cjs/CubicBezierCurve.js.map +0 -1
- package/src/_cjs/Grid.d.ts +0 -83
- package/src/_cjs/Grid.js +0 -90
- package/src/_cjs/Grid.js.map +0 -1
- package/src/_cjs/KeyHandler.d.ts +0 -177
- package/src/_cjs/KeyHandler.js +0 -435
- package/src/_cjs/KeyHandler.js.map +0 -1
- package/src/_cjs/Line.d.ts +0 -134
- package/src/_cjs/Line.js +0 -220
- package/src/_cjs/Line.js.map +0 -1
- package/src/_cjs/MouseHandler.d.ts +0 -283
- package/src/_cjs/MouseHandler.js +0 -423
- package/src/_cjs/MouseHandler.js.map +0 -1
- package/src/_cjs/PBImage.d.ts +0 -81
- package/src/_cjs/PBImage.js +0 -61
- package/src/_cjs/PBImage.js.map +0 -1
- package/src/_cjs/PBText.d.ts +0 -118
- package/src/_cjs/PBText.js +0 -63
- package/src/_cjs/PBText.js.map +0 -1
- package/src/_cjs/PlotBoilerplate.d.ts +0 -899
- package/src/_cjs/PlotBoilerplate.js +0 -2348
- package/src/_cjs/PlotBoilerplate.js.map +0 -1
- package/src/_cjs/Polygon.d.ts +0 -520
- package/src/_cjs/Polygon.js +0 -933
- package/src/_cjs/Polygon.js.map +0 -1
- package/src/_cjs/SVGBuilder.d.ts +0 -47
- package/src/_cjs/SVGBuilder.js +0 -100
- package/src/_cjs/SVGBuilder.js.map +0 -1
- package/src/_cjs/Triangle.d.ts +0 -392
- package/src/_cjs/Triangle.js +0 -497
- package/src/_cjs/Triangle.js.map +0 -1
- package/src/_cjs/UIDGenerator.d.ts +0 -12
- package/src/_cjs/UIDGenerator.js +0 -21
- package/src/_cjs/UIDGenerator.js.map +0 -1
- package/src/_cjs/VEllipse.d.ts +0 -319
- package/src/_cjs/VEllipse.js +0 -578
- package/src/_cjs/VEllipse.js.map +0 -1
- package/src/_cjs/VEllipseSector.d.ts +0 -230
- package/src/_cjs/VEllipseSector.js +0 -428
- package/src/_cjs/VEllipseSector.js.map +0 -1
- package/src/_cjs/Vector.d.ts +0 -126
- package/src/_cjs/Vector.js +0 -199
- package/src/_cjs/Vector.js.map +0 -1
- package/src/_cjs/VertTuple.d.ts +0 -284
- package/src/_cjs/VertTuple.js +0 -348
- package/src/_cjs/VertTuple.js.map +0 -1
- package/src/_cjs/Vertex.d.ts +0 -498
- package/src/_cjs/Vertex.js +0 -703
- package/src/_cjs/Vertex.js.map +0 -1
- package/src/_cjs/VertexAttr.d.ts +0 -72
- package/src/_cjs/VertexAttr.js +0 -59
- package/src/_cjs/VertexAttr.js.map +0 -1
- package/src/_cjs/VertexListeners.d.ts +0 -208
- package/src/_cjs/VertexListeners.js +0 -267
- package/src/_cjs/VertexListeners.js.map +0 -1
- package/src/_cjs/draw.d.ts +0 -657
- package/src/_cjs/draw.js +0 -1164
- package/src/_cjs/draw.js.map +0 -1
- package/src/_cjs/drawgl.d.ts +0 -544
- package/src/_cjs/drawgl.js +0 -794
- package/src/_cjs/drawgl.js.map +0 -1
- package/src/_cjs/drawutilssvg.d.ts +0 -954
- package/src/_cjs/drawutilssvg.js +0 -1713
- package/src/_cjs/drawutilssvg.js.map +0 -1
- package/src/_cjs/entry-glsupport.js +0 -28
- package/src/_cjs/entry.js +0 -29
- package/src/_cjs/geomutils.d.ts +0 -77
- package/src/_cjs/geomutils.js +0 -126
- package/src/_cjs/geomutils.js.map +0 -1
- package/src/_cjs/index.d.ts +0 -102
- package/src/_cjs/index.js +0 -128
- package/src/_cjs/index.js.map +0 -1
- package/src/_cjs/interfaces/DrawLib.d.ts +0 -582
- package/src/_cjs/interfaces/DrawLib.js +0 -32
- package/src/_cjs/interfaces/DrawLib.js.map +0 -1
- package/src/_cjs/interfaces/additionals.d.ts +0 -95
- package/src/_cjs/interfaces/additionals.js +0 -3
- package/src/_cjs/interfaces/additionals.js.map +0 -1
- package/src/_cjs/interfaces/core.d.ts +0 -286
- package/src/_cjs/interfaces/core.js +0 -30
- package/src/_cjs/interfaces/core.js.map +0 -1
- package/src/_cjs/interfaces/externals.d.ts +0 -56
- package/src/_cjs/interfaces/externals.js +0 -8
- package/src/_cjs/interfaces/externals.js.map +0 -1
- package/src/_cjs/interfaces/index.d.ts +0 -4
- package/src/_cjs/interfaces/index.js +0 -21
- package/src/_cjs/interfaces/index.js.map +0 -1
- package/src/_cjs/module.d.ts +0 -26
- package/src/_cjs/module.js +0 -60
- package/src/_cjs/module.js.map +0 -1
- package/src/_cjs/utils/InitializationObserver.d.ts +0 -18
- package/src/_cjs/utils/InitializationObserver.js +0 -63
- package/src/_cjs/utils/InitializationObserver.js.map +0 -1
- package/src/_cjs/utils/LissajousFigure.d.ts +0 -34
- package/src/_cjs/utils/LissajousFigure.js +0 -100
- package/src/_cjs/utils/LissajousFigure.js.map +0 -1
- package/src/_cjs/utils/NGons.d.ts +0 -13
- package/src/_cjs/utils/NGons.js +0 -36
- package/src/_cjs/utils/NGons.js.map +0 -1
- package/src/_cjs/utils/Params.d.ts +0 -17
- package/src/_cjs/utils/Params.js +0 -53
- package/src/_cjs/utils/Params.js.map +0 -1
- package/src/_cjs/utils/PerlinNoise.d.ts +0 -19
- package/src/_cjs/utils/PerlinNoise.js +0 -352
- package/src/_cjs/utils/PerlinNoise.js.map +0 -1
- package/src/_cjs/utils/SVGPathUtils.d.ts +0 -22
- package/src/_cjs/utils/SVGPathUtils.js +0 -45
- package/src/_cjs/utils/SVGPathUtils.js.map +0 -1
- package/src/_cjs/utils/WebColors.d.ts +0 -35
- package/src/_cjs/utils/WebColors.js +0 -58
- package/src/_cjs/utils/WebColors.js.map +0 -1
- package/src/_cjs/utils/WebColorsContrast.d.ts +0 -6
- package/src/_cjs/utils/WebColorsContrast.js +0 -12
- package/src/_cjs/utils/WebColorsContrast.js.map +0 -1
- package/src/_cjs/utils/WebColorsMalachite.d.ts +0 -12
- package/src/_cjs/utils/WebColorsMalachite.js +0 -28
- package/src/_cjs/utils/WebColorsMalachite.js.map +0 -1
- package/src/_cjs/utils/_gup.js_ +0 -13
- package/src/_cjs/utils/algorithms/CatmullRomPath.d.ts +0 -60
- package/src/_cjs/utils/algorithms/CatmullRomPath.js +0 -108
- package/src/_cjs/utils/algorithms/CatmullRomPath.js.map +0 -1
- package/src/_cjs/utils/algorithms/CircleIntersections.d.ts +0 -170
- package/src/_cjs/utils/algorithms/CircleIntersections.js +0 -310
- package/src/_cjs/utils/algorithms/CircleIntersections.js.map +0 -1
- package/src/_cjs/utils/algorithms/ContourLineDetection.d.ts +0 -150
- package/src/_cjs/utils/algorithms/ContourLineDetection.js +0 -367
- package/src/_cjs/utils/algorithms/ContourLineDetection.js.map +0 -1
- package/src/_cjs/utils/algorithms/CubicSplinePath.d.ts +0 -63
- package/src/_cjs/utils/algorithms/CubicSplinePath.js +0 -175
- package/src/_cjs/utils/algorithms/CubicSplinePath.js.map +0 -1
- package/src/_cjs/utils/algorithms/HobbyPath.d.ts +0 -81
- package/src/_cjs/utils/algorithms/HobbyPath.js +0 -278
- package/src/_cjs/utils/algorithms/HobbyPath.js.map +0 -1
- package/src/_cjs/utils/algorithms/Metaballs.d.ts +0 -30
- package/src/_cjs/utils/algorithms/Metaballs.js +0 -114
- package/src/_cjs/utils/algorithms/Metaballs.js.map +0 -1
- package/src/_cjs/utils/algorithms/PolygonInset.d.ts +0 -184
- package/src/_cjs/utils/algorithms/PolygonInset.js +0 -431
- package/src/_cjs/utils/algorithms/PolygonInset.js.map +0 -1
- package/src/_cjs/utils/algorithms/PolygonTesselationOutlines.d.ts +0 -145
- package/src/_cjs/utils/algorithms/PolygonTesselationOutlines.js +0 -269
- package/src/_cjs/utils/algorithms/PolygonTesselationOutlines.js.map +0 -1
- package/src/_cjs/utils/algorithms/arrayFill.d.ts +0 -8
- package/src/_cjs/utils/algorithms/arrayFill.js +0 -18
- package/src/_cjs/utils/algorithms/arrayFill.js.map +0 -1
- package/src/_cjs/utils/algorithms/arrayResize.d.ts +0 -8
- package/src/_cjs/utils/algorithms/arrayResize.js +0 -24
- package/src/_cjs/utils/algorithms/arrayResize.js.map +0 -1
- package/src/_cjs/utils/algorithms/arrayShuffle.d.ts +0 -8
- package/src/_cjs/utils/algorithms/arrayShuffle.js +0 -15
- package/src/_cjs/utils/algorithms/arrayShuffle.js.map +0 -1
- package/src/_cjs/utils/algorithms/clearDuplicateVertices.d.ts +0 -22
- package/src/_cjs/utils/algorithms/clearDuplicateVertices.js +0 -51
- package/src/_cjs/utils/algorithms/clearDuplicateVertices.js.map +0 -1
- package/src/_cjs/utils/algorithms/clearPolygonDuplicateVertices.d.ts +0 -24
- package/src/_cjs/utils/algorithms/clearPolygonDuplicateVertices.js +0 -61
- package/src/_cjs/utils/algorithms/clearPolygonDuplicateVertices.js.map +0 -1
- package/src/_cjs/utils/algorithms/convexHull.d.ts +0 -23
- package/src/_cjs/utils/algorithms/convexHull.js +0 -71
- package/src/_cjs/utils/algorithms/convexHull.js.map +0 -1
- package/src/_cjs/utils/algorithms/convexPolygonIncircle.d.ts +0 -41
- package/src/_cjs/utils/algorithms/convexPolygonIncircle.js +0 -145
- package/src/_cjs/utils/algorithms/convexPolygonIncircle.js.map +0 -1
- package/src/_cjs/utils/algorithms/delaunay.d.ts +0 -30
- package/src/_cjs/utils/algorithms/delaunay.js +0 -158
- package/src/_cjs/utils/algorithms/delaunay.js.map +0 -1
- package/src/_cjs/utils/algorithms/delaunay2voronoi.d.ts +0 -25
- package/src/_cjs/utils/algorithms/delaunay2voronoi.js +0 -104
- package/src/_cjs/utils/algorithms/delaunay2voronoi.js.map +0 -1
- package/src/_cjs/utils/algorithms/detectPaths.d.ts +0 -21
- package/src/_cjs/utils/algorithms/detectPaths.js +0 -169
- package/src/_cjs/utils/algorithms/detectPaths.js.map +0 -1
- package/src/_cjs/utils/algorithms/findPolygonSelfIntersections.d.ts +0 -21
- package/src/_cjs/utils/algorithms/findPolygonSelfIntersections.js +0 -51
- package/src/_cjs/utils/algorithms/findPolygonSelfIntersections.js.map +0 -1
- package/src/_cjs/utils/algorithms/getContrastColor.d.ts +0 -13
- package/src/_cjs/utils/algorithms/getContrastColor.js +0 -26
- package/src/_cjs/utils/algorithms/getContrastColor.js.map +0 -1
- package/src/_cjs/utils/algorithms/matrixFill.d.ts +0 -10
- package/src/_cjs/utils/algorithms/matrixFill.js +0 -21
- package/src/_cjs/utils/algorithms/matrixFill.js.map +0 -1
- package/src/_cjs/utils/algorithms/pixelCornersToRoundPaths.d.ts +0 -23
- package/src/_cjs/utils/algorithms/pixelCornersToRoundPaths.js +0 -270
- package/src/_cjs/utils/algorithms/pixelCornersToRoundPaths.js.map +0 -1
- package/src/_cjs/utils/algorithms/splitPolygonToNonIntersecting.d.ts +0 -28
- package/src/_cjs/utils/algorithms/splitPolygonToNonIntersecting.js +0 -102
- package/src/_cjs/utils/algorithms/splitPolygonToNonIntersecting.js.map +0 -1
- package/src/_cjs/utils/algorithms/sutherlandHodgman.d.ts +0 -16
- package/src/_cjs/utils/algorithms/sutherlandHodgman.js +0 -76
- package/src/_cjs/utils/algorithms/sutherlandHodgman.js.map +0 -1
- package/src/_cjs/utils/cloneVertexArray.d.ts +0 -13
- package/src/_cjs/utils/cloneVertexArray.js +0 -23
- package/src/_cjs/utils/cloneVertexArray.js.map +0 -1
- package/src/_cjs/utils/createRandomizedPolygon.d.ts +0 -14
- package/src/_cjs/utils/createRandomizedPolygon.js +0 -32
- package/src/_cjs/utils/createRandomizedPolygon.js.map +0 -1
- package/src/_cjs/utils/creategui.js +0 -434
- package/src/_cjs/utils/dat.gui.arrowbounce.polyfill.js +0 -128
- package/src/_cjs/utils/dat.gui.title.polyfill.js +0 -35
- package/src/_cjs/utils/datastructures/CircularIntervalSet.d.ts +0 -83
- package/src/_cjs/utils/datastructures/CircularIntervalSet.js +0 -163
- package/src/_cjs/utils/datastructures/CircularIntervalSet.js.map +0 -1
- package/src/_cjs/utils/datastructures/Color.d.ts +0 -391
- package/src/_cjs/utils/datastructures/Color.js +0 -1084
- package/src/_cjs/utils/datastructures/Color.js.map +0 -1
- package/src/_cjs/utils/datastructures/ColorGradient.d.ts +0 -81
- package/src/_cjs/utils/datastructures/ColorGradient.js +0 -176
- package/src/_cjs/utils/datastructures/ColorGradient.js.map +0 -1
- package/src/_cjs/utils/datastructures/DataGrid2d.d.ts +0 -53
- package/src/_cjs/utils/datastructures/DataGrid2d.js +0 -20
- package/src/_cjs/utils/datastructures/DataGrid2d.js.map +0 -1
- package/src/_cjs/utils/datastructures/DataGrid2dArrayMatrix.d.ts +0 -88
- package/src/_cjs/utils/datastructures/DataGrid2dArrayMatrix.js +0 -155
- package/src/_cjs/utils/datastructures/DataGrid2dArrayMatrix.js.map +0 -1
- package/src/_cjs/utils/datastructures/DataGrid2dListAdapter.d.ts +0 -59
- package/src/_cjs/utils/datastructures/DataGrid2dListAdapter.js +0 -84
- package/src/_cjs/utils/datastructures/DataGrid2dListAdapter.js.map +0 -1
- package/src/_cjs/utils/datastructures/GenericPath.d.ts +0 -86
- package/src/_cjs/utils/datastructures/GenericPath.js +0 -122
- package/src/_cjs/utils/datastructures/GenericPath.js.map +0 -1
- package/src/_cjs/utils/datastructures/GeometryMesh.d.ts +0 -49
- package/src/_cjs/utils/datastructures/GeometryMesh.js +0 -58
- package/src/_cjs/utils/datastructures/GeometryMesh.js.map +0 -1
- package/src/_cjs/utils/datastructures/Girih.d.ts +0 -181
- package/src/_cjs/utils/datastructures/Girih.js +0 -266
- package/src/_cjs/utils/datastructures/Girih.js.map +0 -1
- package/src/_cjs/utils/datastructures/GirihBowtie.d.ts +0 -37
- package/src/_cjs/utils/datastructures/GirihBowtie.js +0 -152
- package/src/_cjs/utils/datastructures/GirihBowtie.js.map +0 -1
- package/src/_cjs/utils/datastructures/GirihDecagon.d.ts +0 -52
- package/src/_cjs/utils/datastructures/GirihDecagon.js +0 -132
- package/src/_cjs/utils/datastructures/GirihDecagon.js.map +0 -1
- package/src/_cjs/utils/datastructures/GirihHexagon.d.ts +0 -39
- package/src/_cjs/utils/datastructures/GirihHexagon.js +0 -200
- package/src/_cjs/utils/datastructures/GirihHexagon.js.map +0 -1
- package/src/_cjs/utils/datastructures/GirihPenroseRhombus.d.ts +0 -46
- package/src/_cjs/utils/datastructures/GirihPenroseRhombus.js +0 -189
- package/src/_cjs/utils/datastructures/GirihPenroseRhombus.js.map +0 -1
- package/src/_cjs/utils/datastructures/GirihPentagon.d.ts +0 -37
- package/src/_cjs/utils/datastructures/GirihPentagon.js +0 -109
- package/src/_cjs/utils/datastructures/GirihPentagon.js.map +0 -1
- package/src/_cjs/utils/datastructures/GirihRhombus.d.ts +0 -38
- package/src/_cjs/utils/datastructures/GirihRhombus.js +0 -155
- package/src/_cjs/utils/datastructures/GirihRhombus.js.map +0 -1
- package/src/_cjs/utils/datastructures/GirihTile.d.ts +0 -283
- package/src/_cjs/utils/datastructures/GirihTile.js +0 -308
- package/src/_cjs/utils/datastructures/GirihTile.js.map +0 -1
- package/src/_cjs/utils/datastructures/Matrix4x4.d.ts +0 -244
- package/src/_cjs/utils/datastructures/Matrix4x4.js +0 -262
- package/src/_cjs/utils/datastructures/Matrix4x4.js.map +0 -1
- package/src/_cjs/utils/datastructures/VoronoiCell.d.ts +0 -122
- package/src/_cjs/utils/datastructures/VoronoiCell.js +0 -183
- package/src/_cjs/utils/datastructures/VoronoiCell.js.map +0 -1
- package/src/_cjs/utils/datastructures/interfaces.d.ts +0 -13
- package/src/_cjs/utils/datastructures/interfaces.js +0 -10
- package/src/_cjs/utils/datastructures/interfaces.js.map +0 -1
- package/src/_cjs/utils/detectDarkMode.d.ts +0 -10
- package/src/_cjs/utils/detectDarkMode.js +0 -41
- package/src/_cjs/utils/detectDarkMode.js.map +0 -1
- package/src/_cjs/utils/dom/components/ColorGradientPicker.d.ts +0 -246
- package/src/_cjs/utils/dom/components/ColorGradientPicker.js +0 -667
- package/src/_cjs/utils/dom/components/ColorGradientPicker.js.map +0 -1
- package/src/_cjs/utils/dom/components/ColorGradientPickerJSX.d.ts +0 -129
- package/src/_cjs/utils/dom/components/ColorGradientPickerJSX.js +0 -520
- package/src/_cjs/utils/dom/components/ColorGradientPickerJSX.js.map +0 -1
- package/src/_cjs/utils/dom/components/ColorGradientSelector.d.ts +0 -118
- package/src/_cjs/utils/dom/components/ColorGradientSelector.js +0 -327
- package/src/_cjs/utils/dom/components/ColorGradientSelector.js.map +0 -1
- package/src/_cjs/utils/dom/components/Test.d.ts +0 -7
- package/src/_cjs/utils/dom/components/Test.js +0 -30
- package/src/_cjs/utils/dom/components/Test.js.map +0 -1
- package/src/_cjs/utils/dom/getAvailableContainerSpace.d.ts +0 -2
- package/src/_cjs/utils/dom/getAvailableContainerSpace.js +0 -29
- package/src/_cjs/utils/dom/getAvailableContainerSpace.js.map +0 -1
- package/src/_cjs/utils/dom/getFProp.d.ts +0 -5
- package/src/_cjs/utils/dom/getFProp.js +0 -12
- package/src/_cjs/utils/dom/getFProp.js.map +0 -1
- package/src/_cjs/utils/dom/guiSizeToggler.d.ts +0 -18
- package/src/_cjs/utils/dom/guiSizeToggler.js +0 -44
- package/src/_cjs/utils/dom/guiSizeToggler.js.map +0 -1
- package/src/_cjs/utils/findInVertexArray.d.ts +0 -19
- package/src/_cjs/utils/findInVertexArray.js +0 -29
- package/src/_cjs/utils/findInVertexArray.js.map +0 -1
- package/src/_cjs/utils/getFProp.d.ts +0 -5
- package/src/_cjs/utils/getFProp.js +0 -12
- package/src/_cjs/utils/getFProp.js.map +0 -1
- package/src/_cjs/utils/gup.d.ts +0 -14
- package/src/_cjs/utils/gup.js +0 -31
- package/src/_cjs/utils/gup.js.map +0 -1
- package/src/_cjs/utils/helpers/BezierPathInteractionHelper.d.ts +0 -272
- package/src/_cjs/utils/helpers/BezierPathInteractionHelper.js +0 -655
- package/src/_cjs/utils/helpers/BezierPathInteractionHelper.js.map +0 -1
- package/src/_cjs/utils/helpers/CircleHelper.d.ts +0 -73
- package/src/_cjs/utils/helpers/CircleHelper.js +0 -93
- package/src/_cjs/utils/helpers/CircleHelper.js.map +0 -1
- package/src/_cjs/utils/helpers/CircleSectorHelper.d.ts +0 -90
- package/src/_cjs/utils/helpers/CircleSectorHelper.js +0 -114
- package/src/_cjs/utils/helpers/CircleSectorHelper.js.map +0 -1
- package/src/_cjs/utils/helpers/TriangleHelper.d.ts +0 -57
- package/src/_cjs/utils/helpers/TriangleHelper.js +0 -83
- package/src/_cjs/utils/helpers/TriangleHelper.js.map +0 -1
- package/src/_cjs/utils/helpers/VEllipseHelper.d.ts +0 -32
- package/src/_cjs/utils/helpers/VEllipseHelper.js +0 -88
- package/src/_cjs/utils/helpers/VEllipseHelper.js.map +0 -1
- package/src/_cjs/utils/helpers/VEllipseSectorHelper.d.ts +0 -52
- package/src/_cjs/utils/helpers/VEllipseSectorHelper.js +0 -135
- package/src/_cjs/utils/helpers/VEllipseSectorHelper.js.map +0 -1
- package/src/_cjs/utils/io/DndFileHandler.d.ts +0 -63
- package/src/_cjs/utils/io/DndFileHandler.js +0 -112
- package/src/_cjs/utils/io/DndFileHandler.js.map +0 -1
- package/src/_cjs/utils/io/FileDrop.d.ts +0 -110
- package/src/_cjs/utils/io/FileDrop.js +0 -177
- package/src/_cjs/utils/io/FileDrop.js.map +0 -1
- package/src/_cjs/utils/lil.gui.arrowbounce.polyfill.js +0 -133
- package/src/_cjs/utils/lil.gui.title.polyfill.js +0 -32
- package/src/_cjs/utils/module.js +0 -18
- package/src/_cjs/utils/parsers/LinearColorGradientParser.d.ts +0 -78
- package/src/_cjs/utils/parsers/LinearColorGradientParser.js +0 -224
- package/src/_cjs/utils/parsers/LinearColorGradientParser.js.map +0 -1
- package/src/_cjs/utils/parsers/OBJParser.d.ts +0 -24
- package/src/_cjs/utils/parsers/OBJParser.js +0 -77
- package/src/_cjs/utils/parsers/OBJParser.js.map +0 -1
- package/src/_cjs/utils/parsers/STLParser.d.ts +0 -61
- package/src/_cjs/utils/parsers/STLParser.js +0 -182
- package/src/_cjs/utils/parsers/STLParser.js.map +0 -1
- package/src/_cjs/utils/parsers/svg/parseSVGPathData.d.ts +0 -27
- package/src/_cjs/utils/parsers/svg/parseSVGPathData.js +0 -486
- package/src/_cjs/utils/parsers/svg/parseSVGPathData.js.map +0 -1
- package/src/_cjs/utils/parsers/svg/splitSVGPathData.d.ts +0 -20
- package/src/_cjs/utils/parsers/svg/splitSVGPathData.js +0 -53
- package/src/_cjs/utils/parsers/svg/splitSVGPathData.js.map +0 -1
- package/src/_cjs/utils/parsers/svg/types.d.ts +0 -63
- package/src/_cjs/utils/parsers/svg/types.js +0 -17
- package/src/_cjs/utils/parsers/svg/types.js.map +0 -1
- package/src/_cjs/utils/ts-runner.js +0 -146
- package/src/_cjs/utils/tsAsyncScriptLoader.js +0 -74
- package/src/_esm/BezierPath.d.ts +0 -610
- package/src/_esm/BezierPath.js +0 -1124
- package/src/_esm/BezierPath.js.map +0 -1
- package/src/_esm/Bounds.d.ts +0 -252
- package/src/_esm/Bounds.js +0 -317
- package/src/_esm/Bounds.js.map +0 -1
- package/src/_esm/Circle.d.ts +0 -214
- package/src/_esm/Circle.js +0 -335
- package/src/_esm/Circle.js.map +0 -1
- package/src/_esm/CircleSector.d.ts +0 -211
- package/src/_esm/CircleSector.js +0 -359
- package/src/_esm/CircleSector.js.map +0 -1
- package/src/_esm/CubicBezierCurve.d.ts +0 -656
- package/src/_esm/CubicBezierCurve.js +0 -1057
- package/src/_esm/CubicBezierCurve.js.map +0 -1
- package/src/_esm/Grid.d.ts +0 -83
- package/src/_esm/Grid.js +0 -89
- package/src/_esm/Grid.js.map +0 -1
- package/src/_esm/KeyHandler.d.ts +0 -177
- package/src/_esm/KeyHandler.js +0 -434
- package/src/_esm/KeyHandler.js.map +0 -1
- package/src/_esm/Line.d.ts +0 -134
- package/src/_esm/Line.js +0 -200
- package/src/_esm/Line.js.map +0 -1
- package/src/_esm/MouseHandler.d.ts +0 -283
- package/src/_esm/MouseHandler.js +0 -397
- package/src/_esm/MouseHandler.js.map +0 -1
- package/src/_esm/PBImage.d.ts +0 -81
- package/src/_esm/PBImage.js +0 -60
- package/src/_esm/PBImage.js.map +0 -1
- package/src/_esm/PBText.d.ts +0 -118
- package/src/_esm/PBText.js +0 -62
- package/src/_esm/PBText.js.map +0 -1
- package/src/_esm/PlotBoilerplate.d.ts +0 -899
- package/src/_esm/PlotBoilerplate.js +0 -2347
- package/src/_esm/PlotBoilerplate.js.map +0 -1
- package/src/_esm/Polygon.d.ts +0 -520
- package/src/_esm/Polygon.js +0 -924
- package/src/_esm/Polygon.js.map +0 -1
- package/src/_esm/SVGBuilder.d.ts +0 -47
- package/src/_esm/SVGBuilder.js +0 -95
- package/src/_esm/SVGBuilder.js.map +0 -1
- package/src/_esm/Triangle.d.ts +0 -392
- package/src/_esm/Triangle.js +0 -493
- package/src/_esm/Triangle.js.map +0 -1
- package/src/_esm/UIDGenerator.d.ts +0 -12
- package/src/_esm/UIDGenerator.js +0 -18
- package/src/_esm/UIDGenerator.js.map +0 -1
- package/src/_esm/VEllipse.d.ts +0 -319
- package/src/_esm/VEllipse.js +0 -574
- package/src/_esm/VEllipse.js.map +0 -1
- package/src/_esm/VEllipseSector.d.ts +0 -230
- package/src/_esm/VEllipseSector.js +0 -422
- package/src/_esm/VEllipseSector.js.map +0 -1
- package/src/_esm/Vector.d.ts +0 -126
- package/src/_esm/Vector.js +0 -181
- package/src/_esm/Vector.js.map +0 -1
- package/src/_esm/VertTuple.d.ts +0 -284
- package/src/_esm/VertTuple.js +0 -347
- package/src/_esm/VertTuple.js.map +0 -1
- package/src/_esm/Vertex.d.ts +0 -498
- package/src/_esm/Vertex.js +0 -702
- package/src/_esm/Vertex.js.map +0 -1
- package/src/_esm/VertexAttr.d.ts +0 -72
- package/src/_esm/VertexAttr.js +0 -58
- package/src/_esm/VertexAttr.js.map +0 -1
- package/src/_esm/VertexListeners.d.ts +0 -209
- package/src/_esm/VertexListeners.js +0 -270
- package/src/_esm/VertexListeners.js.map +0 -1
- package/src/_esm/draw.d.ts +0 -657
- package/src/_esm/draw.js +0 -1159
- package/src/_esm/draw.js.map +0 -1
- package/src/_esm/drawgl.d.ts +0 -544
- package/src/_esm/drawgl.js +0 -812
- package/src/_esm/drawgl.js.map +0 -1
- package/src/_esm/drawutilssvg.d.ts +0 -954
- package/src/_esm/drawutilssvg.js +0 -1705
- package/src/_esm/drawutilssvg.js.map +0 -1
- package/src/_esm/entry-glsupport.js +0 -28
- package/src/_esm/entry.js +0 -29
- package/src/_esm/geomutils.d.ts +0 -77
- package/src/_esm/geomutils.js +0 -126
- package/src/_esm/geomutils.js.map +0 -1
- package/src/_esm/index.d.ts +0 -102
- package/src/_esm/index.js +0 -128
- package/src/_esm/index.js.map +0 -1
- package/src/_esm/interfaces/DrawLib.d.ts +0 -582
- package/src/_esm/interfaces/DrawLib.js +0 -32
- package/src/_esm/interfaces/DrawLib.js.map +0 -1
- package/src/_esm/interfaces/additionals.d.ts +0 -95
- package/src/_esm/interfaces/additionals.js +0 -3
- package/src/_esm/interfaces/additionals.js.map +0 -1
- package/src/_esm/interfaces/core.d.ts +0 -286
- package/src/_esm/interfaces/core.js +0 -30
- package/src/_esm/interfaces/core.js.map +0 -1
- package/src/_esm/interfaces/externals.d.ts +0 -56
- package/src/_esm/interfaces/externals.js +0 -8
- package/src/_esm/interfaces/externals.js.map +0 -1
- package/src/_esm/interfaces/index.d.ts +0 -4
- package/src/_esm/interfaces/index.js +0 -21
- package/src/_esm/interfaces/index.js.map +0 -1
- package/src/_esm/module.d.ts +0 -26
- package/src/_esm/module.js +0 -60
- package/src/_esm/module.js.map +0 -1
- package/src/_esm/src/ts/BezierPath.d.ts +0 -610
- package/src/_esm/src/ts/BezierPath.js +0 -1120
- package/src/_esm/src/ts/BezierPath.js.map +0 -1
- package/src/_esm/src/ts/Bounds.d.ts +0 -252
- package/src/_esm/src/ts/Bounds.js +0 -313
- package/src/_esm/src/ts/Bounds.js.map +0 -1
- package/src/_esm/src/ts/Circle.d.ts +0 -214
- package/src/_esm/src/ts/Circle.js +0 -331
- package/src/_esm/src/ts/Circle.js.map +0 -1
- package/src/_esm/src/ts/CircleSector.d.ts +0 -211
- package/src/_esm/src/ts/CircleSector.js +0 -355
- package/src/_esm/src/ts/CircleSector.js.map +0 -1
- package/src/_esm/src/ts/CubicBezierCurve.d.ts +0 -656
- package/src/_esm/src/ts/CubicBezierCurve.js +0 -1053
- package/src/_esm/src/ts/CubicBezierCurve.js.map +0 -1
- package/src/_esm/src/ts/Grid.d.ts +0 -83
- package/src/_esm/src/ts/Grid.js +0 -85
- package/src/_esm/src/ts/Grid.js.map +0 -1
- package/src/_esm/src/ts/KeyHandler.d.ts +0 -177
- package/src/_esm/src/ts/KeyHandler.js +0 -430
- package/src/_esm/src/ts/KeyHandler.js.map +0 -1
- package/src/_esm/src/ts/Line.d.ts +0 -134
- package/src/_esm/src/ts/Line.js +0 -196
- package/src/_esm/src/ts/Line.js.map +0 -1
- package/src/_esm/src/ts/MouseHandler.d.ts +0 -283
- package/src/_esm/src/ts/MouseHandler.js +0 -391
- package/src/_esm/src/ts/MouseHandler.js.map +0 -1
- package/src/_esm/src/ts/PBImage.d.ts +0 -81
- package/src/_esm/src/ts/PBImage.js +0 -56
- package/src/_esm/src/ts/PBImage.js.map +0 -1
- package/src/_esm/src/ts/PBText.d.ts +0 -118
- package/src/_esm/src/ts/PBText.js +0 -58
- package/src/_esm/src/ts/PBText.js.map +0 -1
- package/src/_esm/src/ts/PlotBoilerplate.d.ts +0 -899
- package/src/_esm/src/ts/PlotBoilerplate.js +0 -2340
- package/src/_esm/src/ts/PlotBoilerplate.js.map +0 -1
- package/src/_esm/src/ts/Polygon.d.ts +0 -520
- package/src/_esm/src/ts/Polygon.js +0 -920
- package/src/_esm/src/ts/Polygon.js.map +0 -1
- package/src/_esm/src/ts/Triangle.d.ts +0 -392
- package/src/_esm/src/ts/Triangle.js +0 -489
- package/src/_esm/src/ts/Triangle.js.map +0 -1
- package/src/_esm/src/ts/UIDGenerator.d.ts +0 -12
- package/src/_esm/src/ts/UIDGenerator.js +0 -14
- package/src/_esm/src/ts/UIDGenerator.js.map +0 -1
- package/src/_esm/src/ts/VEllipse.d.ts +0 -319
- package/src/_esm/src/ts/VEllipse.js +0 -570
- package/src/_esm/src/ts/VEllipse.js.map +0 -1
- package/src/_esm/src/ts/VEllipseSector.d.ts +0 -230
- package/src/_esm/src/ts/VEllipseSector.js +0 -418
- package/src/_esm/src/ts/VEllipseSector.js.map +0 -1
- package/src/_esm/src/ts/Vector.d.ts +0 -126
- package/src/_esm/src/ts/Vector.js +0 -177
- package/src/_esm/src/ts/Vector.js.map +0 -1
- package/src/_esm/src/ts/VertTuple.d.ts +0 -284
- package/src/_esm/src/ts/VertTuple.js +0 -343
- package/src/_esm/src/ts/VertTuple.js.map +0 -1
- package/src/_esm/src/ts/Vertex.d.ts +0 -498
- package/src/_esm/src/ts/Vertex.js +0 -698
- package/src/_esm/src/ts/Vertex.js.map +0 -1
- package/src/_esm/src/ts/VertexAttr.d.ts +0 -72
- package/src/_esm/src/ts/VertexAttr.js +0 -54
- package/src/_esm/src/ts/VertexAttr.js.map +0 -1
- package/src/_esm/src/ts/VertexListeners.d.ts +0 -209
- package/src/_esm/src/ts/VertexListeners.js +0 -266
- package/src/_esm/src/ts/VertexListeners.js.map +0 -1
- package/src/_esm/src/ts/draw.d.ts +0 -657
- package/src/_esm/src/ts/draw.js +0 -1155
- package/src/_esm/src/ts/draw.js.map +0 -1
- package/src/_esm/src/ts/drawgl.d.ts +0 -544
- package/src/_esm/src/ts/drawgl.js +0 -808
- package/src/_esm/src/ts/drawgl.js.map +0 -1
- package/src/_esm/src/ts/drawutilssvg.d.ts +0 -954
- package/src/_esm/src/ts/drawutilssvg.js +0 -1701
- package/src/_esm/src/ts/drawutilssvg.js.map +0 -1
- package/src/_esm/src/ts/geomutils.d.ts +0 -77
- package/src/_esm/src/ts/geomutils.js +0 -123
- package/src/_esm/src/ts/geomutils.js.map +0 -1
- package/src/_esm/src/ts/index.d.ts +0 -102
- package/src/_esm/src/ts/index.js +0 -112
- package/src/_esm/src/ts/index.js.map +0 -1
- package/src/_esm/src/ts/interfaces/DrawLib.d.ts +0 -582
- package/src/_esm/src/ts/interfaces/DrawLib.js +0 -31
- package/src/_esm/src/ts/interfaces/DrawLib.js.map +0 -1
- package/src/_esm/src/ts/interfaces/additionals.d.ts +0 -95
- package/src/_esm/src/ts/interfaces/additionals.js +0 -2
- package/src/_esm/src/ts/interfaces/additionals.js.map +0 -1
- package/src/_esm/src/ts/interfaces/core.d.ts +0 -286
- package/src/_esm/src/ts/interfaces/core.js +0 -29
- package/src/_esm/src/ts/interfaces/core.js.map +0 -1
- package/src/_esm/src/ts/interfaces/externals.d.ts +0 -56
- package/src/_esm/src/ts/interfaces/externals.js +0 -7
- package/src/_esm/src/ts/interfaces/externals.js.map +0 -1
- package/src/_esm/src/ts/interfaces/index.d.ts +0 -4
- package/src/_esm/src/ts/interfaces/index.js +0 -5
- package/src/_esm/src/ts/interfaces/index.js.map +0 -1
- package/src/_esm/src/ts/module.d.ts +0 -26
- package/src/_esm/src/ts/module.js +0 -38
- package/src/_esm/src/ts/module.js.map +0 -1
- package/src/_esm/src/ts/utils/InitializationObserver.d.ts +0 -18
- package/src/_esm/src/ts/utils/InitializationObserver.js +0 -57
- package/src/_esm/src/ts/utils/InitializationObserver.js.map +0 -1
- package/src/_esm/src/ts/utils/LissajousFigure.d.ts +0 -34
- package/src/_esm/src/ts/utils/LissajousFigure.js +0 -95
- package/src/_esm/src/ts/utils/LissajousFigure.js.map +0 -1
- package/src/_esm/src/ts/utils/NGons.d.ts +0 -13
- package/src/_esm/src/ts/utils/NGons.js +0 -33
- package/src/_esm/src/ts/utils/NGons.js.map +0 -1
- package/src/_esm/src/ts/utils/Params.d.ts +0 -17
- package/src/_esm/src/ts/utils/Params.js +0 -48
- package/src/_esm/src/ts/utils/Params.js.map +0 -1
- package/src/_esm/src/ts/utils/PerlinNoise.d.ts +0 -19
- package/src/_esm/src/ts/utils/PerlinNoise.js +0 -346
- package/src/_esm/src/ts/utils/PerlinNoise.js.map +0 -1
- package/src/_esm/src/ts/utils/SVGPathUtils.d.ts +0 -22
- package/src/_esm/src/ts/utils/SVGPathUtils.js +0 -42
- package/src/_esm/src/ts/utils/SVGPathUtils.js.map +0 -1
- package/src/_esm/src/ts/utils/WebColors.d.ts +0 -35
- package/src/_esm/src/ts/utils/WebColors.js +0 -54
- package/src/_esm/src/ts/utils/WebColors.js.map +0 -1
- package/src/_esm/src/ts/utils/WebColorsContrast.d.ts +0 -6
- package/src/_esm/src/ts/utils/WebColorsContrast.js +0 -9
- package/src/_esm/src/ts/utils/WebColorsContrast.js.map +0 -1
- package/src/_esm/src/ts/utils/WebColorsMalachite.d.ts +0 -12
- package/src/_esm/src/ts/utils/WebColorsMalachite.js +0 -25
- package/src/_esm/src/ts/utils/WebColorsMalachite.js.map +0 -1
- package/src/_esm/src/ts/utils/algorithms/CatmullRomPath.d.ts +0 -60
- package/src/_esm/src/ts/utils/algorithms/CatmullRomPath.js +0 -103
- package/src/_esm/src/ts/utils/algorithms/CatmullRomPath.js.map +0 -1
- package/src/_esm/src/ts/utils/algorithms/CircleIntersections.d.ts +0 -170
- package/src/_esm/src/ts/utils/algorithms/CircleIntersections.js +0 -303
- package/src/_esm/src/ts/utils/algorithms/CircleIntersections.js.map +0 -1
- package/src/_esm/src/ts/utils/algorithms/ContourLineDetection.d.ts +0 -150
- package/src/_esm/src/ts/utils/algorithms/ContourLineDetection.js +0 -362
- package/src/_esm/src/ts/utils/algorithms/ContourLineDetection.js.map +0 -1
- package/src/_esm/src/ts/utils/algorithms/CubicSplinePath.d.ts +0 -63
- package/src/_esm/src/ts/utils/algorithms/CubicSplinePath.js +0 -170
- package/src/_esm/src/ts/utils/algorithms/CubicSplinePath.js.map +0 -1
- package/src/_esm/src/ts/utils/algorithms/HobbyPath.d.ts +0 -81
- package/src/_esm/src/ts/utils/algorithms/HobbyPath.js +0 -273
- package/src/_esm/src/ts/utils/algorithms/HobbyPath.js.map +0 -1
- package/src/_esm/src/ts/utils/algorithms/Metaballs.d.ts +0 -30
- package/src/_esm/src/ts/utils/algorithms/Metaballs.js +0 -109
- package/src/_esm/src/ts/utils/algorithms/Metaballs.js.map +0 -1
- package/src/_esm/src/ts/utils/algorithms/PolygonInset.d.ts +0 -184
- package/src/_esm/src/ts/utils/algorithms/PolygonInset.js +0 -424
- package/src/_esm/src/ts/utils/algorithms/PolygonInset.js.map +0 -1
- package/src/_esm/src/ts/utils/algorithms/PolygonTesselationOutlines.d.ts +0 -145
- package/src/_esm/src/ts/utils/algorithms/PolygonTesselationOutlines.js +0 -262
- package/src/_esm/src/ts/utils/algorithms/PolygonTesselationOutlines.js.map +0 -1
- package/src/_esm/src/ts/utils/algorithms/arrayFill.d.ts +0 -8
- package/src/_esm/src/ts/utils/algorithms/arrayFill.js +0 -14
- package/src/_esm/src/ts/utils/algorithms/arrayFill.js.map +0 -1
- package/src/_esm/src/ts/utils/algorithms/arrayResize.d.ts +0 -8
- package/src/_esm/src/ts/utils/algorithms/arrayResize.js +0 -20
- package/src/_esm/src/ts/utils/algorithms/arrayResize.js.map +0 -1
- package/src/_esm/src/ts/utils/algorithms/arrayShuffle.d.ts +0 -8
- package/src/_esm/src/ts/utils/algorithms/arrayShuffle.js +0 -11
- package/src/_esm/src/ts/utils/algorithms/arrayShuffle.js.map +0 -1
- package/src/_esm/src/ts/utils/algorithms/clearDuplicateVertices.d.ts +0 -22
- package/src/_esm/src/ts/utils/algorithms/clearDuplicateVertices.js +0 -47
- package/src/_esm/src/ts/utils/algorithms/clearDuplicateVertices.js.map +0 -1
- package/src/_esm/src/ts/utils/algorithms/clearPolygonDuplicateVertices.d.ts +0 -24
- package/src/_esm/src/ts/utils/algorithms/clearPolygonDuplicateVertices.js +0 -57
- package/src/_esm/src/ts/utils/algorithms/clearPolygonDuplicateVertices.js.map +0 -1
- package/src/_esm/src/ts/utils/algorithms/convexHull.d.ts +0 -23
- package/src/_esm/src/ts/utils/algorithms/convexHull.js +0 -67
- package/src/_esm/src/ts/utils/algorithms/convexHull.js.map +0 -1
- package/src/_esm/src/ts/utils/algorithms/convexPolygonIncircle.d.ts +0 -41
- package/src/_esm/src/ts/utils/algorithms/convexPolygonIncircle.js +0 -141
- package/src/_esm/src/ts/utils/algorithms/convexPolygonIncircle.js.map +0 -1
- package/src/_esm/src/ts/utils/algorithms/delaunay.d.ts +0 -30
- package/src/_esm/src/ts/utils/algorithms/delaunay.js +0 -153
- package/src/_esm/src/ts/utils/algorithms/delaunay.js.map +0 -1
- package/src/_esm/src/ts/utils/algorithms/delaunay2voronoi.d.ts +0 -25
- package/src/_esm/src/ts/utils/algorithms/delaunay2voronoi.js +0 -99
- package/src/_esm/src/ts/utils/algorithms/delaunay2voronoi.js.map +0 -1
- package/src/_esm/src/ts/utils/algorithms/detectPaths.d.ts +0 -21
- package/src/_esm/src/ts/utils/algorithms/detectPaths.js +0 -165
- package/src/_esm/src/ts/utils/algorithms/detectPaths.js.map +0 -1
- package/src/_esm/src/ts/utils/algorithms/findPolygonSelfIntersections.d.ts +0 -21
- package/src/_esm/src/ts/utils/algorithms/findPolygonSelfIntersections.js +0 -47
- package/src/_esm/src/ts/utils/algorithms/findPolygonSelfIntersections.js.map +0 -1
- package/src/_esm/src/ts/utils/algorithms/getContrastColor.d.ts +0 -13
- package/src/_esm/src/ts/utils/algorithms/getContrastColor.js +0 -22
- package/src/_esm/src/ts/utils/algorithms/getContrastColor.js.map +0 -1
- package/src/_esm/src/ts/utils/algorithms/matrixFill.d.ts +0 -10
- package/src/_esm/src/ts/utils/algorithms/matrixFill.js +0 -17
- package/src/_esm/src/ts/utils/algorithms/matrixFill.js.map +0 -1
- package/src/_esm/src/ts/utils/algorithms/pixelCornersToRoundPaths.d.ts +0 -23
- package/src/_esm/src/ts/utils/algorithms/pixelCornersToRoundPaths.js +0 -266
- package/src/_esm/src/ts/utils/algorithms/pixelCornersToRoundPaths.js.map +0 -1
- package/src/_esm/src/ts/utils/algorithms/splitPolygonToNonIntersecting.d.ts +0 -28
- package/src/_esm/src/ts/utils/algorithms/splitPolygonToNonIntersecting.js +0 -99
- package/src/_esm/src/ts/utils/algorithms/splitPolygonToNonIntersecting.js.map +0 -1
- package/src/_esm/src/ts/utils/algorithms/sutherlandHodgman.d.ts +0 -16
- package/src/_esm/src/ts/utils/algorithms/sutherlandHodgman.js +0 -72
- package/src/_esm/src/ts/utils/algorithms/sutherlandHodgman.js.map +0 -1
- package/src/_esm/src/ts/utils/cloneVertexArray.d.ts +0 -13
- package/src/_esm/src/ts/utils/cloneVertexArray.js +0 -19
- package/src/_esm/src/ts/utils/cloneVertexArray.js.map +0 -1
- package/src/_esm/src/ts/utils/createRandomizedPolygon.d.ts +0 -14
- package/src/_esm/src/ts/utils/createRandomizedPolygon.js +0 -28
- package/src/_esm/src/ts/utils/createRandomizedPolygon.js.map +0 -1
- package/src/_esm/src/ts/utils/datastructures/CircularIntervalSet.d.ts +0 -83
- package/src/_esm/src/ts/utils/datastructures/CircularIntervalSet.js +0 -158
- package/src/_esm/src/ts/utils/datastructures/CircularIntervalSet.js.map +0 -1
- package/src/_esm/src/ts/utils/datastructures/Color.d.ts +0 -391
- package/src/_esm/src/ts/utils/datastructures/Color.js +0 -1063
- package/src/_esm/src/ts/utils/datastructures/Color.js.map +0 -1
- package/src/_esm/src/ts/utils/datastructures/ColorGradient.d.ts +0 -81
- package/src/_esm/src/ts/utils/datastructures/ColorGradient.js +0 -171
- package/src/_esm/src/ts/utils/datastructures/ColorGradient.js.map +0 -1
- package/src/_esm/src/ts/utils/datastructures/DataGrid2d.d.ts +0 -53
- package/src/_esm/src/ts/utils/datastructures/DataGrid2d.js +0 -19
- package/src/_esm/src/ts/utils/datastructures/DataGrid2d.js.map +0 -1
- package/src/_esm/src/ts/utils/datastructures/DataGrid2dArrayMatrix.d.ts +0 -88
- package/src/_esm/src/ts/utils/datastructures/DataGrid2dArrayMatrix.js +0 -150
- package/src/_esm/src/ts/utils/datastructures/DataGrid2dArrayMatrix.js.map +0 -1
- package/src/_esm/src/ts/utils/datastructures/DataGrid2dListAdapter.d.ts +0 -59
- package/src/_esm/src/ts/utils/datastructures/DataGrid2dListAdapter.js +0 -79
- package/src/_esm/src/ts/utils/datastructures/DataGrid2dListAdapter.js.map +0 -1
- package/src/_esm/src/ts/utils/datastructures/GenericPath.d.ts +0 -86
- package/src/_esm/src/ts/utils/datastructures/GenericPath.js +0 -117
- package/src/_esm/src/ts/utils/datastructures/GenericPath.js.map +0 -1
- package/src/_esm/src/ts/utils/datastructures/GeometryMesh.d.ts +0 -49
- package/src/_esm/src/ts/utils/datastructures/GeometryMesh.js +0 -53
- package/src/_esm/src/ts/utils/datastructures/GeometryMesh.js.map +0 -1
- package/src/_esm/src/ts/utils/datastructures/Girih.d.ts +0 -181
- package/src/_esm/src/ts/utils/datastructures/Girih.js +0 -261
- package/src/_esm/src/ts/utils/datastructures/Girih.js.map +0 -1
- package/src/_esm/src/ts/utils/datastructures/GirihBowtie.d.ts +0 -37
- package/src/_esm/src/ts/utils/datastructures/GirihBowtie.js +0 -130
- package/src/_esm/src/ts/utils/datastructures/GirihBowtie.js.map +0 -1
- package/src/_esm/src/ts/utils/datastructures/GirihDecagon.d.ts +0 -52
- package/src/_esm/src/ts/utils/datastructures/GirihDecagon.js +0 -110
- package/src/_esm/src/ts/utils/datastructures/GirihDecagon.js.map +0 -1
- package/src/_esm/src/ts/utils/datastructures/GirihHexagon.d.ts +0 -39
- package/src/_esm/src/ts/utils/datastructures/GirihHexagon.js +0 -178
- package/src/_esm/src/ts/utils/datastructures/GirihHexagon.js.map +0 -1
- package/src/_esm/src/ts/utils/datastructures/GirihPenroseRhombus.d.ts +0 -46
- package/src/_esm/src/ts/utils/datastructures/GirihPenroseRhombus.js +0 -167
- package/src/_esm/src/ts/utils/datastructures/GirihPenroseRhombus.js.map +0 -1
- package/src/_esm/src/ts/utils/datastructures/GirihPentagon.d.ts +0 -37
- package/src/_esm/src/ts/utils/datastructures/GirihPentagon.js +0 -87
- package/src/_esm/src/ts/utils/datastructures/GirihPentagon.js.map +0 -1
- package/src/_esm/src/ts/utils/datastructures/GirihRhombus.d.ts +0 -38
- package/src/_esm/src/ts/utils/datastructures/GirihRhombus.js +0 -133
- package/src/_esm/src/ts/utils/datastructures/GirihRhombus.js.map +0 -1
- package/src/_esm/src/ts/utils/datastructures/GirihTile.d.ts +0 -283
- package/src/_esm/src/ts/utils/datastructures/GirihTile.js +0 -286
- package/src/_esm/src/ts/utils/datastructures/GirihTile.js.map +0 -1
- package/src/_esm/src/ts/utils/datastructures/Matrix4x4.d.ts +0 -244
- package/src/_esm/src/ts/utils/datastructures/Matrix4x4.js +0 -246
- package/src/_esm/src/ts/utils/datastructures/Matrix4x4.js.map +0 -1
- package/src/_esm/src/ts/utils/datastructures/VoronoiCell.d.ts +0 -122
- package/src/_esm/src/ts/utils/datastructures/VoronoiCell.js +0 -178
- package/src/_esm/src/ts/utils/datastructures/VoronoiCell.js.map +0 -1
- package/src/_esm/src/ts/utils/datastructures/interfaces.d.ts +0 -13
- package/src/_esm/src/ts/utils/datastructures/interfaces.js +0 -9
- package/src/_esm/src/ts/utils/datastructures/interfaces.js.map +0 -1
- package/src/_esm/src/ts/utils/detectDarkMode.d.ts +0 -10
- package/src/_esm/src/ts/utils/detectDarkMode.js +0 -37
- package/src/_esm/src/ts/utils/detectDarkMode.js.map +0 -1
- package/src/_esm/src/ts/utils/dom/components/ColorGradientPicker.d.ts +0 -246
- package/src/_esm/src/ts/utils/dom/components/ColorGradientPicker.js +0 -743
- package/src/_esm/src/ts/utils/dom/components/ColorGradientPicker.js.map +0 -1
- package/src/_esm/src/ts/utils/dom/components/ColorGradientSelector.d.ts +0 -118
- package/src/_esm/src/ts/utils/dom/components/ColorGradientSelector.js +0 -339
- package/src/_esm/src/ts/utils/dom/components/ColorGradientSelector.js.map +0 -1
- package/src/_esm/src/ts/utils/dom/components/Test.d.ts +0 -7
- package/src/_esm/src/ts/utils/dom/components/Test.js +0 -26
- package/src/_esm/src/ts/utils/dom/components/Test.js.map +0 -1
- package/src/_esm/src/ts/utils/dom/getAvailableContainerSpace.d.ts +0 -2
- package/src/_esm/src/ts/utils/dom/getAvailableContainerSpace.js +0 -25
- package/src/_esm/src/ts/utils/dom/getAvailableContainerSpace.js.map +0 -1
- package/src/_esm/src/ts/utils/dom/getFProp.d.ts +0 -5
- package/src/_esm/src/ts/utils/dom/getFProp.js +0 -8
- package/src/_esm/src/ts/utils/dom/getFProp.js.map +0 -1
- package/src/_esm/src/ts/utils/dom/guiSizeToggler.d.ts +0 -18
- package/src/_esm/src/ts/utils/dom/guiSizeToggler.js +0 -40
- package/src/_esm/src/ts/utils/dom/guiSizeToggler.js.map +0 -1
- package/src/_esm/src/ts/utils/findInVertexArray.d.ts +0 -19
- package/src/_esm/src/ts/utils/findInVertexArray.js +0 -25
- package/src/_esm/src/ts/utils/findInVertexArray.js.map +0 -1
- package/src/_esm/src/ts/utils/gup.d.ts +0 -14
- package/src/_esm/src/ts/utils/gup.js +0 -27
- package/src/_esm/src/ts/utils/gup.js.map +0 -1
- package/src/_esm/src/ts/utils/helpers/BezierPathInteractionHelper.d.ts +0 -272
- package/src/_esm/src/ts/utils/helpers/BezierPathInteractionHelper.js +0 -648
- package/src/_esm/src/ts/utils/helpers/BezierPathInteractionHelper.js.map +0 -1
- package/src/_esm/src/ts/utils/helpers/CircleHelper.d.ts +0 -73
- package/src/_esm/src/ts/utils/helpers/CircleHelper.js +0 -88
- package/src/_esm/src/ts/utils/helpers/CircleHelper.js.map +0 -1
- package/src/_esm/src/ts/utils/helpers/CircleSectorHelper.d.ts +0 -90
- package/src/_esm/src/ts/utils/helpers/CircleSectorHelper.js +0 -109
- package/src/_esm/src/ts/utils/helpers/CircleSectorHelper.js.map +0 -1
- package/src/_esm/src/ts/utils/helpers/TriangleHelper.d.ts +0 -57
- package/src/_esm/src/ts/utils/helpers/TriangleHelper.js +0 -78
- package/src/_esm/src/ts/utils/helpers/TriangleHelper.js.map +0 -1
- package/src/_esm/src/ts/utils/helpers/VEllipseHelper.d.ts +0 -32
- package/src/_esm/src/ts/utils/helpers/VEllipseHelper.js +0 -83
- package/src/_esm/src/ts/utils/helpers/VEllipseHelper.js.map +0 -1
- package/src/_esm/src/ts/utils/helpers/VEllipseSectorHelper.d.ts +0 -52
- package/src/_esm/src/ts/utils/helpers/VEllipseSectorHelper.js +0 -130
- package/src/_esm/src/ts/utils/helpers/VEllipseSectorHelper.js.map +0 -1
- package/src/_esm/src/ts/utils/io/FileDrop.d.ts +0 -110
- package/src/_esm/src/ts/utils/io/FileDrop.js +0 -171
- package/src/_esm/src/ts/utils/io/FileDrop.js.map +0 -1
- package/src/_esm/src/ts/utils/parsers/LinearColorGradientParser.d.ts +0 -78
- package/src/_esm/src/ts/utils/parsers/LinearColorGradientParser.js +0 -217
- package/src/_esm/src/ts/utils/parsers/LinearColorGradientParser.js.map +0 -1
- package/src/_esm/src/ts/utils/parsers/OBJParser.d.ts +0 -24
- package/src/_esm/src/ts/utils/parsers/OBJParser.js +0 -72
- package/src/_esm/src/ts/utils/parsers/OBJParser.js.map +0 -1
- package/src/_esm/src/ts/utils/parsers/STLParser.d.ts +0 -61
- package/src/_esm/src/ts/utils/parsers/STLParser.js +0 -175
- package/src/_esm/src/ts/utils/parsers/STLParser.js.map +0 -1
- package/src/_esm/src/ts/utils/parsers/svg/parseSVGPathData.d.ts +0 -27
- package/src/_esm/src/ts/utils/parsers/svg/parseSVGPathData.js +0 -482
- package/src/_esm/src/ts/utils/parsers/svg/parseSVGPathData.js.map +0 -1
- package/src/_esm/src/ts/utils/parsers/svg/splitSVGPathData.d.ts +0 -20
- package/src/_esm/src/ts/utils/parsers/svg/splitSVGPathData.js +0 -49
- package/src/_esm/src/ts/utils/parsers/svg/splitSVGPathData.js.map +0 -1
- package/src/_esm/src/ts/utils/parsers/svg/types.d.ts +0 -63
- package/src/_esm/src/ts/utils/parsers/svg/types.js +0 -16
- package/src/_esm/src/ts/utils/parsers/svg/types.js.map +0 -1
- package/src/_esm/utils/InitializationObserver.d.ts +0 -18
- package/src/_esm/utils/InitializationObserver.js +0 -61
- package/src/_esm/utils/InitializationObserver.js.map +0 -1
- package/src/_esm/utils/LissajousFigure.d.ts +0 -34
- package/src/_esm/utils/LissajousFigure.js +0 -99
- package/src/_esm/utils/LissajousFigure.js.map +0 -1
- package/src/_esm/utils/NGons.d.ts +0 -13
- package/src/_esm/utils/NGons.js +0 -36
- package/src/_esm/utils/NGons.js.map +0 -1
- package/src/_esm/utils/Params.d.ts +0 -17
- package/src/_esm/utils/Params.js +0 -52
- package/src/_esm/utils/Params.js.map +0 -1
- package/src/_esm/utils/PerlinNoise.d.ts +0 -19
- package/src/_esm/utils/PerlinNoise.js +0 -350
- package/src/_esm/utils/PerlinNoise.js.map +0 -1
- package/src/_esm/utils/SVGPathUtils.d.ts +0 -22
- package/src/_esm/utils/SVGPathUtils.js +0 -45
- package/src/_esm/utils/SVGPathUtils.js.map +0 -1
- package/src/_esm/utils/WebColors.d.ts +0 -35
- package/src/_esm/utils/WebColors.js +0 -58
- package/src/_esm/utils/WebColors.js.map +0 -1
- package/src/_esm/utils/WebColorsContrast.d.ts +0 -6
- package/src/_esm/utils/WebColorsContrast.js +0 -12
- package/src/_esm/utils/WebColorsContrast.js.map +0 -1
- package/src/_esm/utils/WebColorsMalachite.d.ts +0 -12
- package/src/_esm/utils/WebColorsMalachite.js +0 -28
- package/src/_esm/utils/WebColorsMalachite.js.map +0 -1
- package/src/_esm/utils/algorithms/CatmullRomPath.d.ts +0 -60
- package/src/_esm/utils/algorithms/CatmullRomPath.js +0 -107
- package/src/_esm/utils/algorithms/CatmullRomPath.js.map +0 -1
- package/src/_esm/utils/algorithms/CircleIntersections.d.ts +0 -170
- package/src/_esm/utils/algorithms/CircleIntersections.js +0 -307
- package/src/_esm/utils/algorithms/CircleIntersections.js.map +0 -1
- package/src/_esm/utils/algorithms/ContourLineDetection.d.ts +0 -150
- package/src/_esm/utils/algorithms/ContourLineDetection.js +0 -366
- package/src/_esm/utils/algorithms/ContourLineDetection.js.map +0 -1
- package/src/_esm/utils/algorithms/CubicSplinePath.d.ts +0 -63
- package/src/_esm/utils/algorithms/CubicSplinePath.js +0 -174
- package/src/_esm/utils/algorithms/CubicSplinePath.js.map +0 -1
- package/src/_esm/utils/algorithms/HobbyPath.d.ts +0 -81
- package/src/_esm/utils/algorithms/HobbyPath.js +0 -277
- package/src/_esm/utils/algorithms/HobbyPath.js.map +0 -1
- package/src/_esm/utils/algorithms/Metaballs.d.ts +0 -30
- package/src/_esm/utils/algorithms/Metaballs.js +0 -113
- package/src/_esm/utils/algorithms/Metaballs.js.map +0 -1
- package/src/_esm/utils/algorithms/PolygonInset.d.ts +0 -184
- package/src/_esm/utils/algorithms/PolygonInset.js +0 -428
- package/src/_esm/utils/algorithms/PolygonInset.js.map +0 -1
- package/src/_esm/utils/algorithms/PolygonTesselationOutlines.d.ts +0 -145
- package/src/_esm/utils/algorithms/PolygonTesselationOutlines.js +0 -267
- package/src/_esm/utils/algorithms/PolygonTesselationOutlines.js.map +0 -1
- package/src/_esm/utils/algorithms/arrayFill.d.ts +0 -8
- package/src/_esm/utils/algorithms/arrayFill.js +0 -18
- package/src/_esm/utils/algorithms/arrayFill.js.map +0 -1
- package/src/_esm/utils/algorithms/arrayResize.d.ts +0 -8
- package/src/_esm/utils/algorithms/arrayResize.js +0 -24
- package/src/_esm/utils/algorithms/arrayResize.js.map +0 -1
- package/src/_esm/utils/algorithms/arrayShuffle.d.ts +0 -8
- package/src/_esm/utils/algorithms/arrayShuffle.js +0 -15
- package/src/_esm/utils/algorithms/arrayShuffle.js.map +0 -1
- package/src/_esm/utils/algorithms/clearDuplicateVertices.d.ts +0 -22
- package/src/_esm/utils/algorithms/clearDuplicateVertices.js +0 -51
- package/src/_esm/utils/algorithms/clearDuplicateVertices.js.map +0 -1
- package/src/_esm/utils/algorithms/clearPolygonDuplicateVertices.d.ts +0 -24
- package/src/_esm/utils/algorithms/clearPolygonDuplicateVertices.js +0 -61
- package/src/_esm/utils/algorithms/clearPolygonDuplicateVertices.js.map +0 -1
- package/src/_esm/utils/algorithms/convexHull.d.ts +0 -23
- package/src/_esm/utils/algorithms/convexHull.js +0 -71
- package/src/_esm/utils/algorithms/convexHull.js.map +0 -1
- package/src/_esm/utils/algorithms/convexPolygonIncircle.d.ts +0 -41
- package/src/_esm/utils/algorithms/convexPolygonIncircle.js +0 -145
- package/src/_esm/utils/algorithms/convexPolygonIncircle.js.map +0 -1
- package/src/_esm/utils/algorithms/createRandomizedPolygon.d.ts +0 -14
- package/src/_esm/utils/algorithms/createRandomizedPolygon.js +0 -28
- package/src/_esm/utils/algorithms/createRandomizedPolygon.js.map +0 -1
- package/src/_esm/utils/algorithms/delaunay.d.ts +0 -30
- package/src/_esm/utils/algorithms/delaunay.js +0 -157
- package/src/_esm/utils/algorithms/delaunay.js.map +0 -1
- package/src/_esm/utils/algorithms/delaunay2voronoi.d.ts +0 -25
- package/src/_esm/utils/algorithms/delaunay2voronoi.js +0 -103
- package/src/_esm/utils/algorithms/delaunay2voronoi.js.map +0 -1
- package/src/_esm/utils/algorithms/detectPaths.d.ts +0 -21
- package/src/_esm/utils/algorithms/detectPaths.js +0 -169
- package/src/_esm/utils/algorithms/detectPaths.js.map +0 -1
- package/src/_esm/utils/algorithms/findPolygonSelfIntersections.d.ts +0 -21
- package/src/_esm/utils/algorithms/findPolygonSelfIntersections.js +0 -51
- package/src/_esm/utils/algorithms/findPolygonSelfIntersections.js.map +0 -1
- package/src/_esm/utils/algorithms/getContrastColor.d.ts +0 -13
- package/src/_esm/utils/algorithms/getContrastColor.js +0 -26
- package/src/_esm/utils/algorithms/getContrastColor.js.map +0 -1
- package/src/_esm/utils/algorithms/matrixFill.d.ts +0 -10
- package/src/_esm/utils/algorithms/matrixFill.js +0 -21
- package/src/_esm/utils/algorithms/matrixFill.js.map +0 -1
- package/src/_esm/utils/algorithms/pixelCornersToRoundPaths.d.ts +0 -23
- package/src/_esm/utils/algorithms/pixelCornersToRoundPaths.js +0 -270
- package/src/_esm/utils/algorithms/pixelCornersToRoundPaths.js.map +0 -1
- package/src/_esm/utils/algorithms/splitPolygonToNonIntersecting.d.ts +0 -28
- package/src/_esm/utils/algorithms/splitPolygonToNonIntersecting.js +0 -102
- package/src/_esm/utils/algorithms/splitPolygonToNonIntersecting.js.map +0 -1
- package/src/_esm/utils/algorithms/sutherlandHodgman.d.ts +0 -16
- package/src/_esm/utils/algorithms/sutherlandHodgman.js +0 -76
- package/src/_esm/utils/algorithms/sutherlandHodgman.js.map +0 -1
- package/src/_esm/utils/cloneVertexArray.d.ts +0 -13
- package/src/_esm/utils/cloneVertexArray.js +0 -23
- package/src/_esm/utils/cloneVertexArray.js.map +0 -1
- package/src/_esm/utils/createRandomizedPolygon.d.ts +0 -14
- package/src/_esm/utils/createRandomizedPolygon.js +0 -32
- package/src/_esm/utils/createRandomizedPolygon.js.map +0 -1
- package/src/_esm/utils/datastructures/CircularIntervalSet.d.ts +0 -83
- package/src/_esm/utils/datastructures/CircularIntervalSet.js +0 -162
- package/src/_esm/utils/datastructures/CircularIntervalSet.js.map +0 -1
- package/src/_esm/utils/datastructures/Color.d.ts +0 -391
- package/src/_esm/utils/datastructures/Color.js +0 -1067
- package/src/_esm/utils/datastructures/Color.js.map +0 -1
- package/src/_esm/utils/datastructures/ColorGradient.d.ts +0 -81
- package/src/_esm/utils/datastructures/ColorGradient.js +0 -175
- package/src/_esm/utils/datastructures/ColorGradient.js.map +0 -1
- package/src/_esm/utils/datastructures/DataGrid2d.d.ts +0 -53
- package/src/_esm/utils/datastructures/DataGrid2d.js +0 -20
- package/src/_esm/utils/datastructures/DataGrid2d.js.map +0 -1
- package/src/_esm/utils/datastructures/DataGrid2dArrayMatrix.d.ts +0 -88
- package/src/_esm/utils/datastructures/DataGrid2dArrayMatrix.js +0 -154
- package/src/_esm/utils/datastructures/DataGrid2dArrayMatrix.js.map +0 -1
- package/src/_esm/utils/datastructures/DataGrid2dListAdapter.d.ts +0 -59
- package/src/_esm/utils/datastructures/DataGrid2dListAdapter.js +0 -83
- package/src/_esm/utils/datastructures/DataGrid2dListAdapter.js.map +0 -1
- package/src/_esm/utils/datastructures/GenericPath.d.ts +0 -86
- package/src/_esm/utils/datastructures/GenericPath.js +0 -121
- package/src/_esm/utils/datastructures/GenericPath.js.map +0 -1
- package/src/_esm/utils/datastructures/GeometryMesh.d.ts +0 -49
- package/src/_esm/utils/datastructures/GeometryMesh.js +0 -57
- package/src/_esm/utils/datastructures/GeometryMesh.js.map +0 -1
- package/src/_esm/utils/datastructures/Girih.d.ts +0 -181
- package/src/_esm/utils/datastructures/Girih.js +0 -265
- package/src/_esm/utils/datastructures/Girih.js.map +0 -1
- package/src/_esm/utils/datastructures/GirihBowtie.d.ts +0 -37
- package/src/_esm/utils/datastructures/GirihBowtie.js +0 -134
- package/src/_esm/utils/datastructures/GirihBowtie.js.map +0 -1
- package/src/_esm/utils/datastructures/GirihDecagon.d.ts +0 -52
- package/src/_esm/utils/datastructures/GirihDecagon.js +0 -114
- package/src/_esm/utils/datastructures/GirihDecagon.js.map +0 -1
- package/src/_esm/utils/datastructures/GirihHexagon.d.ts +0 -39
- package/src/_esm/utils/datastructures/GirihHexagon.js +0 -182
- package/src/_esm/utils/datastructures/GirihHexagon.js.map +0 -1
- package/src/_esm/utils/datastructures/GirihPenroseRhombus.d.ts +0 -46
- package/src/_esm/utils/datastructures/GirihPenroseRhombus.js +0 -171
- package/src/_esm/utils/datastructures/GirihPenroseRhombus.js.map +0 -1
- package/src/_esm/utils/datastructures/GirihPentagon.d.ts +0 -37
- package/src/_esm/utils/datastructures/GirihPentagon.js +0 -91
- package/src/_esm/utils/datastructures/GirihPentagon.js.map +0 -1
- package/src/_esm/utils/datastructures/GirihRhombus.d.ts +0 -38
- package/src/_esm/utils/datastructures/GirihRhombus.js +0 -137
- package/src/_esm/utils/datastructures/GirihRhombus.js.map +0 -1
- package/src/_esm/utils/datastructures/GirihTile.d.ts +0 -283
- package/src/_esm/utils/datastructures/GirihTile.js +0 -290
- package/src/_esm/utils/datastructures/GirihTile.js.map +0 -1
- package/src/_esm/utils/datastructures/Matrix4x4.d.ts +0 -244
- package/src/_esm/utils/datastructures/Matrix4x4.js +0 -250
- package/src/_esm/utils/datastructures/Matrix4x4.js.map +0 -1
- package/src/_esm/utils/datastructures/VoronoiCell.d.ts +0 -122
- package/src/_esm/utils/datastructures/VoronoiCell.js +0 -182
- package/src/_esm/utils/datastructures/VoronoiCell.js.map +0 -1
- package/src/_esm/utils/datastructures/interfaces.d.ts +0 -13
- package/src/_esm/utils/datastructures/interfaces.js +0 -10
- package/src/_esm/utils/datastructures/interfaces.js.map +0 -1
- package/src/_esm/utils/detectDarkMode.d.ts +0 -10
- package/src/_esm/utils/detectDarkMode.js +0 -41
- package/src/_esm/utils/detectDarkMode.js.map +0 -1
- package/src/_esm/utils/dom/components/ColorGradientPicker.d.ts +0 -246
- package/src/_esm/utils/dom/components/ColorGradientPicker.js +0 -780
- package/src/_esm/utils/dom/components/ColorGradientPicker.js.map +0 -1
- package/src/_esm/utils/dom/components/ColorGradientPickerJSX.d.ts +0 -129
- package/src/_esm/utils/dom/components/ColorGradientPickerJSX.js +0 -582
- package/src/_esm/utils/dom/components/ColorGradientPickerJSX.js.map +0 -1
- package/src/_esm/utils/dom/components/ColorGradientSelector.d.ts +0 -118
- package/src/_esm/utils/dom/components/ColorGradientSelector.js +0 -376
- package/src/_esm/utils/dom/components/ColorGradientSelector.js.map +0 -1
- package/src/_esm/utils/dom/components/Test.d.ts +0 -7
- package/src/_esm/utils/dom/components/Test.js +0 -63
- package/src/_esm/utils/dom/components/Test.js.map +0 -1
- package/src/_esm/utils/dom/getAvailableContainerSpace.d.ts +0 -2
- package/src/_esm/utils/dom/getAvailableContainerSpace.js +0 -29
- package/src/_esm/utils/dom/getAvailableContainerSpace.js.map +0 -1
- package/src/_esm/utils/dom/getFProp.d.ts +0 -5
- package/src/_esm/utils/dom/getFProp.js +0 -12
- package/src/_esm/utils/dom/getFProp.js.map +0 -1
- package/src/_esm/utils/dom/guiSizeToggler.d.ts +0 -18
- package/src/_esm/utils/dom/guiSizeToggler.js +0 -44
- package/src/_esm/utils/dom/guiSizeToggler.js.map +0 -1
- package/src/_esm/utils/findInVertexArray.d.ts +0 -19
- package/src/_esm/utils/findInVertexArray.js +0 -29
- package/src/_esm/utils/findInVertexArray.js.map +0 -1
- package/src/_esm/utils/getFProp.d.ts +0 -5
- package/src/_esm/utils/getFProp.js +0 -8
- package/src/_esm/utils/getFProp.js.map +0 -1
- package/src/_esm/utils/gup.d.ts +0 -14
- package/src/_esm/utils/gup.js +0 -31
- package/src/_esm/utils/gup.js.map +0 -1
- package/src/_esm/utils/helpers/BezierPathInteractionHelper.d.ts +0 -272
- package/src/_esm/utils/helpers/BezierPathInteractionHelper.js +0 -655
- package/src/_esm/utils/helpers/BezierPathInteractionHelper.js.map +0 -1
- package/src/_esm/utils/helpers/CircleHelper.d.ts +0 -73
- package/src/_esm/utils/helpers/CircleHelper.js +0 -92
- package/src/_esm/utils/helpers/CircleHelper.js.map +0 -1
- package/src/_esm/utils/helpers/CircleSectorHelper.d.ts +0 -90
- package/src/_esm/utils/helpers/CircleSectorHelper.js +0 -113
- package/src/_esm/utils/helpers/CircleSectorHelper.js.map +0 -1
- package/src/_esm/utils/helpers/TriangleHelper.d.ts +0 -57
- package/src/_esm/utils/helpers/TriangleHelper.js +0 -82
- package/src/_esm/utils/helpers/TriangleHelper.js.map +0 -1
- package/src/_esm/utils/helpers/VEllipseHelper.d.ts +0 -32
- package/src/_esm/utils/helpers/VEllipseHelper.js +0 -87
- package/src/_esm/utils/helpers/VEllipseHelper.js.map +0 -1
- package/src/_esm/utils/helpers/VEllipseSectorHelper.d.ts +0 -52
- package/src/_esm/utils/helpers/VEllipseSectorHelper.js +0 -134
- package/src/_esm/utils/helpers/VEllipseSectorHelper.js.map +0 -1
- package/src/_esm/utils/io/DndFileHandler.d.ts +0 -63
- package/src/_esm/utils/io/DndFileHandler.js +0 -106
- package/src/_esm/utils/io/DndFileHandler.js.map +0 -1
- package/src/_esm/utils/io/FileDrop.d.ts +0 -110
- package/src/_esm/utils/io/FileDrop.js +0 -175
- package/src/_esm/utils/io/FileDrop.js.map +0 -1
- package/src/_esm/utils/parsers/LinearColorGradientParser.d.ts +0 -78
- package/src/_esm/utils/parsers/LinearColorGradientParser.js +0 -223
- package/src/_esm/utils/parsers/LinearColorGradientParser.js.map +0 -1
- package/src/_esm/utils/parsers/OBJParser.d.ts +0 -25
- package/src/_esm/utils/parsers/OBJParser.js +0 -78
- package/src/_esm/utils/parsers/OBJParser.js.map +0 -1
- package/src/_esm/utils/parsers/STLParser.d.ts +0 -61
- package/src/_esm/utils/parsers/STLParser.js +0 -179
- package/src/_esm/utils/parsers/STLParser.js.map +0 -1
- package/src/_esm/utils/parsers/svg/parseSVGPathData.d.ts +0 -27
- package/src/_esm/utils/parsers/svg/parseSVGPathData.js +0 -486
- package/src/_esm/utils/parsers/svg/parseSVGPathData.js.map +0 -1
- package/src/_esm/utils/parsers/svg/splitSVGPathData.d.ts +0 -20
- package/src/_esm/utils/parsers/svg/splitSVGPathData.js +0 -53
- package/src/_esm/utils/parsers/svg/splitSVGPathData.js.map +0 -1
- package/src/_esm/utils/parsers/svg/types.d.ts +0 -63
- package/src/_esm/utils/parsers/svg/types.js +0 -17
- package/src/_esm/utils/parsers/svg/types.js.map +0 -1
|
@@ -1,657 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Ikaros Kappler
|
|
3
|
-
* @date 2018-04-22
|
|
4
|
-
* @modified 2018-08-16 Added the curve() function to draw cubic bézier curves.
|
|
5
|
-
* @modified 2018-10-23 Recognizing the offset param in the circle() function.
|
|
6
|
-
* @modified 2018-11-27 Added the diamondHandle() function.
|
|
7
|
-
* @modified 2018-11-28 Added the grid() function and the ellipse() function.
|
|
8
|
-
* @modified 2018-11-30 Renamed the text() function to label() as it is not scaling.
|
|
9
|
-
* @modified 2018-12-06 Added a test function for drawing arc in SVG style.
|
|
10
|
-
* @modified 2018-12-09 Added the dot(Vertex,color) function (copied from Feigenbaum-plot-script).
|
|
11
|
-
* @modified 2019-01-30 Added the arrow(Vertex,Vertex,color) function for drawing arrow heads.
|
|
12
|
-
* @modified 2019-01-30 Added the image(Image,Vertex,Vertex) function for drawing images.
|
|
13
|
-
* @modified 2019-04-27 Fixed a severe drawing bug in the arrow(...) function. Scaling arrows did not work properly.
|
|
14
|
-
* @modified 2019-04-28 Added Math.round to the dot() drawing parameters to really draw a singlt dot.
|
|
15
|
-
* @modified 2019-06-07 Fixed an issue in the cubicBezier() function. Paths were always closed.
|
|
16
|
-
* @modified 2019-10-03 Added the beginDrawCycle hook.
|
|
17
|
-
* @modified 2019-10-25 Polygons are no longer drawn with dashed lines (solid lines instead).
|
|
18
|
-
* @modified 2019-11-18 Added the polyline function.
|
|
19
|
-
* @modified 2019-11-22 Added a second workaround for th drawImage bug in Safari.
|
|
20
|
-
* @modified 2019-12-07 Added the 'lineWidth' param to the line(...) function.
|
|
21
|
-
* @modified 2019-12-07 Added the 'lineWidth' param to the cubicBezier(...) function.
|
|
22
|
-
* @modified 2019-12-11 Added the 'color' param to the label(...) function.
|
|
23
|
-
* @modified 2019-12-18 Added the quadraticBezier(...) function (for the sake of approximating Lissajous curves).
|
|
24
|
-
* @modified 2019-12-20 Added the 'lineWidth' param to the polyline(...) function.
|
|
25
|
-
* @modified 2020-01-09 Added the 'lineWidth' param to the ellipse(...) function.
|
|
26
|
-
* @modified 2020-03-25 Ported this class from vanilla-JS to Typescript.
|
|
27
|
-
* @modified 2020-05-05 Added the 'lineWidth' param to the circle(...) function.
|
|
28
|
-
* @modified 2020-05-12 Drawing any handles (square, circle, diamond) with lineWidth 1 now; this was not reset before.
|
|
29
|
-
* @modified 2020-06-22 Added a context.clearRect() call to the clear() function; clearing with alpha channel did not work as expected.
|
|
30
|
-
* @modified 2020-09-07 Added the circleArc(...) function to draw sections of circles.
|
|
31
|
-
* @modified 2020-10-06 Removed the .closePath() instruction from the circleArc function.
|
|
32
|
-
* @modified 2020-10-15 Re-added the text() function.
|
|
33
|
-
* @modified 2020-10-28 Added the path(Path2D) function.
|
|
34
|
-
* @modified 2020-12-28 Added the `singleSegment` mode (test).
|
|
35
|
-
* @modified 2021-01-05 Added the image-loaded/broken check.
|
|
36
|
-
* @modified 2021-01-24 Added the `setCurrentId` function from the `DrawLib` interface.
|
|
37
|
-
* @modified 2021-02-22 Added the `path` drawing function to draw SVG path data.
|
|
38
|
-
* @modified 2021-03-31 Added the `endDrawCycle` function from `DrawLib`.
|
|
39
|
-
* @modified 2021-05-31 Added the `setConfiguration` function from `DrawLib`.
|
|
40
|
-
* @modified 2021-11-12 Adding more parameters tot the `text()` function: fontSize, textAlign, fontFamily, lineHeight.
|
|
41
|
-
* @modified 2021-11-19 Added the `color` param to the `label(...)` function.
|
|
42
|
-
* @modified 2022-02-03 Added the `lineWidth` param to the `crosshair` function.
|
|
43
|
-
* @modified 2022-02-03 Added the `cross(...)` function.
|
|
44
|
-
* @modified 2022-03-27 Added the `texturedPoly` function.
|
|
45
|
-
* @modified 2022-06-01 Tweaked the `polyline` function; lineWidth now scales with scale.x.
|
|
46
|
-
* @modified 2022-07-26 Adding `alpha` to the `image(...)` function.
|
|
47
|
-
* @modified 2022-08-23 Fixed a type issue in the `polyline` function.
|
|
48
|
-
* @modified 2022-08-23 Fixed a type issue in the `setConfiguration` function.
|
|
49
|
-
* @modified 2022-08-23 Fixed a type issue in the `path` function.
|
|
50
|
-
* @modified 2023-02-10 The methods `setCurrentClassName` and `setCurrentId` also accept `null` now.
|
|
51
|
-
* @modified 2023-09-29 Removed unused method stub for texturedPoly helper function (cleanup).
|
|
52
|
-
* @modified 2023-09-29 Downgrading all `Vertex` param type to the more generic `XYCoords` type in these render functions: line, arrow, texturedPoly, cubicBezier, cubicBezierPath, handle, handleLine, dot, point, circle, circleArc, ellipse, grid, raster.
|
|
53
|
-
* @modified 2023-09-29 Added the `headLength` parameter to the 'DrawLib.arrow()` function.
|
|
54
|
-
* @modified 2023-09-29 Added the `arrowHead(...)` function to the 'DrawLib.arrow()` interface.
|
|
55
|
-
* @modified 2023-09-29 Added the `cubicBezierArrow(...)` function to the 'DrawLib.arrow()` interface.
|
|
56
|
-
* @modified 2023-09-29 Added the `lineDashes` attribute.
|
|
57
|
-
* @modified 2023-09-30 Adding `strokeOptions` param to these draw function: line, arrow, cubicBezierArrow, cubicBezier, cubicBezierPath, circle, circleArc, ellipse, square, rect, polygon, polyline.
|
|
58
|
-
* @modified 2023-10-07 Adding the optional `arrowHeadBasePositionBuffer` param to the arrowHead(...) method.
|
|
59
|
-
* @modified 2024-09-13 Remoed the scaling of `lineWidth` in the `polygon` and `polyline` methods. This makes no sense here and doesn't match up with the behavior of other line functions.
|
|
60
|
-
* @modified 2026-01-04 Adding `lineJoin` attribute to the `StrokeOptions`.
|
|
61
|
-
* @modified 2026-03-18 Adding `isOpen` parameter to `cubicBezierPath` draw method.
|
|
62
|
-
* @version 1.14.0
|
|
63
|
-
**/
|
|
64
|
-
import { Polygon } from "./Polygon";
|
|
65
|
-
import { Vertex } from "./Vertex";
|
|
66
|
-
import { DrawLib, SVGPathParams, XYCoords, UID, DrawLibConfiguration, FontStyle, FontWeight, StrokeOptions } from "./interfaces";
|
|
67
|
-
import { Bounds } from "./Bounds";
|
|
68
|
-
/**
|
|
69
|
-
* @classdesc A wrapper class for basic drawing operations.
|
|
70
|
-
*
|
|
71
|
-
* @requires CubicBzierCurvce
|
|
72
|
-
* @requires Polygon
|
|
73
|
-
* @requires Vertex
|
|
74
|
-
* @requires XYCoords
|
|
75
|
-
*/
|
|
76
|
-
export declare class drawutils implements DrawLib<void> {
|
|
77
|
-
/**
|
|
78
|
-
* @member {CanvasRenderingContext2D}
|
|
79
|
-
* @memberof drawutils
|
|
80
|
-
* @type {CanvasRenderingContext2D}
|
|
81
|
-
* @instance
|
|
82
|
-
*/
|
|
83
|
-
ctx: CanvasRenderingContext2D;
|
|
84
|
-
/**
|
|
85
|
-
* @member {Vertex}
|
|
86
|
-
* @memberof drawutils
|
|
87
|
-
* @type {Vertex}
|
|
88
|
-
* @instance
|
|
89
|
-
*/
|
|
90
|
-
readonly offset: Vertex;
|
|
91
|
-
/**
|
|
92
|
-
* @member {Vertex}
|
|
93
|
-
* @memberof drawutils
|
|
94
|
-
* @type {Vertex}
|
|
95
|
-
* @instance
|
|
96
|
-
*/
|
|
97
|
-
readonly scale: Vertex;
|
|
98
|
-
/**
|
|
99
|
-
* @member {boolean}
|
|
100
|
-
* @memberof drawutils
|
|
101
|
-
* @type {boolean}
|
|
102
|
-
* @instance
|
|
103
|
-
*/
|
|
104
|
-
fillShapes: boolean;
|
|
105
|
-
/**
|
|
106
|
-
* The constructor.
|
|
107
|
-
*
|
|
108
|
-
* @constructor
|
|
109
|
-
* @name drawutils
|
|
110
|
-
* @param {anvasRenderingContext2D} context - The drawing context.
|
|
111
|
-
* @param {boolean} fillShaped - Indicates if the constructed drawutils should fill all drawn shapes (if possible).
|
|
112
|
-
**/
|
|
113
|
-
constructor(context: CanvasRenderingContext2D, fillShapes: boolean);
|
|
114
|
-
/**
|
|
115
|
-
* A private helper method to apply stroke options to the current
|
|
116
|
-
* context.
|
|
117
|
-
* @param {StrokeOptions=} strokeOptions -
|
|
118
|
-
*/
|
|
119
|
-
private applyStrokeOpts;
|
|
120
|
-
_fillOrDraw(color: string): void;
|
|
121
|
-
/**
|
|
122
|
-
* Called before each draw cycle.
|
|
123
|
-
* @param {UID=} uid - (optional) A UID identifying the currently drawn element(s).
|
|
124
|
-
**/
|
|
125
|
-
beginDrawCycle(renderTime: number): void;
|
|
126
|
-
/**
|
|
127
|
-
* Called after each draw cycle.
|
|
128
|
-
*
|
|
129
|
-
* This is required for compatibility with other draw classes in the library (like drawgl).
|
|
130
|
-
*
|
|
131
|
-
* @name endDrawCycle
|
|
132
|
-
* @method
|
|
133
|
-
* @param {number} renderTime
|
|
134
|
-
* @instance
|
|
135
|
-
**/
|
|
136
|
-
endDrawCycle(renderTime: number): void;
|
|
137
|
-
/**
|
|
138
|
-
* Set the current drawlib configuration.
|
|
139
|
-
*
|
|
140
|
-
* @name setConfiguration
|
|
141
|
-
* @method
|
|
142
|
-
* @param {DrawLibConfiguration} configuration - The new configuration settings to use for the next render methods.
|
|
143
|
-
*/
|
|
144
|
-
setConfiguration(configuration: DrawLibConfiguration): void;
|
|
145
|
-
/**
|
|
146
|
-
* This method shouled be called each time the currently drawn `Drawable` changes.
|
|
147
|
-
* It is used by some libraries for identifying elemente on re-renders.
|
|
148
|
-
*
|
|
149
|
-
* @name setCurrentId
|
|
150
|
-
* @method
|
|
151
|
-
* @param {UID|null} uid - A UID identifying the currently drawn element(s).
|
|
152
|
-
**/
|
|
153
|
-
setCurrentId(uid: UID | null): void;
|
|
154
|
-
/**
|
|
155
|
-
* This method shouled be called each time the currently drawn `Drawable` changes.
|
|
156
|
-
* Determine the class name for further usage here.
|
|
157
|
-
*
|
|
158
|
-
* @name setCurrentClassName
|
|
159
|
-
* @method
|
|
160
|
-
* @param {string|null} className - A class name for further custom use cases.
|
|
161
|
-
**/
|
|
162
|
-
setCurrentClassName(className: string | null): void;
|
|
163
|
-
/**
|
|
164
|
-
* Draw the line between the given two points with the specified (CSS-) color.
|
|
165
|
-
*
|
|
166
|
-
* @method line
|
|
167
|
-
* @param {XYCoords} zA - The start point of the line.
|
|
168
|
-
* @param {XYCoords} zB - The end point of the line.
|
|
169
|
-
* @param {string} color - Any valid CSS color string.
|
|
170
|
-
* @param {number} lineWidth? - [optional] The line's width.
|
|
171
|
-
* @param {StrokeOptions=} strokeOptions - (optional) Stroke settings to use.
|
|
172
|
-
*
|
|
173
|
-
* @return {void}
|
|
174
|
-
* @instance
|
|
175
|
-
* @memberof drawutils
|
|
176
|
-
**/
|
|
177
|
-
line(zA: XYCoords, zB: XYCoords, color: string, lineWidth?: number, strokeOptions?: StrokeOptions): void;
|
|
178
|
-
/**
|
|
179
|
-
* Draw a line and an arrow at the end (zB) of the given line with the specified (CSS-) color.
|
|
180
|
-
*
|
|
181
|
-
* @method arrow
|
|
182
|
-
* @param {XYCoords} zA - The start point of the arrow-line.
|
|
183
|
-
* @param {XYCoords} zB - The end point of the arrow-line.
|
|
184
|
-
* @param {string} color - Any valid CSS color string.
|
|
185
|
-
* @param {number=} lineWidth - (optional) The line width to use; default is 1.
|
|
186
|
-
* @param {headLength=8} headLength - (optional) The length of the arrow head (default is 8 units).
|
|
187
|
-
* @param {StrokeOptions=} strokeOptions - (optional) Stroke settings to use.
|
|
188
|
-
*
|
|
189
|
-
* @return {void}
|
|
190
|
-
* @instance
|
|
191
|
-
* @memberof drawutils
|
|
192
|
-
**/
|
|
193
|
-
arrow(zA: XYCoords, zB: XYCoords, color: string, lineWidth?: number, headLength?: number, strokeOptions?: StrokeOptions): void;
|
|
194
|
-
/**
|
|
195
|
-
* Draw a cubic Bézier curve and and an arrow at the end (endControlPoint) of the given line width the specified (CSS-) color and arrow size.
|
|
196
|
-
*
|
|
197
|
-
* @method cubicBezierArrow
|
|
198
|
-
* @param {XYCoords} startPoint - The start point of the cubic Bézier curve
|
|
199
|
-
* @param {XYCoords} endPoint - The end point the cubic Bézier curve.
|
|
200
|
-
* @param {XYCoords} startControlPoint - The start control point the cubic Bézier curve.
|
|
201
|
-
* @param {XYCoords} endControlPoint - The end control point the cubic Bézier curve.
|
|
202
|
-
* @param {string} color - The CSS color to draw the curve with.
|
|
203
|
-
* @param {number} lineWidth - (optional) The line width to use.
|
|
204
|
-
* @param {headLength=8} headLength - (optional) The length of the arrow head (default is 8 units).
|
|
205
|
-
* @param {StrokeOptions=} strokeOptions - (optional) Stroke settings to use.
|
|
206
|
-
*
|
|
207
|
-
* @return {void}
|
|
208
|
-
* @instance
|
|
209
|
-
* @memberof DrawLib
|
|
210
|
-
*/
|
|
211
|
-
cubicBezierArrow(startPoint: XYCoords, endPoint: XYCoords, startControlPoint: XYCoords, endControlPoint: XYCoords, color: string, lineWidth?: number, headLength?: number, strokeOptions?: StrokeOptions): void;
|
|
212
|
-
/**
|
|
213
|
-
* Draw just an arrow head a the end of an imaginary line (zB) of the given line width the specified (CSS-) color and size.
|
|
214
|
-
*
|
|
215
|
-
* @method arrow
|
|
216
|
-
* @param {XYCoords} zA - The start point of the arrow-line.
|
|
217
|
-
* @param {XYCoords} zB - The end point of the arrow-line.
|
|
218
|
-
* @param {string} color - Any valid CSS color string.
|
|
219
|
-
* @param {number=1} lineWidth - (optional) The line width to use; default is 1.
|
|
220
|
-
* @param {number=8} headLength - (optional) The length of the arrow head (default is 8 pixels).
|
|
221
|
-
* @param {StrokeOptions=} strokeOptions - (optional) Stroke settings to use.
|
|
222
|
-
* @param {XYCoords=} arrowHeadBasePositionBuffer - (optional) If not null, then this position will contain the arrow head's start point (after execution). Some sort of OUT variable.
|
|
223
|
-
*
|
|
224
|
-
* @return {void}
|
|
225
|
-
* @instance
|
|
226
|
-
* @memberof DrawLib
|
|
227
|
-
**/
|
|
228
|
-
arrowHead(zA: XYCoords, zB: XYCoords, color: string, lineWidth?: number, headLength?: number, strokeOptions?: StrokeOptions, arrowHeadBasePositionBuffer?: XYCoords): void;
|
|
229
|
-
/**
|
|
230
|
-
* Draw an image at the given position with the given size.<br>
|
|
231
|
-
* <br>
|
|
232
|
-
* Note: SVG images may have resizing issues at the moment.Draw a line and an arrow at the end (zB) of the given line with the specified (CSS-) color.
|
|
233
|
-
*
|
|
234
|
-
* @method image
|
|
235
|
-
* @param {Image} image - The image object to draw.
|
|
236
|
-
* @param {XYCoords} position - The position to draw the the upper left corner at.
|
|
237
|
-
* @param {XYCoords} size - The x/y-size to draw the image with.
|
|
238
|
-
* @param {number=0.0} alpha - (optional, default=0.0) The transparency (1.0=opaque, 0.0=transparent).
|
|
239
|
-
* @return {void}
|
|
240
|
-
* @instance
|
|
241
|
-
* @memberof drawutils
|
|
242
|
-
**/
|
|
243
|
-
image(image: HTMLImageElement, position: XYCoords, size: XYCoords, alpha?: number): void;
|
|
244
|
-
/**
|
|
245
|
-
* Draw an image at the given position with the given size.<br>
|
|
246
|
-
* <br>
|
|
247
|
-
* Note: SVG images may have resizing issues at the moment.Draw a line and an arrow at the end (zB) of the given line with the specified (CSS-) color.
|
|
248
|
-
*
|
|
249
|
-
* @method texturedPoly
|
|
250
|
-
* @param {Image} textureImage - The image object to draw.
|
|
251
|
-
* @param {Bounds} textureSize - The texture size to use; these are the original bounds to map the polygon vertices to.
|
|
252
|
-
* @param {Polygon} polygon - The polygon to use as clip path.
|
|
253
|
-
* @param {XYCoords} polygonPosition - The polygon's position (relative), measured at the bounding box's center.
|
|
254
|
-
* @param {number} rotation - The rotation to use for the polygon (and for the texture).
|
|
255
|
-
* @param {XYCoords={x:0,y:0}} rotationCenter - (optional) The rotational center; default is center of bounding box.
|
|
256
|
-
* @return {void}
|
|
257
|
-
* @instance
|
|
258
|
-
* @memberof drawutils
|
|
259
|
-
**/
|
|
260
|
-
texturedPoly(textureImage: HTMLImageElement, textureSize: Bounds, polygon: Polygon, polygonPosition: XYCoords, rotation: number): void;
|
|
261
|
-
/**
|
|
262
|
-
* Draw a rectangle.
|
|
263
|
-
*
|
|
264
|
-
* @param {XYCoords} position - The upper left corner of the rectangle.
|
|
265
|
-
* @param {number} width - The width of the rectangle.
|
|
266
|
-
* @param {number} height - The height of the rectangle.
|
|
267
|
-
* @param {string} color - The color to use.
|
|
268
|
-
* @param {number=1} lineWidth - (optional) The line with to use (default is 1).
|
|
269
|
-
* @param {StrokeOptions=} strokeOptions - (optional) Stroke settings to use.
|
|
270
|
-
*
|
|
271
|
-
* @return {void}
|
|
272
|
-
* @instance
|
|
273
|
-
* @memberof drawutils
|
|
274
|
-
**/
|
|
275
|
-
rect(position: XYCoords, width: number, height: number, color: string, lineWidth?: number, strokeOptions?: StrokeOptions): void;
|
|
276
|
-
/**
|
|
277
|
-
* Draw the given (cubic) bézier curve.
|
|
278
|
-
*
|
|
279
|
-
* @method cubicBezier
|
|
280
|
-
* @param {XYCoords} startPoint - The start point of the cubic Bézier curve
|
|
281
|
-
* @param {XYCoords} endPoint - The end point the cubic Bézier curve.
|
|
282
|
-
* @param {XYCoords} startControlPoint - The start control point the cubic Bézier curve.
|
|
283
|
-
* @param {XYCoords} endControlPoint - The end control point the cubic Bézier curve.
|
|
284
|
-
* @param {string} color - The CSS color to draw the curve with.
|
|
285
|
-
* @param {number} lineWidth - (optional) The line width to use.
|
|
286
|
-
* @param {StrokeOptions=} strokeOptions - (optional) Stroke settings to use.
|
|
287
|
-
*
|
|
288
|
-
* @return {void}
|
|
289
|
-
* @instance
|
|
290
|
-
* @memberof drawutils
|
|
291
|
-
*/
|
|
292
|
-
cubicBezier(startPoint: XYCoords, endPoint: XYCoords, startControlPoint: XYCoords, endControlPoint: XYCoords, color: string, lineWidth?: number, strokeOptions?: StrokeOptions): void;
|
|
293
|
-
/**
|
|
294
|
-
* Draw the given (quadratic) bézier curve.
|
|
295
|
-
*
|
|
296
|
-
* @method quadraticBezier
|
|
297
|
-
* @param {XYCoords} startPoint - The start point of the cubic Bézier curve
|
|
298
|
-
* @param {XYCoords} controlPoint - The control point the cubic Bézier curve.
|
|
299
|
-
* @param {XYCoords} endPoint - The end control point the cubic Bézier curve.
|
|
300
|
-
* @param {string} color - The CSS color to draw the curve with.
|
|
301
|
-
* @param {number|string} lineWidth - (optional) The line width to use.
|
|
302
|
-
* @param {StrokeOptions=} strokeOptions - (optional) Stroke settings to use.
|
|
303
|
-
*
|
|
304
|
-
* @return {void}
|
|
305
|
-
* @instance
|
|
306
|
-
* @memberof drawutils
|
|
307
|
-
*/
|
|
308
|
-
quadraticBezier(startPoint: XYCoords, controlPoint: XYCoords, endPoint: XYCoords, color: string, lineWidth?: number, strokeOptions?: StrokeOptions): void;
|
|
309
|
-
/**
|
|
310
|
-
* Draw the given (cubic) Bézier path.
|
|
311
|
-
*
|
|
312
|
-
* The given path must be an array with n*3+1 vertices, where n is the number of
|
|
313
|
-
* curves in the path:
|
|
314
|
-
* <pre> [ point1, point1_startControl, point2_endControl, point2, point2_startControl, point3_endControl, point3, ... pointN_endControl, pointN ]</pre>
|
|
315
|
-
*
|
|
316
|
-
* @method cubicBezierPath
|
|
317
|
-
* @param {XYCoords[]} path - The cubic bezier path as described above.
|
|
318
|
-
* @param {string} color - The CSS colot to draw the path with.
|
|
319
|
-
* @param {number=1} lineWidth - (optional) The line width to use.
|
|
320
|
-
* @param {StrokeOptions=} strokeOptions - (optional) Stroke settings to use.
|
|
321
|
-
*
|
|
322
|
-
* @return {void}
|
|
323
|
-
* @instance
|
|
324
|
-
* @memberof drawutils
|
|
325
|
-
*/
|
|
326
|
-
cubicBezierPath(path: Array<XYCoords>, color: string, lineWidth?: number, strokeOptions?: StrokeOptions, isOpen?: boolean): void;
|
|
327
|
-
/**
|
|
328
|
-
* Draw the given handle and handle point (used to draw interactive Bézier curves).
|
|
329
|
-
*
|
|
330
|
-
* The colors for this are fixed and cannot be specified.
|
|
331
|
-
*
|
|
332
|
-
* @method handle
|
|
333
|
-
* @param {XYCoords} startPoint - The start of the handle.
|
|
334
|
-
* @param {XYCoords} endPoint - The end point of the handle.
|
|
335
|
-
* @return {void}
|
|
336
|
-
* @instance
|
|
337
|
-
* @memberof drawutils
|
|
338
|
-
*/
|
|
339
|
-
handle(startPoint: XYCoords, endPoint: XYCoords): void;
|
|
340
|
-
/**
|
|
341
|
-
* Draw a handle line (with a light grey).
|
|
342
|
-
*
|
|
343
|
-
* @method handleLine
|
|
344
|
-
* @param {XYCoords} startPoint - The start point to draw the handle at.
|
|
345
|
-
* @param {XYCoords} endPoint - The end point to draw the handle at.
|
|
346
|
-
* @return {void}
|
|
347
|
-
* @instance
|
|
348
|
-
* @memberof drawutils
|
|
349
|
-
*/
|
|
350
|
-
handleLine(startPoint: XYCoords, endPoint: XYCoords): void;
|
|
351
|
-
/**
|
|
352
|
-
* Draw a 1x1 dot with the specified (CSS-) color.
|
|
353
|
-
*
|
|
354
|
-
* @method dot
|
|
355
|
-
* @param {XYCoords} p - The position to draw the dot at.
|
|
356
|
-
* @param {string} color - The CSS color to draw the dot with.
|
|
357
|
-
* @return {void}
|
|
358
|
-
* @instance
|
|
359
|
-
* @memberof drawutils
|
|
360
|
-
*/
|
|
361
|
-
dot(p: XYCoords, color: string): void;
|
|
362
|
-
/**
|
|
363
|
-
* Draw the given point with the specified (CSS-) color and radius 3.
|
|
364
|
-
*
|
|
365
|
-
* @method point
|
|
366
|
-
* @param {XYCoords} p - The position to draw the point at.
|
|
367
|
-
* @param {string} color - The CSS color to draw the point with.
|
|
368
|
-
* @return {void}
|
|
369
|
-
* @instance
|
|
370
|
-
* @memberof drawutils
|
|
371
|
-
*/
|
|
372
|
-
point(p: XYCoords, color: string): void;
|
|
373
|
-
/**
|
|
374
|
-
* Draw a circle with the specified (CSS-) color and radius.<br>
|
|
375
|
-
* <br>
|
|
376
|
-
* Note that if the x- and y- scales are different the result will be an ellipse rather than a circle.
|
|
377
|
-
*
|
|
378
|
-
* @method circle
|
|
379
|
-
* @param {XYCoords} center - The center of the circle.
|
|
380
|
-
* @param {number} radius - The radius of the circle.
|
|
381
|
-
* @param {string} color - The CSS color to draw the circle with.
|
|
382
|
-
* @param {number} lineWidth - The line width (optional, default=1).
|
|
383
|
-
* @param {StrokeOptions=} strokeOptions - (optional) Stroke settings to use.
|
|
384
|
-
*
|
|
385
|
-
* @return {void}
|
|
386
|
-
* @instance
|
|
387
|
-
* @memberof drawutils
|
|
388
|
-
*/
|
|
389
|
-
circle(center: XYCoords, radius: number, color: string, lineWidth?: number, strokeOptions?: StrokeOptions): void;
|
|
390
|
-
/**
|
|
391
|
-
* Draw a circular arc (section of a circle) with the given CSS color.
|
|
392
|
-
*
|
|
393
|
-
* @method circleArc
|
|
394
|
-
* @param {XYCoords} center - The center of the circle.
|
|
395
|
-
* @param {number} radius - The radius of the circle.
|
|
396
|
-
* @param {number} startAngle - The angle to start at.
|
|
397
|
-
* @param {number} endAngle - The angle to end at.
|
|
398
|
-
* @param {string=#000000} color - The CSS color to draw the circle with.
|
|
399
|
-
* @param {number=1} lineWidth - The line width to use
|
|
400
|
-
* @param {boolean=false} options.asSegment - If `true` then no beginPath and no draw will be applied (as part of larger path).
|
|
401
|
-
* @param {number=} options.dashOffset - (optional) `See StrokeOptions`.
|
|
402
|
-
* @param {number=[]} options.dashArray - (optional) `See StrokeOptions`.
|
|
403
|
-
*
|
|
404
|
-
* @return {void}
|
|
405
|
-
* @instance
|
|
406
|
-
* @memberof drawutils
|
|
407
|
-
*/
|
|
408
|
-
circleArc(center: XYCoords, radius: number, startAngle: number, endAngle: number, color?: string, lineWidth?: number, options?: {
|
|
409
|
-
asSegment?: boolean;
|
|
410
|
-
} & StrokeOptions): void;
|
|
411
|
-
/**
|
|
412
|
-
* Draw an ellipse with the specified (CSS-) color and thw two radii.
|
|
413
|
-
*
|
|
414
|
-
* @method ellipse
|
|
415
|
-
* @param {XYCoords} center - The center of the ellipse.
|
|
416
|
-
* @param {number} radiusX - The radius of the ellipse.
|
|
417
|
-
* @param {number} radiusY - The radius of the ellipse.
|
|
418
|
-
* @param {string} color - The CSS color to draw the ellipse with.
|
|
419
|
-
* @param {number} lineWidth=1 - An optional line width param (default is 1).
|
|
420
|
-
* @param {number=} rotation - (optional, default=0) The rotation of the ellipse.
|
|
421
|
-
* @param {StrokeOptions=} strokeOptions - (optional) Stroke settings to use.
|
|
422
|
-
*
|
|
423
|
-
* @return {void}
|
|
424
|
-
* @instance
|
|
425
|
-
* @memberof drawutils
|
|
426
|
-
*/
|
|
427
|
-
ellipse(center: XYCoords, radiusX: number, radiusY: number, color: string, lineWidth?: number, rotation?: number, strokeOptions?: StrokeOptions): void;
|
|
428
|
-
/**
|
|
429
|
-
* Draw square at the given center, size and with the specified (CSS-) color.<br>
|
|
430
|
-
* <br>
|
|
431
|
-
* Note that if the x-scale and the y-scale are different the result will be a rectangle rather than a square.
|
|
432
|
-
*
|
|
433
|
-
* @method square
|
|
434
|
-
* @param {XYCoords} center - The center of the square.
|
|
435
|
-
* @param {number} size - The size of the square.
|
|
436
|
-
* @param {string} color - The CSS color to draw the square with.
|
|
437
|
-
* @param {number} lineWidth - The line with to use (optional, default is 1).
|
|
438
|
-
* @param {StrokeOptions=} strokeOptions - (optional) Stroke settings to use.
|
|
439
|
-
*
|
|
440
|
-
* @return {void}
|
|
441
|
-
* @instance
|
|
442
|
-
* @memberof drawutils
|
|
443
|
-
*/
|
|
444
|
-
square(center: XYCoords, size: number, color: string, lineWidth?: number, strokeOptions?: StrokeOptions): void;
|
|
445
|
-
/**
|
|
446
|
-
* Draw a grid of horizontal and vertical lines with the given (CSS-) color.
|
|
447
|
-
*
|
|
448
|
-
* @method grid
|
|
449
|
-
* @param {XYCoords} center - The center of the grid.
|
|
450
|
-
* @param {number} width - The total width of the grid (width/2 each to the left and to the right).
|
|
451
|
-
* @param {number} height - The total height of the grid (height/2 each to the top and to the bottom).
|
|
452
|
-
* @param {number} sizeX - The horizontal grid size.
|
|
453
|
-
* @param {number} sizeY - The vertical grid size.
|
|
454
|
-
* @param {string} color - The CSS color to draw the grid with.
|
|
455
|
-
* @return {void}
|
|
456
|
-
* @instance
|
|
457
|
-
* @memberof drawutils
|
|
458
|
-
*/
|
|
459
|
-
grid(center: XYCoords, width: number, height: number, sizeX: number, sizeY: number, color: string): void;
|
|
460
|
-
/**
|
|
461
|
-
* Draw a raster of crosshairs in the given grid.<br>
|
|
462
|
-
*
|
|
463
|
-
* This works analogue to the grid() function
|
|
464
|
-
*
|
|
465
|
-
* @method raster
|
|
466
|
-
* @param {XYCoords} center - The center of the raster.
|
|
467
|
-
* @param {number} width - The total width of the raster (width/2 each to the left and to the right).
|
|
468
|
-
* @param {number} height - The total height of the raster (height/2 each to the top and to the bottom).
|
|
469
|
-
* @param {number} sizeX - The horizontal raster size.
|
|
470
|
-
* @param {number} sizeY - The vertical raster size.
|
|
471
|
-
* @param {string} color - The CSS color to draw the raster with.
|
|
472
|
-
* @return {void}
|
|
473
|
-
* @instance
|
|
474
|
-
* @memberof drawutils
|
|
475
|
-
*/
|
|
476
|
-
raster(center: XYCoords, width: number, height: number, sizeX: number, sizeY: number, color: string): void;
|
|
477
|
-
/**
|
|
478
|
-
* Draw a diamond handle (square rotated by 45°) with the given CSS color.
|
|
479
|
-
*
|
|
480
|
-
* It is an inherent feature of the handle functions that the drawn elements are not scaled and not
|
|
481
|
-
* distorted. So even if the user zooms in or changes the aspect ratio, the handles will be drawn
|
|
482
|
-
* as even shaped diamonds.
|
|
483
|
-
*
|
|
484
|
-
* @method diamondHandle
|
|
485
|
-
* @param {XYCoords} center - The center of the diamond.
|
|
486
|
-
* @param {number} size - The x/y-size of the diamond.
|
|
487
|
-
* @param {string} color - The CSS color to draw the diamond with.
|
|
488
|
-
* @return {void}
|
|
489
|
-
* @instance
|
|
490
|
-
* @memberof drawutils
|
|
491
|
-
*/
|
|
492
|
-
diamondHandle(center: XYCoords, size: number, color: string): void;
|
|
493
|
-
/**
|
|
494
|
-
* Draw a square handle with the given CSS color.<br>
|
|
495
|
-
* <br>
|
|
496
|
-
* It is an inherent feature of the handle functions that the drawn elements are not scaled and not
|
|
497
|
-
* distorted. So even if the user zooms in or changes the aspect ratio, the handles will be drawn
|
|
498
|
-
* as even shaped squares.
|
|
499
|
-
*
|
|
500
|
-
* @method squareHandle
|
|
501
|
-
* @param {XYCoords} center - The center of the square.
|
|
502
|
-
* @param {number} size - The x/y-size of the square.
|
|
503
|
-
* @param {string} color - The CSS color to draw the square with.
|
|
504
|
-
* @return {void}
|
|
505
|
-
* @instance
|
|
506
|
-
* @memberof drawutils
|
|
507
|
-
*/
|
|
508
|
-
squareHandle(center: XYCoords, size: number, color: string): void;
|
|
509
|
-
/**
|
|
510
|
-
* Draw a circle handle with the given CSS color.<br>
|
|
511
|
-
* <br>
|
|
512
|
-
* It is an inherent feature of the handle functions that the drawn elements are not scaled and not
|
|
513
|
-
* distorted. So even if the user zooms in or changes the aspect ratio, the handles will be drawn
|
|
514
|
-
* as even shaped circles.
|
|
515
|
-
*
|
|
516
|
-
* @method circleHandle
|
|
517
|
-
* @param {XYCoords} center - The center of the circle.
|
|
518
|
-
* @param {number} radius - The radius of the circle.
|
|
519
|
-
* @param {string} color - The CSS color to draw the circle with.
|
|
520
|
-
* @return {void}
|
|
521
|
-
* @instance
|
|
522
|
-
* @memberof drawutils
|
|
523
|
-
*/
|
|
524
|
-
circleHandle(center: XYCoords, radius: number, color: string): void;
|
|
525
|
-
/**
|
|
526
|
-
* Draw a crosshair with given radius and color at the given position.<br>
|
|
527
|
-
* <br>
|
|
528
|
-
* Note that the crosshair radius will not be affected by scaling.
|
|
529
|
-
*
|
|
530
|
-
* @method crosshair
|
|
531
|
-
* @param {XYCoords} center - The center of the crosshair.
|
|
532
|
-
* @param {number} radius - The radius of the crosshair.
|
|
533
|
-
* @param {string} color - The CSS color to draw the crosshair with.
|
|
534
|
-
* @param {number=0.5} lineWidth - (optional, default=0.5) The line width to use.
|
|
535
|
-
* @return {void}
|
|
536
|
-
* @instance
|
|
537
|
-
* @memberof drawutils
|
|
538
|
-
*/
|
|
539
|
-
crosshair(center: XYCoords, radius: number, color: string, lineWidth?: number): void;
|
|
540
|
-
/**
|
|
541
|
-
* Draw a cross with diagonal axes with given radius, color and lineWidth at the given position.<br>
|
|
542
|
-
* <br>
|
|
543
|
-
* Note that the x's radius will not be affected by scaling.
|
|
544
|
-
*
|
|
545
|
-
* @method crosshair
|
|
546
|
-
* @param {XYCoords} center - The center of the crosshair.
|
|
547
|
-
* @param {number} radius - The radius of the crosshair.
|
|
548
|
-
* @param {string} color - The CSS color to draw the crosshair with.
|
|
549
|
-
* @param {number=1} lineWidth - (optional, default=1.0) The line width to use.
|
|
550
|
-
* @return {void}
|
|
551
|
-
* @instance
|
|
552
|
-
* @memberof drawutils
|
|
553
|
-
*/
|
|
554
|
-
cross(center: XYCoords, radius: number, color: string, lineWidth?: number): void;
|
|
555
|
-
/**
|
|
556
|
-
* Draw a polygon.
|
|
557
|
-
*
|
|
558
|
-
* @method polygon
|
|
559
|
-
* @param {Polygon} polygon - The polygon to draw.
|
|
560
|
-
* @param {string} color - The CSS color to draw the polygon with.
|
|
561
|
-
* @param {string} lineWidth - The line width to use.
|
|
562
|
-
* @param {StrokeOptions=} strokeOptions - (optional) Stroke settings to use.
|
|
563
|
-
*
|
|
564
|
-
* @return {void}
|
|
565
|
-
* @instance
|
|
566
|
-
* @memberof drawutils
|
|
567
|
-
*/
|
|
568
|
-
polygon(polygon: Polygon, color: string, lineWidth?: number, strokeOptions?: StrokeOptions): void;
|
|
569
|
-
/**
|
|
570
|
-
* Draw a polygon line (alternative function to the polygon).
|
|
571
|
-
*
|
|
572
|
-
* @method polyline
|
|
573
|
-
* @param {XYCoords[]} vertices - The polygon vertices to draw.
|
|
574
|
-
* @param {boolan} isOpen - If true the polyline will not be closed at its end.
|
|
575
|
-
* @param {string} color - The CSS color to draw the polygon with.
|
|
576
|
-
* @param {number} lineWidth - The line width (default is 1.0);
|
|
577
|
-
* @param {StrokeOptions=} strokeOptions - (optional) Stroke settings to use.
|
|
578
|
-
*
|
|
579
|
-
* @return {void}
|
|
580
|
-
* @instance
|
|
581
|
-
* @memberof drawutils
|
|
582
|
-
*/
|
|
583
|
-
polyline(vertices: Array<XYCoords>, isOpen: boolean, color: string, lineWidth?: number, strokeOptions?: StrokeOptions): void;
|
|
584
|
-
/**
|
|
585
|
-
* Draw a text at the given relative position.
|
|
586
|
-
*
|
|
587
|
-
* @method text
|
|
588
|
-
* @param {string} text - The text to draw.
|
|
589
|
-
* @param {number} x - The x-position to draw the text at.
|
|
590
|
-
* @param {number} y - The y-position to draw the text at.
|
|
591
|
-
* @param {string=} options.color - The Color to use.
|
|
592
|
-
* @param {string=} options.fontFamily - The font family to use.
|
|
593
|
-
* @param {number=} options.fontSize - The font size (in pixels) to use.
|
|
594
|
-
* @param {FontStyle=} options.fontStyle - The font style to use.
|
|
595
|
-
* @param {FontWeight=} options.fontWeight - The font weight to use.
|
|
596
|
-
* @param {number=} options.lineHeight - The line height (in pixels) to use.
|
|
597
|
-
* @param {number=} options.rotation - The (optional) rotation in radians.
|
|
598
|
-
* @param {string=} options.textAlign - The text align to use. According to the specifiactions (https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/textAlign) valid values are `"left" || "right" || "center" || "start" || "end"`.
|
|
599
|
-
* @return {void}
|
|
600
|
-
* @instance
|
|
601
|
-
* @memberof drawutils
|
|
602
|
-
*/
|
|
603
|
-
text(text: string, x: number, y: number, options?: {
|
|
604
|
-
color?: string;
|
|
605
|
-
fontFamily?: string;
|
|
606
|
-
fontSize?: number;
|
|
607
|
-
fontStyle?: FontStyle;
|
|
608
|
-
fontWeight?: FontWeight;
|
|
609
|
-
lineHeight?: number;
|
|
610
|
-
textAlign?: CanvasRenderingContext2D["textAlign"];
|
|
611
|
-
rotation?: number;
|
|
612
|
-
}): void;
|
|
613
|
-
/**
|
|
614
|
-
* Draw a non-scaling text label at the given position.
|
|
615
|
-
*
|
|
616
|
-
* Note that these are absolute label positions, they are not affected by offset or scale.
|
|
617
|
-
*
|
|
618
|
-
* @method label
|
|
619
|
-
* @param {string} text - The text to draw.
|
|
620
|
-
* @param {number} x - The x-position to draw the text at.
|
|
621
|
-
* @param {number} y - The y-position to draw the text at.
|
|
622
|
-
* @param {number=} rotation - The (optional) rotation in radians (default=0).
|
|
623
|
-
* @param {string=} color - The color to render the text with (default=black).
|
|
624
|
-
* @return {void}
|
|
625
|
-
* @instance
|
|
626
|
-
* @memberof drawutils
|
|
627
|
-
*/
|
|
628
|
-
label(text: string, x: number, y: number, rotation?: number, color?: string): void;
|
|
629
|
-
/**
|
|
630
|
-
* Draw an SVG-like path given by the specified path data.
|
|
631
|
-
*
|
|
632
|
-
*
|
|
633
|
-
* @method path
|
|
634
|
-
* @param {SVGPathData} pathData - An array of path commands and params.
|
|
635
|
-
* @param {string=null} color - (optional) The color to draw this path with (default is null).
|
|
636
|
-
* @param {number=1} lineWidth - (optional) the line width to use (default is 1).
|
|
637
|
-
* @param {boolean=false} options.inplace - (optional) If set to true then path transforamtions (scale and translate) will be done in-place in the array. This can boost the performance.
|
|
638
|
-
* @param {number=} options.dashOffset - (optional) `See StrokeOptions`.
|
|
639
|
-
* @param {number=[]} options.dashArray - (optional) `See StrokeOptions`.
|
|
640
|
-
* @instance
|
|
641
|
-
* @memberof drawutils
|
|
642
|
-
* @return {R} An instance representing the drawn path.
|
|
643
|
-
*/
|
|
644
|
-
path(pathData: SVGPathParams, color?: string, lineWidth?: number, options?: {
|
|
645
|
-
inplace?: boolean;
|
|
646
|
-
} & StrokeOptions): void;
|
|
647
|
-
/**
|
|
648
|
-
* Due to gl compatibility there is a generic 'clear' function required
|
|
649
|
-
* to avoid accessing the context object itself directly.
|
|
650
|
-
*
|
|
651
|
-
* This function just fills the whole canvas with a single color.
|
|
652
|
-
*
|
|
653
|
-
* @param {string} color - The color to clear with.
|
|
654
|
-
**/
|
|
655
|
-
clear(color: string): void;
|
|
656
|
-
private static helpers;
|
|
657
|
-
}
|