Skip to content

Releases: jonobr1/two.js

v0.8.13

22 Feb 18:44
Compare
Choose a tag to compare

What's Changed

  • Improve Text.baseline consistency across all renderers by @jonobr1 in #717
  • Improve Blurry Texture Rendering in WebGLRenderer by @jonobr1 in #718
  • Add Two.Text.direction property by @jonobr1 in #719

Full Changelog: v0.8.12...v0.8.13

Official Stable Release of Version 0.8.12

25 Oct 23:58
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.8.11...v0.8.12

Official Stable Release of Version 0.8.11

07 Aug 18:23
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.8.10...v0.8.11

Official Stable Release of Version 0.8.10

31 May 23:17
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.8.7...v0.8.10

Official Stable Release of Version 0.8.7

29 Apr 15:17
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.8.5...v0.8.7

Official Stable Release of Version 0.8.5

30 Mar 02:14
Compare
Choose a tag to compare

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 to Two.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

29 Jan 19:11
Compare
Choose a tag to compare

Author Notes

  • Improved Two.Element.className construction
  • Reintroduced TypeScript Type Declarations from manually

What's Changed

Full Changelog: v0.8.2...v0.8.3

Official Stable Release of Version 0.8.2

19 Jan 16:52
Compare
Choose a tag to compare

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

Full Changelog: v0.8.0...v0.8.2 & https://two.js.org/change-log/

Official Stable Release of Version 0.8.0

10 Jan 20:14
Compare
Choose a tag to compare

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 of var for tighter scoping
  • class construction instead of prototypical modifications
  • Expanded classification of classes. For instance:
    • Two.Events is now a class
    • Two.Element is a new base class of Two.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 of Object.defineProperty invocations on constructor
  • Module imports are through typical exports and except for the root Two.js class, not with default. 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

⚠️ These changes break:

  • Loose interoperability between Two.Vector and Two.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

Official Stable Release of Version 0.7.13

15 Dec 21:28
Compare
Choose a tag to compare

Minor enhancements to Two.Gradient and Two.interpret including:

  • Improved SVG gradient interpretation
  • Two.interpret can properly unwrap CSS url() commands
  • Added Two.Gradient.units and respected in all renderers
  • Default units space for Two.Gradient is objectBoundingBox
  • Removed destructive attribute assignments in Two.interpret
  • Interpreted gradients are reused as <defs />