Eric Rowell
|
b6ba1a503c
|
ids and names hashes used for node selection via get() has moved to Global in order to greatly simplify the selection logic. This means that node ids and names are shared across all stages. If two stages each have a node with the same id, only the last id set will be accessibile (similar to DOM)
|
2013-01-13 11:10:49 -08:00 |
|
Eric Rowell
|
f5f2fbaba9
|
added stage getDragLayer() method and unit tests
|
2013-01-12 23:45:28 -08:00 |
|
Eric Rowell
|
5cda46be69
|
drag and drop layer is now created on stage instantiation, and is removed and added as needed
|
2013-01-12 23:39:56 -08:00 |
|
Eric Rowell
|
ed579e4843
|
added new destroy Node method which removes and destroys a node. remove() now simply removes a node from the stage. You can re add the node at a later time with add(). getDOM() changed to getContent(). stage.remove() now correctly removes content node
|
2013-01-12 22:01:12 -08:00 |
|
Eric Rowell
|
4136ddb398
|
added new dragOnTop property which allows you to define whether or not a node is automatically moved to a temp top layer when dragging
|
2013-01-09 23:45:30 -08:00 |
|
Eric Rowell
|
40bcaeafed
|
improved drag and drop layer creation logic to further reduce the possibility of a flicker
|
2013-01-09 23:27:37 -08:00 |
|
Eric Rowell
|
c504e7980b
|
re-fixed drag and drop flicker issue on mobile. It was due to the browser taking a few ms to add to canvas dom when drag and drop started
|
2013-01-09 22:34:14 -08:00 |
|
Eric Rowell
|
48b85119f5
|
reverted async prevParent redraw for drag and drop because it has undesirable side effects. Need to find another solution for the flickering behavior on mobile devices
|
2013-01-09 08:32:05 -08:00 |
|
Arthaey
|
2879dd92d0
|
Support creating shapes with points like [[x1,y1],[x2,y2]].
|
2013-01-09 00:21:47 -08:00 |
|
Eric Rowell
|
b542fbb188
|
finished updating unit tests. All tests now pass
|
2013-01-02 22:08:34 -08:00 |
|
Eric Rowell
|
66a7e2ac39
|
layer.toDataURL() now directly returns layer canvas data url if position and size are not specificed. updated unit tests and docs
|
2013-01-02 22:02:00 -08:00 |
|
Eric Rowell
|
a53db90d0a
|
flattened fill attr, created new Node getter and setter generators that handle type conversions for points, sizes, and rotations
|
2013-01-01 23:54:02 -08:00 |
|
Eric Rowell
|
522607695f
|
Text fontSize unit is now in pixels (used to be points). Default text lineHeight attr is now 1 (used to be 1.2)
|
2013-01-01 19:36:13 -08:00 |
|
Eric Rowell
|
7ef59fdcb2
|
added more blob unit tests
|
2013-01-01 18:14:30 -08:00 |
|
Eric Rowell
|
e9d56dafba
|
added new Blob shape. removed double quotes from all shapes. made it easier for shapes to extend other shapes
|
2013-01-01 00:41:13 -08:00 |
|
Eric Rowell
|
176e805e58
|
decided to make an actual Spline shape. Will create a Blob shape soon, which will be an enclosed spline
|
2012-12-31 20:30:00 -08:00 |
|
Eric Rowell
|
f3a1e9a247
|
new spline attr for the Line shape which enables splines
|
2012-12-31 19:24:35 -08:00 |
|
Eric Rowell
|
7cb4c4269f
|
huge changes to Text shape. Skinnied it up by removing rectangle rendering component. textFill is now fill, textStroke is now stroke, textShadow is now shadow, and textStrokeWidth is now strokeWidth
|
2012-12-31 12:45:32 -08:00 |
|
Eric Rowell
|
356661ecff
|
updated unit tests with new shadow API
|
2012-12-31 10:46:23 -08:00 |
|
Eric Rowell
|
206f7bf8d0
|
fixed up group drag and drop
|
2012-12-31 01:47:49 -08:00 |
|
Eric Rowell
|
83bf1740a6
|
flattened shadow object into shadowColor, shadowBlur, shadowOpacity, and shadowOffset attrs
|
2012-12-31 00:45:38 -08:00 |
|
Eric Rowell
|
16f81f6204
|
fixed up stage toImage() translation problem
|
2012-12-11 00:21:43 -08:00 |
|
Eric Rowell
|
cb8d36c393
|
fixed several bugs with toImage(). toImage() can now also accept x and y params. added extensive caching unit test. removed drawBuffer logic as it is no longer needed
|
2012-12-11 00:08:59 -08:00 |
|
Eric Rowell
|
291583148b
|
moved all rendering logic into the Canvas renderer modules. Shape draw funcs are now passed a renderer object, not a canvas context. The context is accessible via canvas.getContext()
|
2012-12-09 09:52:33 -08:00 |
|
Eric Rowell
|
c316edb418
|
added transform property normalization in setFill() method and also added fill transform unit tests
|
2012-12-08 09:26:16 -08:00 |
|
Eric Rowell
|
01c5f4f7ca
|
fill patterns can now be translated, rotated, scaled, and offset like nodes
|
2012-12-07 23:25:33 -08:00 |
|
Eric Rowell
|
5705d909e5
|
changed test to warn for node and shape selector unit test, and added more info in the README Testing section
|
2012-12-03 19:54:58 -08:00 |
|
Eric Rowell
|
ab19b442a0
|
wrapped all modules with anonymous func. moved Canvas to root dir because it's now coupled to KineticJS logic. removed whitelisting arrays from Global. Did some prep work for AMD and Node support
|
2012-12-01 12:04:10 -08:00 |
|
Eric Rowell
|
8a195618cf
|
cleaned up some cropping logic in Image, and added a cropping unit test
|
2012-11-30 20:01:10 -08:00 |
|
Eric Rowell
|
047e26382e
|
added new wedge shape. cleaned up shape comments. added degToRad and radToDeg helper in Type utility
|
2012-11-29 20:15:01 -08:00 |
|
Eric Rowell
|
44e454d740
|
changed other instances of imageBuffer to imageHitRegion
|
2012-11-28 23:28:24 -08:00 |
|
Eric Rowell
|
94670aeeda
|
changed createImageBuffer to createImageHitRegion for consistency
|
2012-11-28 23:18:17 -08:00 |
|
Eric Rowell
|
424e86bd2b
|
added warning check for toDataURL, and also improved image buffer unit tests
|
2012-11-28 22:19:49 -08:00 |
|
Eric Rowell
|
8958fbffc6
|
new applyShadow method for shape. Images with transparent pixels can now have shadows applied to them again. Fixed image stroke buffer rendering issue
|
2012-11-28 20:50:33 -08:00 |
|
Eric Rowell
|
48e014fe01
|
bug fix #29 bug fix #143 when node.remove() is called, parent property is unset. Also migrated remove tests from containerTests to nodeTests.
|
2012-11-24 23:19:16 -08:00 |
|
Eric Rowell
|
94c3c913cb
|
cleaned up unit test data urls. All unit tests now pass with no warnings
|
2012-11-24 22:48:23 -08:00 |
|
Eric Rowell
|
0e6eb3ffe4
|
fixed up some text shadow issues
|
2012-11-24 09:15:02 -08:00 |
|
Eric Rowell
|
0e514f7810
|
fixed up text path draw func
|
2012-11-24 00:05:37 -08:00 |
|
Eric Rowell
|
7f68dafb5c
|
fixed up Image hit draw func
|
2012-11-23 23:55:20 -08:00 |
|
Eric Rowell
|
318d03feb7
|
finished up new Scene and Hit Renderers. added new textShadow attrs for more flexibility. Added new fillStroke() method which encapsulates shadow application logic
|
2012-11-23 14:54:32 -08:00 |
|
Eric Rowell
|
144e95ad42
|
preparation work for new Renderer inheritance pattern
|
2012-11-20 23:03:24 -08:00 |
|
Eric Rowell
|
27d5031665
|
further decoupled scene, hit, and buffer graph drawing. To define a custom hit draw function, you now need to set the drawHitFunc attr.
|
2012-11-18 19:50:50 -08:00 |
|
Eric Rowell
|
e04b979063
|
improved drag and drop performance by skipping buffer redraws on drag move
|
2012-11-17 22:29:07 -08:00 |
|
Eric Rowell
|
feb1c83aac
|
added unit test for group to image
|
2012-11-15 22:22:38 -08:00 |
|
Eric Rowell
|
383a039def
|
applyFilter() method now takes in a required filter function, and an optional config and callback function, rather than a config object
|
2012-11-15 21:51:33 -08:00 |
|
Eric Rowell
|
1913fed33b
|
Kinetic.Animation constructor now just requires a function and optional node. No more config object
|
2012-11-15 21:30:58 -08:00 |
|
Eric Rowell
|
2115920ab8
|
fixed up Canvas type bug. The Canvas constructor can now also take an optional isBuffer param. If not defined, default value is scene
|
2012-11-13 22:16:36 -08:00 |
|
Eric Rowell
|
a5e23c426d
|
restructured unit tests and created a unit test build target which concatenates source test files
|
2012-11-13 21:37:28 -08:00 |
|