Skip to content

Commit

Permalink
v.0.9.9
Browse files Browse the repository at this point in the history
* rename classes
* better bounding boxes, convex hulls
* simplify/minify code
* update examples, docs, tests
  • Loading branch information
foo123 committed Jan 5, 2023
1 parent 3c8d689 commit c27c0b1
Show file tree
Hide file tree
Showing 26 changed files with 848 additions and 692 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Computational Geometry and Rendering library for JavaScript

**version: 0.9.8** (72 kB minified)
**version: 0.9.9** (71 kB minified)


[API Reference](/manual.md)
Expand All @@ -27,7 +27,7 @@ Examples:
[See it](https://foo123.github.io/examples/geometrize/)

```javascript
const {Plane, CompositeCurve, ParametricCurve, Ellipse, Circle, Arc, QBezier, CBezier, Line, Polyline, Polygon, Rect, Matrix} = Geometrize;
const {Plane, CompositeCurve, ParametricCurve, Ellipse, Circle, Arc, QBezier, CBezier, Line, Polyline, Polygon, Rect, Matrix2D} = Geometrize;
const plane = Plane(document.getElementById('container'), 0, 0, 300, 300);
const spiral = ParametricCurve((t) => ({x:190 + t*50*Math.cos(t*6*Math.PI), y:80 + t*50*Math.sin(t*6*Math.PI)}));
const ellipse = Ellipse([40,40], 30, 10, -45);
Expand All @@ -40,7 +40,7 @@ const curve = CompositeCurve([
Arc([40,100], [40,80], 10, 10, 0, 0, 0),
QBezier([[40,80],[20,100],[60,120]]),
Line([60,120], [70,100])
]).transform(Matrix.translate(-20, 0));
]).transform(Matrix2D.translate(-20, 0));
const line1 = Line([20,20], [60,60]).setStyle('stroke', 'blue');
const line2 = Line([50,2], [20,70]).setStyle('stroke', 'green');
const line3 = Line([60,160], [300,0]).setStyle('stroke', 'orange');
Expand Down
10 changes: 5 additions & 5 deletions beeld.config
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ tasks =[{}]
./src/header.js
./src/Changeable.js
./src/Value.js
./src/Matrix.js
./src/Matrix2D.js
./src/Style.js
./src/Primitive.js
./src/Object2D.js
./src/Point.js
./src/Topos.js
./src/Curve.js
./src/Curve2D.js
./src/Line.js
./src/Polyline.js
./src/Arc.js
Expand All @@ -38,7 +38,7 @@ tasks =[{}]
./src/Polygon.js
./src/Circle.js
./src/Ellipse.js
./src/Shape.js
./src/Shape2D.js
./src/Plane.js
./src/utils.js
./src/footer.js
Expand All @@ -48,7 +48,7 @@ tasks =[{}]
header = ./src/header.js

replace =[{}]
"@@VERSION@@" = "0.9.8"
"@@VERSION@@" = "0.9.9"
"@@DATE@@" = Xpresion::date("Y-m-d H:i:s")
@

Expand Down
Loading

0 comments on commit c27c0b1

Please # to comment.