Jürg Lehni
|
cebeb11301
|
Rename Json acronyms in API to JSON.
|
2013-04-23 07:13:51 -07:00 |
|
Jürg Lehni
|
6800a6d534
|
Use separate id ranges for different classes.
|
2013-04-22 19:09:59 -07:00 |
|
Jürg Lehni
|
e1807214f4
|
Large refactoring of Style handling for notable speed improvements.
|
2013-04-19 19:31:29 -07:00 |
|
Jürg Lehni
|
9efbc288a1
|
Merge Path.Rectangle and Path.RoundRectangle.
|
2013-04-19 12:36:49 -07:00 |
|
Jürg Lehni
|
fbe8a558bd
|
Refactor Format literal to Formatter class that keeps precision stored.
|
2013-04-09 17:32:19 -07:00 |
|
Jürg Lehni
|
2d3f9c36eb
|
Update JSDoc and fix documentation issues.
|
2013-04-09 17:07:41 -07:00 |
|
Jürg Lehni
|
5209e97c8d
|
Merge GradientColor into Color.
Work in progress.
|
2013-04-09 01:21:36 -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 |
|
Jürg Lehni
|
9adfc01c8d
|
Handle both strings and objects in Base.importJson().
And keep returning strings from #exportJson().
|
2013-04-05 16:58:00 +02:00 |
|
Jürg Lehni
|
9c38a76525
|
Add support for Item#data serialization.
|
2013-03-19 17:52:46 -07:00 |
|
Jürg Lehni
|
1d1e6425fa
|
Remove all left-overs of call chaining, except for where it's in use.
|
2013-03-05 20:39:07 -08:00 |
|
Jürg Lehni
|
7294c5499c
|
Simplify Base.readNamed() methods.
|
2013-03-03 15:28:55 -08:00 |
|
Jürg Lehni
|
0599aabdb9
|
Handle reinsertion of items into the same children list.
Fixes failing test.
|
2013-03-01 23:06:29 -08: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
|
7405858f32
|
Simplify code for reading of named arguments, removing the need for filtering arguments by using 'in' checks instead for the presence of properties / setters.
|
2013-03-01 14:06:04 -08:00 |
|
Jürg Lehni
|
06e33ba412
|
Improve flexibility of reading rectangles in Path.Constructor.
We can now define the rectangle by any property that it has setters for.
|
2013-03-01 13:52:11 -08:00 |
|
Jürg Lehni
|
5501f48570
|
Move Item#toString() functionality to Base#toString().
For objects that define #_id and/or #_name.
|
2013-03-01 11:47:49 -08:00 |
|
Jürg Lehni
|
9d8cddbe42
|
Implement new private Format object that handles formatting of number, point, size and rectangle.
|
2013-02-28 19:14:05 -08:00 |
|
Jürg Lehni
|
e392496f9d
|
Remove Base.toFloat() and replace with direct parseFloat() calls.
|
2013-02-28 19:14:05 -08:00 |
|
Jürg Lehni
|
65a9795a8a
|
Rename #from/#toJson() to #import/#exportJson() and move them to Project / Item.
To reflect naming of #import/#exportSvg().
|
2013-02-25 16:17:33 -08:00 |
|
Jürg Lehni
|
a98e39374d
|
Make PaperScript work again with latest Acorn.js
|
2013-02-24 15:41:06 -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
|
24a5016470
|
Reuse scopes associated with canvases to support multiple scripts per canvas.
As described in #171.
|
2013-02-15 00:15:44 -08:00 |
|
Jürg Lehni
|
da08e74374
|
Clean up code from #156.
|
2013-02-14 12:50:51 -08:00 |
|
Jürg Lehni
|
6729646e7a
|
Merge pull request #156 from ubershmekel/patch-2
Late load of paperjs should still run paperscripts
|
2013-02-14 12:49:51 -08:00 |
|
Jürg Lehni
|
ca3cc7f46d
|
Define CanvasProvider.getContext() next to getCanvas(), and support both types in release().
|
2013-02-12 16:06:24 -08:00 |
|
Jürg Lehni
|
51150cb20d
|
Support CanvasProvider.get(width, height) arguments.
|
2013-02-12 15:57:02 -08:00 |
|
Jürg Lehni
|
357b7dbc54
|
Shorten CanvasProvider method names.
|
2013-02-12 15:53:27 -08:00 |
|
Jürg Lehni
|
24d467e292
|
Implement support for native dash strokes, through both setLineDash() and mozDash.
|
2013-02-12 15:32:21 -08:00 |
|
Jürg Lehni
|
fdd15e675f
|
Add options argument to #toJson() methods, and use to implement optional fractional digit precision control.
|
2013-02-12 14:57:54 -08:00 |
|
Jürg Lehni
|
22218e0db0
|
Simplify Base.serialize().
|
2013-02-12 14:16:25 -08:00 |
|
Jürg Lehni
|
80ffd41560
|
Add optional precision argument to Base.formatFloat().
|
2013-02-12 14:16:06 -08:00 |
|
Jürg Lehni
|
ee73b4e15b
|
Add some explaining comments to dictionary code.
|
2013-02-11 19:35:11 -08:00 |
|
Jürg Lehni
|
15554b8bf2
|
Simplify adding / referencing of JSON dictionary entries.
|
2013-02-11 19:31:58 -08:00 |
|
Jürg Lehni
|
00dcd05549
|
Implement support for dictionary definitions and references in JSON serialization.
|
2013-02-11 18:59:05 -08:00 |
|
Jürg Lehni
|
aa6e2fae09
|
Improve Base#equals().
|
2013-02-11 18:24:08 -08:00 |
|
Jürg Lehni
|
6d39a91c87
|
Implement simple Project serialization.
|
2013-02-11 16:43:31 -08:00 |
|
Jürg Lehni
|
565fb86430
|
Give any item / object that needs to be exported as a definition / symbol its own unique id.
This will be useful in SVG and JSON exporter.
|
2013-02-10 09:37:40 -08:00 |
|
Jürg Lehni
|
dc35fdbd02
|
Move named inner functions out of nested scopes, to prepare for 'use strict;' transition.
|
2013-02-08 18:23:33 -08:00 |
|
Jürg Lehni
|
bd62b4b819
|
Do not export paper.load() any more.
Use paper.PaperScript.load() instead.
|
2013-02-08 18:17:37 -08:00 |
|
Jürg Lehni
|
6c9c16ad3d
|
Update copyright information comments, and year.
|
2013-01-28 18:03:27 -08:00 |
|
Yuval Greenfield
|
a3a211eead
|
Late load of paperjs should still run paperscripts
See this problem html http://stackoverflow.com/questions/14110205/dynamically-loading-a-script-changes-its-behaviour/14114337 and note how jquery handle this at https://github.com/jquery/jquery/blob/master/src/core.js#L768
|
2013-01-02 01:57:30 +02:00 |
|
Jürg Lehni
|
8bed8cb15d
|
Define mechanism for flexible reading of named arguments through Base.readNamed() and Base.hasNamed(), and use it to implement property object literal versions of Path.Constructor code.
|
2012-12-30 18:24:33 +01:00 |
|
Jürg Lehni
|
24b5f870bd
|
Change Base.isObject() to also check for instances of plain Base objects, and rename it to Base.isPlainObject().
|
2012-12-30 17:30:13 +01:00 |
|
Jürg Lehni
|
2abefee336
|
Merge Base.readValue() with Base.read() and rename Base.peekValue() to Base.peek().
When called directly on Base, read() reads values, otherwise the specific type of the subclass it is called on.
|
2012-12-30 16:07:20 +01:00 |
|
Jürg Lehni
|
4f83e0eee6
|
Commit first version of serialization / deserialization mechanism.
It appears to work fine already for Paths and Groups.
|
2012-12-27 12:45:55 +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
|
8f093f6dd7
|
Remove all PORT comments, since we won't port back features to Scriptographer.
|
2012-12-25 16:07:48 +01:00 |
|
Jürg Lehni
|
9fb48d1dd4
|
Fix a bug Base.equals(), causing endless recursion.
Closes #148.
|
2012-12-17 21:49:48 +01:00 |
|