Commit graph

5339 commits

Author SHA1 Message Date
Jürg Lehni
ed31476dea Bump version to v0.9.21 2014-11-22 19:23:35 -08:00
Jürg Lehni
7f6bb63683 Correctly handle white-space before first matrix value when handling transform SVG attribute.
Closes #531.
2014-11-22 09:01:01 -08:00
Jürg Lehni
943034f2c4 Adjust .tm_properties to new white-space conventions. 2014-11-22 08:52:51 -08:00
Jürg Lehni
912f7ad629 Allow injection of additional undefined fields through object literal constructors and #set(). 2014-11-18 15:24:40 -08:00
Jürg Lehni
d5471c480f Always return emitter from #on() 2014-11-18 15:05:14 -08:00
Jürg Lehni
19a9976939 Return emitter in #on(), #off(), #once(), so calls can be chained. 2014-11-18 14:56:55 -08:00
Jürg Lehni
0fb7e49248 Return a LinkedPoint from Item#scaling.
Closes #544,
2014-11-09 07:46:45 -08:00
Jürg Lehni
892c1a28bd Some code clean-up. 2014-11-08 17:26:43 -08:00
Jürg Lehni
4ab6446e16 Handle horizontal lines properly in Line.getSignedDistance()
Closes #546.
2014-11-08 17:26:13 -08:00
Jürg Lehni
ebdc63fbfa Use correct formula in Curve#getTangentAt() for end-points when there is no handle.
Closes #553.
2014-11-08 17:16:22 -08:00
Jürg Lehni
bfd3a91df0 Simplify Emitter.inject() a bit, as we only need to handle _events in the first injection scope. 2014-10-21 23:52:53 +02:00
Jürg Lehni
a39eea64e9 Improve docs sequence a bit. 2014-10-20 23:55:24 +02:00
Jürg Lehni
6e9ff38c15 Fix spelling mistakes in docs. 2014-10-20 23:45:33 +02:00
Jürg Lehni
e6175d512c Update JSDoc. 2014-10-20 23:39:19 +02:00
Jürg Lehni
e7707cd354 Implement match.inside and match.overlapping in #getItems(match).
Closes #275
2014-10-20 23:35:47 +02:00
Jürg Lehni
99ef521af4 Switch from inline @option tags to real doc tags. 2014-10-20 23:33:28 +02:00
Jürg Lehni
c25548031b Clean up documentation for Project#getItems() / Item#getItems(). 2014-10-20 22:44:15 +02:00
Jürg Lehni
82b988327d Update docs to use the newly introduced {@option} tag to docuemnt option-style objects. 2014-10-20 22:41:45 +02:00
Jürg Lehni
8f201205aa Update JSDoc. 2014-10-20 22:27:20 +02:00
Jürg Lehni
3e79162325 Update JSDoc. 2014-10-20 21:39:34 +02:00
Jürg Lehni
230b8b777f Update JSDoc. 2014-10-20 21:27:25 +02:00
Jürg Lehni
b1329f1db5 Implement unit test for getItems({ empty: true }). 2014-10-20 18:19:47 +02:00
Jürg Lehni
782bde238c Find a more general implementation for Item#intersects(item). 2014-10-20 18:00:07 +02:00
Jürg Lehni
5ddbc5b07f Implement Item#intersects(item) 2014-10-20 17:00:18 +02:00
Jürg Lehni
b3c7be67fc Support optional hidden matrix argument in #getIntersections()
...in order to provide an alternative matrix for the passed path to check against.
2014-10-20 16:53:49 +02:00
Jürg Lehni
4eb06f0849 Implement Item#isInside(rect). 2014-10-20 16:51:28 +02:00
Jürg Lehni
ad50e9f604 Change the way the optional matrix argument is handled in bounds getters.
Before it was treated as the paren't matrix and the child's was concatenated to it, but it's more logical and useful to just use it as the full replacement matrix instead.
2014-10-20 16:50:33 +02:00
Jürg Lehni
62e5f3b3ac Improve / streamline Matrix documentation a bit. 2014-10-20 16:47:41 +02:00
Jürg Lehni
616e848376 Implement handling of empty and editable in #getItems(), and simplify code a bit. 2014-10-18 14:32:21 +02:00
Jürg Lehni
e7fd751765 Fix docs issues with Item#matches() 2014-10-18 13:40:36 +02:00
Jürg Lehni
3be1e481e9 Preserve line-breaks when replacing mathematical operators, to not mess with debugging. 2014-10-15 15:30:56 +02:00
Jürg Lehni
be82af9b47 Implement Item#matches(name, compare), along with Item#matches(match). 2014-10-15 15:09:44 +02:00
Jürg Lehni
77f6e68846 Remove documentation for deprecated #attach() methods. 2014-10-15 13:01:59 +02:00
Jürg Lehni
0894e625b0 Fix documentation issues with Path#get*At()
Closes #537.
2014-10-15 13:00:50 +02:00
Jürg Lehni
e5714584ff Fix return type of #getCurvatureAt() methods.
Closes #535 properly this time.
2014-10-15 12:02:21 +02:00
Jürg Lehni
b71e2c69d6 Fix documentation of Curve#getCurvatureAt(), as well as Path#getCurvatureAt() & co.
Closes #535
2014-10-14 13:52:57 +02:00
Jürg Lehni
862867ecd2 Bump Acorn version. 2014-10-09 00:17:16 +02:00
Jürg Lehni
3b2a82047e Clean up event related comments, to reflect recent renaming. 2014-10-08 18:33:17 +02:00
Jürg Lehni
68585276a0 Rename ui folder to event. 2014-10-08 18:32:55 +02:00
Jürg Lehni
5006a0557f Remove calls to DomEvent as that's not exposed any longer. 2014-10-08 18:27:48 +02:00
Jürg Lehni
0d360a6c0c Remove Palette example. 2014-10-08 18:15:45 +02:00
Jürg Lehni
f4a36b7cd4 Remove all Palette and Component related code, as it is separated into its own project.
https://github.com/lehni/palette.js
2014-10-08 17:43:03 +02:00
Jürg Lehni
f29f3c8b11 Some code clean-up. 2014-10-08 16:36:22 +02:00
Jürg Lehni
8983953ccc Do not export internal Http module. 2014-10-08 15:58:11 +02:00
Jürg Lehni
3c8331a94e No longer export DomElement and DomEvent.
These are undocumented and meant to be private. They may change a lot still.
2014-10-08 15:55:12 +02:00
Jürg Lehni
a457228846 Fix formatting issues. 2014-10-08 15:52:41 +02:00
Jürg Lehni
c7c49d4091 Time to go with the flow and use the on()/off()/emit() pattern for events. 2014-10-08 14:57:56 +02:00
Jürg Lehni
2be48bab0b Update JSDoc. 2014-10-08 14:55:36 +02:00
Jürg Lehni
3dc5c94e25 Rename Callback mix-in to Emitter. 2014-10-08 14:13:08 +02:00
Jürg Lehni
d2c2b0a7fd Implement ruler component, and only use palettejs-input id for actual inputs that can have labels. 2014-10-08 00:24:27 +02:00