Jürg Lehni
|
ccfd51a65a
|
Improve performance of Path constructors and handling of { insert: false } Item creation.
|
2014-02-26 16:15:51 +01:00 |
|
Jürg Lehni
|
e22fa3a664
|
Update copyright notice.
|
2014-01-04 01:47:16 +01:00 |
|
Jürg Lehni
|
81fe98d1bb
|
Make cachedBounds mechanism work for Symbols.
|
2013-12-09 09:05:29 +01:00 |
|
Jürg Lehni
|
afe00add32
|
Implement option.type filtering in #hitTest() functions.
|
2013-12-08 16:32:42 +01:00 |
|
Jürg Lehni
|
73d2c34088
|
Implement item-level #equals() method and clean up other equals methods.
|
2013-10-17 13:08:54 +02:00 |
|
Jürg Lehni
|
aa4d990c90
|
Move and unify handling of Item#_set(props) to new Item#_initialize(), and add support for props.insert = false.
|
2013-07-21 15:45:22 -07:00 |
|
Jürg Lehni
|
b7aea1e527
|
Use insert: false option in creation of all clones.
Still needs implementing in Item constructor.
|
2013-07-19 18:42:13 -07:00 |
|
Jürg Lehni
|
20a17f2939
|
Implement insert parameter in Item#clone() to control DOM insertion.
Defaults to true. Also insert in the right place now, above the original.
|
2013-07-19 18:27:00 -07:00 |
|
Jürg Lehni
|
a4535edbb9
|
Bring back _class names, since code minification breaks reliance on constructor.name.
Closes #248.
|
2013-06-23 20:18:32 -07:00 |
|
Jürg Lehni
|
f758fb306b
|
Rename #_applyMatrix to #_transformContent.
And swap names with private function...
|
2013-06-18 15:50:11 -07:00 |
|
Jürg Lehni
|
10d5de3ed6
|
Implement a better way to name and export class constructors.
This change also simplified the way classes are exported to PaperScope objects.
|
2013-05-27 12:48:58 -07:00 |
|
Jürg Lehni
|
369b329b23
|
Change straps.js to directly use initialize() as constructor function rather than redirecting calls to it.
Should yield some interesting performance improvements.
|
2013-05-27 09:11:50 -07:00 |
|
Jürg Lehni
|
7f00ef8f05
|
Fix white-spaces.
|
2013-05-24 22:25:22 -07:00 |
|
Jürg Lehni
|
7c2e57e105
|
Remove Item#applyMatrix boolean, go back to previous way of directly applying transformations to children in Group and Layer, and introduce new Clip class for non-transformed nested matrices.
|
2013-05-13 18:57:17 -07:00 |
|
Jürg Lehni
|
9cc0822477
|
Move PlacedItem#_hitTest() to PlacedSymbol#_hitTest() since it was written for symbols, and remove PlacedItem as it's an empty class now.
|
2013-04-19 16:40:30 -07:00 |
|
Jürg Lehni
|
9ee8590a4d
|
Move Item.draw() to Item#draw().
Makes more sense this way.
|
2013-04-18 17:04:06 -07:00 |
|
Jürg Lehni
|
d23e21edd7
|
Make Item#draw() protected, so we know to not directly call it.
|
2013-04-18 16:58:35 -07:00 |
|
Jürg Lehni
|
218732e320
|
Implement a row of simple optimizations to increase performance of Item constructors.
|
2013-04-07 17:36:09 -07:00 |
|
Jürg Lehni
|
f43b322d2a
|
Rename Base#_type property to #_class.
|
2013-04-06 09:16:08 +02:00 |
|
Jonathan Puckey
|
71b63b0e9d
|
Fix documentation.
|
2013-03-10 19:06:37 +01:00 |
|
Jürg Lehni
|
849d3efc2e
|
Have PathItem#setPathData() clear the previous content.
|
2013-03-03 16:56:48 -08:00 |
|
Jonathan Puckey
|
fa861f2047
|
Improve example documentation.
|
2013-03-03 20:10:25 +01:00 |
|
Jürg Lehni
|
3f5d0a6925
|
Merge constructor._name with _type and use CamelCase for Item types.
|
2013-03-01 17:13:22 -08:00 |
|
Jürg Lehni
|
cd58162dd5
|
No need to clone _matrix, since _clone() does that for us.
|
2013-03-01 15:55:19 -08:00 |
|
Jürg Lehni
|
01026c0896
|
Fix support for viewBox when importing SVG symbols.
|
2013-03-01 10:08:17 -08:00 |
|
Jürg Lehni
|
0d98727328
|
Simplify drawing of seleced bounds by having Item#_boundsSelelected default to true for Raster, PlacedSymbol and TextItem.
One can now turn it off for these using item.bounds.selected = false;
|
2013-02-24 15:53:37 -08:00 |
|
Jürg Lehni
|
119e5acbf9
|
Move #_setProperties() and #set() from Item to Base, rename it to #_set and use it for Tool too.
|
2013-02-15 18:28:49 -08:00 |
|
Jürg Lehni
|
e7bb334c6a
|
Use JSON dictionary support to serialize Symbols and PlacedSymbol references.
|
2013-02-11 18:59:49 -08:00 |
|
Jürg Lehni
|
6c9c16ad3d
|
Update copyright information comments, and year.
|
2013-01-28 18:03:27 -08:00 |
|
Jürg Lehni
|
ae4e5d4be5
|
Rename Item#setProperties() to hidden #_setProperties() and add public Item#set() to use same functionality from outside.
|
2012-12-27 00:52:09 +01:00 |
|
Jürg Lehni
|
3ac039bd66
|
Implement properties object literal initialization for all Item constructors.
|
2012-12-25 22:12:25 +01:00 |
|
Jürg Lehni
|
ded73142a9
|
Simplify pointOrMatrix parameters and only allow points. Also remove internal _point cache from PointText and directly link #point to #matrix.
|
2012-12-25 17:57:04 +01:00 |
|
Jürg Lehni
|
0d2ed108e2
|
Refactor getBounds code so that functionality can be exposed as static methods on Path.
|
2012-12-15 08:19:10 -08:00 |
|
Jürg Lehni
|
19d145f281
|
Introduce Item#type, returning a simple item type string identifier.
|
2012-11-03 23:43:18 -07:00 |
|
Jürg Lehni
|
e17e94b50b
|
Implement Item#isEmpty() for the various types.
And use it to tell #getBounds() when to ignore items.
|
2012-10-10 20:11:11 -07:00 |
|
Jürg Lehni
|
61dca0b4d0
|
Introduce standard way of passing matrices/points to Item constructors.
|
2011-12-20 23:33:53 +01:00 |
|
Jürg Lehni
|
93ede28f3b
|
Implement new selection drawing mechanism.
Using the new Item#globalMatrix.
|
2011-12-20 11:42:00 +01:00 |
|
Jürg Lehni
|
554047ae38
|
Expose Item#_getCachedBounds and use it in PlacedSymbol for proper handling of nested matrices.
|
2011-12-18 16:55:56 +01:00 |
|
Jürg Lehni
|
d2b1c77686
|
No need to call #getDefinition() internally.
Use private value directly.
|
2011-12-18 16:55:24 +01:00 |
|
Jürg Lehni
|
9e5eb17264
|
Improve Item#transform() and implement #applyMatrix() to support nested matrices. Work in progress.
|
2011-12-18 16:54:21 +01:00 |
|
Jürg Lehni
|
a26bc87686
|
Implement support for Item#matrix in Item#draw().
|
2011-11-30 18:19:23 +01:00 |
|
Jürg Lehni
|
e82deff4b9
|
Fix the drawing of PlacedSymbol bounds when selected.
|
2011-11-27 14:55:49 +00:00 |
|
Jürg Lehni
|
b51cf064b0
|
Make baseItem to last optional parameter of _getBounds.
|
2011-11-26 11:55:19 +01:00 |
|
Jürg Lehni
|
a0ad81b576
|
Pass on the baseItem of a getBounds call, required to implement proper caching later.
|
2011-11-26 11:24:48 +01:00 |
|
Jürg Lehni
|
1fd9242fd8
|
Define private getBounds() function that handles matrix concatenation, bounds caching and calling of _getBounds, leading to further simplifications in PlacedItem.
|
2011-11-26 10:39:51 +01:00 |
|
Jürg Lehni
|
de4b5a0d87
|
Start implementing Item#matrix, work in progress.
|
2011-11-26 10:15:01 +01:00 |
|
Jürg Lehni
|
310fbb260b
|
Remove _boundsCache and replace it with easier _simpleBounds flag.
|
2011-11-24 15:44:26 +01:00 |
|
Jürg Lehni
|
ea87be166e
|
Part one of big refactoring of bouding box handling. Functional, but caching is broken right now.
|
2011-11-24 15:13:21 +01:00 |
|
Jürg Lehni
|
077a83ca7c
|
Fix documentation error.
|
2011-07-11 12:15:34 +02:00 |
|
Jürg Lehni
|
8e6adbc284
|
Fix documentation.
|
2011-07-09 09:28:49 +02:00 |
|