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
61dca0b4d0
Introduce standard way of passing matrices/points to Item constructors.
2011-12-20 23:33:53 +01:00
Jürg Lehni
4a46c8ac98
Fix recently introduced error with stroke/fillColor handling
...
Since CanvasContext#stroke/fillStyle cannot be set to null, we have to keep checking Style#fill/strokeColor even after calling #_setStyles().
2011-12-19 23:07:14 +01:00
Jürg Lehni
e30a0ae26d
Define CharacterStyle#getFontStyle()
...
And use it in PointText.
2011-12-19 23:05:22 +01:00
Jürg Lehni
cc26fdc5d1
Optimise handling and setting of fill and stroke styles.
...
Handle setting of fillColor and strokeColor in Item#_setStyles() instead of the various #draw() methods, directly access internal styles instead of using accessor calls and fix PointText#draw().
2011-12-19 22:40:14 +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
b51cf064b0
Make baseItem to last optional parameter of _getBounds.
2011-11-26 11:55:19 +01:00
Jürg Lehni
40a3272cb3
Implement PointText#bounds properly, with matrix support in place now.
2011-11-26 11:40:38 +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
de4b5a0d87
Start implementing Item#matrix, work in progress.
2011-11-26 10:15:01 +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
1d6cfeeb9b
Add dest and dontNotifty arguments to Matrix#_transformBounds() and use them where appropriate.
2011-11-24 11:29:35 +01:00
Jürg Lehni
11f298c994
Start adding support for PointText#bounds and multi-line text, work in progress.
2011-11-23 18:12:41 +01:00
Jürg Lehni
4e78c55859
Simplify PointText#setPoint()
2011-08-03 23:37:56 +02:00
Jürg Lehni
7c95eb7694
Do not usse LinkedPoint internally for PointText#point, since we're returning new instances each time now in #getPoint().
2011-08-02 16:08:00 +01:00
Jonathan Puckey
fe1b2ca8a0
Fix PointText#setPoint(point) and PointText#setPosition(point).
2011-08-02 14:31:35 +02:00
Jürg Lehni
79c0ad8cc5
Update copyright notices.
2011-07-01 12:17:45 +02:00
Richard D. Worth
ac39873693
Whitespace. Removed all trailing whitespace from .js files
2011-06-30 06:01:51 -04:00
Jürg Lehni
7cd749e63d
Change all documentation to new convention of defining @class outside injection scope, fix some comments and a few errors with examples.
2011-06-22 23:56:05 +01:00
Jonathan Puckey
3a9da3c0a0
Documentation: add class example to PointText.
2011-06-21 01:12:47 +02:00
Jonathan Puckey
2361556af6
TextItem related documentation.
2011-06-21 00:54:14 +02:00
Jürg Lehni
318ed69ad2
Remove use of characterStyle / paragraphStyle where not necessary.
2011-06-20 18:53:36 +01:00
Jürg Lehni
af0e5a07b7
Add getter/setter for TextItem#content and use Change.CONTENT to notify of changes.
2011-06-19 23:28:41 +01:00
Jürg Lehni
ad04db85aa
Move over content handling from PointText to TextItem.
2011-06-19 23:23:52 +01:00
Jürg Lehni
ca16e43c1f
Implement getters / setters for #locked, #visible, #blendMode and #opacity, and call _changed() from setters.
2011-06-17 18:53:34 +01:00
Jürg Lehni
3226147e00
Use a version of Bootstrap that always produces beans and remove all beans: true instructions.
2011-06-17 18:42:29 +01:00
Jürg Lehni
cb463b74f5
Fix @extends tags in documentation: Only the immediately following class is required.
2011-06-16 21:43:31 +01:00
Jürg Lehni
ffa79f4fd1
Clean up white spaces in comments.
2011-06-14 22:59:45 +01:00
Jürg Lehni
29967153c3
Clean up TODO comments...
2011-06-01 10:49:43 +01:00
Jonathan Puckey
17fcb923ff
Documentation: rearrange @example tags, improve examples, rename boolean -> Boolean and misc smaller edits.
2011-05-30 19:42:17 +02:00
Jonathan Puckey
ca3230c1ad
Documentation: reorder functions, add group titles and todos.
2011-05-27 13:28:13 +02:00
Jonathan Puckey
50e996aa43
Add PointText documentation.
2011-05-23 19:13:51 +02:00
Jonathan Puckey
8a1b1041cd
Make PointText#matrix 'private' by renaming to _matrix.
2011-05-20 22:03:16 +02:00
Jürg Lehni
0a87eef244
Add comment about PointText#matrix and #point being exposed.
2011-05-20 08:56:14 +01:00
Jürg Lehni
b15eecc34d
Use new internal Item#_clone() to improve Path#clone() and PointText#clone().
2011-05-20 08:54:44 +01:00
Jürg Lehni
fd8ceb9641
Implement PointText#clone(), untested.
2011-05-20 08:47:13 +01:00
Jürg Lehni
4ceaca00f4
Initialise content to empty string, so content += 'something' would not produce odd results.
2011-05-20 08:46:58 +01:00
Jürg Lehni
e7cad9b134
Use local point in translate, as it is not a LinkedPoint and won't require beans access.
2011-05-20 08:46:17 +01:00
Jürg Lehni
01f26c4be0
Restructure line break.
2011-05-20 08:40:35 +01:00
Jürg Lehni
131425a12f
Rely on #_transform() in #setPoint() as it already handles updating of #_point for us and all.
2011-05-20 08:33:19 +01:00
Jürg Lehni
2e82ac97d8
Convert PointText#point to a LinkedPoint so direct changes to it get noticed too.
2011-05-20 08:32:36 +01:00
Jürg Lehni
d6a49e2eb4
No need to check result of Point.read(), as it will always be a Point (_readNull is only defined for Color).
2011-05-20 08:28:49 +01:00
Jürg Lehni
4153bc0fbf
Fix bug in PointText#_transform(), where wrong version of matrix._transformPoint() was applied to _point, resulting in no transformation.
2011-05-20 08:27:11 +01:00
Jürg Lehni
276eb3301e
Define scafold #clone() function for the classes that still required a proper definition.
2011-05-19 21:56:49 +01:00
Jürg Lehni
5369b251ae
Move comment.
2011-05-17 13:11:09 +01:00
Jürg Lehni
41dd9eb131
Point.read() always returns an object even if nothing is provided, no need to have a default value.
2011-05-17 13:10:57 +01:00
Jonathan Puckey
979ab18e9a
Implement basic version of TextItem, PointText, CharacterStyle & ParagraphStyle.
2011-05-16 15:15:47 +02:00