Commit graph

5337 commits

Author SHA1 Message Date
Jürg Lehni
369fcfc7cf Add disabled class to components that have enabled = false. 2014-10-07 23:42:03 +02:00
Jürg Lehni
a92b8eb591 Correctly name boolean getters. 2014-10-07 23:41:26 +02:00
Jürg Lehni
c405c78d41 Implement #element getters to get the native DOM element on Palette and Component. 2014-10-05 12:35:33 +02:00
Jürg Lehni
90d088e708 Switch to object literal constructor for Palette and support props.parent, to set a palette's parent in the DOM. 2014-10-05 12:33:40 +02:00
Jürg Lehni
689e150bb7 Use <span> for text components so they can have a suffix as well. 2014-10-05 12:18:18 +02:00
Jürg Lehni
ca730cd76e Rename _input to _element since it can be other things than <input>, and simplify <button> handling. 2014-10-05 11:17:53 +02:00
Jürg Lehni
8344ea9639 Switch from <input type="button"> to <button> for button components, and allow #text as an alias to #value for better semantics. 2014-10-05 11:14:02 +02:00
Jürg Lehni
6e4c2ebc64 Use an injection loop to produce all methods that simply forward from Palette to root Component. 2014-10-05 00:23:16 +02:00
Jürg Lehni
5456f1a595 Clean up DOM code a bit. 2014-10-05 00:19:47 +02:00
Jürg Lehni
9fec267dd4 Implement table captions through Palette#title / Component#title. 2014-10-05 00:11:29 +02:00
Jürg Lehni
b9af3af6f4 Bring back change event to Palette. 2014-10-04 19:51:10 +02:00
Jürg Lehni
6b9a40d987 Improve documentation of components code. 2014-10-04 19:46:44 +02:00
Jürg Lehni
5f7fd42bcb Add comment about layout components. 2014-10-04 19:39:17 +02:00
Jürg Lehni
ddc7675c13 Improve Component layout class name handling. 2014-10-04 19:35:26 +02:00
Jürg Lehni
22d79948a0 Rename horizontal to columns 2014-10-04 19:02:56 +02:00
Jürg Lehni
73529f0170 Merge Pane functionality into Component.
Work in progress.
2014-10-04 18:58:11 +02:00
Jürg Lehni
e46a1d24da Move View classes to their own folder.
That's not really UI.
2014-10-04 16:51:58 +02:00
Jürg Lehni
5b71dabba2 Rename 'pane' Component to 'column'. 2014-10-02 20:02:04 +02:00
Jürg Lehni
aa73083d4f Make sure nested components are available through the components hierarchy. 2014-10-02 19:41:39 +02:00
Jürg Lehni
4ef4a293ea Expose child components. 2014-10-02 19:20:03 +02:00
Jürg Lehni
fe019f926e Fix Component#setSuffix() 2014-10-02 18:59:26 +02:00
Jürg Lehni
88bc14f597 Clean up Pane code a bit. 2014-10-02 18:45:51 +02:00
Jürg Lehni
8907662524 Use this._set() instead of Base.set(), since it filters for existing properties. 2014-10-02 18:35:03 +02:00
Jürg Lehni
fd6741ce5a Implement Component type 'pane' and merge more functionality with 'row'. 2014-10-02 18:16:38 +02:00
Jürg Lehni
99d46b4478 Restructure Component constructor to facilitate upcoming 'pane' Component type. 2014-10-02 17:09:40 +02:00
Jürg Lehni
85fbc94f41 Move Palette related functionality form Pane to Palette constructor. 2014-10-02 17:09:08 +02:00
Jürg Lehni
e1fba03b34 Make Component#enabled work for row type. 2014-10-02 17:02:26 +02:00
Jürg Lehni
f4c4522c18 Remove references to this in DomElement os we can call method references directly, and always check el for null. 2014-10-02 17:00:40 +02:00
Jürg Lehni
7194d4bcf0 Fix palette labels and improve CSS id / class structure. 2014-10-02 16:30:27 +02:00
Jürg Lehni
54de02149b Implement 'row' type component, for multiple components per row in palettes. 2014-10-02 16:05:56 +02:00
Jürg Lehni
09a4defb73 Separate Palette into Pane and Palette to prepare for nested UIs. 2014-10-02 09:45:19 +02:00
Jürg Lehni
47c225a782 Fix typo.
As reported by https://github.com/paperjs/paperjs.org/pull/7
2014-10-02 01:03:39 +02:00
Jürg Lehni
139adc72de Implement object literal constructor for Palette. 2014-09-30 08:20:44 +02:00
Jürg Lehni
d6481bcb5b Implement Component#enabled and Palette#enabled 2014-09-30 08:20:18 +02:00
Jürg Lehni
021ba59c54 Implement Component#visible. 2014-09-30 08:16:26 +02:00
Jürg Lehni
c7970e367d Always set Component#value at the end of all other values.
Closes #365.
2014-09-29 17:15:33 +02:00
Jürg Lehni
24a80dca27 Remove debug logging. 2014-09-29 16:12:50 +02:00
Jürg Lehni
3cb84842ff Remove forced colon in label, so we can add it optionally through CSS instead. 2014-09-29 15:46:29 +02:00
Jürg Lehni
214ac10d57 Add support for Component#suffix, to define a linked label that should appear after the input element. 2014-09-29 15:46:04 +02:00
Jürg Lehni
c2cb3e3342 Improve Palette and Component code.
- Only create label elements when they are set for the first time.
- Give created elements clear class and id names.
2014-09-29 15:41:14 +02:00
Jürg Lehni
e541b10e89 Move user-agent code to PaperScope and expose through PaperScope#browser. 2014-09-29 13:07:02 +02:00
Jürg Lehni
6a11532322 Clean up and simplify code a bit further. 2014-09-28 11:49:46 +02:00
Jürg Lehni
7462fe0b70 Fix Curve.getParameterAt() for negative values of offset, and implement unit test.
Closes #524.
2014-09-28 11:44:38 +02:00
Jürg Lehni
0d7fe5e5a0 Clear project before importing new SVG content. 2014-09-27 22:59:45 +02:00
Jürg Lehni
df190b6a47 Rearrange Project code for better doc sequence. 2014-09-27 22:53:37 +02:00
Jürg Lehni
2c9e15b070 Clean up comments. 2014-09-27 22:53:00 +02:00
Jürg Lehni
c87ce4de4c Implement Item#replaceWith(item)
Closes #454
2014-09-27 22:52:37 +02:00
Jürg Lehni
91539e6bc5 Commit changes forgotten in 6450430b68 2014-09-27 22:51:22 +02:00
Jürg Lehni
0eb96898a3 Clean up Item tests. 2014-09-27 22:50:22 +02:00
Jürg Lehni
8414607cee Define tests for Item#remove() 2014-09-27 22:49:32 +02:00