Releases: jonobr1/two.js
Releases · jonobr1/two.js
Official Stable Release of v0.8.14
What's Changed
- Made
objectBoundingBox
application consistent accross renderers - Patched texture scaling in
Two.SVGRenderer
- Update to Typescript definitions. by @kevin-nano in #721
- Fixed Typescript BoundingBox imports. by @kevin-nano in #722
New Contributors
- @kevin-nano made their first contribution in #721
Full Changelog: v0.8.13...v0.8.14
Official Stable Release of v0.8.13
Official Stable Release of Version 0.8.12
Official Stable Release of Version 0.8.11
What's Changed
- Fix Path.getPointAt prototype by @augustinbegue in #649
- Added remove implementation of Two.Group signature by @alper-batioglu in #651
- Collection made generic & type to Group.children by @alper-batioglu in #655
- [Issue 653] Accurate Text Measurements by @jonobr1 in #657
- clientToSurface & surfaceToClient signatures by @alper-batioglu in #658
- [Issue 659] Client Surface Inconsistencies by @jonobr1 in #661
- Add CodeQL workflow for GitHub code scanning by @lgtm-com in #669
- types: fix Two.scene type by @dlech in #674
- Command Docs Broken by @jonobr1 in #678
- docs: edit spelling on gradient documentation by @crgk in #677
- Add Ratio Two.js Constructor to Types by @jonobr1 in #682
- Specifies Types for Two#renderer in Types by @jonobr1 in #684
- Collection Map Method by @jonobr1 in #685
- Improved getPointAt Types by @jonobr1 in #694
- Issue 698 Read Path as Data String by @jonobr1 in #699
- Resolves Issue 697 Imprecise Bounding Box Calculations on Rotated Shapes by @jonobr1 in #700
- docs: Fix a few typos by @timgates42 in #701
- Fix Two.Line left and right return the same anchor. by @eatgrass in #706
New Contributors
- @augustinbegue made their first contribution in #649
- @alper-batioglu made their first contribution in #651
- @lgtm-com made their first contribution in #669
- @dlech made their first contribution in #674
- @crgk made their first contribution in #677
- @timgates42 made their first contribution in #701
- @eatgrass made their first contribution in #706
Full Changelog: v0.8.10...v0.8.11
Official Stable Release of Version 0.8.10
Official Stable Release of Version 0.8.7
What's Changed
- Fix Documentation link by @dominictobias in #623
- Fixed Two.Path.ending when Two.Path.curved = true by @jonobr1 in #626
- [Issue 621] Fix Two.Text Public Properties by @jonobr1 in #627
New Contributors
- @dominictobias made their first contribution in #623
Full Changelog: v0.8.5...v0.8.7
Official Stable Release of Version 0.8.5
What's Changed
- Breaking: Added export maps so extras are imported like so
import { ZUI } from 'two.js/extras/zui.js'
- Added
Two.Gradient
parent parameter toTwo.Stop.clone
- Added constructor definitions to types for higher order shapes
- Fix vector dot product documentation name by @Awkor in #604
- Add more handy vector references by @Awkor in #607
- Add radius property to polygon class by @Awkor in #611
- Added Export Maps to Repository by @jonobr1 in #615
New Contributors
Full Changelog: v0.8.3...v0.8.5
Official Stable Release of Version 0.8.3
Author Notes
- Improved
Two.Element.className
construction - Reintroduced TypeScript Type Declarations from manually
What's Changed
- TypeScript Type Declarations Improvements by @jonobr1 in #602
- Improved Flagging for Class Names by @jonobr1 in #603
Full Changelog: v0.8.2...v0.8.3
Official Stable Release of Version 0.8.2
Author Notes
- Improved types declarations
- Added
Shape.worldMatrix
- Allowed string interpretation on
Two.Utils.read.path
- Removed ES6+ specific features: private variables
What's Changed
- Update path.js by @dickinson0718 in #583
- Added Shape.worldMatrix Property by @jonobr1 in #594
Full Changelog: v0.8.0...v0.8.2 & https://two.js.org/change-log/
Official Stable Release of Version 0.8.0
Version 0.8.0 introduces a port of the previously EcmaScript 5 syntax and brings it to modern day JavaScript coding practices with EcmaScript 6 features supported in all major browsers.
📋 This is a more-or-less entire rewrite of Two.js to use EcmaScript 6 features. In particular:
const
/let
instead ofvar
for tighter scopingclass
construction instead of prototypical modifications- Expanded classification of classes. For instance:
Two.Events
is now a classTwo.Element
is a new base class ofTwo.Shape
,Two.Gradient
, and anything else that can be queried in the scenegraph
- Where possible functions are named instead of anonymous
- Removes all
MakeObservable
methods in favor ofObject.defineProperty
invocations onconstructor
- Module imports are through typical
export
s and except for the root Two.js class, not withdefault
. So you'll need to import specific modules like so:
import { Vector } from 'two.js/src/vector.js';
var v = new Vector();
🏁 These changes allow for improved:
- TypeScript Declarations (fully expanded and invoked through TypeScript's types compiler)
- Improved documentation
- Code legibility and OOP style
- More legible performance debugging
- Easier to identify culprit functions in Chrome et al. performance debug consoles
- And improved SVG interpretation
- Loose interoperability between
Two.Vector
andTwo.Anchor
. For any curve, it's required you use anchors instead of vectors now.
🗒️ All tests and first party examples are passing with documentation updated on two.js.org/docs