Eric Rowell
37c3ce1b47
added layer hitGraphEnabled flag
2013-12-09 22:31:18 -08:00
Eric Rowell
0bad22955a
removed instances of hit graph enable caching. Too complex and error prone at the moment
2013-12-09 22:15:26 -08:00
Eric Rowell
ce9ddb92e2
added isDraggable back to Node
2013-12-09 10:41:53 -08:00
Eric Rowell
704ff81dd9
cleaned up all jshint errors in Node.js
2013-12-09 10:38:01 -08:00
Eric Rowell
e946f473db
finally got around to adding return docs for every node method
2013-12-09 10:33:31 -08:00
Eric Rowell
1f4ff9f1d7
cleaned up isListening API. introduced new enableHitGraph config that can be used to disable the hit graph
2013-12-09 10:07:08 -08:00
Eric Rowell
422a6b305b
implemented enableNestedTransforms flag which forces the rendering engine to skip nested transform calculations when they aren't needed
2013-12-05 22:29:50 -08:00
Eric Rowell
89de3030af
all unit tests are now passing except for filter tests
2013-12-04 09:55:17 -08:00
Eric Rowell
f217200ed7
reverted factory methods but removed data type processing
2013-12-04 09:10:24 -08:00
Eric Rowell
5d5a378375
more tweaks
2013-12-04 08:56:21 -08:00
Eric Rowell
533699b731
component attrs are now the source of truth again
2013-12-04 08:15:04 -08:00
Eric Rowell
fb25ba7c59
Factory getters now require function defaults which return an object literal because objects can be modified by reference
2013-12-03 22:54:16 -08:00
Eric Rowell
a57d6c6106
more unit tests working, more refactoring
2013-12-02 21:25:20 -08:00
Eric Rowell
f966758bce
removed before event emitter for attr changes to improve performance. I don't think it's really needed
2013-12-02 00:06:27 -08:00
Eric Rowell
722ae82f21
Rect tests are now passing
2013-12-01 23:47:24 -08:00
Eric Rowell
bc8085bf04
cleaned up default value pull request
2013-11-27 08:47:52 -08:00
Eric Rowell
b99e71f0b1
Merge pull request #661 from blabno/do-not-export-default-values
...
#660 Do not export default values
2013-11-27 08:35:56 -08:00
Eric Rowell
1f6c8e7194
cleaned up getLayer fix logic
2013-11-27 08:24:47 -08:00
Eric Rowell
cbcd7d6c89
Merge pull request #688 from lavrton/getLayerFix
...
Get layer fix
2013-11-27 08:22:39 -08:00
Лаврёнов Антон
cf32e72b85
not this commit
2013-11-15 01:06:34 +08:00
Лаврёнов Антон
3c8c0831ab
get layer fix
2013-11-15 01:02:21 +08:00
Лаврёнов Антон
6de66f18af
config first
2013-11-12 19:03:15 +08:00
Лаврёнов Антон
d4b2892c13
toImage improvement
2013-11-12 18:57:58 +08:00
bernard
09b9b15aeb
#660 Do not export default values
2013-10-28 15:40:23 +01:00
ippo615
6e25195fb7
Fixed #639
2013-10-13 15:35:29 -04:00
Andrew Ippoliti
1dbbf3d301
Merge pull request #626 from kzhdev/fix-node-_fire-error
...
Don't use cached event listener length in node._fire because changing shape attribute could remove kinetic event handler from the array which will cause 'hander of undefined' error
2013-10-10 20:11:17 -07:00
Eric Rowell
4ed8ac8088
updated on() docs to include content events
2013-10-08 09:54:39 -07:00
kzhdev
0435be4359
remove unused variable.
2013-10-04 14:43:08 -05:00
kzhdev
809b8b82e9
Don't use cached event listener length in node._fire because changing shape attribures in a event could remove kinetic event handler from the array which willl cause 'hander of undefined' error.
2013-10-04 14:03:50 -05:00
Eric Rowell
c40fc7cf38
removed Global namespace. global stuff is now just global, inside the Kinetic namespace. There was no reason to have a secondary level for global vars
2013-09-08 22:02:04 -07:00
Eric Rowell
7ac45b7c4c
migrated Ellipse test to Mocha, and finished up context wrapper methods
2013-09-02 21:16:26 -07:00
Eric Rowell
3ba89d36e7
introduced new Context class. I've bumped up the next release to v4.7.0 because this is a relatively big mind shift in how the framework works, and it's a big enough API change to warrant a minor update. This is the first step towards enabling context tracing for stellar unit testing
2013-08-31 21:49:18 -07:00
Eric Rowell
bf39df54b0
Merge branch 'master' of github.com:ericdrowell/KineticJS
2013-08-25 00:35:53 -07:00
Eric Rowell
ae66350d7f
fixed #577
2013-08-25 00:34:49 -07:00
ippo615
80adc253fa
Fixed Issue #572 (and other js hint warnings)
2013-08-23 22:31:06 -04:00
Eric Rowell
2cf0a690f9
fixed up dd regression
2013-08-12 03:00:08 -07:00
Eric Rowell
d49ae15207
getStage() result is now cached. refactored caching system even further.
2013-08-11 20:34:54 -07:00
Eric Rowell
64d6c79a6a
moved factory logic out of Node.js to Factory.js
2013-08-10 21:11:34 -07:00
Eric Rowell
db98fec243
added new crop methods
2013-08-10 20:30:25 -07:00
Eric Rowell
b8e3f10d3a
getVisible returns the visible attr. isVisible takes ancestors into account. getListening returns listening attr. isListening takes ancestors into account. added unit tests.
2013-08-10 16:19:33 -07:00
Eric Rowell
35db1f7a8b
improved transform caching
2013-08-10 14:19:53 -07:00
Eric Rowell
0d6b8bdd79
fixed drag and drop regression by busting the transform cache inside the clearTransform method
2013-08-10 13:59:31 -07:00
Eric Rowell
1c51d65a93
caching system now relies on attr change events to clear the appropriate cache attrs
2013-08-10 13:04:02 -07:00
Eric Rowell
6f078dc127
now caching absolute opacity
2013-08-10 11:55:52 -07:00
Eric Rowell
86bd4ddfa9
reworked caching system
2013-08-10 11:24:24 -07:00
Eric Rowell
d902e6dca0
absolute transforms are now cached
2013-08-10 00:58:53 -07:00
Eric Rowell
a0a2d9a676
visible attr is now cacheable
2013-08-09 23:00:35 -07:00
Eric Rowell
41dea5300a
reworked _getCache implementation
2013-08-09 22:31:25 -07:00
Eric Rowell
3933568b45
implemented _getCache() method which every getter will use to try and get/set cached attrs
2013-08-09 22:23:27 -07:00
Eric Rowell
cb5cb66256
started setting up new caching system
2013-08-09 21:09:06 -07:00
Eric Rowell
7700ecc70b
draw events no longer bubble. It was causing too much of a performance hit, and didn't provide a whole lot of value. Now, only layers fire draw events
2013-08-09 20:22:51 -07:00
Eric Rowell
57a9313a7b
all kinetic specific listeners now have the kinetic namespace. off no longer removes listeners with a kinetic namespace, unless you force remove it via .kinetic
2013-07-24 22:56:21 -07:00
Eric Rowell
1fc57bed4c
removed createAttrs method and cleaned up init logic
2013-07-22 22:05:21 -07:00
Eric Rowell
9324c366ea
standardized init method names with underscores
2013-07-22 21:41:41 -07:00
Eric Rowell
ecdd5cc59a
new stage batchDraw() method. draw events are now triggered on drawScene() as well as draw()
2013-07-21 23:41:05 -07:00
Eric Rowell
436f170ac2
fixes #510 preventDefault is no longer fired for mobile devices when an intersected shape is not listening for events
2013-07-21 20:14:09 -07:00
Eric Rowell
f85c6b1392
added new addPoint method which allows you to add a single point to the points array without swapping the whole thing
2013-06-27 23:28:57 -07:00
Eric Rowell
b86aa11d47
fix #352 also did major remove and destroy refactoring, and added lots of unit and visual tests
2013-06-08 15:57:36 -07:00
Eric Rowell
79c3124ed7
Spline no longer extends Line. Blob no longer extends Spline. point getter setters were extracted out to Node. control point expansion method in Spline was pulled out and put in Util
2013-06-08 14:17:26 -07:00
Eric Rowell
e8ea9340fe
added points Node getter and setter creators for Line and Polygon
2013-06-08 11:11:49 -07:00
Eric Rowell
007ad76680
added new destroyChildren() method
2013-06-06 23:03:00 -07:00
Eric Rowell
ffc33a7676
removeChildren now removes all descendants. returned this for all applicable methods in Node, Layer, Stage, and Shape
2013-06-06 22:45:31 -07:00
Eric Rowell
77793aed60
lots of jshinting
2013-06-01 22:03:02 -07:00
Eric Rowell
7b9322c15c
custom builds that do not include drag and drop now work correctly fixes #465
2013-05-31 23:36:43 -07:00
Eric Rowell
4ef1a82bc8
rewrote Label API. Group plugins now require that children are added to the base class
2013-05-20 21:58:57 -07:00
Eric Rowell
35b1f61bda
tied className into toJSON and create. deprecated shapeType property and getShapeType method
2013-05-19 21:48:48 -07:00
Eric Rowell
7069bf9e0c
stage tweens now work correctly. getChildren() and getLayers() now return a Kinetic.Collection. added toArray() method to Kinetic.Collection
2013-05-19 21:07:43 -07:00
Eric Rowell
2ea5f83204
more docs, especially for Util and Tween
2013-05-18 10:40:05 -07:00
Eric Rowell
993ffd7b0e
finished base constructor examples for core shape docs
2013-05-17 20:56:24 -07:00
Eric Rowell
4d682529b6
added more example docs
2013-05-17 15:35:21 -07:00
Eric Rowell
7c03f56ae9
added lots of constructor example docs
2013-05-17 15:09:57 -07:00
Eric Rowell
47364c63cd
deprecated getNodeType(), added className property to label, and added lots of Node doc examples
2013-05-17 11:46:06 -07:00
Eric Rowell
d6a836ba5c
Merge branch 'master' of github.com:ericdrowell/KineticJS
2013-05-17 10:52:13 -07:00
Eric Rowell
b1d1981fe9
added getType() and getClassName() methods. beefed up on() docs
2013-05-17 10:51:56 -07:00
Aku Kotkavuo
b3e76a4e23
Fix variable leakage
2013-05-17 16:56:56 +03:00
Eric Rowell
70f5c405a9
finished the major doc updates
2013-05-16 00:28:49 -07:00
Eric Rowell
b1025be75e
updated docs in prep for jsdoc3 migration
2013-05-15 09:27:22 -07:00
Eric Rowell
8c9d2b5459
setAttr() is now a public method that can be used to set Kinetic attrs, or custom attrs
2013-05-14 22:37:33 -07:00
Eric Rowell
fc1e388f22
cleaned up internal firing logic. the fire method now does not bubble events by default, to prevent devs from unknowingly bubbling events that they don't care to bubble, inadvertantly affecting performance
2013-05-13 08:56:09 -07:00
Eric Rowell
2cf81cc6dd
attr change events no longer bubble. this improves setter + render performance by about 25%
2013-05-12 23:37:24 -07:00
Eric Rowell
032eb9e4db
updated docs
2013-05-08 09:44:03 -07:00
Eric Rowell
edc050067d
node.setPosition() now uses setX() and setY() which handles the transform cache
2013-05-08 00:18:29 -07:00
Eric Rowell
76a399bfc0
major refactor of directory structure. Killed Util directory. Created Util.js file instead. Moved general purpose methods from Global to Util
2013-05-07 23:51:02 -07:00
Eric Rowell
e2d6993c89
added Global.addMethods() method and defined core constructors in Global
2013-05-07 23:17:57 -07:00
Eric Rowell
8f06f1eb67
heavily updated documentation
2013-05-07 10:19:54 -07:00
Eric Rowell
e22f5c4bcf
added dynamic color component setters, and also added more unit tests
2013-05-03 21:13:26 -07:00
Eric Rowell
58b081ef12
fixed a couple bugs introduced with transform matrix caching. Cleaned up addPointGetterSetter API. reorganized dynamic getter setter comments so that it's easier to keep track of them
2013-05-02 10:22:21 -07:00
Eric Rowell
43256d0916
added skew transform courtesy of danielkur #188
2013-05-01 10:56:01 -07:00
Eric Rowell
790b45ec87
added new get*RGB(), get*R(), get*G(), and get*B() methods for fill, stroke, and shadowColor. Also added new Kinetic.Type.getRGB() utility
2013-04-29 23:12:28 -07:00
Eric Rowell
bf8d2db0df
multiple transitions on the same node are now supported
2013-04-28 14:14:45 -07:00
Eric Rowell
1dc323305b
all attrs that have x and y components now have individual component setters. i.e. you can use setScale() and pass in an object, or setScaleX() and setScaleY() individually
2013-04-27 20:50:42 -07:00
aniruddha-loya
a71d3e1fa0
Bug fix for getAttr function
...
Now it permits to return user defined attributes which do not have a corresponding method, similar to setAttrs(config) that sets attributes as key-value whenever there is no method for the given key
2013-04-24 10:19:41 +03:00
Eric Rowell
8a78b62cad
added matrix transform caching, and optimized the clear() method. This has improved rendering performance by about 17%
2013-04-21 22:42:25 -07:00
Eric Rowell
90a2820e5b
toDataURL and toImage now work correctly on devices with a pixel ratio != 1
2013-04-14 09:41:59 -07:00
Eric Rowell
b6cca6a143
moved dd logic in destroy() from Node to DD namespace. refactored stopDrag logic to correctly handle the event object
2013-04-07 10:52:33 -07:00
Eric Rowell
6f61b07500
some refactoring proposed by pavelpower
2013-04-07 10:00:55 -07:00
Eric Rowell
d57842126a
fixes #353
2013-04-04 23:17:20 -07:00
Eric Rowell
793e43b0db
removed apply() Collection method. Added new mapMethods() Collection method, which is used internally to map node methods to collection methods
2013-03-25 22:43:35 -07:00
Eric Rowell
ffe11a4539
refactored and optimized Image.js and Type.js
2013-03-24 13:12:33 -07:00
Eric Rowell
c8e83dfacb
for event delegation, changed evt.node property to evt.targetNode
2013-03-24 10:38:05 -07:00