Skip to content

Releases: alexbol99/flatten-js

Fix export mjs module entry point

01 Dec 18:12
Compare
Choose a tag to compare

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

  • TypeScript: corrected Segment.sortPoints method name by @Spoiple in #155

New Contributors

Full Changelog: v1.4.4...v1.4.5

Fix export Flatten from index.d.ts

27 Sep 12:41
8ad1e17
Compare
Choose a tag to compare

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

Full Changelog: v1.4.3...v1.4.4

Fix typescript issues

03 Sep 11:30
Compare
Choose a tag to compare

Patch 1.4.3

What's Changed

  • Fix: TS definition for "translate" method of Point class by @aiiak in #150
  • Fixed issue: v1.4 Relations.intersect() doesn't allow Polygon argument #149

New Contributors

Full Changelog: v1.4.2...v1.4.3

Fix issues in polygon-offset

29 Aug 14:10
Compare
Choose a tag to compare

Bug fix

  • Export SmartIntersection module to expose its usage in polygon-offset

Support ray intersection

17 Aug 21:09
Compare
Choose a tag to compare

New features

Support ray intersection with all other classes
See example https://observablehq.com/@alexbol99/test-ray-intersection
image

Support affine transformations for all classes

31 Jul 13:36
Compare
Choose a tag to compare

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 and scale 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

v1.2.8

23 May 12:24
Compare
Choose a tag to compare

Commits on May 23, 2020

  • Issue #45 The Typescript definitions aren't up to date … 7323efb

Commits on May 16, 2020

v1.2.6

08 May 12:28
Compare
Choose a tag to compare
  • [question] Is there a way to find the center point of a shape? #43
  • [bug] Intersect does not seem to work when a shape is inside another #42
  • [enhancement] Intersect between two circles missing #41

v1.2.5

07 May 09:52
Compare
Choose a tag to compare

Commits on Apr 30, 2020

  • Added relation between circles, boxes and polygon (issue #41 Inters… … b15a45e
  • Fix issue #42 Intersect does not seem to work when a shape is insid… … 5f8524a

Commits on May 02, 2020

v1.2.4

29 Apr 09:16
Compare
Choose a tag to compare

No changelog for this release.