This repository has been archived by the owner on May 14, 2021. It is now read-only.
Releases: jordiorlando/draft.js
Releases · jordiorlando/draft.js
0.2.0
draft.proxy
will now only initialize nested props on set (configurable)el.prop(prop)
now returns null if the property is undefined (used to set the property to the default fromdraft.defaults
)- add
draft.Point
element fordraft.Line
anddraft.Shape
to extend from - remove
draft.types.opacity
- add
draft.types.Float
anddraft.types.Length
- remove
draft.px
andunitHack()
and migrate to the new length class - remove
el.width()
andel.height()
from size mixin - add
el.scale()
function for relative sizing - update
draft.types.Color
to be a class akin to the other two types - new types can be used with standard arithmetic operators (+-*/) and should for the most part give sane results
0.1.0
Lots of new stuff for v0.1.0:
- add new
draft.Shape
element for primitives to extend from - add support for fill and stroke, including color, opacity, and width
- add three new types/validators: unit, color, and opacity
- add support for nested properties via ES6 Proxies (e.g.
el.prop('fill.color')
will returnel._properties.fill.color
)
0.0.5
- improve release process (again)
0.0.4
- improve release process
0.0.3
- improve build process
0.0.2
- improve build process
0.0.1
- initial release