plotboilerplate 1.18.0 → 1.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.esm.js +244 -63
- package/dist/index.esm.js.map +1 -1
- package/dist/index.esm.min.js +1 -1
- package/dist/index.esm.min.js.map +1 -1
- package/dist/plotboilerplate.browser.min.js +1 -1
- package/dist/plotboilerplate.browser.min.js.map +1 -1
- package/dist/plotboilerplate.js +243 -74
- package/dist/plotboilerplate.min.js +1 -1
- package/package.json +1 -1
- package/src/cjs/Bounds.d.ts +14 -5
- package/src/cjs/Bounds.js +18 -8
- package/src/cjs/Bounds.js.map +1 -1
- package/src/cjs/CubicBezierCurve.d.ts +20 -3
- package/src/cjs/CubicBezierCurve.js +25 -2
- package/src/cjs/CubicBezierCurve.js.map +1 -1
- package/src/cjs/Line.d.ts +46 -4
- package/src/cjs/Line.js +60 -3
- package/src/cjs/Line.js.map +1 -1
- package/src/cjs/PlotBoilerplate.d.ts +5 -2
- package/src/cjs/PlotBoilerplate.js +52 -30
- package/src/cjs/PlotBoilerplate.js.map +1 -1
- package/src/cjs/Polygon.js +1 -1
- package/src/cjs/Polygon.js.map +1 -1
- package/src/cjs/VEllipseSector.d.ts +4 -3
- package/src/cjs/VEllipseSector.js +15 -8
- package/src/cjs/VEllipseSector.js.map +1 -1
- package/src/cjs/Vector.d.ts +14 -3
- package/src/cjs/Vector.js +21 -2
- package/src/cjs/Vector.js.map +1 -1
- package/src/cjs/Vertex.d.ts +33 -1
- package/src/cjs/Vertex.js +43 -1
- package/src/cjs/Vertex.js.map +1 -1
- package/src/cjs/drawutilssvg.d.ts +2 -1
- package/src/cjs/drawutilssvg.js +7 -19
- package/src/cjs/drawutilssvg.js.map +1 -1
- package/src/cjs/entry.js +1 -0
- package/src/cjs/interfaces/additionals.d.ts +95 -0
- package/src/cjs/interfaces/additionals.js +3 -0
- package/src/cjs/interfaces/additionals.js.map +1 -0
- package/src/cjs/interfaces/core.d.ts +7 -0
- package/src/cjs/interfaces/core.js +2 -0
- package/src/cjs/interfaces/core.js.map +1 -1
- package/src/cjs/interfaces/index.d.ts +1 -0
- package/src/cjs/interfaces/index.js +1 -0
- package/src/cjs/interfaces/index.js.map +1 -1
- package/src/cjs/utils/algorithms/arrayShuffle.d.ts +8 -0
- package/src/cjs/utils/algorithms/arrayShuffle.js +15 -0
- package/src/cjs/utils/algorithms/arrayShuffle.js.map +1 -0
- package/src/cjs/utils/algorithms/detectPaths.d.ts +21 -0
- package/src/cjs/utils/algorithms/detectPaths.js +169 -0
- package/src/cjs/utils/algorithms/detectPaths.js.map +1 -0
- package/src/cjs/utils/creategui.js +7 -0
- package/src/cjs/utils/datastructures/Color.d.ts +1 -1
- package/src/cjs/utils/datastructures/Color.js +4 -2
- package/src/cjs/utils/datastructures/Color.js.map +1 -1
- package/src/cjs/utils/datastructures/GenericPath.d.ts +75 -0
- package/src/cjs/utils/datastructures/GenericPath.js +105 -0
- package/src/cjs/utils/datastructures/GenericPath.js.map +1 -0
- package/src/cjs/utils/datastructures/GirihTile.d.ts +1 -1
- package/src/cjs/utils/io/FileDrop.d.ts +11 -1
- package/src/cjs/utils/io/FileDrop.js +41 -10
- package/src/cjs/utils/io/FileDrop.js.map +1 -1
- package/src/cjs/utils/parsers/svg/parseSVGPathData.d.ts +26 -0
- package/src/cjs/utils/parsers/svg/parseSVGPathData.js +463 -0
- package/src/cjs/utils/parsers/svg/parseSVGPathData.js.map +1 -0
- package/src/cjs/utils/parsers/svg/splitSVGPathData.d.ts +20 -0
- package/src/cjs/utils/parsers/svg/splitSVGPathData.js +49 -0
- package/src/cjs/utils/parsers/svg/splitSVGPathData.js.map +1 -0
- package/src/cjs/utils/parsers/svg/types.d.ts +43 -0
- package/src/cjs/utils/parsers/svg/types.js +16 -0
- package/src/cjs/utils/parsers/svg/types.js.map +1 -0
- package/src/esm/Bounds.d.ts +14 -5
- package/src/esm/Bounds.js +18 -8
- package/src/esm/Bounds.js.map +1 -1
- package/src/esm/CubicBezierCurve.d.ts +20 -3
- package/src/esm/CubicBezierCurve.js +25 -2
- package/src/esm/CubicBezierCurve.js.map +1 -1
- package/src/esm/Line.d.ts +46 -4
- package/src/esm/Line.js +60 -3
- package/src/esm/Line.js.map +1 -1
- package/src/esm/PlotBoilerplate.d.ts +5 -2
- package/src/esm/PlotBoilerplate.js +52 -30
- package/src/esm/PlotBoilerplate.js.map +1 -1
- package/src/esm/Polygon.js +1 -1
- package/src/esm/Polygon.js.map +1 -1
- package/src/esm/VEllipseSector.d.ts +4 -3
- package/src/esm/VEllipseSector.js +15 -8
- package/src/esm/VEllipseSector.js.map +1 -1
- package/src/esm/Vector.d.ts +13 -2
- package/src/esm/Vector.js +23 -4
- package/src/esm/Vector.js.map +1 -1
- package/src/esm/Vertex.d.ts +33 -1
- package/src/esm/Vertex.js +43 -1
- package/src/esm/Vertex.js.map +1 -1
- package/src/esm/drawutilssvg.d.ts +2 -1
- package/src/esm/drawutilssvg.js +7 -19
- package/src/esm/drawutilssvg.js.map +1 -1
- package/src/esm/entry.js +1 -0
- package/src/esm/interfaces/additionals.d.ts +95 -0
- package/src/esm/interfaces/additionals.js +2 -0
- package/src/esm/interfaces/additionals.js.map +1 -0
- package/src/esm/interfaces/core.d.ts +7 -0
- package/src/esm/interfaces/core.js +2 -0
- package/src/esm/interfaces/core.js.map +1 -1
- package/src/esm/interfaces/index.d.ts +1 -0
- package/src/esm/interfaces/index.js +1 -0
- package/src/esm/interfaces/index.js.map +1 -1
- package/src/esm/utils/algorithms/arrayShuffle.d.ts +8 -0
- package/src/esm/utils/algorithms/arrayShuffle.js +11 -0
- package/src/esm/utils/algorithms/arrayShuffle.js.map +1 -0
- package/src/esm/utils/algorithms/detectPaths.d.ts +21 -0
- package/src/esm/utils/algorithms/detectPaths.js +165 -0
- package/src/esm/utils/algorithms/detectPaths.js.map +1 -0
- package/src/esm/utils/datastructures/Color.d.ts +1 -1
- package/src/esm/utils/datastructures/Color.js +4 -2
- package/src/esm/utils/datastructures/Color.js.map +1 -1
- package/src/esm/utils/datastructures/GenericPath.d.ts +75 -0
- package/src/esm/utils/datastructures/GenericPath.js +100 -0
- package/src/esm/utils/datastructures/GenericPath.js.map +1 -0
- package/src/esm/utils/datastructures/GirihTile.d.ts +1 -1
- package/src/esm/utils/io/FileDrop.d.ts +11 -1
- package/src/esm/utils/io/FileDrop.js +41 -10
- package/src/esm/utils/io/FileDrop.js.map +1 -1
- package/src/esm/utils/parsers/svg/parseSVGPathData.d.ts +26 -0
- package/src/esm/utils/parsers/svg/parseSVGPathData.js +459 -0
- package/src/esm/utils/parsers/svg/parseSVGPathData.js.map +1 -0
- package/src/esm/utils/parsers/svg/splitSVGPathData.d.ts +20 -0
- package/src/esm/utils/parsers/svg/splitSVGPathData.js +45 -0
- package/src/esm/utils/parsers/svg/splitSVGPathData.js.map +1 -0
- package/src/esm/utils/parsers/svg/types.d.ts +43 -0
- package/src/esm/utils/parsers/svg/types.js +15 -0
- package/src/esm/utils/parsers/svg/types.js.map +1 -0
- package/src/ts/Bounds.ts +19 -8
- package/src/ts/CubicBezierCurve.ts +29 -4
- package/src/ts/Line.ts +70 -6
- package/src/ts/PlotBoilerplate.ts +57 -35
- package/src/ts/Polygon.ts +1 -1
- package/src/ts/VEllipseSector.ts +22 -15
- package/src/ts/Vector.ts +24 -4
- package/src/ts/Vertex.ts +46 -1
- package/src/ts/drawutilssvg.ts +8 -19
- package/src/ts/interfaces/additionals.ts +105 -0
- package/src/ts/interfaces/core.ts +5 -0
- package/src/ts/interfaces/index.ts +1 -0
- package/src/ts/utils/algorithms/arrayShuffle.ts +11 -0
- package/src/ts/utils/algorithms/detectPaths.ts +195 -0
- package/src/ts/utils/datastructures/Color.ts +8 -4
- package/src/ts/utils/datastructures/GenericPath.ts +113 -0
- package/src/ts/utils/datastructures/GirihTile.ts +1 -1
- package/src/ts/utils/io/FileDrop.ts +51 -10
- package/src/ts/utils/parsers/svg/parseSVGPathData.ts +572 -0
- package/src/ts/utils/parsers/svg/splitSVGPathData.ts +50 -0
- package/src/ts/utils/parsers/svg/types.ts +70 -0
- package/changelog.md +0 -731
package/changelog.md
DELETED
|
@@ -1,731 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
- 2022-09-11
|
|
4
|
-
- Added the extended circle-line-intersection demo (because I am stupid and need visual confirmation).
|
|
5
|
-
- 2022-08-23
|
|
6
|
-
- Added the `Circle.lineIntersection(Vertex,Vertex)` function.
|
|
7
|
-
- Added the `Circle.closestPoint(XYCoords)` function.
|
|
8
|
-
- Fixed a type issue in the `draw.polyline` function.
|
|
9
|
-
- Fixed a type issue in the `draw.setConfiguration` function.
|
|
10
|
-
- Fixed a type issue in the `draw.path` function.
|
|
11
|
-
- 2022-08-16
|
|
12
|
-
- MouseHandler: Fixed a bug in the mouse button detection.
|
|
13
|
-
- 2022-08-15
|
|
14
|
-
- Added the `Circle.containsPoint(XYCoords)` function.
|
|
15
|
-
- 2022-08-01
|
|
16
|
-
- Added `title` param to the `PBParams` interface.
|
|
17
|
-
- 2022-07-26
|
|
18
|
-
- Adding `alpha` to the `draw.image(...)` function.
|
|
19
|
-
- 2022-06-02
|
|
20
|
-
- Adding the demo 42 (Hick's Hexagons).
|
|
21
|
-
- 2022-06-01
|
|
22
|
-
- Tweaked the `draw.polyline` function; lineWidth now scales with scale.x.
|
|
23
|
-
- 2022-05-11
|
|
24
|
-
- Adding new demo: raindrops.
|
|
25
|
-
- 2022-05-11
|
|
26
|
-
- Modified the `Color.clone` function by just copying the numeric calues, not re-calculating the whole color.
|
|
27
|
-
- Fixed the `Color.interpolate` function.
|
|
28
|
-
- 2022-03-27
|
|
29
|
-
- Added the `texturedPoly` function to the `DrawLib` interface.
|
|
30
|
-
- Added the `texturedPoly` function to the `drawutils` and `drawutilssvg` class.
|
|
31
|
-
- 2022-03-25
|
|
32
|
-
- Added the `Bounds.toString()` function.
|
|
33
|
-
- Added the private `nodeDefs` and `bufferedNodeDefs` attributes.
|
|
34
|
-
- Added the `texturedPoly` function to draw textures polygons.
|
|
35
|
-
- Added a demo (demo 40) for showing the way the new `texturePoly` function is working and to be used.
|
|
36
|
-
- 2022-03-08
|
|
37
|
-
- Added the `Polygon.clone()` function.
|
|
38
|
-
- 2022-02-25
|
|
39
|
-
- Extended the Girih demo: can upload files now per file select.
|
|
40
|
-
- Extended the Gihih demo: can upload files now per file drop.
|
|
41
|
-
- Added `globalThis.util.guiFolders` to gain quick access to the dat.gui folders created by the app (src/cjs/utils/createGui.js).
|
|
42
|
-
- Added a new darkmode detection (already used in the ngdg project) to to demos.
|
|
43
|
-
- 2022-02-04 (breaking change)
|
|
44
|
-
- Removed the `toSVGString` function from all drawables. They were no use any more, as `drawutilssvg` is doing their task, and they turned out to be just code overhead. THIS IS A BREAKING CHANGE.
|
|
45
|
-
- Upgraded demo 26-girih: removed SVGBuilder and added proper SVG drawing for preview tiles.
|
|
46
|
-
- Fixed the SVG export in the Girih demo (nothing was rendered/exported at all, just an empty canvas).
|
|
47
|
-
- 2022-02-03
|
|
48
|
-
- Added the `DrawLib.cross(...)` function.
|
|
49
|
-
- Added the `draw.cross(...)` function.
|
|
50
|
-
- Added the `drawgl.cross(...)` function.
|
|
51
|
-
- Added the `drawutilssvg.cross(...)` function.
|
|
52
|
-
- Added the optional `lineWidth` param to the `DrawLib.crosshair` function (and thus to the classes `draw`, `drawgl` and `drawutilssvg`)- Changing the element to catch events (eventCatcher instead of canvas) in the `BezierPathInteractionHelper` (did not interact on SVGs so far).
|
|
53
|
-
- 2022-02-02 [v1.16.0]
|
|
54
|
-
- Added the `BezierPath.destroy` method for releasing all installed event listeners.
|
|
55
|
-
- Added the `Circle.destroy` method for releasing all installed event listeners.
|
|
56
|
-
- Added the `CirclSector.destroy` method for releasing all installed event listeners.
|
|
57
|
-
- Added the `CubicBezierCurve.destroy` method for releasing all installed event listeners.
|
|
58
|
-
- Added the `KeyHandler.destroy` method for releasing all installed event listeners.
|
|
59
|
-
- Added the `Line.destroy` method for releasing all installed event listeners.
|
|
60
|
-
- Added the `MouseHandler.destroy` method for releasing all installed event listeners.
|
|
61
|
-
- Added the `PBImage.destroy` method for releasing all installed event listeners.
|
|
62
|
-
- Added the `PBText.destroy` method for releasing all installed event listeners.
|
|
63
|
-
- Added the `Polygon.destroy` method for releasing all installed event listeners.
|
|
64
|
-
- Added the `Triangle.destroy` method for releasing all installed event listeners.
|
|
65
|
-
- Added the `Vector.destroy` method for releasing all installed event listeners.
|
|
66
|
-
- Added the `VEllipse.destroy` method for releasing all installed event listeners.
|
|
67
|
-
- Added the `VEllipseSector.destroy` method for releasing all installed event listeners.
|
|
68
|
-
- Added the `Vertex.destroy` method for releasing all installed event listeners.
|
|
69
|
-
- Added the `VertTuple.destroy` method for releasing all installed event listeners.
|
|
70
|
-
- Added the `Vertex.destroy` method for releasing all installed event listeners.
|
|
71
|
-
- Removed the function body of `toSVGString` from all relevant drawable classes (deprecation). Use `drawutilssvg` instead.
|
|
72
|
-
- 2022-01-31
|
|
73
|
-
- Added `Vertex.utils.arrayToJSON`.
|
|
74
|
-
- Added `BezierPath.getEvenDistributionVertices(number)`.
|
|
75
|
-
- Added the extende-vertices demo.
|
|
76
|
-
- Added `src/ts/io/FileDrop.ts`.
|
|
77
|
-
- 2022-01-10
|
|
78
|
-
- Added utility function `findInVertexArray`.
|
|
79
|
-
- 2021-12-17
|
|
80
|
-
- Added the functions `Vertex.lerp` and `Vertex.lerpAbs` for linear interpolations.
|
|
81
|
-
- 2021-12-16
|
|
82
|
-
- Added the `Polygon.getEvenDistributionPolygon()` function.
|
|
83
|
-
- 2021-12-14
|
|
84
|
-
- Added the `Polygon.perimeter()` function.
|
|
85
|
-
- 2021-12-01
|
|
86
|
-
- Changed the type of param of `BezierPath.scale` to XYCoords.
|
|
87
|
-
- Added function `BezierPath.scaleXY` for non uniform scaling.
|
|
88
|
-
- Changed the type of param of `Vertex.scale` to XYCoords.
|
|
89
|
-
- Added function `Vertex.scaleXY` for non uniform scaling.
|
|
90
|
-
- 2021-11-24
|
|
91
|
-
- Speeding up the demo page with async script execution.
|
|
92
|
-
- Finalizing the demo page for the new `PBText` element (note: it has this name because `Text` already exists).
|
|
93
|
-
- 2021-11-19
|
|
94
|
-
- Fixing the `drawutilssvg.label(text,x,y)` position.
|
|
95
|
-
- Added the `color` param to the `label(...)` function.
|
|
96
|
-
- 2021-11-16
|
|
97
|
-
- Added `text` options to the `DrawConfig` interface.
|
|
98
|
-
- Added the `PBText` class.
|
|
99
|
-
- 2021-11-15
|
|
100
|
-
- Adding more parameters tot the `drawutilssvg.text()` function: fontSize, textAlign, fontFamily, lineHeight.
|
|
101
|
-
- 2021-11-12
|
|
102
|
-
- Adding more parameters tot the `draw.text()` function: fontSize, textAlign, fontFamily, lineHeight.
|
|
103
|
-
- 2021-11.07
|
|
104
|
-
- 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'.
|
|
105
|
-
- Added tests for the Color class. There were some strange things happening the the `ligthen` and `darken` function.
|
|
106
|
-
- Did the same with `saturate` and `desaturate`.
|
|
107
|
-
- Did the same with the `fadein` and `fadeout` functions.
|
|
108
|
-
- Added setR, setG, setB, setH, setS, setL functions to the Color class.
|
|
109
|
-
- 2021-11-05
|
|
110
|
-
- Fixing the regex in the Color.parse() function for parsing rgba-strings.
|
|
111
|
-
- 2021-10-12
|
|
112
|
-
- Added `DrawConfig.bezier.pathVertex` and `DrawConfig.bezier.controlVertex` attributes, both `DrawSettigs`.
|
|
113
|
-
- Added optional `fill:boolean` to `DrawSettings`. This is useful to give more control over the rendering of Bézier paths.
|
|
114
|
-
- Fixed a tiny init order error in the Bézier demo.
|
|
115
|
-
- 2021-10-05
|
|
116
|
-
- Adding `drawutilssvg.addCustomStyleDefs`.
|
|
117
|
-
- Changing classname precedence in drawutilssvg: object classname first, then curClassName. by this curClassName can override the default behavior.
|
|
118
|
-
- 2021-10-04
|
|
119
|
-
- Adding the `DrawLib.rect` function to the interface.
|
|
120
|
-
- Adding a new demo: 36-lightning-algorithm.
|
|
121
|
-
- Changing param `position` of the draw, drawsvg and drawgl library from `Vertex` to `XYCoords`.
|
|
122
|
-
- Adding `drawutilssvg.rect` function.
|
|
123
|
-
- Adding `drawutilsgl.rect` function.
|
|
124
|
-
- Adding config check to `drawutilssvg.addStyleDefs` (printing warnings if incomplete).
|
|
125
|
-
- 2021-06-21 (mid-sommer)
|
|
126
|
-
- Added `Bounds.getCenter` method.
|
|
127
|
-
- Added `IBounds.getCenter`.
|
|
128
|
-
- 2021-05-31
|
|
129
|
-
- Added the `DrawLib.setConfiguration` function`.
|
|
130
|
-
- Added the `drawutils.setConfiguration` function from `DrawLib`.
|
|
131
|
-
- Added the `drawutilssvg.setConfiguration` function from `DrawLib`.
|
|
132
|
-
- Splitted up the `interfaces.ts` into several smaller files.
|
|
133
|
-
- 2021-05-25
|
|
134
|
-
- Added BezierPath.fromReducedList( Array<number >).
|
|
135
|
-
- 2021-05-21
|
|
136
|
-
- Ported gup (get-URI-params) to typescript.
|
|
137
|
-
- 2021-05-04
|
|
138
|
-
- Added Matrix4x4 datastructure for 3d transformations.
|
|
139
|
-
- 2021-04-25
|
|
140
|
-
- Extended `PlotBoilerplate.remove` to accept arrays of drawables.
|
|
141
|
-
- Added the polynomial-interpolation demo.
|
|
142
|
-
- 2021-03-30
|
|
143
|
-
- Added `DrawLib.endDrawCycle(renderTime)`.
|
|
144
|
-
- Added buffering to the SVG drawing library `drawutilssvg` (this avoids flickering on redraws).
|
|
145
|
-
- 2021-03-29
|
|
146
|
-
- Fixed a bug in the `drawutilssvg.text` function (second y param was wrong, used x here).
|
|
147
|
-
- Clearing `currentClassName` and `currentId` after drawing each drawable.
|
|
148
|
-
- Added the `draw` and `fill` params to the `preDraw` and `postDraw` functions (required for full svg export support).
|
|
149
|
-
- 2021-03-26 [v1.12.1]
|
|
150
|
-
- Published version 1.12.1
|
|
151
|
-
- 2021-03-24
|
|
152
|
-
- Added the `VEllipseSectorHelper` class.
|
|
153
|
-
- 2021-03-19
|
|
154
|
-
- Added the `VEllipse.rotate` function.
|
|
155
|
-
- Preparing a conversion function in the the draw-path demo: SVG-Arc to VEllipseSector.
|
|
156
|
-
- Fixed the entry/export for the UIDGenerator (was broken in cjs module).
|
|
157
|
-
- 2021-03-15
|
|
158
|
-
- Added `VEllipse.quarterSegmentCount` and `VEllipse.scale` functions.
|
|
159
|
-
- 2021-03-09
|
|
160
|
-
- Added the `VEllipse.toCubicBezier` method.
|
|
161
|
-
- 2021-03-09
|
|
162
|
-
- Added the `VEllipse.clone` and `VEllipse.rotate` methods.
|
|
163
|
-
- 2021-03-05
|
|
164
|
-
- Added the `VEllipse.getFoci`, `.normalAt` and `.tangentAt` methods.
|
|
165
|
-
- 2021-03-03
|
|
166
|
-
- Added the `VEllipse.vertAt` and `VEllipse.perimeter` functions.
|
|
167
|
-
- 2021-03-01
|
|
168
|
-
- Added `geomutils.wrapMax` function.
|
|
169
|
-
- Added attribute `VEllipse.rotation` to allow rotation of ellipses.
|
|
170
|
-
- Added the `rotation` param to the DrawLib.ellipse(...) function.
|
|
171
|
-
- Changed the second param `center` in the `rotate` function from Vertex to XYCoords.
|
|
172
|
-
- Fixed a bug in the `drawsvgutils.clear` function (curClassName was not cleared).
|
|
173
|
-
- Updated the `PlotBoilerplate.draw(...)` function: ellipses are now rotate-able.
|
|
174
|
-
- 2021-02-26
|
|
175
|
-
- Adding first typescript implementation of VEllipseSector class.
|
|
176
|
-
- Added helper function `VEllipseSector.ellipseSectorUtils.decribeSVGArc(...)`.
|
|
177
|
-
- Fixed an error in the CircleSector's svg-arc-calculation (case angle<90deg and anti-clockwise).
|
|
178
|
-
- 2021-02-14
|
|
179
|
-
- Added first test implementation of VEllipseSector (plus basic demo for testing).
|
|
180
|
-
- Added functions `VEllipse.radiusH` and `VEllipse.radiusV`.
|
|
181
|
-
- 2021-02-23 [v1.12.0]
|
|
182
|
-
- One step closer to use with React.
|
|
183
|
-
- 2021-02-22
|
|
184
|
-
- Added the static helper function `drawutilssvg.copyPathData(...)`.
|
|
185
|
-
- Added the `DrawLib.path` drawing function to draw SVG path data (canvas-draw, svg-draw [, gl-draw]).
|
|
186
|
-
- 2021-02-19
|
|
187
|
-
- Added the static helper function `drawutilssvg.transformPathData(...)` for svg path transformations (scale and translate).
|
|
188
|
-
- 2021-02-18
|
|
189
|
-
- Adding `PlotBoilerplate.adjustOffset(boolean)` function.
|
|
190
|
-
- 2021-02-08
|
|
191
|
-
- Added a rollup- and a typescript config to create es2015 modules (in ./src/es2015).
|
|
192
|
-
- Changed the `PBParams` interface: no longer sub-interface of `DrawConfig` (all those attributes were un-used).
|
|
193
|
-
- Ensure es2015 module compatibility of the Color class.
|
|
194
|
-
- 2021-02-03
|
|
195
|
-
- Added the static `drawusilssvg.createSvg` function.
|
|
196
|
-
- Fixed the currentId='background' bug on the drawusilssvg.clear() function.
|
|
197
|
-
- Fixed CSSProperty `stroke-width` in drawusilssvg (was line-width before, which is wrong).
|
|
198
|
-
- Added the static `drawusilssvg.HEAD_XML` attribute.
|
|
199
|
-
- 2021-02-02
|
|
200
|
-
- Added the `Bounds.toPolygon` method.
|
|
201
|
-
- 2021-01-29
|
|
202
|
-
- Added the `Polygon.signedArea` function (was global function in the demos before).
|
|
203
|
-
- Added the `Polygon.isClockwise` function.
|
|
204
|
-
- Added the `Polygon.area` function.
|
|
205
|
-
- Changed the param type for `containsVert` from Vertex to XYCoords.
|
|
206
|
-
- Added an implementation of the Sutherland-Hodgman polygon clipping algorithm.
|
|
207
|
-
- 2021-01-27 [v1.11.0]
|
|
208
|
-
- Added the new svg renderer as integrated helper.
|
|
209
|
-
- 2021-01-26
|
|
210
|
-
- CircleSectorHelper: Moving control points with center points.
|
|
211
|
-
- PlotBoilerplate class: Replaced the old SVGBuilder by the new `drawutilssvg` library.
|
|
212
|
-
- 2021-01-25
|
|
213
|
-
- Added the `DrawLib.setCurrentId` and `DrawLib.setCurrentClassName` functions.
|
|
214
|
-
- Fixed the `PBParams` interface (inluding DrawConfig).
|
|
215
|
-
- 2021-01-24
|
|
216
|
-
- Added `DrawLib.setCurrentId` function.
|
|
217
|
-
- 2021-01-22
|
|
218
|
-
- Triangle: Always updating circumcircle when retieving it.
|
|
219
|
-
- Removed `pb.redraw()` call from `CircleHelper` update handlers (changed vertices already triggered redraw).
|
|
220
|
-
- Added the `CircleSectorHelpler` class.
|
|
221
|
-
- Added the `Vertex.angle` function to determine 'angle' of the vertex relative to an origin.
|
|
222
|
-
- 2021-01-20
|
|
223
|
-
- Added `UID` interface.
|
|
224
|
-
- Added `UIDGenerator` abstract class.
|
|
225
|
-
- Added uids to all Drawables.
|
|
226
|
-
- 2021-01-10
|
|
227
|
-
- Added the `PlotBoilerplate.eventCatcher` to simplify event listening event on complex structures like SVG documents.
|
|
228
|
-
- 2021-01-08
|
|
229
|
-
- Added the customizable `PlotBoilerplate.drawAll(...)` function.
|
|
230
|
-
- 2021-01-08
|
|
231
|
-
- PlotBoilerplate main class: Added param `draw:DraLib<void>` to the methods `drawVertices`, `drawGrid` and `drawSelectPolygon`.
|
|
232
|
-
- Adding the svg-draw library (testing) in utils/helpers/.
|
|
233
|
-
- Added the customizable `PlotBoilerplate.drawAll(...)` function.
|
|
234
|
-
- 2021-01-05
|
|
235
|
-
- Added the image-loaded/broken check.
|
|
236
|
-
- Exposing the `drawDrawables` method as a static utility function (for further use).
|
|
237
|
-
- 2021-01-04
|
|
238
|
-
- Avoiding multiple redraw call on adding multiple Drawables (array).
|
|
239
|
-
- 2021-01-03
|
|
240
|
-
- Changed property in BezierPathInteractionHelper to `autoAdjustPaths` in the HandlerOptions interface (typo).
|
|
241
|
-
- Added following new functions to BezierPathInteractionHelper: `addPathVertexDragStartListeners`, `removePathVertexDragStartListeners`, `addPathVertexDragEndListeners` and `removePathVertexDragEndListeners`.
|
|
242
|
-
- 2020-12-29
|
|
243
|
-
- Constructor `BezierPath` is now private (not explicit use intended).
|
|
244
|
-
- 2020-12-28
|
|
245
|
-
- Added the `Triangle.getArea` function.
|
|
246
|
-
- Added the `Triangle.utils.signedArea` helper function.
|
|
247
|
-
- 2020-12-17
|
|
248
|
-
- Added the `CircleSector` drawable (class).
|
|
249
|
-
- Added the `SVGPathParams` type.
|
|
250
|
-
- Extended the main class `PlotBoilerplate` for circle sector rendering.
|
|
251
|
-
- Extended the `SVGBuilder` for circle sector rendering.
|
|
252
|
-
- 2020-12-11 [v1.10.0]
|
|
253
|
-
- Added the `PlotBoilerplate.removeAll(boolean)` function.
|
|
254
|
-
- 2020-12-09
|
|
255
|
-
- Ported function `findPolygonSelfIntersections` to Typescript (added to `utils/algorithms/`).
|
|
256
|
-
- 2020-12-08
|
|
257
|
-
- Adding a new demo (27) for presenting polygon clipping and polygon triangulation.
|
|
258
|
-
- 2020-12-04
|
|
259
|
-
- The `Line.intersection` function returns undefined if both lines are parallel.
|
|
260
|
-
- Changed `VertTuple.vtutils.dist2` params from `Vertex` to `XYCoords` (generalized).
|
|
261
|
-
- Changed `VertTuple.getClosestT` param from `Vertex` to `XYCoords` (generalized).
|
|
262
|
-
- Added the `VertTuple.hasPoint(XYCoords)` function.
|
|
263
|
-
- 2020-11-25
|
|
264
|
-
- Added the `isTouchEvent` param to the XMouseEvent params.
|
|
265
|
-
- 2020-11-19
|
|
266
|
-
- Set min, max, width and height to private.
|
|
267
|
-
- 2020-11-17
|
|
268
|
-
- Added the `VertexListeners.click(VertListener)` handler.
|
|
269
|
-
- Added pure click handling (no dragEnd and !wasMoved jiggliny any more) to the PlotBoilerplate.
|
|
270
|
-
- 2020-11-11
|
|
271
|
-
- Generalized `move(Vertex)` to `move(XYCoords)` in the Polygon class.
|
|
272
|
-
- Generalized the `VertTuple.add` and `VertTuple.sub` param from `Vertex` to `XYCoords`.
|
|
273
|
-
- Girih-demo: ported the GirihTile class from vanilla JS to TypeScript.
|
|
274
|
-
- 2020-11-10
|
|
275
|
-
- Added the `Polygon.getBounds()` function.
|
|
276
|
-
- 2020-11-06
|
|
277
|
-
- Added the `Polygon.move(XYCoords)` function.
|
|
278
|
-
- 2020-11-04
|
|
279
|
-
- Changed `window` to `globalThis`.
|
|
280
|
-
- 2020-11-01
|
|
281
|
-
- Migrated the build tools from Webpack-4 to Webpack-5.
|
|
282
|
-
- Moved the build scripts to ./bin.
|
|
283
|
-
- 2020-10-31
|
|
284
|
-
- Including utils in the docs now.
|
|
285
|
-
- Added thet `Polygon.getVertexAt` function.
|
|
286
|
-
- 2020-10-30
|
|
287
|
-
- Added the static Bounds.computeFromVertices(Vertex[]) function.
|
|
288
|
-
- Added the `Polygon.addVert` function.
|
|
289
|
-
- 2020-10-23
|
|
290
|
-
- Added the fillArray and fillMatrix helper function (like in lodash).
|
|
291
|
-
- Added the `Matrix`, `Interval` and `IndexPair` interfaces to the typescript definitions.
|
|
292
|
-
- Ported the `Color` library from vanilla JS to Typescript.
|
|
293
|
-
- Ported the `WebColors` selection from vanilla to TypeScript.
|
|
294
|
-
- 2020-10-19
|
|
295
|
-
- Added CircleIntersections algorithm and demo 25.
|
|
296
|
-
- 2020-10-18
|
|
297
|
-
- Added CircularIntervalset datastructure.
|
|
298
|
-
- 2020-10-16
|
|
299
|
-
- Added the Circle.containsCircle(...) function.
|
|
300
|
-
- 2020-10-15
|
|
301
|
-
- Re-added the draw.text() function.
|
|
302
|
-
- 2020-10-06
|
|
303
|
-
- Removed the .closePath() instruction from the draw.circleArc function.
|
|
304
|
-
- 2020-09-07
|
|
305
|
-
- Added the Circle.circleIntersection(Circle) function.
|
|
306
|
-
- Changed the vertAt function by switching sin and cos! The old version did not return the correct vertex (by angle) according to the assumed circle math. Please re-check your code if you already used this function.
|
|
307
|
-
- Added the drawutils.circleArc(...) function to draw sections of circles.
|
|
308
|
-
- 2020-08-19
|
|
309
|
-
- Ported the HobbyPath class from vanilla JS to TypeScript.
|
|
310
|
-
- Ported the CatmullRomPath class from vanilla JS to TypeScript.
|
|
311
|
-
- Ported the CubicSplinePath class from vanilla JS to TypeScript.
|
|
312
|
-
- Added the VertexAttr.visible attribute to toggle on/off the rendering of particular vertices.
|
|
313
|
-
- Added the VertexAnimator.Sinoid to the demos (see Hobby Curve).
|
|
314
|
-
- 2020-08-17
|
|
315
|
-
- Ported the convexHull algorithm to TypeScript.
|
|
316
|
-
- Ported the convexPolygonIncircle algorithm to TypeScript.
|
|
317
|
-
- Ported the Delaunay algorithm to TypeScript.
|
|
318
|
-
- 2020-08-12
|
|
319
|
-
- BezierPathInteractionHelper: Added a distance check before handling the click/tap event.
|
|
320
|
-
- Ported the VoronoiCell helper class (see demos) from vanilla JS to TypeScript.
|
|
321
|
-
- 2020-08-03 (1.8.3)
|
|
322
|
-
- Tweaked the BezierPathInteractionHelper.
|
|
323
|
-
- Added proper JSDoc tags to the MouseHandler and the KeyHandler.
|
|
324
|
-
- 2020-07-31
|
|
325
|
-
- Added PlotBoilerplate.getDraggedElementCount().
|
|
326
|
-
- 2020-07-28
|
|
327
|
-
- Added PlotBoilerplate.revertMousePosition(number,number) – the inverse function of transformMousePosition(...).
|
|
328
|
-
- Added Bézier curve splitting to the bezier-point-distance demo.
|
|
329
|
-
- KeyHandler: changed the 'delete' key code from 8 to 46.
|
|
330
|
-
- 2020-07-27
|
|
331
|
-
- Added the getVertexNear(XYCoords,number) function.
|
|
332
|
-
- Extended the remove(Drawable) function: vertices are now removed, too.
|
|
333
|
-
- 2020-07-24 (1.8.2)
|
|
334
|
-
- Fixed an error in the touch handlers 'tap start' function (nullpointerexception if empty area was tapped).
|
|
335
|
-
- Added CubicBezierPath.getClosestT(Vertex) function.
|
|
336
|
-
- Added BezierPath.getClosestT(Vertex) function.
|
|
337
|
-
- 2020-07-22
|
|
338
|
-
- Fixed missing dragStart and dragEnd events in touch mode (after switching from Touchy to AlloyFinger).
|
|
339
|
-
- 2020-07-21
|
|
340
|
-
- Changed the safeMargeByKeys function: all keys, from source and destination, will be used now.
|
|
341
|
-
- Changed the fetch.bool and fetch.number function: they will try a JSON.parse now on type mismatch (and use the fallback on failure of that).
|
|
342
|
-
- 2020-07-15
|
|
343
|
-
- Included the Bounds class into the bundle.
|
|
344
|
-
- Added the PlotBoilerplate.fitToBounds(Bounds) function to make zooming onto particular areas easier.
|
|
345
|
-
- 2020-07-14
|
|
346
|
-
- Changed the CubicBezierCurve.moveCurvePoint(...,Vertex) to moveCurvePoint(...,XYCoords), which is more generic.
|
|
347
|
-
- Changed the BezierPath.moveCurvePoint(...,Vertex) to moveCurvePoint(...,XYCoords), which is more generic.
|
|
348
|
-
- Added the autoDetectRetina param to PlotBoilerplate.
|
|
349
|
-
- 2020-07-06
|
|
350
|
-
- Added AlloyFinger support (will replace Touchy.js).
|
|
351
|
-
- Following new touch actions are now possible: panning (two fingers), zoominng (two fingers).
|
|
352
|
-
- 2020-07-03
|
|
353
|
-
- Fixed the selectedVerticesOnPolyon(Polygon) function: non-selectable vertices were selected too, before.
|
|
354
|
-
- Added the CubicBezierPath.getBounds() function.
|
|
355
|
-
- BezierPath: Made the private helper functions \_locateUIndex, adjustPredecessorControlPoint,
|
|
356
|
-
adjustSuccessorControlPoint to a private function.
|
|
357
|
-
- Added the BezierPath.getBounds() function.
|
|
358
|
-
- Added draw.rect(Vertex,number,number) function.
|
|
359
|
-
- 2020-07-01 (1.8.1)
|
|
360
|
-
- Tweaked the pattern gradient demo (rotation and scale).
|
|
361
|
-
- Prepared a new demo: with THREE.js.
|
|
362
|
-
- Changed the scope of BezierPath.fromJSON (is now static, was an instance method before).
|
|
363
|
-
- 2020-06-22 (1.8.0)
|
|
364
|
-
- Added the rasterScaleX and rasterScaleY config params.
|
|
365
|
-
- Added a context.clearRect() call to the clear() function; clearing with alpha channel did not work as expected.
|
|
366
|
-
- 2020-06-09
|
|
367
|
-
- Defined new private interface IDraggable and move the Draggable class into the main class.
|
|
368
|
-
- Refactored the JSDoc layout template for larger screens.
|
|
369
|
-
- Fixed the problem of undocumented main class (no docs in HTML were generated).
|
|
370
|
-
- 2020-05-26 (pap's 74s birthday)
|
|
371
|
-
- Added functions Vertex.addX(number) and Vertex.addY(number).
|
|
372
|
-
- 2020-05-25
|
|
373
|
-
- Added the Circle.vertAt and the Circle.tangentAt functions.
|
|
374
|
-
- Added the basics for the gradient-pattern demo.
|
|
375
|
-
- 2020-05-20
|
|
376
|
-
- Created a script for the minmal npm package.
|
|
377
|
-
- 2020-05-18
|
|
378
|
-
- Added the Triangle.getIncenter() function.
|
|
379
|
-
- Added VoronoiCell.toPolygon() in the demos.
|
|
380
|
-
- Added proper JSDoc tags to the VoronoiCell class.
|
|
381
|
-
- 2020-05-15 (v1.7.8)
|
|
382
|
-
- Moved the bezier-autoadjust handling to a private helper function. Fixed the auto-update of last control point.
|
|
383
|
-
- 2020-05-12 (v1.7.7)
|
|
384
|
-
- The VertTuple.angle(line) param was still not optional. Changed that.
|
|
385
|
-
- Added the geomutils helper. First helper function: nsectAngle. (moved this from the demos).
|
|
386
|
-
- Added Triangle.getIncircularTriangle().
|
|
387
|
-
- Added Triangle.getIncircle().
|
|
388
|
-
- Changed the license vom CC-BY-4.0 to MIT.
|
|
389
|
-
- 2020-05-12 (v1.7.6)
|
|
390
|
-
- Fixed the annoying [Ctrl]-pressed bug; the reason was the missing key-up evend after [Ctrl]+[t].
|
|
391
|
-
This was browser-specific.
|
|
392
|
-
- Drawing any handles (square, circle, diamond) with lineWidth 1 now; this was not reset before.
|
|
393
|
-
- 2020-05-11 (v1.7.5)
|
|
394
|
-
- PlotBoilerplat.viewport() now return a proper Bounds instance.
|
|
395
|
-
- Added new class Bounds (implementing IBounds and XYDimension).
|
|
396
|
-
- Renamed interface Bounds to IBounds.
|
|
397
|
-
- Fixed a bug in the Triangle.getCircumcircle function (center was not cloned).
|
|
398
|
-
- Updated all demos with the new Circle class.
|
|
399
|
-
- Removed the BezierPath.\_roundToDigits helper function. Using Number.toFixed instead.
|
|
400
|
-
- Added proper JSDoc class specifications to Bounds, Triangle and Circle.
|
|
401
|
-
- 2020-05-09 (v1.7.4)
|
|
402
|
-
- Included the Circle class from the demos into the plot-boilerlplate core repertoire.
|
|
403
|
-
- 2020-05-05
|
|
404
|
-
- Added the 'lineWidth' param to the circle(...) function.
|
|
405
|
-
- Finished the circle-in-convex-polygog demo.
|
|
406
|
-
- 2020-05-04
|
|
407
|
-
- Added a stub for the circle-in-convex-polygon demo.
|
|
408
|
-
- Fixed a serious bug in the VertTuple.pointDistance function.
|
|
409
|
-
- Refactored the VertTuple class a bit. Added missing JSDoc tags.
|
|
410
|
-
- Added the VertTuple.getClosestPoint(Vertex) function.
|
|
411
|
-
- 2020-04-27
|
|
412
|
-
- Added the Urquhart graph demo.
|
|
413
|
-
- 2020-04-08
|
|
414
|
-
- Fixed the MouseHandler's click event (internally fired a 'mouseup' event).
|
|
415
|
-
- The new version always installs internal listenrs to track drag events even
|
|
416
|
-
if there is no external drag listener installed (1.1.0).
|
|
417
|
-
- 2020-04-07 (v1.7.1)
|
|
418
|
-
- Fixed an error in the draw.grid(...) function. Non-rastered grids were not properly drawn on zoom and
|
|
419
|
-
pan comibinations.
|
|
420
|
-
- 2020-04-06
|
|
421
|
-
- Fixed the radius error in the drawutils.circleHandle function. The radius parameter had no effect and circle
|
|
422
|
-
handles were always rendered with radius 3.
|
|
423
|
-
- 2020-04-03 (v1.7.0)
|
|
424
|
-
- Fixed broken SVG export (after porting to TS).
|
|
425
|
-
- Fixed broken canvas resizer (after porting to TS).
|
|
426
|
-
- 2020-04-01
|
|
427
|
-
- Refactored Jekyll config to work with the new paths (post Typescript migration).
|
|
428
|
-
- Refactored the demos to work with the new paths (post Typescript migration).
|
|
429
|
-
- 2020-03-31
|
|
430
|
-
- Reconfigured the typescript compiler for es5.
|
|
431
|
-
- Reconfigured webpack.
|
|
432
|
-
- Tweaked the main demo for some moved files.
|
|
433
|
-
- 2020-03-30
|
|
434
|
-
- Ported the main class of PlotBoilerplate to Typescript.
|
|
435
|
-
- Moved the RectSelector from the main class to the demo section.
|
|
436
|
-
- Added a utils wrapper that intializes the GUI (dat.gui.GUI).
|
|
437
|
-
- Updated the logistic-map demo.
|
|
438
|
-
- 2020-03-28
|
|
439
|
-
- Ported following classes to Typescript: KeyHandler.
|
|
440
|
-
- 2020-03-25
|
|
441
|
-
- Ported following classes to Typescript: drawutils, drawutilsgl, Grid, VEllipse, Triangle, SVGBuilder, MouseHandler.
|
|
442
|
-
- 2020-03-24
|
|
443
|
-
- Ported following classes to Typescript: CubicBezierCurve, BezierPath, Polygon, gup.
|
|
444
|
-
- Added VertTuple<T> to solve the subclassing and clonable problem.
|
|
445
|
-
- 2020-03-23
|
|
446
|
-
- Ported following classes to Typescript: Vertex, Line, VertexAttr, VertexListeners.
|
|
447
|
-
- 2020-03-17
|
|
448
|
-
- Added the Triangle.toPolygon() function.
|
|
449
|
-
- Added proper JSDoc tags to the Triangle class.
|
|
450
|
-
- Added a new demo: ported the Morley-Triangle visualization (from an older project).
|
|
451
|
-
- Fixed an issue in the safeMergeKeys function ('funcion' type was flawed).
|
|
452
|
-
- 2020-03-16
|
|
453
|
-
- Added Triangle.fromArray(Array) function.
|
|
454
|
-
- The Line.angle(Line) parameter is now optional. The baseline (x-axis) will be used if not defined.
|
|
455
|
-
- 2020-02-29
|
|
456
|
-
- Added the VertexAttr.selectable attribute.
|
|
457
|
-
- 2020-02-22
|
|
458
|
-
- Added 'return this' to VertexListeners addDragListener, addDragStartListener, addDragEnd functions (for chanining).
|
|
459
|
-
- 2020-02-11
|
|
460
|
-
- Added 'return this' to the BezierPath.scale(Vertex,number) and to the .translace(Vertex) functions.
|
|
461
|
-
- 2020-02-10
|
|
462
|
-
- Added the CubixBezierCurve.reverse() function.
|
|
463
|
-
- Fixed the CubicbezierCurve.translate(Vector) function (returning 'this' was missing).
|
|
464
|
-
- 2020-02-09
|
|
465
|
-
- Added the BezierPath.getSubPathAt(number,number) function.
|
|
466
|
-
- 2020-02-08
|
|
467
|
-
- Added the CubicBezierCurve isInstance(any) function.
|
|
468
|
-
- 2020-02-07
|
|
469
|
-
- Added function BezierPath.locateCurveByEndPoint( Vertex ).
|
|
470
|
-
- Added handling for the end- and end-control-points of non-cirular Bézier paths (was still missing).
|
|
471
|
-
- Added functions Vertex.invX() and Vertex.invY().
|
|
472
|
-
- Added the CubicBezierCurve.getSubCurveAt(number,number) function.
|
|
473
|
-
- Fixed a drag-amount bug in the move handling of end points of Bezier paths (control points was not properly moved when non circular).
|
|
474
|
-
- Fixed a serious bug in the arc lenght calculation (length was never reset, urgh).
|
|
475
|
-
- 2020-01-13
|
|
476
|
-
- Added a 'CanvasPointList' to the demos to make point count managing easier.
|
|
477
|
-
- 2020-01-09
|
|
478
|
-
- Added the 'lineWidth' param to the draw.ellipse(...) function.
|
|
479
|
-
- Fixed a bug in the Color.parse(string) function. Hex color with three elements were consideres faulty.
|
|
480
|
-
- Added a getContrastColor(color) helper function to the demo directory. This requires a color object, not a string!
|
|
481
|
-
- 2019-12-20
|
|
482
|
-
- Added the 'lineWidth' param to the draw.polyline(...) function.
|
|
483
|
-
- 2019-12-18
|
|
484
|
-
- Added the draw.quadraticBezier(...) function (for the sake of approximating Lissajous curves).
|
|
485
|
-
- 2019-12-15
|
|
486
|
-
- Added the Line.moveTo(Vertex) fucnction.
|
|
487
|
-
- 2019-12-11
|
|
488
|
-
- Added the 'color' param to the draw.label(...) function.
|
|
489
|
-
- Fixed the draggable-intersection-point issue in the line-point-distance demo.
|
|
490
|
-
- Added a working bark-beetle-tunnel demo to the line-point-distance demo. There was an odering problem.
|
|
491
|
-
- 2019-12-09
|
|
492
|
-
- Fixed the Triangle.determinant() function. The calculation was just wrong.
|
|
493
|
-
- Removed an unnecesary if-condition from the VoronoiCell.\_calculateOpenEdgePoint(...) helper function.
|
|
494
|
-
- Extended the line-point-distance demo with some toy features.
|
|
495
|
-
- 2019-12-08 (1.6.3)
|
|
496
|
-
- Fixed a css scale bug in the viewport() function.
|
|
497
|
-
- Added the drawconfig UI panel (line colors and line widths).
|
|
498
|
-
- 2019-12-07
|
|
499
|
-
- Added a fallback CSS raster (inline PNG).
|
|
500
|
-
- Added the drawConfig for lines, polygons, ellipse, triangles, bezier curves and image control lines.
|
|
501
|
-
- Added a new demo for bezier spline interpolation.
|
|
502
|
-
- 2019-12-04 (1.6.0)
|
|
503
|
-
- Added relative positioned zooming.
|
|
504
|
-
- Added offsetX and offsetY params.
|
|
505
|
-
- Added an 'Set to fullsize retina' button to the GUI config.
|
|
506
|
-
- Added the Vector.inv() function.
|
|
507
|
-
- 2019-12-03
|
|
508
|
-
- Fixed a bug in the Bézier perpenicular demo (arc length were not updated after changes or before redraw).
|
|
509
|
-
- 2019-12-02 (1.5.1)
|
|
510
|
-
- Fixed the CubicBezierCurve.updateArcLength function. It used the wrong pointAt function.
|
|
511
|
-
- Added the Bézier perpendicular demo (11).
|
|
512
|
-
- Added the demo for simple tween animations (using GSAP).
|
|
513
|
-
- 2019-11-22
|
|
514
|
-
- Added the Polygon.rotate(number,Vertex) function.
|
|
515
|
-
- Fixed a bug in Vertex.rotate(...).
|
|
516
|
-
- Added a second workaround for th drawImage bug in Safari.
|
|
517
|
-
- Added a GSAP/TweenMax animation example.
|
|
518
|
-
- 2019-11-21
|
|
519
|
-
- Fixed a bug in the rotate(...) function (elements were moved).
|
|
520
|
-
- 2019-11-19
|
|
521
|
-
- Fixed a bug in the resizeCanvas function; retina resolution was not possible.
|
|
522
|
-
- 2019-11-18 (1.5.0)
|
|
523
|
-
- Added the Triangle class as a direct drawable class to the PlotBoilerplate (was in the demos only before).
|
|
524
|
-
- Added the drawutils.polyline(Vertex[],boolean,color) function.
|
|
525
|
-
- The PlotBoilerplate.add(...) function now works with arrays, too.
|
|
526
|
-
- Added the \_handleColor helper function to determine the render color of non-draggable vertices.
|
|
527
|
-
- Fixed the BezierPath.clone function: adjustCircular attribute was not cloned.
|
|
528
|
-
- Added the Vertex.rotate(number,Vertex) function.
|
|
529
|
-
- Added the BezierPath.rotate(number,Vertex) function.
|
|
530
|
-
- Non-draggable vertices are now be excluded by the locateNear(...) function. There is no use locating
|
|
531
|
-
non-draggable vertcies as they may block underlying draggable vertices.
|
|
532
|
-
- 2019-11-13
|
|
533
|
-
- Fixed an issue with the mouse-sensitive area around vertices (were affected by zoom).
|
|
534
|
-
- 2019-11-07
|
|
535
|
-
- Added Vertex.toSVGString(object) function.
|
|
536
|
-
- Added Polygon.Added toCubicBezierPath(number) function.
|
|
537
|
-
- Added SVG export for postDraw-rendering in the Voronoi demo.
|
|
538
|
-
- Added the 'Triangle' style class to the SVGBuilder.
|
|
539
|
-
- 2019-11-06
|
|
540
|
-
- Added fetch.num, fetch.val, fetch.bool, fetch.func functions for easier config props fetching.
|
|
541
|
-
- 2019-10-30
|
|
542
|
-
- Renamed the demo/VertexAnimator to demo/VertexAnimator.Linear.
|
|
543
|
-
- Added a new class demo/VertexAnimator.Cirular.
|
|
544
|
-
- 2019-10-25
|
|
545
|
-
- Added proper JSDoc comments to the Voronoi cell code.
|
|
546
|
-
- Polygons are no longer drawn with dashed lines (solid lines instead).
|
|
547
|
-
- Added the Polygon.scale(number,Vertex) function.
|
|
548
|
-
- Fixed a serious bug in the VoronoiCell.toPathArray function; cell with only one vertex (extreme cases) returned invalid arrays which broke the rendering.
|
|
549
|
-
- 2019-10-03
|
|
550
|
-
- Added the {draw,drawgl}.beginDrawCycle fuction.
|
|
551
|
-
- 2019-09-18
|
|
552
|
-
- Added an experimental GL drawing stub (drawgl).
|
|
553
|
-
- 2019-09-12
|
|
554
|
-
- Added JSDoc compliant comments to the (inofficial) Triangle class.
|
|
555
|
-
- 2019-09-11
|
|
556
|
-
- (Inofficial) Added the Triangle.scaleToCentroid(Number) function (used by the walking triangle demo).
|
|
557
|
-
- 2019-09-02
|
|
558
|
-
- Added the Line.add( Vertex ) function.
|
|
559
|
-
- Added the Vector.perp() function for calculating perpendiculars (required for the upcoming GLSL support).
|
|
560
|
-
- Added the Vector.inverse() function.
|
|
561
|
-
- Added the Line.denominator( Line ) function.
|
|
562
|
-
- Fixed a severe error in the Line.intersection( Line ) function (class Point was renamed to Vertex).
|
|
563
|
-
- 2019-04-28
|
|
564
|
-
- Added Math.round to the dot() drawing parameters to really draw a singlt dot.
|
|
565
|
-
- Added the preClear callback param (called before the canvas was cleared on redraw and before any elements are drawn).
|
|
566
|
-
- Fixed a bug in the Line.sub( Vertex ) function (was not working).
|
|
567
|
-
- 2019-04-27
|
|
568
|
-
- Fixed a severe drawing bug in the arrow(...) function. Scaling arrows did not work properly.
|
|
569
|
-
- Changed the vectorfield demo to a more beautiful one.
|
|
570
|
-
- Watched the ending of star trek discovery when doing that.
|
|
571
|
-
- 2019-04-24
|
|
572
|
-
- Added the Vertex.randomVertex(ViewPort) fuction.
|
|
573
|
-
- Added the VertexAnimator for demos.
|
|
574
|
-
- 2019-04-17
|
|
575
|
-
- Added the PlotBoilerplate.removeVertex(Vertex,boolean) function.
|
|
576
|
-
- 2019-04-16
|
|
577
|
-
- Added the PlotboilerPlate.remove(drawable) function.
|
|
578
|
-
- Added the draw.cubicBezierPath(path,color) function.
|
|
579
|
-
- Added the Voronoi and Delaunay demo.
|
|
580
|
-
- 2019-04-12
|
|
581
|
-
- Added the PlotBoilerplate.drawConfig with 'drawVerices' attribute.
|
|
582
|
-
- Extended the gui a bit.
|
|
583
|
-
- 2019-04-11
|
|
584
|
-
- Added the 'drawGrid' config param.
|
|
585
|
-
- Added the simple animation demo.
|
|
586
|
-
- Added the PlotBoilerplate.viewport() function.
|
|
587
|
-
- 2019-04-07
|
|
588
|
-
- Re-styled the website, optimized the css, merged jekyll-css with jsdoc-css.
|
|
589
|
-
- 2019-04-03
|
|
590
|
-
- Fixed wrong positioning on touch devices when canvas is not located at (0,0). Touch-drag is now working.
|
|
591
|
-
- Tweaked the fit-to-parent function. This is now working and respecting paddings and borders.
|
|
592
|
-
- Added a fix for Touchy.js: e.preventDefault() to avoid window scrolling during element drag (touch-move).
|
|
593
|
-
- 2019-03-28
|
|
594
|
-
- Mouse wheel zoom now calls e.preventDefault().
|
|
595
|
-
- Added the unminified-webpack-plugin.
|
|
596
|
-
- Removed the overlay-dialog from the plot-boilerplate as it was not used at all.
|
|
597
|
-
- 2019-03-27
|
|
598
|
-
- Renamed the repository from plot-boilerplate to plotboilerplate.
|
|
599
|
-
- 2019-03-25
|
|
600
|
-
- Moved the collection demo scripts to demo/.
|
|
601
|
-
- 2019-03-23
|
|
602
|
-
- Added more JSDoc code.
|
|
603
|
-
- Changed the default value of config param 'drawOrigin' to false.
|
|
604
|
-
- Swapped the BezierPath.getPoint and getPointAt to match the semantics with linear interpolation in the Line class. This makes the class incompatible with older versions! Thus: BezierPath version 2.0.
|
|
605
|
-
- 2019-03-20
|
|
606
|
-
- Added JSDoc inline documentation for these classes: Vertex, Line, Vector, VertexAttr, VertexListeners, Polygon.
|
|
607
|
-
- 2019-02-23
|
|
608
|
-
- Removed the 'rebuild' function as it had no purpose.
|
|
609
|
-
- Added scaling of the click-/touch-tolerance with the CSS scale.
|
|
610
|
-
- Added the helper function PlotBoilerplate.utils.buildArrowHead(Vertex,Vertex,Number,Number,Number).
|
|
611
|
-
- Added the Vector.toSVGString function, overriding Line.toSVGString.
|
|
612
|
-
- Tweaked the initial vector field demo a little bit (it's really fancy now but still not yet finished).
|
|
613
|
-
- 2019-02-20
|
|
614
|
-
- Removed the 'loadFile' entry from the GUI as it was experimental and never in use.
|
|
615
|
-
- 2019-02-19
|
|
616
|
-
- Added the Vertex.difference(Vertex) function.
|
|
617
|
-
- Put the TouchHandler back because it is badly coded and rubbish. Used Touchy.js instead.
|
|
618
|
-
- Added two new constants: DEFAULT_CLICK_TOLERANCE and DEFAULT_TOUCH_TOLERANCE. Touch devices have larger tolerance now.
|
|
619
|
-
- Added the second param to the locatePointNear(Vertex,Number) function.
|
|
620
|
-
- 2019-02-14
|
|
621
|
-
- Added the console for debugging (setConsole(object)).
|
|
622
|
-
- 2019-02-10
|
|
623
|
-
- Fixed a draggable-bug in PBImage handling (scaling was not possible).
|
|
624
|
-
- Added the 'enableTouch' option (default is true).
|
|
625
|
-
- 2019-02-06
|
|
626
|
-
- Vertices (instace of Vertex) can now be added using PlotBoilerplate.add(Object).
|
|
627
|
-
- Added the 'draggable' attribute to the vertex attributes.
|
|
628
|
-
- Added the point-to-line distance demo.
|
|
629
|
-
- 2019-02-03
|
|
630
|
-
- Removed the drawBackgroundImage() function, with had no purpose at all. Just add an image to the drawables-list.
|
|
631
|
-
- 2019-02-02
|
|
632
|
-
- Added the 'canvasWidthFactor' and 'canvasHeightFactor' params.
|
|
633
|
-
- 2019-01-30
|
|
634
|
-
- Fixed the offsetAdjustXPercent and offsetAdjustYPercent bug. They are working properly now.
|
|
635
|
-
- Added the Vector class (subclass of Line).
|
|
636
|
-
- Added the draw.arrow(Vertex,Vertex,color) function for drawing arrow heads.
|
|
637
|
-
- Added the Vertex.setX(Number) and Vertex.setY(Number) functions.
|
|
638
|
-
- Added the PBImage type.
|
|
639
|
-
- Added image rendering.
|
|
640
|
-
- 2019-01-14
|
|
641
|
-
- Added params 'drawBezierHandleLines' and 'drawBezierHandlePoints'.
|
|
642
|
-
- Added the 'redraw' param to the add() function.
|
|
643
|
-
- 2018-12-30
|
|
644
|
-
- Added the PlotBoilerplate.RectSelector helper for selecting sub
|
|
645
|
-
areas of the current plot without interfering with the current
|
|
646
|
-
plot progress.
|
|
647
|
-
- 2018-12-29
|
|
648
|
-
- Renamed the 'autoCenterOffset' param to 'autoAdjustOffset'.
|
|
649
|
-
- Added the params 'offsetAdjustXPercent' and 'offsetAdjustYPercent'.
|
|
650
|
-
- 2018-12-29
|
|
651
|
-
- Fixed a bug in the Feigenbaum demo: y was plotted inverted.
|
|
652
|
-
- 2018-12-28
|
|
653
|
-
- Removed the unused 'drawLabel' param.
|
|
654
|
-
- Added the 'enableMouse' and 'enableKeys' params.
|
|
655
|
-
- 2018-12-21
|
|
656
|
-
- Added the Vertex.inv() function.
|
|
657
|
-
- Fixed the grid offset problem. Grid is now always drawn in visible center.
|
|
658
|
-
- Logarithmic reduction of the grid is now working.
|
|
659
|
-
- Added a small test case for balanced binary search trees.
|
|
660
|
-
- Refactored the redraw() function into several sub-functions for drawing several elements.
|
|
661
|
-
- 2018-12-20
|
|
662
|
-
- Fixed a bug in the location-transformation (did not consider the CSS scale yet).
|
|
663
|
-
- 2018-12-19
|
|
664
|
-
- Added cssScaling for the canvas. This allows other resolutions than 1:1.
|
|
665
|
-
- 2018-12-18
|
|
666
|
-
- Added the config.redrawOnResize param.
|
|
667
|
-
- Added the config.defaultCanvasWidth and config.defaultCanvasHeight params.
|
|
668
|
-
- Fixed the action bugs for the default overlay buttons (OK and cancel had no action assigned).
|
|
669
|
-
- Added a default function for creating a dat.gui interface.
|
|
670
|
-
- 2018-12-09
|
|
671
|
-
- Minimal zoom is now 0.01.
|
|
672
|
-
- Added Grid.utils.baseLog(Nnumber,Number) and Grid.utils.mapRasterScale(Number,Number).
|
|
673
|
-
- Bézier control points are not selectable any more.
|
|
674
|
-
- Basic SVG export works now.
|
|
675
|
-
- Added toSVGString to VEllipse class.
|
|
676
|
-
- Added to SVGString to Polygon class.
|
|
677
|
-
- Added a Line class.
|
|
678
|
-
- Changed Bézier control points rendering.
|
|
679
|
-
- Added a demo plot: main-feigenbaum.html.
|
|
680
|
-
- 2018-12-06
|
|
681
|
-
- Changed the CTRL key to the ALT key (for panning).
|
|
682
|
-
- Fixed a translate an scale issue in the SVG builder.
|
|
683
|
-
- The constructor's config-param is in use now.
|
|
684
|
-
- 2018-12-05
|
|
685
|
-
- Added the Vertex.sub(x,y) function.
|
|
686
|
-
- Added the Line class.
|
|
687
|
-
- Moved the demo code (Line, Polygon, Bezier, Circle) to the index.js file.
|
|
688
|
-
- Expanded the Vertex.add(...) function. Now add(number,number) and add(Vertex) are allowed.
|
|
689
|
-
- 2018-12-04
|
|
690
|
-
- Added a simple SVGBuilder.
|
|
691
|
-
- 2018-11-30
|
|
692
|
-
- Added the mouse position display.
|
|
693
|
-
- 2018-11-28
|
|
694
|
-
- Extended the VertexAttr class (extended the event params by the affected vertex).
|
|
695
|
-
- Added BezierPath.locateCurveBy\*Point(Vertex) functions.
|
|
696
|
-
- Added the mousewheel listener to the MouseHandler.
|
|
697
|
-
- Added mousewheel zoom.
|
|
698
|
-
- Added the VEllipse (vertex-ellipse) class and ellipse drawing.
|
|
699
|
-
- Added the Grid class.
|
|
700
|
-
- Added the grid() function to the draw class.
|
|
701
|
-
- 2018-11-27
|
|
702
|
-
- Added an attribute model to the VertexAttr class.
|
|
703
|
-
- Changing bezier path points with holding down 'y'+click is now possible (bezier-autoadjust).
|
|
704
|
-
- Added a new function to the draw class: diamondHandle.
|
|
705
|
-
- 2018-11-20
|
|
706
|
-
- Bézier curve does now auto adjust when dragging path points and control points.
|
|
707
|
-
- BezierPath implementation now support circular paths.
|
|
708
|
-
- Fixed some issues in the dat.gui interface configuration. Axis independent scaling works now.
|
|
709
|
-
- 2018-11-19
|
|
710
|
-
- Re-animated the CubicBezierCurve class and the BezierPath class.
|
|
711
|
-
- Added multi-select and multi-drag option.
|
|
712
|
-
- Made elements selectable (with holding SHIFT).
|
|
713
|
-
- Added panning (move the canvas origin by pressing CTRL and drag).
|
|
714
|
-
- Implemented zoom into dat.gui interface.
|
|
715
|
-
- 2018-11-17
|
|
716
|
-
- Added the Polygon class.
|
|
717
|
-
- Added npm/webpack for compiling and code minification.
|
|
718
|
-
- 2018-11-11
|
|
719
|
-
- Added a simple KeyHandler for receiving key events.
|
|
720
|
-
- 2018-11-10
|
|
721
|
-
- Renamed the js/ direcotory to src/.
|
|
722
|
-
- 2018-11-09
|
|
723
|
-
- Refactored the main script to a class.
|
|
724
|
-
- 2018-10-31
|
|
725
|
-
- Added the Vertex class from an older project.
|
|
726
|
-
- Added the VertexAttr class (not yet in use).
|
|
727
|
-
- Added the VertexListeners class (not yet in use).
|
|
728
|
-
- Added the MouseListener from an older project.
|
|
729
|
-
- Can drag vertices around now.
|
|
730
|
-
- 2018-10-23
|
|
731
|
-
- Init.
|