plotboilerplate 1.28.0 → 1.28.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- 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,1067 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @author Extended, bugfixed and ported to TypeScript by Ikaros Kappler.
|
|
4
|
-
* @modified 2018-xx-xx Added a clone() function.
|
|
5
|
-
* @modified 2018-xx-xx Allowing leading '#' in the makeHEX() function.
|
|
6
|
-
* @modified 2018-11-28 Fixed the checkHEX() function to accept 000000.
|
|
7
|
-
* @modified 2019-11-18 Added a generic parse(string) function that detects the format.
|
|
8
|
-
* @modified 2020-01-09 Fixed a bug in the parse(string) function. Hex colors with only three elements were considered faulty.
|
|
9
|
-
* @modified 2020-10-23 Ported to Typescript.
|
|
10
|
-
* @modified 2021-02-08 Fixed a lot of es2015 compatibility issues.
|
|
11
|
-
* @modified 2021-02-08 Added basic tsdoc/jsdoc comments.
|
|
12
|
-
* @modified 2021-11-05 Fixing the regex to parse rgba-strings.
|
|
13
|
-
* @modified 2021-11-05 Added return value `this` to all modifier functions (for chaining).
|
|
14
|
-
* @modified 2021-11-07 Changed the behavior of `darken` and `lighten`: the passed value is handled relative now which makes values much easier predictable and makes the change feel more 'natural'.
|
|
15
|
-
* @modified 2021-11-07 Did the same with `saturate` and `desaturate`.
|
|
16
|
-
* @modified 2021-11-07 Did the same with the `fadein` and `fadeout` functions.
|
|
17
|
-
* @modified 2021-11-07 Added setRed, setGreen, setBlue, setHue, setSaturation, setLiminance functions.
|
|
18
|
-
* @modified 2022-05-11 Modified the `clone` function by just copying the numeric calues, not re-calculating the whole color.
|
|
19
|
-
* @modified 2022-05-11 Fixed the `interpolate` function.
|
|
20
|
-
* @modified 2023-01-23 Added `Color.set(Color)` function to set all values (r,g,b,h,s,l,a) simultanoeusly.
|
|
21
|
-
* @modified 2024-03-10 Fixed some NaN type check for Typescript 5 compatibility.
|
|
22
|
-
* @modified 2025-08-08 Fixed an issue in the static `makeRGB` method: values in [0..1] are now correctly reconized (1.0 was excluded).
|
|
23
|
-
* @modified 2025-08-08 Added static color instances (singletons): Color.Red, Color.Gold, Color.Yellow, Color.Green, Color.LimeGreen, Color.Blue, Color.MediumBlue, Color.Purple.
|
|
24
|
-
* @modified 2025-09-01 Adding all standard web colors. Source: https://en.wikipedia.org/wiki/Web_colors
|
|
25
|
-
* @modified 2025-09-01 Modifying the `Sanitizer.RGB` helper method: recognoizing 0 to 255 as valid values (not only 1 to 255).
|
|
26
|
-
* @modified 2025-09-01 Modifying the `Color.parse` method: recognizing CSS color strings now.
|
|
27
|
-
* @version 0.0.14
|
|
28
|
-
**/
|
|
29
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
exports.Color = void 0;
|
|
31
|
-
/**
|
|
32
|
-
* @classdesc A color class, inspired by neolitec's Javascript class.
|
|
33
|
-
* Original found at
|
|
34
|
-
* https://gist.github.com/neolitec/1344610
|
|
35
|
-
* Thanks to neolitec
|
|
36
|
-
*/
|
|
37
|
-
class Color {
|
|
38
|
-
/**
|
|
39
|
-
* Construct a new color with `r=0 g=0 b=0`.
|
|
40
|
-
*
|
|
41
|
-
* Consider using the `makeHex`, `makeRGB` or `makeHSL` functions.
|
|
42
|
-
*
|
|
43
|
-
* @constructor
|
|
44
|
-
* @instance
|
|
45
|
-
* @memberof Color
|
|
46
|
-
*/
|
|
47
|
-
constructor() {
|
|
48
|
-
this.r = this.g = this.b = 0;
|
|
49
|
-
this.h = this.s = this.l = 0;
|
|
50
|
-
this.a = 1;
|
|
51
|
-
}
|
|
52
|
-
// --- RGB ----------------------------------
|
|
53
|
-
/**
|
|
54
|
-
* Get this color as a CSS `rgb` string.
|
|
55
|
-
*
|
|
56
|
-
* Consult this for details: https://developer.mozilla.org/en-US/docs/Web/CSS/color_value
|
|
57
|
-
*
|
|
58
|
-
* @method cssRGB
|
|
59
|
-
* @instance
|
|
60
|
-
* @memberof Color
|
|
61
|
-
* @return {string} This color as a CSS rgb string.
|
|
62
|
-
*/
|
|
63
|
-
cssRGB() {
|
|
64
|
-
return "rgb(" + Math.round(255 * this.r) + "," + Math.round(255 * this.g) + "," + Math.round(255 * this.b) + ")";
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Get this color as a CSS `rgba` string.
|
|
68
|
-
*
|
|
69
|
-
* Consult this for details: https://developer.mozilla.org/en-US/docs/Web/CSS/color_value
|
|
70
|
-
*
|
|
71
|
-
* @method cssRGBA
|
|
72
|
-
* @instance
|
|
73
|
-
* @memberof Color
|
|
74
|
-
* @return {string} This color as a CSS rgba string.
|
|
75
|
-
*/
|
|
76
|
-
cssRGBA() {
|
|
77
|
-
return `rgba(${Math.round(255 * this.r)},${Math.round(255 * this.g)},${Math.round(255 * this.b)},${this.a})`;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Get the red component of this RGB(A)color. This method just returns the `r` color attribute.
|
|
81
|
-
*
|
|
82
|
-
* @method red
|
|
83
|
-
* @instance
|
|
84
|
-
* @memberof Color
|
|
85
|
-
* @return {number} A value between 0.0 and 1.0.
|
|
86
|
-
*/
|
|
87
|
-
red() {
|
|
88
|
-
return this.r;
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Get the green component of this RGB(A) color. This method just returns the `g` color attribute.
|
|
92
|
-
*
|
|
93
|
-
* @method green
|
|
94
|
-
* @instance
|
|
95
|
-
* @memberof Color
|
|
96
|
-
* @return {number} A value between 0.0 and 1.0.
|
|
97
|
-
*/
|
|
98
|
-
green() {
|
|
99
|
-
return this.g;
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* Get the blue component of this RGB(A) color. This method just returns the `b` color attribute.
|
|
103
|
-
*
|
|
104
|
-
* @method blue
|
|
105
|
-
* @instance
|
|
106
|
-
* @memberof Color
|
|
107
|
-
* @return {number} A value between 0.0 and 1.0.
|
|
108
|
-
*/
|
|
109
|
-
blue() {
|
|
110
|
-
return this.b;
|
|
111
|
-
}
|
|
112
|
-
set(color) {
|
|
113
|
-
this.r = color.r;
|
|
114
|
-
this.g = color.g;
|
|
115
|
-
this.b = color.b;
|
|
116
|
-
this.a = color.a;
|
|
117
|
-
this.h = color.h;
|
|
118
|
-
this.s = color.s;
|
|
119
|
-
this.l = color.l;
|
|
120
|
-
return this;
|
|
121
|
-
}
|
|
122
|
-
setRed(r) {
|
|
123
|
-
this.r = r;
|
|
124
|
-
return this;
|
|
125
|
-
}
|
|
126
|
-
setBlue(b) {
|
|
127
|
-
this.b = b;
|
|
128
|
-
Color.Converter.RGBToHSL(this);
|
|
129
|
-
return this;
|
|
130
|
-
}
|
|
131
|
-
setAlpha(a) {
|
|
132
|
-
this.a = a;
|
|
133
|
-
Color.Converter.RGBToHSL(this);
|
|
134
|
-
return this;
|
|
135
|
-
}
|
|
136
|
-
setGreen(g) {
|
|
137
|
-
this.g = g;
|
|
138
|
-
Color.Converter.RGBToHSL(this);
|
|
139
|
-
return this;
|
|
140
|
-
}
|
|
141
|
-
setHue(h) {
|
|
142
|
-
this.h = h;
|
|
143
|
-
Color.Converter.HSLToRGB(this);
|
|
144
|
-
return this;
|
|
145
|
-
}
|
|
146
|
-
setSaturation(s) {
|
|
147
|
-
this.s = s;
|
|
148
|
-
Color.Converter.HSLToRGB(this);
|
|
149
|
-
return this;
|
|
150
|
-
}
|
|
151
|
-
setLuminance(l) {
|
|
152
|
-
this.l = l;
|
|
153
|
-
Color.Converter.HSLToRGB(this);
|
|
154
|
-
return this;
|
|
155
|
-
}
|
|
156
|
-
// --- HSL ----------------------------------
|
|
157
|
-
/**
|
|
158
|
-
* Get this color as a CSS `hsl` string.
|
|
159
|
-
*
|
|
160
|
-
* @method cssHSL
|
|
161
|
-
* @instance
|
|
162
|
-
* @memberof Color
|
|
163
|
-
* @return {string} This color as a CSS hsl string.
|
|
164
|
-
*/
|
|
165
|
-
cssHSL() {
|
|
166
|
-
return "hsl(" + Math.round(360 * this.h) + "," + Math.round(100 * this.s) + "%," + Math.round(100 * this.l) + "%)";
|
|
167
|
-
}
|
|
168
|
-
/**
|
|
169
|
-
* Get this color as a CSS `hsla` string.
|
|
170
|
-
*
|
|
171
|
-
* @method cssHSLA
|
|
172
|
-
* @instance
|
|
173
|
-
* @memberof Color
|
|
174
|
-
* @return {string} This color as a CSS hsla string.
|
|
175
|
-
*/
|
|
176
|
-
cssHSLA() {
|
|
177
|
-
return ("hsla(" +
|
|
178
|
-
Math.round(360 * this.h) +
|
|
179
|
-
"," +
|
|
180
|
-
Math.round(100 * this.s) +
|
|
181
|
-
"%," +
|
|
182
|
-
Math.round(100 * this.l) +
|
|
183
|
-
"%," +
|
|
184
|
-
Math.round(this.a) +
|
|
185
|
-
")");
|
|
186
|
-
}
|
|
187
|
-
/**
|
|
188
|
-
* Get the hue component of this HSL(A) color. This method just returns the `h` color attribute.
|
|
189
|
-
*
|
|
190
|
-
* @method hue
|
|
191
|
-
* @instance
|
|
192
|
-
* @memberof Color
|
|
193
|
-
* @return {number} A value between 0.0 and 1.0.
|
|
194
|
-
*/
|
|
195
|
-
hue() {
|
|
196
|
-
return this.h;
|
|
197
|
-
}
|
|
198
|
-
/**
|
|
199
|
-
* Get the saturation component of this HSL(A) color. This method just returns the `s` color attribute.
|
|
200
|
-
*
|
|
201
|
-
* @method saturation
|
|
202
|
-
* @instance
|
|
203
|
-
* @memberof Color
|
|
204
|
-
* @return {number} A value between 0.0 and 1.0.
|
|
205
|
-
*/
|
|
206
|
-
saturation() {
|
|
207
|
-
return this.s;
|
|
208
|
-
}
|
|
209
|
-
/**
|
|
210
|
-
* Get the lightness component of this HSL(A) color. This method just returns the `l` color attribute.
|
|
211
|
-
*
|
|
212
|
-
* @method lightness
|
|
213
|
-
* @instance
|
|
214
|
-
* @memberof Color
|
|
215
|
-
* @return {number} A value between 0.0 and 1.0.
|
|
216
|
-
*/
|
|
217
|
-
lightness() {
|
|
218
|
-
return this.l;
|
|
219
|
-
}
|
|
220
|
-
// --- HEX ----------------------------------
|
|
221
|
-
/**
|
|
222
|
-
* Get this color as a CSS-HEX string (non-alpha): #rrggbb
|
|
223
|
-
*
|
|
224
|
-
* @method cssHEX
|
|
225
|
-
* @instance
|
|
226
|
-
* @memberof Color
|
|
227
|
-
* @return {string} This color as a CSS-HEX string.
|
|
228
|
-
*/
|
|
229
|
-
cssHEX() {
|
|
230
|
-
return ("#" +
|
|
231
|
-
(255 * this.r < 16 ? "0" : "") +
|
|
232
|
-
Math.round(255 * this.r).toString(16) +
|
|
233
|
-
(255 * this.g < 16 ? "0" : "") +
|
|
234
|
-
Math.round(255 * this.g).toString(16) +
|
|
235
|
-
(255 * this.b < 16 ? "0" : "") +
|
|
236
|
-
Math.round(255 * this.b).toString(16));
|
|
237
|
-
}
|
|
238
|
-
// --- Transparency ----------------------------------
|
|
239
|
-
/**
|
|
240
|
-
* Get the alpha channel (transparency) of this color.
|
|
241
|
-
*
|
|
242
|
-
* @method alpha
|
|
243
|
-
* @instance
|
|
244
|
-
* @memberof Color
|
|
245
|
-
* @return {number} A value between 0.0 and 1.0.
|
|
246
|
-
*/
|
|
247
|
-
alpha() {
|
|
248
|
-
return this.a;
|
|
249
|
-
}
|
|
250
|
-
// --- Modifiers ----------------------------------
|
|
251
|
-
// saturate(v: string | number): Color {
|
|
252
|
-
// if ("string" == typeof v && v.indexOf("%") > -1 && (v = parseInt(v)) != NaN) {
|
|
253
|
-
// this.s += v / 100;
|
|
254
|
-
// } else if ("number" == typeof v) {
|
|
255
|
-
// // range 255
|
|
256
|
-
// this.s += v / 255;
|
|
257
|
-
// } else {
|
|
258
|
-
// throw new Error("error: bad modifier format (percent or number)");
|
|
259
|
-
// }
|
|
260
|
-
// if (this.s > 1) this.s = 1;
|
|
261
|
-
// else if (this.s < 0) this.s = 0;
|
|
262
|
-
// Color.Converter.HSLToRGB(this);
|
|
263
|
-
// return this;
|
|
264
|
-
// }
|
|
265
|
-
saturate(v) {
|
|
266
|
-
// if ("string" == typeof v && v.indexOf("%") > -1 && (v = parseInt(v)) != NaN) {
|
|
267
|
-
if ("string" == typeof v && v.indexOf("%") > -1 && !Number.isNaN((v = parseInt(v)))) {
|
|
268
|
-
this.s += (1 - this.s) * (v / 100);
|
|
269
|
-
}
|
|
270
|
-
else if ("number" == typeof v) {
|
|
271
|
-
if (v >= -0.0 && v <= 1.0) {
|
|
272
|
-
// range 255
|
|
273
|
-
this.s += (1 - this.s) * v;
|
|
274
|
-
}
|
|
275
|
-
else {
|
|
276
|
-
// range 0-1
|
|
277
|
-
this.s += (1 - this.s) * (v / 255);
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
else {
|
|
281
|
-
throw new Error("error: bad modifier format (percent or number)");
|
|
282
|
-
}
|
|
283
|
-
if (this.s > 1)
|
|
284
|
-
this.s = 1;
|
|
285
|
-
else if (this.s < 0)
|
|
286
|
-
this.s = 0;
|
|
287
|
-
Color.Converter.HSLToRGB(this);
|
|
288
|
-
return this;
|
|
289
|
-
}
|
|
290
|
-
desaturate(v) {
|
|
291
|
-
// if ("string" == typeof v && v.indexOf("%") > -1 && (v = parseInt(v)) != NaN) {
|
|
292
|
-
if ("string" == typeof v && v.indexOf("%") > -1 && !Number.isNaN((v = parseInt(v)))) {
|
|
293
|
-
this.s -= v / 100;
|
|
294
|
-
}
|
|
295
|
-
else if ("number" == typeof v) {
|
|
296
|
-
if (v >= 0.0 && v <= 1.0) {
|
|
297
|
-
// range 255
|
|
298
|
-
this.s -= this.s * v;
|
|
299
|
-
}
|
|
300
|
-
else {
|
|
301
|
-
// range 0-1
|
|
302
|
-
this.s -= this.s * (v / 255);
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
else {
|
|
306
|
-
throw new Error("error: bad modifier format (percent or number)");
|
|
307
|
-
}
|
|
308
|
-
if (this.s > 1)
|
|
309
|
-
this.s = 1;
|
|
310
|
-
else if (this.s < 0)
|
|
311
|
-
this.s = 0;
|
|
312
|
-
Color.Converter.HSLToRGB(this);
|
|
313
|
-
return this;
|
|
314
|
-
}
|
|
315
|
-
lighten(v) {
|
|
316
|
-
// if ("string" == typeof v && v.indexOf("%") > -1 && (v = parseInt(v)) != NaN) {
|
|
317
|
-
if ("string" == typeof v && v.indexOf("%") > -1 && !Number.isNaN((v = parseInt(v)))) {
|
|
318
|
-
this.l += (1 - this.l) * (v / 100);
|
|
319
|
-
}
|
|
320
|
-
else if ("number" == typeof v) {
|
|
321
|
-
if (v >= 0.0 && v <= 1.0) {
|
|
322
|
-
// range 0.0...1.0
|
|
323
|
-
this.l += (1 - this.l) * v;
|
|
324
|
-
}
|
|
325
|
-
else {
|
|
326
|
-
// range 255
|
|
327
|
-
this.l += (1 - this.l) * (v / 255);
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
else {
|
|
331
|
-
throw new Error("error: bad modifier format (percent or number)");
|
|
332
|
-
}
|
|
333
|
-
if (this.l > 1)
|
|
334
|
-
this.l = 1;
|
|
335
|
-
else if (this.l < 0)
|
|
336
|
-
this.l = 0;
|
|
337
|
-
Color.Converter.HSLToRGB(this);
|
|
338
|
-
return this;
|
|
339
|
-
}
|
|
340
|
-
darken(v) {
|
|
341
|
-
// if ("string" == typeof v && v.indexOf("%") > -1 && (v = parseInt(v)) != NaN) {
|
|
342
|
-
if ("string" == typeof v && v.indexOf("%") > -1 && !Number.isNaN((v = parseInt(v)))) {
|
|
343
|
-
this.l -= this.l * (v / 100);
|
|
344
|
-
}
|
|
345
|
-
else if ("number" == typeof v) {
|
|
346
|
-
if (v >= 0.0 && v <= 1.0) {
|
|
347
|
-
// range 0.0...1.0
|
|
348
|
-
this.l -= this.l * v;
|
|
349
|
-
}
|
|
350
|
-
else {
|
|
351
|
-
// range 255
|
|
352
|
-
this.l -= this.l * (v / 255);
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
else {
|
|
356
|
-
throw new Error("error: bad modifier format (percent or number)");
|
|
357
|
-
}
|
|
358
|
-
if (this.l > 1)
|
|
359
|
-
this.l = 1;
|
|
360
|
-
else if (this.l < 0)
|
|
361
|
-
this.l = 0;
|
|
362
|
-
Color.Converter.HSLToRGB(this);
|
|
363
|
-
return this;
|
|
364
|
-
}
|
|
365
|
-
fadein(v) {
|
|
366
|
-
// if ("string" == typeof v && v.indexOf("%") > -1 && (v = parseInt(v)) != NaN) {
|
|
367
|
-
if ("string" == typeof v && v.indexOf("%") > -1 && !Number.isNaN((v = parseInt(v)))) {
|
|
368
|
-
this.a += (1 - this.a) * (v / 100);
|
|
369
|
-
}
|
|
370
|
-
else if ("number" == typeof v) {
|
|
371
|
-
if (v >= 0.0 && v <= 1.0) {
|
|
372
|
-
// range 0-1
|
|
373
|
-
this.a += (1 - this.a) * v;
|
|
374
|
-
}
|
|
375
|
-
else {
|
|
376
|
-
// range 255
|
|
377
|
-
this.a += (1 - this.a) * (v / 255);
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
else {
|
|
381
|
-
throw new Error("error: bad modifier format (percent or number)");
|
|
382
|
-
}
|
|
383
|
-
console.log("New alpha", this.a);
|
|
384
|
-
if (this.a > 1)
|
|
385
|
-
this.a = 1;
|
|
386
|
-
else if (this.a < 0)
|
|
387
|
-
this.a = 0;
|
|
388
|
-
Color.Converter.HSLToRGB(this);
|
|
389
|
-
return this;
|
|
390
|
-
}
|
|
391
|
-
fadeout(v) {
|
|
392
|
-
// if ("string" == typeof v && v.indexOf("%") > -1 && (v = parseInt(v)) != NaN) {
|
|
393
|
-
if ("string" == typeof v && v.indexOf("%") > -1 && !Number.isNaN((v = parseInt(v)))) {
|
|
394
|
-
this.a -= v / 100;
|
|
395
|
-
}
|
|
396
|
-
else if ("number" == typeof v) {
|
|
397
|
-
if (v >= 0.0 && v <= 1.0) {
|
|
398
|
-
// range 0-1
|
|
399
|
-
this.a -= v;
|
|
400
|
-
}
|
|
401
|
-
else {
|
|
402
|
-
// range 255
|
|
403
|
-
this.a -= v / 255;
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
else {
|
|
407
|
-
throw new Error("error: bad modifier format (percent or number)");
|
|
408
|
-
}
|
|
409
|
-
if (this.a > 1)
|
|
410
|
-
this.a = 1;
|
|
411
|
-
else if (this.a < 0)
|
|
412
|
-
this.a = 0;
|
|
413
|
-
Color.Converter.HSLToRGB(this);
|
|
414
|
-
return this;
|
|
415
|
-
}
|
|
416
|
-
spin(v) {
|
|
417
|
-
// if ("string" == typeof v && v.indexOf("%") > -1 && (v = parseInt(v)) != NaN) this.h += v / 100;
|
|
418
|
-
if ("string" == typeof v && v.indexOf("%") > -1 && !Number.isNaN((v = parseInt(v)))) {
|
|
419
|
-
this.h += v / 100;
|
|
420
|
-
}
|
|
421
|
-
else if ("number" == typeof v) {
|
|
422
|
-
// range 360
|
|
423
|
-
this.h += v / 360;
|
|
424
|
-
}
|
|
425
|
-
else {
|
|
426
|
-
throw new Error("error: bad modifier format (percent or number)");
|
|
427
|
-
}
|
|
428
|
-
if (this.h > 1)
|
|
429
|
-
this.h = 1;
|
|
430
|
-
else if (this.h < 0)
|
|
431
|
-
this.h = 0;
|
|
432
|
-
Color.Converter.HSLToRGB(this);
|
|
433
|
-
return this;
|
|
434
|
-
}
|
|
435
|
-
static makeRGB(...args) {
|
|
436
|
-
const c = new Color();
|
|
437
|
-
let sanitized;
|
|
438
|
-
if (args.length < 3 || args.length > 4) {
|
|
439
|
-
throw new Error("error: 3 or 4 arguments");
|
|
440
|
-
}
|
|
441
|
-
sanitized = Color.Sanitizer.RGB(args[0], args[1], args[2]);
|
|
442
|
-
c.r = sanitized[0];
|
|
443
|
-
c.g = sanitized[1];
|
|
444
|
-
c.b = sanitized[2];
|
|
445
|
-
if (args.length == 4) {
|
|
446
|
-
c.a = args[3];
|
|
447
|
-
}
|
|
448
|
-
else {
|
|
449
|
-
c.a = 1.0;
|
|
450
|
-
}
|
|
451
|
-
Color.Converter.RGBToHSL(c);
|
|
452
|
-
return c;
|
|
453
|
-
}
|
|
454
|
-
static makeHSL(...args) {
|
|
455
|
-
const c = new Color();
|
|
456
|
-
let sanitized;
|
|
457
|
-
if (args.length < 3 || args.length > 4) {
|
|
458
|
-
throw new Error("error: 3 or 4 arguments");
|
|
459
|
-
}
|
|
460
|
-
sanitized = Color.Sanitizer.HSL(args[0], args[1], args[2]);
|
|
461
|
-
c.h = sanitized[0];
|
|
462
|
-
c.s = sanitized[1];
|
|
463
|
-
c.l = sanitized[2];
|
|
464
|
-
if (args.length == 4) {
|
|
465
|
-
c.a = typeof args[3] === "string" ? Number.parseFloat(args[3]) : args[3];
|
|
466
|
-
}
|
|
467
|
-
else {
|
|
468
|
-
c.a = 1.0;
|
|
469
|
-
}
|
|
470
|
-
Color.Converter.HSLToRGB(c);
|
|
471
|
-
return c;
|
|
472
|
-
}
|
|
473
|
-
static makeHEX(value) {
|
|
474
|
-
var c = new Color(), sanitized;
|
|
475
|
-
// Edit Ika 2018-0308
|
|
476
|
-
// Allow leading '#'
|
|
477
|
-
if (value && value.startsWith("#")) {
|
|
478
|
-
value = value.substr(1);
|
|
479
|
-
}
|
|
480
|
-
Color.Validator.checkHEX(value);
|
|
481
|
-
if (value.length == 3) {
|
|
482
|
-
sanitized = Color.Sanitizer.RGB(parseInt(value.substr(0, 1) + value.substr(0, 1), 16), parseInt(value.substr(1, 1) + value.substr(1, 1), 16), parseInt(value.substr(2, 1) + value.substr(2, 1), 16));
|
|
483
|
-
}
|
|
484
|
-
else if (value.length == 6) {
|
|
485
|
-
sanitized = Color.Sanitizer.RGB(parseInt(value.substr(0, 2), 16), parseInt(value.substr(2, 2), 16), parseInt(value.substr(4, 2), 16));
|
|
486
|
-
}
|
|
487
|
-
else {
|
|
488
|
-
throw new Error("error: 3 or 6 arguments");
|
|
489
|
-
}
|
|
490
|
-
c.r = sanitized[0];
|
|
491
|
-
c.g = sanitized[1];
|
|
492
|
-
c.b = sanitized[2];
|
|
493
|
-
c.a = 1.0; // TODO: Accept #xxxxxxxx (8 chars, too, for alpha)
|
|
494
|
-
Color.Converter.RGBToHSL(c);
|
|
495
|
-
return c;
|
|
496
|
-
}
|
|
497
|
-
/**
|
|
498
|
-
* Parse the given color string. Currently only these formate are recognized: hex, rgb, rgba.
|
|
499
|
-
*
|
|
500
|
-
* @method parse
|
|
501
|
-
* @static
|
|
502
|
-
* @memberof Color
|
|
503
|
-
* @param {string} str - The string representation to parse.
|
|
504
|
-
* @return {Color} The color instance that's represented by the given string.
|
|
505
|
-
*/
|
|
506
|
-
static parse(str) {
|
|
507
|
-
if (typeof str == "undefined") {
|
|
508
|
-
return null;
|
|
509
|
-
}
|
|
510
|
-
if ((str = str.trim().toLowerCase()).length == 0) {
|
|
511
|
-
return null;
|
|
512
|
-
}
|
|
513
|
-
if (str.startsWith("#")) {
|
|
514
|
-
return Color.makeHEX(str.substring(1, str.length));
|
|
515
|
-
}
|
|
516
|
-
if (str.startsWith("rgb")) {
|
|
517
|
-
var parts = str.match(/^rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,?\s*(\d*(?:\.\d+\s*)?)\)$/);
|
|
518
|
-
if (!parts) {
|
|
519
|
-
throw "Unrecognized color format (2): " + str;
|
|
520
|
-
}
|
|
521
|
-
// [ str, r, g, b, a|undefined ]
|
|
522
|
-
// console.log("parts", parts);
|
|
523
|
-
if (parts.length <= 4 || typeof parts[4] == "undefined" || parts[4] == "") {
|
|
524
|
-
return Color.makeRGB(parts[1], parts[2], parts[3]);
|
|
525
|
-
}
|
|
526
|
-
else {
|
|
527
|
-
return Color.makeRGB(parts[1], parts[2], parts[3], Number(parts[4]));
|
|
528
|
-
}
|
|
529
|
-
}
|
|
530
|
-
// Try to locate by CSS color name
|
|
531
|
-
const keys = Object.keys(Color.CSS_COLORS);
|
|
532
|
-
const cssColorKey = keys.reduce((prevKey, curKey) => {
|
|
533
|
-
if (curKey && curKey.toLowerCase() === str.toLowerCase()) {
|
|
534
|
-
return curKey;
|
|
535
|
-
}
|
|
536
|
-
return prevKey;
|
|
537
|
-
}, null);
|
|
538
|
-
if (cssColorKey) {
|
|
539
|
-
const cssColor = Color.CSS_COLORS[cssColorKey];
|
|
540
|
-
// console.log("cssColor?", cssColor, str, cssColorKey);
|
|
541
|
-
if (cssColor) {
|
|
542
|
-
// console.log("CONSTRUCTOR?", cssColor.constructor);
|
|
543
|
-
return cssColor.clone();
|
|
544
|
-
}
|
|
545
|
-
}
|
|
546
|
-
throw "Unrecognized color format (1): " + str;
|
|
547
|
-
}
|
|
548
|
-
/**
|
|
549
|
-
* Create a clone of this color (RGB).
|
|
550
|
-
*
|
|
551
|
-
* @method clone
|
|
552
|
-
* @instance
|
|
553
|
-
* @memberof Color
|
|
554
|
-
* @return {Color} A clone of this color (in RGB mode).
|
|
555
|
-
*/
|
|
556
|
-
clone() {
|
|
557
|
-
// return Color.makeRGB(this.r, this.g, this.b, this.a);
|
|
558
|
-
const col = new Color();
|
|
559
|
-
col.r = this.r;
|
|
560
|
-
col.g = this.g;
|
|
561
|
-
col.b = this.b;
|
|
562
|
-
col.a = this.a;
|
|
563
|
-
col.h = this.h;
|
|
564
|
-
col.s = this.s;
|
|
565
|
-
col.l = this.l;
|
|
566
|
-
return col;
|
|
567
|
-
}
|
|
568
|
-
/**
|
|
569
|
-
* Interpolate this color on the RGB scale.
|
|
570
|
-
*
|
|
571
|
-
* @method interpolate
|
|
572
|
-
* @instance
|
|
573
|
-
* @memberof Color
|
|
574
|
-
* @param {Color} c - The color to interpolate to.
|
|
575
|
-
* @param {number} t - An interpolation value between 0.0 and 1.0.
|
|
576
|
-
* @return {Color} A clone of this color (in RGB mode).
|
|
577
|
-
*/
|
|
578
|
-
interpolate(c, t) {
|
|
579
|
-
this.r += (c.r - this.r) * t;
|
|
580
|
-
this.g += (c.g - this.g) * t;
|
|
581
|
-
this.b += (c.b - this.b) * t;
|
|
582
|
-
this.a += (c.a - this.a) * t;
|
|
583
|
-
return this;
|
|
584
|
-
}
|
|
585
|
-
} // END class
|
|
586
|
-
exports.Color = Color;
|
|
587
|
-
Color.Sanitizer = {
|
|
588
|
-
RGB: (...args) => {
|
|
589
|
-
var o = [];
|
|
590
|
-
if (args.length == 0) {
|
|
591
|
-
return [];
|
|
592
|
-
}
|
|
593
|
-
// const allAreFrac = Color.testFrac( arguments );
|
|
594
|
-
for (var i = 0; i < args.length; i++) {
|
|
595
|
-
var c = args[i];
|
|
596
|
-
if ("string" == typeof c && c.indexOf("%") > -1) {
|
|
597
|
-
// if ((c = parseInt(c)) == NaN) throw new Error("Bad format");
|
|
598
|
-
if (Number.isNaN((c = parseInt(c)))) {
|
|
599
|
-
throw new Error("Bad format");
|
|
600
|
-
}
|
|
601
|
-
if (c < 0 || c > 100)
|
|
602
|
-
throw new Error("Bad format");
|
|
603
|
-
o[i] = c / 100;
|
|
604
|
-
}
|
|
605
|
-
else {
|
|
606
|
-
// if ("string" == typeof c && (c = parseInt(c)) == NaN) {
|
|
607
|
-
if ("string" == typeof c && Number.isNaN((c = parseInt(c)))) {
|
|
608
|
-
throw new Error("Bad format");
|
|
609
|
-
}
|
|
610
|
-
if (c < 0) {
|
|
611
|
-
throw new Error("Bad format");
|
|
612
|
-
}
|
|
613
|
-
//else if( allAreFrac ) o[i] = c; // c >= 0 && c <= 1 (all)
|
|
614
|
-
else if (c >= 0 && c <= 1) {
|
|
615
|
-
o[i] = c;
|
|
616
|
-
}
|
|
617
|
-
// else if(c >= 0.0 && c <= 1.0) o[i] = c;
|
|
618
|
-
else if (c >= 0 && c < 256) {
|
|
619
|
-
o[i] = c / 255;
|
|
620
|
-
}
|
|
621
|
-
// ???
|
|
622
|
-
// else if(c >= 0 && c < 256) o[i] = c/255;
|
|
623
|
-
else
|
|
624
|
-
throw new Error("Bad format (" + c + ")");
|
|
625
|
-
}
|
|
626
|
-
}
|
|
627
|
-
return o;
|
|
628
|
-
},
|
|
629
|
-
HSL: function (...args) {
|
|
630
|
-
if (args.length < 3 || args.length > 4) {
|
|
631
|
-
throw new Error("3 or 4 arguments required");
|
|
632
|
-
}
|
|
633
|
-
var h = args[0], s = args[1], l = args[2];
|
|
634
|
-
// if ("string" == typeof h && (h = parseFloat(h)) == NaN) throw new Error("Bad format for hue");
|
|
635
|
-
if ("string" == typeof h && Number.isNaN((h = parseFloat(h)))) {
|
|
636
|
-
throw new Error("Bad format for hue");
|
|
637
|
-
}
|
|
638
|
-
if (h < 0 || h > 360)
|
|
639
|
-
throw new Error("Hue out of range (0..360)");
|
|
640
|
-
else if ((("" + h).indexOf(".") > -1 && h > 1) || ("" + h).indexOf(".") == -1)
|
|
641
|
-
h /= 360;
|
|
642
|
-
if ("string" == typeof s && s.indexOf("%") > -1) {
|
|
643
|
-
// if ((s = parseInt(s)) == NaN) throw new Error("Bad format for saturation");
|
|
644
|
-
if (Number.isNaN((s = parseInt(s)))) {
|
|
645
|
-
throw new Error("Bad format for saturation");
|
|
646
|
-
}
|
|
647
|
-
if (s < 0 || s > 100) {
|
|
648
|
-
throw new Error("Bad format for saturation");
|
|
649
|
-
}
|
|
650
|
-
s /= 100;
|
|
651
|
-
}
|
|
652
|
-
else {
|
|
653
|
-
s = typeof s === "string" ? Number.parseFloat(s) : s;
|
|
654
|
-
if (s < 0 || s > 1) {
|
|
655
|
-
throw new Error("Bad format for saturation");
|
|
656
|
-
}
|
|
657
|
-
}
|
|
658
|
-
if ("string" == typeof l && l.indexOf("%") > -1) {
|
|
659
|
-
// if ((l = parseInt(l)) == NaN) throw new Error("Bad format for lightness");
|
|
660
|
-
if (Number.isNaN((l = parseInt(l)))) {
|
|
661
|
-
throw new Error("Bad format for lightness");
|
|
662
|
-
}
|
|
663
|
-
if (l < 0 || l > 100) {
|
|
664
|
-
throw new Error("Bad format for lightness");
|
|
665
|
-
}
|
|
666
|
-
l /= 100;
|
|
667
|
-
}
|
|
668
|
-
else {
|
|
669
|
-
l = typeof l === "string" ? Number.parseFloat(l) : l;
|
|
670
|
-
if (l < 0 || l > 1) {
|
|
671
|
-
throw new Error("Bad format for lightness");
|
|
672
|
-
}
|
|
673
|
-
}
|
|
674
|
-
return [h, s, l];
|
|
675
|
-
}
|
|
676
|
-
}; // ENd sanitizer
|
|
677
|
-
Color.Validator = {
|
|
678
|
-
/**
|
|
679
|
-
* Check a hexa color (without #)
|
|
680
|
-
*/
|
|
681
|
-
checkHEX: (value) => {
|
|
682
|
-
if (value.length != 6 && value.length != 3)
|
|
683
|
-
throw new Error("Hexa color: bad length (" + value.length + ")," + value);
|
|
684
|
-
value = value.toLowerCase();
|
|
685
|
-
//for( var i in value ) {
|
|
686
|
-
for (var i = 0; i < value.length; i++) {
|
|
687
|
-
var c = value.charCodeAt(i);
|
|
688
|
-
if (!((c >= 48 && c <= 57) || (c >= 97 && c <= 102)))
|
|
689
|
-
throw new Error(`Hexa color: out of range for "${value}" at position ${i}.`);
|
|
690
|
-
}
|
|
691
|
-
}
|
|
692
|
-
};
|
|
693
|
-
Color.Converter = {
|
|
694
|
-
/**
|
|
695
|
-
* Calculates HSL Color.
|
|
696
|
-
* RGB must be normalized.
|
|
697
|
-
* http://mjijackson.com/2008/02/rgb-to-hsl-and-rgb-to-hsv-color-model-conversion-algorithms-in-javascript
|
|
698
|
-
*/
|
|
699
|
-
RGBToHSL: (color) => {
|
|
700
|
-
var r = color.r;
|
|
701
|
-
var g = color.g;
|
|
702
|
-
var b = color.b;
|
|
703
|
-
var max = Math.max(r, g, b);
|
|
704
|
-
var min = Math.min(r, g, b);
|
|
705
|
-
color.l = (max + min) / 2;
|
|
706
|
-
if (max == min) {
|
|
707
|
-
color.h = color.s = 0; // achromatic
|
|
708
|
-
}
|
|
709
|
-
else {
|
|
710
|
-
var d = max - min;
|
|
711
|
-
color.s = color.l > 0.5 ? d / (2 - max - min) : d / (max + min);
|
|
712
|
-
switch (max) {
|
|
713
|
-
case r:
|
|
714
|
-
color.h = (g - b) / d + (g < b ? 6 : 0);
|
|
715
|
-
break;
|
|
716
|
-
case g:
|
|
717
|
-
color.h = (b - r) / d + 2;
|
|
718
|
-
break;
|
|
719
|
-
case b:
|
|
720
|
-
color.h = (r - g) / d + 4;
|
|
721
|
-
break;
|
|
722
|
-
}
|
|
723
|
-
color.h /= 6;
|
|
724
|
-
}
|
|
725
|
-
},
|
|
726
|
-
/**
|
|
727
|
-
* Calculates RGB color (nomalized).
|
|
728
|
-
* HSL must be normalized.
|
|
729
|
-
*
|
|
730
|
-
* http://mjijackson.com/2008/02/rgb-to-hsl-and-rgb-to-hsv-color-model-conversion-algorithms-in-javascript
|
|
731
|
-
*/
|
|
732
|
-
HSLToRGB: (color) => {
|
|
733
|
-
var h = color.h;
|
|
734
|
-
var s = color.s;
|
|
735
|
-
var l = color.l;
|
|
736
|
-
if (s == 0) {
|
|
737
|
-
color.r = color.g = color.b = l; // achromatic
|
|
738
|
-
}
|
|
739
|
-
else {
|
|
740
|
-
var q = l < 0.5 ? l * (1 + s) : l + s - l * s;
|
|
741
|
-
var p = 2 * l - q;
|
|
742
|
-
color.r = Color.Converter.hue2rgb(p, q, h + 1 / 3);
|
|
743
|
-
color.g = Color.Converter.hue2rgb(p, q, h);
|
|
744
|
-
color.b = Color.Converter.hue2rgb(p, q, h - 1 / 3);
|
|
745
|
-
}
|
|
746
|
-
},
|
|
747
|
-
hue2rgb: (p, q, t) => {
|
|
748
|
-
if (t < 0)
|
|
749
|
-
t += 1;
|
|
750
|
-
if (t > 1)
|
|
751
|
-
t -= 1;
|
|
752
|
-
if (t < 1 / 6)
|
|
753
|
-
return p + (q - p) * 6 * t;
|
|
754
|
-
if (t < 1 / 2)
|
|
755
|
-
return q;
|
|
756
|
-
if (t < 2 / 3)
|
|
757
|
-
return p + (q - p) * (2 / 3 - t) * 6;
|
|
758
|
-
return p;
|
|
759
|
-
}
|
|
760
|
-
};
|
|
761
|
-
// Source
|
|
762
|
-
// https://en.wikipedia.org/wiki/Web_colors
|
|
763
|
-
// Pink colors
|
|
764
|
-
Color.MediumVioletRed = Color.makeRGB(199, 21, 133);
|
|
765
|
-
Color.DeepPink = Color.makeRGB(255, 20, 147);
|
|
766
|
-
Color.PaleVioletRed = Color.makeRGB(219, 112, 147);
|
|
767
|
-
Color.HotPink = Color.makeRGB(255, 105, 180);
|
|
768
|
-
Color.LightPink = Color.makeRGB(255, 182, 193);
|
|
769
|
-
Color.Pink = Color.makeRGB(255, 192, 203);
|
|
770
|
-
// Red colors
|
|
771
|
-
Color.DarkRed = Color.makeRGB(139, 0, 0);
|
|
772
|
-
Color.Red = Color.makeRGB(255, 0, 0);
|
|
773
|
-
Color.Firebrick = Color.makeRGB(178, 34, 34);
|
|
774
|
-
Color.Crimson = Color.makeRGB(220, 20, 60);
|
|
775
|
-
Color.IndianRed = Color.makeRGB(205, 92, 92);
|
|
776
|
-
Color.LightCoral = Color.makeRGB(240, 128, 128);
|
|
777
|
-
Color.Salmon = Color.makeRGB(250, 128, 114);
|
|
778
|
-
Color.DarkSalmon = Color.makeRGB(233, 150, 122);
|
|
779
|
-
Color.LightSalmon = Color.makeRGB(255, 160, 122);
|
|
780
|
-
// Orange colors
|
|
781
|
-
Color.OrangeRed = Color.makeRGB(255, 69, 0);
|
|
782
|
-
Color.Tomato = Color.makeRGB(255, 99, 71);
|
|
783
|
-
Color.DarkOrange = Color.makeRGB(255, 140, 0);
|
|
784
|
-
Color.Coral = Color.makeRGB(255, 127, 80);
|
|
785
|
-
Color.Orange = Color.makeRGB(255, 165, 0);
|
|
786
|
-
// Yellow colors
|
|
787
|
-
Color.DarkKhaki = Color.makeRGB(189, 183, 107);
|
|
788
|
-
Color.Gold = Color.makeRGB(255, 215, 0);
|
|
789
|
-
Color.Khaki = Color.makeRGB(240, 230, 140);
|
|
790
|
-
Color.PeachPuff = Color.makeRGB(255, 218, 185);
|
|
791
|
-
Color.Yellow = Color.makeRGB(255, 255, 0);
|
|
792
|
-
Color.PaleGoldenrod = Color.makeRGB(238, 232, 170);
|
|
793
|
-
Color.Moccasin = Color.makeRGB(255, 228, 181);
|
|
794
|
-
Color.PapayaWhip = Color.makeRGB(255, 239, 213);
|
|
795
|
-
Color.LightGoldenrodYellow = Color.makeRGB(250, 250, 210);
|
|
796
|
-
Color.LemonChiffon = Color.makeRGB(255, 250, 205);
|
|
797
|
-
Color.LightYellow = Color.makeRGB(255, 255, 224);
|
|
798
|
-
// Brown colors
|
|
799
|
-
Color.Maroon = Color.makeRGB(128, 0, 0);
|
|
800
|
-
Color.Brown = Color.makeRGB(165, 42, 42);
|
|
801
|
-
Color.SaddleBrown = Color.makeRGB(139, 69, 19);
|
|
802
|
-
Color.Sienna = Color.makeRGB(160, 82, 45);
|
|
803
|
-
Color.Chocolate = Color.makeRGB(210, 105, 30);
|
|
804
|
-
Color.DarkGoldenrod = Color.makeRGB(184, 134, 11);
|
|
805
|
-
Color.Peru = Color.makeRGB(205, 133, 63);
|
|
806
|
-
Color.RosyBrown = Color.makeRGB(188, 143, 143);
|
|
807
|
-
Color.Goldenrod = Color.makeRGB(218, 165, 32);
|
|
808
|
-
Color.SandyBrown = Color.makeRGB(244, 164, 96);
|
|
809
|
-
Color.Tan = Color.makeRGB(210, 180, 140);
|
|
810
|
-
Color.Burlywood = Color.makeRGB(222, 184, 135);
|
|
811
|
-
Color.Wheat = Color.makeRGB(245, 222, 179);
|
|
812
|
-
Color.NavajoWhite = Color.makeRGB(255, 222, 173);
|
|
813
|
-
Color.Bisque = Color.makeRGB(255, 228, 196);
|
|
814
|
-
Color.BlanchedAlmond = Color.makeRGB(255, 235, 205);
|
|
815
|
-
Color.Cornsilk = Color.makeRGB(255, 248, 220);
|
|
816
|
-
// Purple, violet, and magenta colors
|
|
817
|
-
Color.Indigo = Color.makeRGB(75, 0, 130);
|
|
818
|
-
Color.Purple = Color.makeRGB(128, 0, 128);
|
|
819
|
-
Color.DarkMagenta = Color.makeRGB(139, 0, 139);
|
|
820
|
-
Color.DarkViolet = Color.makeRGB(148, 0, 211);
|
|
821
|
-
Color.DarkSlateBlue = Color.makeRGB(72, 61, 139);
|
|
822
|
-
Color.BlueViolet = Color.makeRGB(138, 43, 226);
|
|
823
|
-
Color.DarkOrchid = Color.makeRGB(153, 50, 204);
|
|
824
|
-
Color.Fuchsia = Color.makeRGB(255, 0, 255);
|
|
825
|
-
Color.Magenta = Color.makeRGB(255, 0, 255);
|
|
826
|
-
Color.SlateBlue = Color.makeRGB(106, 90, 205);
|
|
827
|
-
Color.MediumSlateBlue = Color.makeRGB(123, 104, 238);
|
|
828
|
-
Color.MediumOrchid = Color.makeRGB(186, 85, 211);
|
|
829
|
-
Color.MediumPurple = Color.makeRGB(147, 112, 219);
|
|
830
|
-
Color.Orchid = Color.makeRGB(218, 112, 214);
|
|
831
|
-
Color.Violet = Color.makeRGB(238, 130, 238);
|
|
832
|
-
Color.Plum = Color.makeRGB(221, 160, 221);
|
|
833
|
-
Color.Thistle = Color.makeRGB(216, 191, 216);
|
|
834
|
-
Color.Lavender = Color.makeRGB(230, 230, 250);
|
|
835
|
-
// Blue colors
|
|
836
|
-
Color.MidnightBlue = Color.makeRGB(25, 25, 112);
|
|
837
|
-
Color.Navy = Color.makeRGB(0, 0, 128);
|
|
838
|
-
Color.DarkBlue = Color.makeRGB(0, 0, 139);
|
|
839
|
-
Color.MediumBlue = Color.makeRGB(0, 0, 205);
|
|
840
|
-
Color.Blue = Color.makeRGB(0, 0, 255);
|
|
841
|
-
Color.RoyalBlue = Color.makeRGB(65, 105, 225);
|
|
842
|
-
Color.SteelBlue = Color.makeRGB(70, 130, 180);
|
|
843
|
-
Color.DodgerBlue = Color.makeRGB(30, 144, 255);
|
|
844
|
-
Color.DeepSkyBlue = Color.makeRGB(0, 191, 255);
|
|
845
|
-
Color.CornflowerBlue = Color.makeRGB(100, 149, 237);
|
|
846
|
-
Color.SkyBlue = Color.makeRGB(135, 206, 235);
|
|
847
|
-
Color.LightSkyBlue = Color.makeRGB(135, 206, 250);
|
|
848
|
-
Color.LightSteelBlue = Color.makeRGB(176, 196, 222);
|
|
849
|
-
Color.LightBlue = Color.makeRGB(173, 216, 230);
|
|
850
|
-
Color.PowderBlue = Color.makeRGB(176, 224, 230);
|
|
851
|
-
// Cyan colors
|
|
852
|
-
Color.Teal = Color.makeRGB(0, 128, 128);
|
|
853
|
-
Color.DarkCyan = Color.makeRGB(0, 139, 139);
|
|
854
|
-
Color.LightSeaGreen = Color.makeRGB(32, 178, 170);
|
|
855
|
-
Color.CadetBlue = Color.makeRGB(95, 158, 160);
|
|
856
|
-
Color.DarkTurquoise = Color.makeRGB(0, 206, 209);
|
|
857
|
-
Color.MediumTurquoise = Color.makeRGB(72, 209, 204);
|
|
858
|
-
Color.Turquoise = Color.makeRGB(64, 224, 208);
|
|
859
|
-
Color.Aqua = Color.makeRGB(0, 255, 255);
|
|
860
|
-
Color.Cyan = Color.makeRGB(0, 255, 255);
|
|
861
|
-
Color.Aquamarine = Color.makeRGB(127, 255, 212);
|
|
862
|
-
Color.PaleTurquoise = Color.makeRGB(175, 238, 238);
|
|
863
|
-
Color.LightCyan = Color.makeRGB(224, 255, 255);
|
|
864
|
-
// Green colors
|
|
865
|
-
Color.DarkGreen = Color.makeRGB(0, 100, 0);
|
|
866
|
-
Color.Green = Color.makeRGB(0, 128, 0);
|
|
867
|
-
Color.DarkOliveGreen = Color.makeRGB(85, 107, 47);
|
|
868
|
-
Color.ForestGreen = Color.makeRGB(34, 139, 34);
|
|
869
|
-
Color.SeaGreen = Color.makeRGB(46, 139, 87);
|
|
870
|
-
Color.Olive = Color.makeRGB(128, 128, 0);
|
|
871
|
-
Color.OliveDrab = Color.makeRGB(107, 142, 35);
|
|
872
|
-
Color.MediumSeaGreen = Color.makeRGB(60, 179, 113);
|
|
873
|
-
Color.LimeGreen = Color.makeRGB(50, 205, 50);
|
|
874
|
-
Color.Lime = Color.makeRGB(0, 255, 0);
|
|
875
|
-
Color.SpringGreen = Color.makeRGB(0, 255, 127);
|
|
876
|
-
Color.MediumSpringGreen = Color.makeRGB(0, 250, 154);
|
|
877
|
-
Color.DarkSeaGreen = Color.makeRGB(143, 188, 143);
|
|
878
|
-
Color.MediumAquamarine = Color.makeRGB(102, 205, 170);
|
|
879
|
-
Color.YellowGreen = Color.makeRGB(154, 205, 50);
|
|
880
|
-
Color.LawnGreen = Color.makeRGB(124, 252, 0);
|
|
881
|
-
Color.Chartreuse = Color.makeRGB(127, 255, 0);
|
|
882
|
-
Color.LightGreen = Color.makeRGB(144, 238, 144);
|
|
883
|
-
Color.GreenYellow = Color.makeRGB(173, 255, 47);
|
|
884
|
-
Color.PaleGreen = Color.makeRGB(152, 251, 152);
|
|
885
|
-
// White colors
|
|
886
|
-
Color.MistyRose = Color.makeRGB(255, 228, 225);
|
|
887
|
-
Color.AntiqueWhite = Color.makeRGB(250, 235, 215);
|
|
888
|
-
Color.Linen = Color.makeRGB(250, 240, 230);
|
|
889
|
-
Color.Beige = Color.makeRGB(245, 245, 220);
|
|
890
|
-
Color.WhiteSmoke = Color.makeRGB(245, 245, 245);
|
|
891
|
-
Color.LavenderBlush = Color.makeRGB(255, 240, 245);
|
|
892
|
-
Color.OldLace = Color.makeRGB(253, 245, 230);
|
|
893
|
-
Color.AliceBlue = Color.makeRGB(240, 248, 255);
|
|
894
|
-
Color.Seashell = Color.makeRGB(255, 245, 238);
|
|
895
|
-
Color.GhostWhite = Color.makeRGB(248, 248, 255);
|
|
896
|
-
Color.Honeydew = Color.makeRGB(240, 255, 240);
|
|
897
|
-
Color.FloralWhite = Color.makeRGB(255, 250, 240);
|
|
898
|
-
Color.Azure = Color.makeRGB(240, 255, 255);
|
|
899
|
-
Color.MintCream = Color.makeRGB(245, 255, 250);
|
|
900
|
-
Color.Snow = Color.makeRGB(255, 250, 250);
|
|
901
|
-
Color.Ivory = Color.makeRGB(255, 255, 240);
|
|
902
|
-
Color.White = Color.makeRGB(255, 255, 255);
|
|
903
|
-
// Gray and black colors
|
|
904
|
-
Color.Black = Color.makeRGB(0, 0, 0);
|
|
905
|
-
Color.DarkSlateGray = Color.makeRGB(47, 79, 79);
|
|
906
|
-
Color.DimGray = Color.makeRGB(105, 105, 105);
|
|
907
|
-
Color.SlateGray = Color.makeRGB(112, 128, 144);
|
|
908
|
-
Color.Gray = Color.makeRGB(128, 128, 128);
|
|
909
|
-
Color.LightSlateGray = Color.makeRGB(119, 136, 153);
|
|
910
|
-
Color.DarkGray = Color.makeRGB(169, 169, 169);
|
|
911
|
-
Color.Silver = Color.makeRGB(192, 192, 192);
|
|
912
|
-
Color.LightGray = Color.makeRGB(211, 211, 211);
|
|
913
|
-
Color.Gainsboro = Color.makeRGB(220, 220, 220);
|
|
914
|
-
Color.CSS_COLORS = {
|
|
915
|
-
// Pink Color.XYZ,lors
|
|
916
|
-
MediumVioletRed: Color.MediumVioletRed,
|
|
917
|
-
DeepPink: Color.DeepPink,
|
|
918
|
-
PaleVioletRed: Color.PaleVioletRed,
|
|
919
|
-
HotPink: Color.HotPink,
|
|
920
|
-
LightPink: Color.LightPink,
|
|
921
|
-
Pink: Color.Pink,
|
|
922
|
-
// Red Color.XYZ,lors
|
|
923
|
-
DarkRed: Color.DarkRed,
|
|
924
|
-
Red: Color.Red,
|
|
925
|
-
Firebrick: Color.Firebrick,
|
|
926
|
-
Crimson: Color.Crimson,
|
|
927
|
-
IndianRed: Color.IndianRed,
|
|
928
|
-
LightCoral: Color.LightCoral,
|
|
929
|
-
Salmon: Color.Salmon,
|
|
930
|
-
DarkSalmon: Color.DarkSalmon,
|
|
931
|
-
LightSalmon: Color.LightSalmon,
|
|
932
|
-
// Orange Color.XYZ,lors
|
|
933
|
-
OrangeRed: Color.OrangeRed,
|
|
934
|
-
Tomato: Color.Tomato,
|
|
935
|
-
DarkOrange: Color.DarkOrange,
|
|
936
|
-
Coral: Color.Coral,
|
|
937
|
-
Orange: Color.Orange,
|
|
938
|
-
// Yellow Color.XYZ,lors
|
|
939
|
-
DarkKhaki: Color.DarkKhaki,
|
|
940
|
-
Gold: Color.Gold,
|
|
941
|
-
Khaki: Color.Khaki,
|
|
942
|
-
PeachPuff: Color.PeachPuff,
|
|
943
|
-
Yellow: Color.Yellow,
|
|
944
|
-
PaleGoldenrod: Color.PaleGoldenrod,
|
|
945
|
-
Moccasin: Color.Moccasin,
|
|
946
|
-
PapayaWhip: Color.PapayaWhip,
|
|
947
|
-
LightGoldenrodYellow: Color.LightGoldenrodYellow,
|
|
948
|
-
LemonChiffon: Color.LemonChiffon,
|
|
949
|
-
LightYellow: Color.LightYellow,
|
|
950
|
-
// Brown Color.XYZ,lors
|
|
951
|
-
Maroon: Color.Maroon,
|
|
952
|
-
Brown: Color.Brown,
|
|
953
|
-
SaddleBrown: Color.SaddleBrown,
|
|
954
|
-
Sienna: Color.Sienna,
|
|
955
|
-
Chocolate: Color.Chocolate,
|
|
956
|
-
DarkGoldenrod: Color.DarkGoldenrod,
|
|
957
|
-
Peru: Color.Peru,
|
|
958
|
-
RosyBrown: Color.RosyBrown,
|
|
959
|
-
Goldenrod: Color.Goldenrod,
|
|
960
|
-
SandyBrown: Color.SandyBrown,
|
|
961
|
-
Tan: Color.Tan,
|
|
962
|
-
Burlywood: Color.Burlywood,
|
|
963
|
-
Wheat: Color.Wheat,
|
|
964
|
-
NavajoWhite: Color.NavajoWhite,
|
|
965
|
-
Bisque: Color.Bisque,
|
|
966
|
-
BlanchedAlmond: Color.BlanchedAlmond,
|
|
967
|
-
Cornsilk: Color.Cornsilk,
|
|
968
|
-
// Purple, violet, and magenta Color.XYZ,lors
|
|
969
|
-
Indigo: Color.Indigo,
|
|
970
|
-
Purple: Color.Purple,
|
|
971
|
-
DarkMagenta: Color.DarkMagenta,
|
|
972
|
-
DarkViolet: Color.DarkViolet,
|
|
973
|
-
DarkSlateBlue: Color.DarkSlateBlue,
|
|
974
|
-
BlueViolet: Color.BlueViolet,
|
|
975
|
-
DarkOrchid: Color.DarkOrchid,
|
|
976
|
-
Fuchsia: Color.Fuchsia,
|
|
977
|
-
Magenta: Color.Magenta,
|
|
978
|
-
SlateBlue: Color.SlateBlue,
|
|
979
|
-
MediumSlateBlue: Color.MediumSlateBlue,
|
|
980
|
-
MediumOrchid: Color.MediumOrchid,
|
|
981
|
-
MediumPurple: Color.MediumPurple,
|
|
982
|
-
Orchid: Color.Orchid,
|
|
983
|
-
Violet: Color.Violet,
|
|
984
|
-
Plum: Color.Plum,
|
|
985
|
-
Thistle: Color.Thistle,
|
|
986
|
-
Lavender: Color.Lavender,
|
|
987
|
-
// Blue Colors
|
|
988
|
-
MidnightBlue: Color.MidnightBlue,
|
|
989
|
-
Navy: Color.Navy,
|
|
990
|
-
DarkBlue: Color.DarkBlue,
|
|
991
|
-
MediumBlue: Color.MediumBlue,
|
|
992
|
-
Blue: Color.Blue,
|
|
993
|
-
RoyalBlue: Color.RoyalBlue,
|
|
994
|
-
SteelBlue: Color.SteelBlue,
|
|
995
|
-
DodgerBlue: Color.DodgerBlue,
|
|
996
|
-
DeepSkyBlue: Color.DeepSkyBlue,
|
|
997
|
-
CornflowerBlue: Color.CornflowerBlue,
|
|
998
|
-
SkyBlue: Color.SkyBlue,
|
|
999
|
-
LightSkyBlue: Color.LightSkyBlue,
|
|
1000
|
-
LightSteelBlue: Color.LightSteelBlue,
|
|
1001
|
-
LightBlue: Color.LightBlue,
|
|
1002
|
-
PowderBlue: Color.PowderBlue,
|
|
1003
|
-
// Coyan Colors
|
|
1004
|
-
Teal: Color.Teal,
|
|
1005
|
-
DarkCyan: Color.DarkCyan,
|
|
1006
|
-
LightSeaGreen: Color.LightSeaGreen,
|
|
1007
|
-
CadetBlue: Color.CadetBlue,
|
|
1008
|
-
DarkTurquoise: Color.DarkTurquoise,
|
|
1009
|
-
MediumTurquoise: Color.MediumTurquoise,
|
|
1010
|
-
Turquoise: Color.Turquoise,
|
|
1011
|
-
Aqua: Color.Aqua,
|
|
1012
|
-
Cyan: Color.Cyan,
|
|
1013
|
-
Aquamarine: Color.Aquamarine,
|
|
1014
|
-
PaleTurquoise: Color.PaleTurquoise,
|
|
1015
|
-
LightCyan: Color.LightCyan,
|
|
1016
|
-
// Green Colors
|
|
1017
|
-
DarkGreen: Color.DarkGreen,
|
|
1018
|
-
Green: Color.Green,
|
|
1019
|
-
DarkOliveGreen: Color.DarkOliveGreen,
|
|
1020
|
-
ForestGreen: Color.ForestGreen,
|
|
1021
|
-
SeaGreen: Color.SeaGreen,
|
|
1022
|
-
Olive: Color.Olive,
|
|
1023
|
-
OliveDrab: Color.OliveDrab,
|
|
1024
|
-
MediumSeaGreen: Color.MediumSeaGreen,
|
|
1025
|
-
LimeGreen: Color.LimeGreen,
|
|
1026
|
-
Lime: Color.Lime,
|
|
1027
|
-
SpringGreen: Color.SpringGreen,
|
|
1028
|
-
MediumSpringGreen: Color.MediumSpringGreen,
|
|
1029
|
-
DarkSeaGreen: Color.DarkSeaGreen,
|
|
1030
|
-
MediumAquamarine: Color.MediumAquamarine,
|
|
1031
|
-
YellowGreen: Color.YellowGreen,
|
|
1032
|
-
LawnGreen: Color.LawnGreen,
|
|
1033
|
-
Chartreuse: Color.Chartreuse,
|
|
1034
|
-
LightGreen: Color.LightGreen,
|
|
1035
|
-
GreenYellow: Color.GreenYellow,
|
|
1036
|
-
PaleGreen: Color.PaleGreen,
|
|
1037
|
-
// White Color.XYZ,lors
|
|
1038
|
-
MistyRose: Color.MistyRose,
|
|
1039
|
-
AntiqueWhite: Color.AntiqueWhite,
|
|
1040
|
-
Linen: Color.Linen,
|
|
1041
|
-
Beige: Color.Beige,
|
|
1042
|
-
WhiteSmoke: Color.WhiteSmoke,
|
|
1043
|
-
LavenderBlush: Color.LavenderBlush,
|
|
1044
|
-
OldLace: Color.OldLace,
|
|
1045
|
-
AliceBlue: Color.AliceBlue,
|
|
1046
|
-
Seashell: Color.Seashell,
|
|
1047
|
-
GhostWhite: Color.GhostWhite,
|
|
1048
|
-
Honeydew: Color.Honeydew,
|
|
1049
|
-
FloralWhite: Color.FloralWhite,
|
|
1050
|
-
Azure: Color.Azure,
|
|
1051
|
-
MintCream: Color.MintCream,
|
|
1052
|
-
Snow: Color.Snow,
|
|
1053
|
-
Ivory: Color.Ivory,
|
|
1054
|
-
White: Color.White,
|
|
1055
|
-
// Gray and black Color.XYZ,lors
|
|
1056
|
-
Black: Color.Black,
|
|
1057
|
-
DarkSlateGray: Color.DarkSlateGray,
|
|
1058
|
-
DimGray: Color.DimGray,
|
|
1059
|
-
SlateGray: Color.SlateGray,
|
|
1060
|
-
Gray: Color.Gray,
|
|
1061
|
-
LightSlateGray: Color.LightSlateGray,
|
|
1062
|
-
DarkGray: Color.DarkGray,
|
|
1063
|
-
Silver: Color.Silver,
|
|
1064
|
-
LightGray: Color.LightGray,
|
|
1065
|
-
Gainsboro: Color.Gainsboro
|
|
1066
|
-
};
|
|
1067
|
-
//# sourceMappingURL=Color.js.map
|