Jürg Lehni
|
2b6dede883
|
Clean up white-spaces and line lengths.
|
2011-03-03 22:45:17 +00:00 |
|
Jürg Lehni
|
e9881c02fc
|
Merge remote-tracking branch 'origin/master'
|
2011-03-03 16:33:01 +00:00 |
|
Jürg Lehni
|
5ed30d7089
|
Make sure all files end on empty line.
|
2011-03-03 16:32:55 +00:00 |
|
Jürg Lehni
|
d088dc629e
|
Rename Paper to paper, implement it as an object literal and add paper.populate() and paper.install() methods that do the bootstraping.
|
2011-03-03 16:21:17 +00:00 |
|
Jonathan Puckey
|
00bf9aa88c
|
Fall back to Item#bounds if the Item doesn't have Item#strokeBounds in Item#draw.
|
2011-03-03 17:05:12 +01:00 |
|
Jonathan Puckey
|
2f9531810c
|
Implement todos about using strokeBounds instead of bounds.
|
2011-03-03 14:43:37 +01:00 |
|
Jürg Lehni
|
941c3c7346
|
Declare all classes as local variables, so they can be scoped.
|
2011-03-03 13:33:41 +00:00 |
|
Jürg Lehni
|
53b091b871
|
Rename #transformContent() to #_transform(), to make sure it's supposed to be a private method.
|
2011-03-03 12:47:55 +00:00 |
|
Jürg Lehni
|
b29a87653d
|
Replace % 2 with & 1 (modulo 2).
|
2011-03-03 12:46:31 +00:00 |
|
Jürg Lehni
|
07fcc000cf
|
Move the new refactored CanvasDraw functionality to static Item.draw() and #draw() instance methods on each prototype.
|
2011-03-03 12:19:43 +00:00 |
|
Jonathan Puckey
|
8ff04b6614
|
Unify canvas drawing commands in CanvasDraw.js and rework compositing code.
|
2011-03-03 02:22:21 +01:00 |
|
Jürg Lehni
|
ab9d07501e
|
Simplify code a bit, by chainging variable declarations.
|
2011-03-02 16:08:11 +00:00 |
|
Jürg Lehni
|
8cb3efb28e
|
Simplify calculation of total in getAverageColor().
|
2011-03-02 08:53:38 +01:00 |
|
Jürg Lehni
|
98de3cbb2a
|
Simplify getAverageColor() loop.
|
2011-03-02 08:52:39 +01:00 |
|
Jürg Lehni
|
3f972be500
|
Merge remote-tracking branch 'origin/master'
Conflicts:
src/basic/Matrix.js
src/item/Raster.js
|
2011-02-28 23:27:03 +01:00 |
|
Jürg Lehni
|
a93156ec45
|
Break long lines at 80 chars.
|
2011-02-28 20:24:15 +01:00 |
|
Jürg Lehni
|
caa6e8f88e
|
Add comment about necessity to write more comments (nudge nudge, wink wink).
|
2011-02-28 20:23:03 +01:00 |
|
Jürg Lehni
|
aca79fc6a9
|
Simplify and optimise bounds calculations in Raster#transformContent().
|
2011-02-28 20:22:11 +01:00 |
|
Jürg Lehni
|
0305c91e8c
|
Change array format.
|
2011-02-28 20:21:21 +01:00 |
|
Jürg Lehni
|
d442ab1d71
|
Replace * 0.5 optimisations with more obvious / 2, as there is no need for such optimisation here.
|
2011-02-28 20:20:44 +01:00 |
|
Jürg Lehni
|
c3d02bbd16
|
Add explanatory comments to Raster#transformContent().
|
2011-02-28 20:17:59 +01:00 |
|
Jonathan Puckey
|
eee5e63a72
|
BlendMode: support DocumentView and return if an item's bounds is null.
|
2011-02-28 18:36:06 +01:00 |
|
Jonathan Puckey
|
0e011dee2a
|
Support DocumentView in Group#draw.
|
2011-02-28 18:35:12 +01:00 |
|
Jonathan Puckey
|
285f81f363
|
Support PlacedSymbol opacity.
|
2011-02-28 18:31:51 +01:00 |
|
Jonathan Puckey
|
74f797a9dd
|
Clean up whitespace.
|
2011-02-28 18:30:08 +01:00 |
|
Jonathan Puckey
|
12859d7a24
|
Item: pass on param object to Item#draw.
|
2011-02-28 16:41:24 +01:00 |
|
Jürg Lehni
|
506e7c036c
|
Merge remote-tracking branch 'origin/master'
|
2011-02-26 17:27:12 +01:00 |
|
Jürg Lehni
|
b1b923ab27
|
Add comment about problems with Base.clone().
|
2011-02-26 17:27:07 +01:00 |
|
Jonathan Puckey
|
461aa87211
|
Group: add todo.
|
2011-02-26 15:55:58 +01:00 |
|
Jonathan Puckey
|
422b8911b8
|
Fix PlacedSymbol#transformContent.
|
2011-02-26 13:33:13 +01:00 |
|
Jonathan Puckey
|
71bf8dba88
|
Item: remove logging statement.
|
2011-02-26 02:04:18 +01:00 |
|
Jonathan Puckey
|
bebc8bc8cc
|
Another attempt at fixing Item#transformContent. The bounds are correctly calculated now, but Item#rotate rotates the items in the wrong direction and rotating by a point doesn't work well.
|
2011-02-26 00:58:54 +01:00 |
|
Jonathan Puckey
|
f79e6a0454
|
PlacedSymbol & Raster: fix transformContent and support BlendMode.
|
2011-02-25 19:38:55 +01:00 |
|
Jonathan Puckey
|
049504a67a
|
Changed BlendMode library from code ported from Pixastic to code ported from Gavin Kistner's Context Blender Javascript Library.
|
2011-02-25 18:37:46 +01:00 |
|
Jonathan Puckey
|
c47a18ea58
|
BlendMode: add todo about using Item#strokeBounds instead of Item#bounds.
|
2011-02-25 13:57:01 +01:00 |
|
Jonathan Puckey
|
1c364601b4
|
Added todo about supporting BlendMode for PlacedSymbols.
|
2011-02-25 13:28:35 +01:00 |
|
Jonathan Puckey
|
ec0b1dec1d
|
PlacedSymbol: add missing param object to PlacedSymbol#definition#draw call.
|
2011-02-25 13:13:46 +01:00 |
|
Jonathan Puckey
|
c9d04d33f8
|
Implement BlendMode class.
|
2011-02-25 12:47:52 +01:00 |
|
Jonathan Puckey
|
d9b75a7232
|
Implement Item#reverseChildren() and add tests for it.
|
2011-02-24 19:31:07 +01:00 |
|
Jonathan Puckey
|
d77741db4f
|
Implement item#rasterize(resolution).
|
2011-02-24 19:22:19 +01:00 |
|
Jonathan Puckey
|
014d1053a7
|
Fix Item#isDescendant / Item#isAncestor, implement Item#isGroupedWith and add tests.
|
2011-02-24 18:09:48 +01:00 |
|
Jonathan Puckey
|
6cea290dd8
|
Item: add todo's for missing functionalities.
|
2011-02-24 17:42:32 +01:00 |
|
Jonathan Puckey
|
d37a794b64
|
Simplify Raster#initialize, set _size in Raster#setCanvas and add todo.
|
2011-02-24 14:15:30 +01:00 |
|
Jonathan Puckey
|
ff2ac484da
|
Raster: add todo and perform small cleanup.
|
2011-02-24 13:56:27 +01:00 |
|
Jonathan Puckey
|
d564be8a7e
|
Implement new Raster(canvas) / Raster#getSubImage / Raster.drawImage / Raster.ppi.
|
2011-02-24 13:52:27 +01:00 |
|
Jonathan Puckey
|
2712bd0419
|
Fix mistake in Raster.
|
2011-02-24 02:39:33 +01:00 |
|
Jonathan Puckey
|
41f3f47dd3
|
Fix small mistakes in Raster.
|
2011-02-24 01:51:49 +01:00 |
|
Jonathan Puckey
|
83b8a3e815
|
Optimize CanvasProvider to only expect a Size object.
|
2011-02-24 01:36:38 +01:00 |
|
Jonathan Puckey
|
c929bacde8
|
Clean up Group#draw and save/restore context state when drawing group with opacity.
|
2011-02-24 01:33:36 +01:00 |
|
Jonathan Puckey
|
f1cd24eef8
|
More work on Raster, including getAverageColor, get/setPixel, get/setSize.
|
2011-02-24 01:28:11 +01:00 |
|