Releases: alexbol99/flatten-js
Releases · alexbol99/flatten-js
Fix export mjs module entry point
What's Changed
- Fix export es6 module, added export section to package.json:
"exports": {
"types": "./index.d.ts",
"require": "./dist/main.cjs",
"import": "./dist/main.mjs",
"default": "./dist/main.umd.js"
}
Related issues: Typings exported incorrectly #128 by @alecmev
New Contributors
Full Changelog: v1.4.4...v1.4.5
Fix export Flatten from index.d.ts
What's Changed
Export Flatten as namespace in index.d.ts:
export = Flatten;
export as namespace Flatten;
So that following import is possible:
import {Point} from "flatten-js/core"
Also mentioned by @romgrk
- Typescript: add scale to declared Polygon functions by @ebshimizu in #152
New Contributors
- @redexp made their first contribution in #38
- @ebshimizu made their first contribution in #152
Full Changelog: v1.4.3...v1.4.4
Fix typescript issues
Fix issues in polygon-offset
Bug fix
- Export SmartIntersection module to expose its usage in polygon-offset
Support ray intersection
New features
Support ray intersection with all other classes
See example https://observablehq.com/@alexbol99/test-ray-intersection
Support affine transformations for all classes
What's Changed
- Support translate, rotate, scale for all classes by @alexbol99 in #146
New features
- Point, Segment, Arc, Line, Ray, Circle, Box and Polygon have
rotate
,translate
andscale
methods - Box rotation is not supported. An attempt rotate box throws an exception
Operation is not supported
- Circle scale is allowed only when circle is placed in (0,0) and scaling factor sx == sy.
- Examples: point, segment, arc, circle, box, line and ray