Commit graph

95 commits

Author SHA1 Message Date
Jürg Lehni
4e3aa3e5c5 Move all Style classes into their own folder. 2011-06-20 16:38:01 +01:00
Jürg Lehni
9b9810faf3 Define Base.merge() and use it to merge _defaults in CharacterStyle. 2011-06-20 15:28:50 +01:00
Jürg Lehni
a7e57ada88 Big refactoring of the way Style objects are linked to their owning classes, implemented in a way that works across all sub classes. 2011-06-20 14:58:48 +01:00
Jürg Lehni
d60b739ae2 Remove comas. 2011-06-20 14:14:08 +01:00
Jürg Lehni
55724b0e29 Move defaults handling fully to Style base class. 2011-06-20 14:10:37 +01:00
Jürg Lehni
f064886c67 Introduce Style as a base class for all Style classes, and move the definition of create() there. 2011-06-20 13:56:49 +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
Jonathan Puckey
a48a8d7a8d Document TextItem#content. 2011-06-10 14:05:58 +02:00
Jürg Lehni
29967153c3 Clean up TODO comments... 2011-06-01 10:49:43 +01:00
Jonathan Puckey
6892608ecd Documentation: rename 'Sample Code:' to 'Example:' 2011-05-30 19:55:40 +02: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
8e84c79aa6 Documentation: capitalize 'string' and 'number' types. 2011-05-27 20:15:15 +02:00
Jonathan Puckey
bf19d8944c Improve CharacterStyle documentation. 2011-05-27 13:54:27 +02:00
Jonathan Puckey
ca3230c1ad Documentation: reorder functions, add group titles and todos. 2011-05-27 13:28:13 +02:00
Jonathan Puckey
de7926990b Add CharacterStyle documentation. 2011-05-23 19:28:55 +02:00
Jonathan Puckey
de76b063b9 Add ParagraphStyle documentation. 2011-05-23 19:24:33 +02:00
Jonathan Puckey
50e996aa43 Add PointText documentation. 2011-05-23 19:13:51 +02:00
Jonathan Puckey
24689300c3 Add TextItem documentation. 2011-05-23 18:56:13 +02:00
Jonathan Puckey
8a1b1041cd Make PointText#matrix 'private' by renaming to _matrix. 2011-05-20 22:03:16 +02:00
Jonathan Puckey
f676cc026f Add TextItem#_clone to copy over characterStyle and paragraphStyle. 2011-05-20 21:33:25 +02:00
Jonathan Puckey
2c94b4270a Fix ParagraphStyle.create(item). 2011-05-20 21:29:47 +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
c07f9b438e Use same modification in static create() method of ParagraphStyle and CharacterStyle as was used in PathStyle. 2011-05-17 13:14:04 +01:00
Jürg Lehni
2c03cb1ccb Use Base.initialize() in both ParagraphStyle and CharacterStyle's #initialize(). 2011-05-17 13:13:24 +01:00
Jürg Lehni
6427bca46e No beans required in ParagraphStyle yet. 2011-05-17 13:12:44 +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
Jürg Lehni
e5198fea40 Remove unused code that seems to stem from PointText. 2011-05-17 13:10:22 +01:00
Jonathan Puckey
4ebb6985d6 CharacterStyle: Use 'sans-serif' as default font. 2011-05-16 15:58:10 +02:00
Jonathan Puckey
979ab18e9a Implement basic version of TextItem, PointText, CharacterStyle & ParagraphStyle. 2011-05-16 15:15:47 +02:00