Commit Graph

494 Commits

Author SHA1 Message Date
Anton Lavrenov
9b92331410 Fixed "calling remove() for dragging shape will throw an error". close #184 2016-11-10 16:41:31 -06:00
Anton Lavrenov
bf339fa6f7 fix baseline 2016-10-28 18:35:34 -06:00
Anton Lavrenov
0d11bff316 align support for Konva.TextPath 2016-10-28 15:30:36 -06:00
Anton Lavrenov
d090e3662e Fixed bug when Konva.Tag width was not changing its width dynamically. close #173 2016-10-25 09:42:32 -06:00
Anton Lavrenov
658ba2aeac test fixes 2016-10-25 08:51:53 -06:00
Anton Lavrenov
34cb84f616 text shadow test 2016-10-25 07:26:59 -06:00
Igor Kiselev
330ab557ee Fixed transform apply/reset for clipping (#175)
* Fixed transform apply/reset for clipping. Fix #136
2016-10-04 20:18:45 -04:00
Anton Lavrenov
834c1362c6 implement letter spacing for Text Shape 2016-09-20 16:31:30 -04:00
Anton Lavrenov
763788bd32 update CHANGELOG with new version 2016-09-20 09:35:30 -04:00
Anton Lavrenov
3b22252cc3 fix clientRect calculations 2016-09-16 10:12:49 -04:00
Anton Lavrenov
baf3769774 update CHANGELOG with new version 2016-09-15 17:16:29 -04:00
Anton Lavrenov
886bf7c4c5 prevent throw error for undefined text 2016-09-13 14:24:24 -04:00
Anton Lavrenov
5bb4994b0e enable all tests 2016-09-12 07:32:47 -04:00
Anton Lavrenov
e8b2423c82 Better TextPath hit function 2016-09-12 07:28:42 -04:00
Anton Lavrenov
2d5f5a534d lint fix, enable all tests 2016-09-11 10:06:34 -04:00
Anton Lavrenov
8658652589 update CHANGELOG with new version 2016-09-10 08:09:04 -04:00
Anton Lavrenov
f2f675cd6b filters fixes 2016-09-10 07:58:06 -04:00
Anton Lavrenov
2dde724694 fix "removing parent element of a dragging node will throw an error". close #166 2016-08-30 09:07:32 +03:00
ada99
95edb44782 Fix #157 (#158)
* Stringify custom attributes-objects

* Stringify custom attributes-objects
2016-07-09 20:54:28 +07:00
Anton Lavrenov
885a390277 Konva.Text will interpret undefined width and height as AUTO 2016-07-08 10:44:15 +07:00
Anton Lavrenov
aef5e79981 update CHANGELOG with new version 2016-07-05 09:59:41 +07:00
Anton Lavrenov
ddc38053c8 update CHANGELOG with new version 2016-06-18 22:32:13 +07:00
Anton Lavrenov
dbcc17041f clipping function 2016-06-18 22:27:19 +07:00
Anton Lavrenov
34d18efcf8 removeChildren() remove only first level children. close #135 2016-05-14 22:06:44 +07:00
Joaquín Cuenca Abela
c61df7ed65 Support fill on open paths 2016-05-13 18:56:22 +02:00
Anton Lavrenov
9470bc5fe2 cleanup 2016-05-06 14:10:50 +07:00
Anton Lavrenov
3c1e2804de better HDPI support
update packages
2016-02-28 16:57:15 +08:00
Anton Lavrenov
e54b378a33 fix wrong Path getClientRect() calculation 2016-02-05 06:51:26 +08:00
Anton Lavrenov
e3596d6c63 repair cancelBubble event property behaviour. fix #123. 2016-01-26 23:21:25 +08:00
Anton Lavrenov
ff82ad1901 optimize change event. close #120 2016-01-07 15:57:36 +08:00
Anton Lavrenov
2e76cfba30 currentTarget fix 2016-01-04 08:31:53 +08:00
Anton Lavrenov
c7ae11cd01 Narrow down getIntersection() result. add optional selector parament to getIntersection function. close #74 2015-12-26 13:12:40 +07:00
Anton Lavrenov
28e8758d29 new node.findAncestors(selector) and node.findAncestor(selector) functions. close #116 2015-12-25 21:35:19 +07:00
Anton Lavrenov
eda967c07e optional parent argument for getAbsolutePosition 2015-12-23 09:18:36 +07:00
lavrton
d1d30c6c1a event delegation support 2015-11-22 10:44:33 +07:00
lavrton
8006bed344 tween array fixes 2015-09-21 15:43:03 +07:00
lavrton
1f9ce30d81 fix cache bug 2015-09-19 23:11:01 +07:00
lavrton
5f2c70ddc7 Tweening a line with different numbers of points. close #92 2015-09-12 12:00:50 +07:00
lavrton
ff6a2bf0cc fix toObject for extended attrs. close #86 2015-08-28 11:36:38 +07:00
lavrton
026423402d update Konva.Node.create flow 2015-08-28 10:29:52 +07:00
lavrton
981f245833 fix test & update deps 2015-08-28 10:11:10 +07:00
Gleb Pospelov
29ba8e7c65 Merge upstream
#79
2015-07-30 04:23:16 +03:00
Gleb Pospelov
268c6bef26 Added simple test
#79
2015-07-30 04:08:33 +03:00
lavrton
c2d9b1d436 better dragging flow 2015-06-02 08:14:54 +07:00
lavrton
74dab77ad4 validation for find and findOne methods 2015-05-25 13:56:19 +07:00
lavrton
2640f7d36d fix test 2015-05-25 12:46:43 +07:00
lavrton
b09b22ad82 stage.toDataURL() in sync way 2015-05-25 11:26:30 +07:00
Anton Lavrenov
d455d0f994 mark some methods as deprecated 2015-05-07 08:48:15 +07:00
Anton Lavrenov
1c7c202b68 create test 2015-05-06 07:08:31 +07:00
Anton Lavrenov
33de4cb0b6 FastLayer now can have transforms. close #56 2015-05-05 07:03:14 +07:00
Anton Lavrenov
67e52e9d73 new method. close #20 2015-05-04 16:56:54 +07:00
Anton Lavrenov
2908fa975b migrate to eslint 2015-05-04 16:02:16 +07:00
Anton Lavrenov
3dff461592 set default pixelRatio for method 2015-04-27 11:20:55 +07:00
Anton Lavrenov
744dd61992 Fix clone function to support custom Shapes. close #71 2015-04-26 15:20:11 +07:00
Anton Lavrenov
42eda94675 Repair fill gradient for text. close #39 2015-04-26 08:34:28 +07:00
Anton Lavrenov
46eb8638f5 Merge branch 'master' of github.com:lavrton/KineticJS 2015-04-26 07:39:14 +07:00
Anton Lavrenov
429ef19a93 update toDataURL test 2015-04-26 07:38:41 +07:00
Anton Lavrenov
923c466572 test for toDataURL + HDPI 2015-04-26 07:26:54 +07:00
Andrej Mihajlov
5f1897fa09 Update tween tests to verify color interpolation 2015-04-22 12:41:27 +02:00
lavrton
41c10555bc fix bug for wrong getClientRect calculation. close #50 2015-04-16 09:43:21 +07:00
lavrton
4f9140539e update changelog 2015-04-14 09:56:56 +07:00
lavrton
de60359b48 unit test for filters + pixelRatio 2015-04-14 09:45:10 +07:00
lavrton
44f7d17847 repair tests 2015-04-13 07:17:32 +07:00
lavrton
98e575aaf7 repair tests 2015-04-09 06:22:36 +07:00
lavrton
18cce13ea5 better capable konva context with native context 2015-04-08 22:26:25 +07:00
lavrton
cdb1bd0437 migrate to gulp 2015-04-07 15:06:20 +07:00
lavrton
4334b2a087 fix to onFinish callback flow 2015-03-10 19:16:13 +07:00
lavrton
ff983ea8c0 new method to for tweening nodes 2015-02-26 08:18:50 +07:00
lavrton
36f4ab5346 tween color properties 2015-02-16 06:31:28 +07:00
lavrton
c3511210f2 cache + pixelRatio 2015-02-14 22:12:54 +07:00
lavrton
e39d7861c3 Add new method getClientRect(). rethink caching. 2015-02-12 14:10:36 +07:00
lavrton
b9c6bc2d10 new shadowForStrokeEnabled property for shape 2015-02-10 07:19:44 +07:00
lavrton
56f76005d7 new perfectDrawEnabled property for shape 2015-02-09 09:52:42 +07:00
lavrton
c15e977009 scale now affect to shadowOffset 2015-02-09 08:33:49 +07:00
lavrton
dc4032ceee repair tests 2015-02-09 07:21:55 +07:00
lavrton
367d829784 performance improvement 2015-02-09 06:29:31 +07:00
lavrton
0ea9f0e257 fix remove name bug 2015-02-08 09:52:19 +07:00
lavrton
264a4bab1c fix undefined name bug 2015-02-08 07:39:43 +07:00
lavrton
5df69badbf new naming methods 2015-02-08 06:24:11 +07:00
lavrton
63986be549 0.8.0 2015-02-04 05:59:01 +07:00
lavrton
d48439b952 refactor 2015-02-03 10:40:32 +07:00
lavrton
10fab252e0 findOne Method 2015-02-03 10:30:27 +07:00
lavrton
0f1d045701 repair tests 2015-01-27 15:31:00 +07:00
lavrton
3b94673d73 Merge branch 'master' of https://github.com/jovination/konva into jovination-master
Conflicts:
	src/Stage.js
	test/unit/Node-test.js
	test/unit/Shape-test.js
	test/unit/plugins/Path-test.js
2015-01-27 15:15:05 +07:00
Jovination
607ef1837b Renaming 2015-01-27 00:07:51 -07:00
lavrton
f9a08a6acc rendering shadows and strokes test improve 2015-01-27 13:21:02 +07:00
lavrton
a7863fbf83 strokeScaleEnabled set to false for Line not create correct hit graph 2015-01-22 17:50:57 +07:00
lavrton
d6cfd29962 strokeScaleEnabled = false is disabled for text 2015-01-22 16:59:05 +07:00
lavrton
4dfc65dba4 limit corner radius 2015-01-22 15:46:53 +07:00
lavrton
339e2dc969 tests updates 2015-01-22 12:47:07 +07:00
lavrton
d191b14a3e changing layer while dragging 2015-01-21 15:24:43 +07:00
lavrton
6ebd9fc554 better layer draw hit. hit updates for not dragging layer 2015-01-21 10:29:33 +07:00
lavrton
87236a88e2 better extend function 2015-01-20 17:22:51 +07:00
lavrton
a5b8c486ce text is black by default 2015-01-20 17:05:56 +07:00
lavrton
cf76a06884 line with empty points 2015-01-20 17:05:03 +07:00
lavrton
a78f01365d fix name selector bug. close #3 2015-01-15 09:41:29 +07:00
Лаврёнов Антон
a4ea6a65a5 intersects with shadow. close #1027 2014-10-02 22:41:51 +08:00
Лаврёнов Антон
362bcf9efc solve #1026 2014-10-02 22:28:51 +08:00
Лаврёнов Антон
7f7fb652da clean tests and adding docs 2014-09-24 10:26:42 +08:00
Лаврёнов Антон
7a2173dd7f Merge branch 'patch-1' of github.com:mattslocum/KineticJS into mattslocum-patch-1 2014-09-24 10:18:02 +08:00
Matt Slocum
9de8d2f806 KineticJS Unit Tests :: find with multiple names
Added unit tests to find nodes by name that have multiple names
2014-08-27 04:49:01 +00:00
Лаврёнов Антон
b321f20cdb New Arrow shape ⤵️ 2014-08-27 12:43:33 +08:00
Matt Slocum
0a1289c645 Unit Tests :: added Kinetic._addName 2014-08-26 22:07:43 -06:00
Лаврёнов Антон
1b925ed5f0 better animation and sprite workflow. fix #1002, #974, #700 2014-08-23 18:11:41 +08:00
Лаврёнов Антон
6643dcb6cc clear label test 2014-08-21 07:51:06 +08:00
Лаврёнов Антон
e3e588fa41 correct names of tests 2014-08-14 09:10:40 +08:00
Лаврёнов Антон
644369c811 circle attrs sync 2014-08-13 00:02:12 +08:00
Лаврёнов Антон
4ffa672dce ring param sync :neckbeard: fix #987 2014-08-11 23:56:13 +08:00
Лаврёнов Антон
9fba09008f disable layer hit caching 2014-05-22 23:04:57 +08:00
Лаврёнов Антон
68f8ea335e cleaning docs 2014-05-20 18:09:02 +08:00
Лаврёнов Антон
7e3803bdd1 better layers width() and height() workflow 2014-05-20 17:52:22 +08:00
Лаврёнов Антон
1db8fec21c test + refactoring 2014-05-17 21:10:49 +08:00
Лаврёнов Антон
c34873d8c1 mouse dragging only with left button. fix #272 2014-05-16 22:52:17 +08:00
Лаврёнов Антон
16511a9aef remove all events with node.off() 2014-05-15 23:45:04 +08:00
jfollas
30cd5e6307 Formatting: Tabs to spaces 2014-05-14 09:23:44 -04:00
Jason Follas
f9f7b89c3f Fix for touch events in Internet Explorer 10/11 on mobile devices (i.e., Windows Phone 8+) 2014-05-14 09:18:41 -04:00
Лаврёнов Антон
917ca5bc56 better caching if node not in layer 2014-05-11 20:22:30 +08:00
Лаврёнов Антон
f648852975 improve shouldDrawHit behaviour 2014-05-06 16:21:25 +08:00
Лаврёнов Антон
d579c97f83 unit test for group hit graph and listening 2014-05-06 15:51:24 +08:00
Лаврёнов Антон
a0b98bded0 improve image drawing performance 2014-05-05 11:09:31 +08:00
Лаврёнов Антон
4cf968749c unit test for drawing hit before adding shape to layer 2014-05-04 12:11:50 +08:00
Лаврёнов Антон
6e4dab9013 Merge branch 'fix-DblClick-after-dragging' of git://github.com/kzhdev/KineticJS into kzhdev-fix-DblClick-after-dragging
Conflicts:
	test/unit/Stage-test.js
2014-04-30 09:04:06 +08:00
Лаврёнов Антон
01964549eb now we may use cache before adding to layer 2014-04-27 22:39:51 +08:00
Лаврёнов Антон
70d7b127c0 find("Label") bug fixed. close #905 2014-04-25 19:17:12 +08:00
Eric Rowell
c96b076932 fixed up drawBorder debug border for caching 2014-03-26 23:11:46 -07:00
Eric Rowell
59a571c635 refactored cache method to work better with containers and also fast layers 2014-03-22 00:13:05 -07:00
Eric Rowell
386971ce70 Merge branch 'master' of git://github.com/ericdrowell/KineticJS 2014-03-21 20:45:01 -07:00
Eric Rowell
e5562f5dbb added angleDeg flag that enables developers to choose radians if they like 2014-03-21 20:44:25 -07:00
Лаврёнов Антон
188cd5da8e Merge branch 'master' of github.com:ericdrowell/KineticJS 2014-03-21 13:54:23 +08:00
Eric Rowell
e6b44bb75d fixed #539 and also added size() overloader 2014-03-20 20:39:40 -07:00
Лаврёнов Антон
6e1c75ceb7 cache before adding to layer test 2014-03-15 18:27:37 +08:00
Лаврёнов Антон
2bcb7bdab2 Merge branch 'master' of git://github.com/vmichnowicz/KineticJS into vmichnowicz-master 2014-03-14 12:56:14 +08:00
Victor Michnowicz
0898c24b7a add() now can add multiple layers or nodes 2014-03-13 23:30:46 -04:00
Лаврёнов Антон
b364af6f4d Merge branch 'master' of github.com:ericdrowell/KineticJS 2014-03-11 23:15:20 +08:00
Лаврёнов Антон
d0c7aed452 tests for drag distance 2014-03-11 23:14:03 +08:00
Eric Rowell
e7175824a1 commenting out assertions that are failing in Travis CI. The tests pass perfectly locally in both a browser and PhantomJS. will need to investigate 2014-03-10 00:19:14 -07:00
Eric Rowell
f2861ca1b8 fixed up another unit test 2014-03-09 23:12:28 -07:00
Eric Rowell
396ca81764 fixed up unit tests 2014-03-09 23:07:31 -07:00
Eric Rowell
aa7f56be26 fixed up caching now that transformsEnabled attr has been removed 2014-03-09 22:59:53 -07:00
Eric Rowell
a2ec418fe8 reenabling all tests 2014-03-09 13:24:38 -07:00
Eric Rowell
852ef7056d added perf tests for new FastLayer 2014-03-09 13:15:01 -07:00
Eric Rowell
a9ecfd74a2 Merge branch 'master' of git://github.com/ericdrowell/KineticJS 2014-03-09 12:41:25 -07:00
Eric Rowell
c623666206 deprecated transformsEnabled property. Continued developing the new FastLayer class 2014-03-09 12:41:16 -07:00
Лаврёнов Антон
8443a3876a Merge branch 'fix-duplicate-test-names' of git://github.com/dpbevin/KineticJS into dpbevin-fix-duplicate-test-names 2014-03-09 13:08:20 +08:00
Anton Lavrenov
720476ab94 Merge pull request #781 from guycook/master
Shape.hasShadow cache invalidation fix
2014-03-09 10:09:06 +08:00
Eric Rowell
df9d6cabd2 enabled all tests 2014-03-08 18:05:39 -08:00
Eric Rowell
09af9f62dd setup FastLayer. Layer won't extend FastLayer until FastLayer is complete 2014-03-08 18:05:14 -08:00
Лаврёнов Антон
45ddf95629 better cloning of node: array copied as copy, nor reference 2014-03-08 10:50:53 +08:00
Лаврёнов Антон
d65201a12f stage clone has new container. fix #707 2014-03-07 22:51:26 +08:00
Лаврёнов Антон
452c99cb4e default shadow opacity should be 1. fix #696 2014-03-07 19:13:52 +08:00
kzhdev
833c470504 add test 2014-03-06 20:30:04 -06:00
Лаврёнов Антон
798d1acf28 Pure NodeJS environment test runner: grunt node-test 2014-03-04 19:35:26 +08:00
Лаврёнов Антон
a524ba9ec1 fix #767 2014-03-03 19:24:00 +08:00
Лаврёнов Антон
e5db9115a0 black list for clone function. fix #583 2014-03-02 21:51:35 +08:00
Лаврёнов Антон
53ac9329de isRunning function for Sprite object 2014-03-02 10:46:45 +08:00
Лаврёнов Антон
86178185bc optional filter callback for getChildren function. close #313 2014-03-02 09:25:22 +08:00
Лаврёнов Антон
74060ce935 add function takes care about parent existence. fix #426, #434 2014-03-02 07:50:51 +08:00
Лаврёнов Антон
6c46e44bbd fix #500 2014-02-27 22:53:30 +08:00
Лаврёнов Антон
098fabbfc1 merge 2014-02-27 09:13:55 +08:00
Лаврёнов Антон
eb16e29197 only lint errors fixes 2014-02-27 08:49:18 +08:00
Лаврёнов Антон
2757842935 fix #670
Some lint error resolve
2014-02-27 08:19:29 +08:00
Eric Rowell
26a267a457 skipping sprite tests because it fails sporadically 2014-02-26 10:54:21 -08:00
Eric Rowell
8fcd882ba5 added throttling to mousemove and touchmove. Added logic to prevent Android from detecting both touch and mouse events 2014-02-26 08:46:26 -08:00
Eric Rowell
c2e138c6f4 for desktop browsers, always set pixel ratio to 1. When users have zoom enabled, it affects pixel ratio and causes artifacts. There doesn't appear to be a way to detect zoom level for modern browsers in order to adjust the pixel ratio 2014-02-26 07:57:05 -08:00
sonnym
2f7821c898 add font-variant support to Text and TextPath 2014-02-25 17:34:16 -05:00
Лаврёнов Антон
0a664e009c Sprite test improve 2014-02-25 00:54:20 +08:00
Лаврёнов Антон
08d9be8371 fix #447 2014-02-25 00:40:35 +08:00
David Bevin
5eb5a08e65 * Removed duplicated rotation test from Node-test.
* Renamed a test in Tween-test to give it a unique name.
2014-02-03 15:22:08 +11:00
ippo615
da5055cf28 New HSL filter. HSV and HSL want values between -1.0 and +1.0 (was 0.5 to 2.0) 2014-01-31 16:49:11 -05:00
ippo615
774f50007c Added HSL filter. 2014-01-27 19:59:42 -05:00
Guy Cook
d92a5f53e5 Shape.hasShadow cache fix
Typo was causing hasShadow cache not to be invalidated after using
setShadowEnabled. Fixes issue #693
2014-01-26 17:17:14 +13:00
Eric Rowell
99719bad44 fixed #769 2014-01-20 23:56:35 -08:00
Eric Rowell
da28418239 introduced new alpha component for colors. fixed #755. Created new validators namespace for getter setter validator functions 2014-01-20 11:26:01 -08:00
Eric Rowell
708937d5c5 reenabling all tests 2014-01-19 22:01:35 -08:00
Eric Rowell
2243010d33 collections are now chainable 2014-01-19 21:37:13 -08:00
Eric Rowell
f1b1c58166 all methods are now copied to Collection prototype so that you don't have to use the each() method all the time 2014-01-19 21:35:28 -08:00
Eric Rowell
79f86f2fe0 fixed pattern scale default issue 2014-01-12 21:48:33 -08:00
Eric Rowell
0e0c92da18 added Node unit test 2014-01-11 14:59:19 -08:00
Eric Rowell
cb78b9bd0e removed Polar Tests and make a few tweaks to Node 2014-01-11 12:55:19 -08:00
Eric Rowell
99e7ad4bf0 added back compat Factor method and plugged in the methods that changed with the 5.0.0 release 2014-01-10 22:58:55 -08:00
Eric Rowell
79701fcca0 reverted center attr back to offset. I think it's more confusing 2014-01-10 22:09:22 -08:00
Eric Rowell
baf635c7f0 changed dashArray to dash. started chipping away at the Shape docs 2014-01-09 22:37:27 -08:00
Eric Rowell
13b91d0db7 removed color getter and setters from Factory. color components are now red, green, and blue, not r, g, b 2014-01-09 00:29:38 -08:00
Eric Rowell
f73baa1a4e cutting down Factory by creating a addComponentsGetterSetter method which all component attrs will use 2014-01-08 23:13:50 -08:00
Eric Rowell
fc8273e792 updated overloaded docs for d&d, node, shape, stage, sprite, text, and wedge 2014-01-07 23:56:49 -08:00
Eric Rowell
4d8ee45f71 Sprite animations keys are now set to arrays of integers, not array of object literals containing x y width and height. changed index attr to frameIndex 2014-01-07 00:43:31 -08:00
Eric Rowell
e594aa5656 Merge branch 'master' of github.com:ericdrowell/KineticJS 2014-01-06 21:51:58 -08:00
Eric Rowell
66b65f1c19 removed radian angle attrs. All rotations are set in degrees now 2014-01-06 21:37:46 -08:00
ippo615
f3c2bd5c01 Changed Kaleidoscope parameters: power and angle 2014-01-06 19:27:47 -05:00
Eric Rowell
ceddf561fc removed shape enablers and disables. They were reduandant methods and muddied up the API 2014-01-05 21:03:11 -08:00
Eric Rowell
3d76beb260 removed misspelled files 2014-01-05 13:40:54 -08:00
Eric Rowell
193b9d0970 fixed kaleidoscope filter spelling 2014-01-05 13:32:50 -08:00
Eric Rowell
09aaa44e07 Merge branch 'master' of github.com:ericdrowell/KineticJS 2014-01-05 13:21:27 -08:00
Eric Rowell
0d7cfdee9d added more cache and filter tests 2014-01-05 13:21:05 -08:00
ippo615
baf36a0ced Merge branch 'master' of https://github.com/ericdrowell/KineticJS
Conflicts:
	Gruntfile.js
2014-01-05 13:01:46 -05:00
ippo615
a947bd19ca Added Kalidescope filter. 2014-01-05 12:59:20 -05:00
Eric Rowell
65a0aecb97 added test for hit region draw from blurred image 2014-01-05 01:24:23 -08:00
Eric Rowell
4d323c7b57 new drawHitFromCache Shape method replaces Image createImageHitRegion 2014-01-05 01:10:56 -08:00
Eric Rowell
fae1c538f3 changed offset to center 2014-01-04 23:56:33 -08:00
Eric Rowell
7e2c6c97f8 changed drawFunc to sceneFunc and drawHitFunc to hitFunc 2014-01-04 23:34:01 -08:00