Jürg Lehni
|
66360bf58a
|
Fix minor documentation bug.
|
2014-07-08 15:43:17 +02:00 |
|
Jürg Lehni
|
5384a63238
|
Improve Item. _clearBoundsCache() fix.
|
2014-05-15 21:33:30 +02:00 |
|
Jürg Lehni
|
a7f57315a6
|
Fix Item._clearBoundsCache() recursion, correctly this time.
|
2014-05-15 21:30:06 +02:00 |
|
Jürg Lehni
|
a1c1fc8ed8
|
Fix an issue in _clearBoundsCache where circular recursion could happen in certain circumstances.
|
2014-05-15 21:24:09 +02:00 |
|
Jürg Lehni
|
f39b7603de
|
Remove pixelRatio handling from CanvasProvider and move it to Item#draw()
|
2014-05-15 17:14:37 +02:00 |
|
Jürg Lehni
|
af5e1609dd
|
Fix an issue where CompoundPath wouldn't draw correctly if children had styles that forced non-direct compositing.
|
2014-05-15 17:09:58 +02:00 |
|
Jürg Lehni
|
c0a911d3c7
|
Rename Raster#ppi to#resolution, and deprecate #ppi.
|
2014-05-15 15:36:24 +02:00 |
|
Jürg Lehni
|
9d7ec13724
|
Update prepro.js to version that can evaluate whole expressions, and fix a newly introduced issue with it.
|
2014-05-14 15:14:03 +02:00 |
|
Jürg Lehni
|
aac98f2b25
|
Some code clean-up.
|
2014-05-13 13:54:31 +02:00 |
|
Jürg Lehni
|
6896535663
|
Bring back accidentally removed ctx.beginPath();
|
2014-05-13 13:51:09 +02:00 |
|
Jürg Lehni
|
846c806034
|
Implement non-scaling strokes through Style#strokeScaling.
Closes #418.
|
2014-05-13 13:38:51 +02:00 |
|
Jürg Lehni
|
e1ed7f3294
|
Prevent drawing selected compound path children twice.
|
2014-05-12 18:57:09 +02:00 |
|
Jürg Lehni
|
6aaeb81869
|
Simplify Item#_isUpdate() code a bit.
|
2014-05-07 17:27:53 +01:00 |
|
Jürg Lehni
|
bb6e1e686f
|
Improve some comments.
|
2014-05-07 17:22:25 +01:00 |
|
Jürg Lehni
|
56389a3929
|
Make sure _updateVersion also works for items and children of items with opacity == 0.
Closes #469.
|
2014-05-07 16:57:39 +01:00 |
|
Jürg Lehni
|
312e670b22
|
Update Item#_updateVersion in Item#draw() before bailing out when items are invisible.
Closes #469.
|
2014-05-05 20:13:36 +02:00 |
|
Jürg Lehni
|
8317aacc1b
|
Split Item#hitTest() into separate private function that does need to do arguments reading, for improved performance also when iterating over children.
|
2014-04-29 20:06:48 +02:00 |
|
Jürg Lehni
|
fce31599a5
|
Use _dontMerge for #getSelectedColor() on both item and layer, and have style getters on item pass on _dontMerge to the style object.
|
2014-04-29 19:40:46 +02:00 |
|
Jürg Lehni
|
bd07305435
|
Move selection drawing code to separate function and fix slowdowns in determining of selection color.
Closes #466 & #464.
|
2014-04-29 18:52:33 +02:00 |
|
Jonathan Puckey
|
1d905f5c58
|
Path: add docs for Style Tests group and move Path#isInserted() to Hierarchy Tests group.
|
2014-04-28 18:41:40 +02:00 |
|
Jonathan Puckey
|
ba98c91509
|
Fix SVGElement parameter type in docs.
|
2014-04-28 18:23:14 +02:00 |
|
Jürg Lehni
|
e851090c81
|
Fix bug in item object literal constructor when providing parent as property after other values that depend on hierarchy being defined already.
|
2014-04-28 15:12:55 +02:00 |
|
Jürg Lehni
|
42945825e8
|
Fix all argument assignment TODOs.
|
2014-04-28 14:22:50 +02:00 |
|
Jonathan Puckey
|
af84a52af8
|
Move around Item#isInserted() code so it shows up in the Tests group section in the docs.
|
2014-04-27 23:59:01 +02:00 |
|
Jonathan Puckey
|
12d7756892
|
Add more matching docs.
|
2014-04-27 23:40:43 +02:00 |
|
Jürg Lehni
|
9ccba17fbe
|
Clean up white-space, comments and jshint errors.
|
2014-04-14 18:29:26 +02:00 |
|
Jürg Lehni
|
d0d4b29856
|
Fix bugs in bounds caching algorithm.
|
2014-04-13 18:31:01 +02:00 |
|
Jürg Lehni
|
6af797bbad
|
Optimize handling of property object in Item constructor.
Only check for values if it is a plain object, and avoid inserting into DOM twice if parent is specified.
|
2014-04-13 18:12:19 +02:00 |
|
Jürg Lehni
|
ee729622e0
|
Correctly handle Raster#setImage(null)
|
2014-04-13 18:11:34 +02:00 |
|
Jürg Lehni
|
ea81df6572
|
Fix spelling mistakes.
|
2014-04-13 17:03:44 +02:00 |
|
Jürg Lehni
|
db2bdf84af
|
Allow the JS optimizer to better do its thing by creating local references to repeatedly used class variables.
|
2014-04-13 16:44:49 +02:00 |
|
Jürg Lehni
|
397c81e060
|
Switch from options.type to options.class in Item#hitTest(), to reflect recent change in Item#getItems().
|
2014-04-13 16:43:20 +02:00 |
|
Jürg Lehni
|
a931a2530c
|
Implement options.curves option for hit-testing curves regardless of stroke settings.
|
2014-04-11 14:57:58 +02:00 |
|
Jürg Lehni
|
1f7cb30fa5
|
Correctly transform Item#pivot when #matrix is applied to an item's contents.
Closes #452 and defines unit tests to cover this bug.
|
2014-04-11 13:18:27 +02:00 |
|
Jürg Lehni
|
eea4e533a4
|
Support type: Class filters in hit-testing code too.
|
2014-04-10 22:27:03 +02:00 |
|
Jürg Lehni
|
61c2b11938
|
Serialize #applyMatrix before #matrix, because in deserialization its setting will affect how #matrix is read.
Closes #451.
|
2014-04-09 11:57:25 +02:00 |
|
Jürg Lehni
|
60f6eca6c4
|
Do not keep the view's matrix baked into _globalMatrix, since we might allow multiple views soon.
|
2014-04-07 17:35:17 +02:00 |
|
Jürg Lehni
|
f002c633a7
|
Remove trailing white spaces and ensure newlines at the end.
|
2014-04-06 13:48:03 +02:00 |
|
Jürg Lehni
|
09d0f5f389
|
Correctly handle paths with only one segment in hit-testing code.
Closes #430.
|
2014-04-04 12:08:20 +02:00 |
|
Jürg Lehni
|
c0d11ea98e
|
Fix hit-testing of PlacedSymbols.
Closes #428
|
2014-04-03 09:21:12 +02:00 |
|
Jürg Lehni
|
ee7c604ec0
|
Remove unused matrix parameter in PlacedSymbol#_hitTest()
|
2014-04-03 09:19:36 +02:00 |
|
Jürg Lehni
|
748256abb9
|
Fix broken documentation for Item.
|
2014-04-02 21:04:39 +02:00 |
|
Jürg Lehni
|
59da291d54
|
Remove tabs in examples in favor of 4 spaces.
To remove all these annoying JSHint complaints.
|
2014-04-02 21:03:35 +02:00 |
|
Jürg Lehni
|
fa9786b344
|
Switch to new simpler convention for control of beans creation in straps.js
|
2014-04-02 20:53:18 +02:00 |
|
Jürg Lehni
|
4d52867b4a
|
Fix spelling mistakes and white-spaces.
|
2014-04-02 20:52:13 +02:00 |
|
Jürg Lehni
|
0dca10d192
|
Take view#matrix into account when calculating and handling global matrices.
But make sure Item#globalMatrix returns a transformation without View#matrix factored in. Closes #440.
|
2014-03-31 19:28:00 +02:00 |
|
Jürg Lehni
|
e0120b8f58
|
Fix spelling mistakes.
|
2014-03-31 18:13:54 +02:00 |
|
Jürg Lehni
|
92331a62c3
|
transformations will always be defined at this point of the code.
|
2014-03-31 18:13:36 +02:00 |
|
Jonathan Puckey
|
400bc69159
|
Remove unnecessary commas.
Found using jscritic.com.
|
2014-03-28 14:02:39 +01:00 |
|
Jonathan Puckey
|
01dbfe705c
|
Fix accidental leaking of variables to the global scope.
Found using jscritic.com
|
2014-03-28 13:46:51 +01:00 |
|
Jürg Lehni
|
7233c82084
|
Fix wrong call of _clearBoundsCache() on child.
Closes #426.
|
2014-03-20 17:20:26 +01:00 |
|
Jürg Lehni
|
aeeba4d58d
|
Implement ChangeFlag.INSERTION notification to know when an item was inserted in a new parent inside the DOM.
|
2014-03-18 15:28:29 +01:00 |
|
Jürg Lehni
|
946e0d5b2c
|
Fix spelling mistakes.
|
2014-03-18 15:25:25 +01:00 |
|
Jürg Lehni
|
e998083156
|
Rename Shape#shape to Shape#type.
|
2014-03-18 12:47:54 +01:00 |
|
Jürg Lehni
|
09d90a21bc
|
Support legacy #type filtering again in #getItems(), and offer an alternative through instanceof checks with #class and #constructor property.
|
2014-03-18 12:39:55 +01:00 |
|
Jürg Lehni
|
62f7b0d73e
|
Simplify and merge Item#getItems() code with Project#getItems()
|
2014-03-18 11:47:50 +01:00 |
|
Jürg Lehni
|
833d71f7ea
|
Remove Item#type and replace it with Item#className, the non-hyphenated version of #type.
|
2014-03-18 11:42:38 +01:00 |
|
Jürg Lehni
|
f115072e8c
|
Rename HIERARCHY change-flag to more precise CHILDREN.
|
2014-03-17 18:59:10 +01:00 |
|
Jürg Lehni
|
0aa73d90c5
|
Change the way context dependent font sizes are handled by delegating handling to view.
Closes #425
|
2014-03-17 16:41:57 +01:00 |
|
Jürg Lehni
|
438de7013a
|
Correctly handle groups as clipping masks.
Closes #370.
|
2014-03-17 14:51:47 +01:00 |
|
Jürg Lehni
|
0fe52a7d39
|
Implement an optimization in _changed() notifications where not all curves need to updated if only segments change that already have told their curves about the change.
|
2014-03-17 14:35:33 +01:00 |
|
Jürg Lehni
|
d594b4264d
|
Define settings.applyMatrix and inherit at Item creation time.
|
2014-03-04 09:30:04 +01:00 |
|
Jürg Lehni
|
7dbf6ceaff
|
Move Project#options to PaperScope#settings and define reasonable defaults.
|
2014-03-04 09:29:28 +01:00 |
|
Jürg Lehni
|
36e3cbddf2
|
Remove inheritance of Item#applyMatrix setting again.
Implementation cannot be solved well, since hierarchy is not known at creation time of item.
|
2014-03-02 21:00:08 +01:00 |
|
Jürg Lehni
|
80a725d08a
|
Rename Item#transformContent to the more correct Item#applyMatrix
|
2014-03-02 16:04:17 +01:00 |
|
Jürg Lehni
|
fb1420eee0
|
Internalize Item#applyMatrix() code in #transform() and add short-cut method to it in Matrix#apply()
|
2014-03-02 15:50:45 +01:00 |
|
Jürg Lehni
|
6fdb9f60bd
|
Merge branch 'refs/heads/master' into apply-matrix
|
2014-03-02 01:27:50 +01:00 |
|
Jürg Lehni
|
7bf9cc88e4
|
Merge pull request #387 from mgrabovsky/master
Fix typo in comment
|
2014-03-02 01:05:21 +01:00 |
|
Jürg Lehni
|
4ba17127aa
|
Make sure that #transformContent can only be set to true on items that actually support it.
|
2014-03-01 23:24:33 +01:00 |
|
Jürg Lehni
|
1a836a168f
|
Merge branch 'refs/heads/master' into apply-matrix
Conflicts:
src/item/Item.js
|
2014-03-01 22:55:54 +01:00 |
|
Jürg Lehni
|
a8578326ea
|
Inherit #transformContent setting from parent, if not explicitely defined.
|
2014-03-01 22:52:00 +01:00 |
|
Jürg Lehni
|
dad7821ee9
|
Include Item#transformContent in serialization and cloning.
|
2014-03-01 22:51:01 +01:00 |
|
Jürg Lehni
|
7cf4591a1e
|
Define Item#style before calling #addChild() in #initialize(), to avoid issues with layers.
|
2014-03-01 22:49:46 +01:00 |
|
Jürg Lehni
|
a3114e5c28
|
Do not preserve matrix transformations in empty groups when applied to inexisting content.
|
2014-03-01 22:48:44 +01:00 |
|
Jürg Lehni
|
c1ccdf6cb7
|
Take into account the view's resolution in Item#rasterize()
|
2014-02-26 16:20:19 +01:00 |
|
Jürg Lehni
|
ec0877962b
|
Expose the view's pixel-ratio and resolution through View#pixelRatio and View#resolution
|
2014-02-26 16:19:48 +01:00 |
|
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
|
737466d15c
|
Fix all faulty {@true} doc statements.
|
2014-02-26 15:39:00 +01:00 |
|
Jürg Lehni
|
bf50bd649a
|
Fix issue in Item#rasterize() when resolution is not 72 DPI.
Closes #412.
|
2014-02-26 11:54:14 +01:00 |
|
Jürg Lehni
|
86e4d2a6b9
|
Implement Curve#remove() and Path#reduce().
Also have Item#reduce() recursively call #reduce() on reduced children.
|
2014-02-20 02:50:39 +01:00 |
|
Jürg Lehni
|
74a153dd88
|
Some code clean-up.
More to come.
|
2014-02-17 20:59:38 +01:00 |
|
Jürg Lehni
|
568bb06853
|
Add comments about missing #importSVG() documentation.
|
2014-02-12 09:39:34 +01:00 |
|
Matěj Grabovský
|
890eda9197
|
Fix typo in comment
|
2014-01-15 18:04:51 +01:00 |
|
Jürg Lehni
|
5a131930fb
|
Add _dontNotify parameter to Matrix#reset() and use it in Item#applyMatrix()
|
2014-01-06 00:18:40 +01:00 |
|
Jürg Lehni
|
6ad2105110
|
Replace delete in favor of setting to undefined to prevent V8 deoptimization.
|
2014-01-05 19:16:48 +01:00 |
|
Jürg Lehni
|
706fe2c77d
|
Rearrange Base.read argument sequence.
options are used more often than length.
|
2014-01-05 18:31:24 +01:00 |
|
Jürg Lehni
|
b66c41e1c9
|
Remove need for arguments[1] in Item#transform()
|
2014-01-05 18:05:47 +01:00 |
|
Jürg Lehni
|
8d08d3c014
|
Remove the need for arguments[0] in bounds getters.
|
2014-01-05 18:01:38 +01:00 |
|
Jürg Lehni
|
e3f3a9c9d2
|
Merge branch 'refs/heads/master' into v8-optimizations
|
2014-01-05 17:42:59 +01:00 |
|
Jürg Lehni
|
1ee5b2c126
|
Fix references to Bootstrap.js in comments.
|
2014-01-05 17:41:38 +01:00 |
|
Jürg Lehni
|
6cb25fafe3
|
Use changes in latest Straps.js to remove as many hidden parameters as possible.
Hidden parameters through arguments[] are bad news for JS optimizer engines.
|
2014-01-05 17:40:54 +01:00 |
|
Jürg Lehni
|
ea63d4c288
|
Merge branch 'refs/heads/master' into v8-optimizations
Conflicts:
src/core/Base.js
src/style/Color.js
|
2014-01-05 05:01:13 +01:00 |
|
Jürg Lehni
|
e22fa3a664
|
Update copyright notice.
|
2014-01-04 01:47:16 +01:00 |
|
Jürg Lehni
|
ad34bbf7aa
|
Bail out of Item#transform() immediately if there is nothing to do.
|
2014-01-02 21:47:00 +01:00 |
|
Jürg Lehni
|
c197f531a4
|
Implement options.asString for Item#exportJSON()
|
2013-12-30 23:34:19 +01:00 |
|
Jürg Lehni
|
81651a7379
|
Prevent V8 "assignment to parameter in arguments object" deoptimizations.
Some getter-like functions still need fixing, but this might require a fix in Straps.js first.
|
2013-12-17 23:28:55 +01:00 |
|
Jürg Lehni
|
3dbad9c477
|
Replace delete in favor of setting to undefined to prevent V8 deoptimization.
|
2013-12-17 23:27:48 +01:00 |
|
Jürg Lehni
|
e2b06b8e54
|
Filter out insert property in Item#set()
|
2013-12-16 22:03:33 +01:00 |
|
Jürg Lehni
|
a51f8d4ee8
|
Rename Item#anchor -> Item#pivot
|
2013-12-13 20:50:58 +01:00 |
|
Jürg Lehni
|
25d8b1f0d2
|
Clean up code and comments in various places.
|
2013-12-11 17:10:09 +01:00 |
|