Commit Graph

888 Commits

Author SHA1 Message Date
Anton Lavrenov
4b69631782 Better unicode support in Konva.Text and Konva.TextPath. Emoji should work better now 👍. fix #690 2020-09-14 09:46:26 -05:00
Anton Lavrenov
179ba2eb8a Merge branch 'f/add-corner-radius-array-to-label-tag' of https://github.com/raphael-papazikas/konva into raphael-papazikas-f/add-corner-radius-array-to-label-tag 2020-09-07 12:52:50 -05:00
Anton Lavrenov
103ad23929 multirow support for ellipses config for Konva.Text. close #970 2020-09-07 11:03:20 -05:00
Anton Lavrenov
40d68ea6e8 update rotation of transformer automatically. close #976 2020-09-07 10:40:23 -05:00
Raphael Papazikas
22a4a53a8c
add cornerRadius as array to label tag 2020-09-06 13:08:50 +02:00
Anton Lavrenov
4a29a1e109 dragstart fixes when transformer is used 2020-09-02 12:50:41 -05:00
Anton Lavrenov
02ec2c4e61 string and fill properties validation can accept CanvasGradient as valid value. close #965 2020-08-26 09:54:03 -05:00
Anton Lavrenov
1634103d0e better stage drag performance 2020-08-21 12:09:58 -05:00
Anton Lavrenov
970473a56f fix test 2020-08-08 09:45:01 -05:00
Anton Lavrenov
55107920bd cache fixes 2020-08-08 09:24:31 -05:00
Anton Lavrenov
dd84716715 performance updates 2020-07-30 10:44:15 -05:00
houfio
cb61da5bef Add update callback 2020-07-24 23:41:59 +02:00
Anton Lavrenov
b5e7362d26 update CHANGELOG with new version 2020-07-09 16:50:50 -05:00
Anton Lavrenov
4e1b1c7812 rendering fixes for letter spacing. fix #942 2020-07-02 17:27:30 -05:00
Anton Lavrenov
910273f2c6 update CHANGELOG with new version 2020-06-29 12:14:39 -05:00
Anton Lavrenov
08d1ca7c5f font fixes. close #910 2020-06-25 12:18:31 -05:00
Anton Lavrenov
d62645609d more performance fixes 2020-06-23 17:22:28 -05:00
Anton Lavrenov
bc4bfbc0c5 clean files 2020-06-19 10:36:12 -05:00
Anton Lavrenov
f664606b8f dragmove will trigger on Transformer and when all nodes are moved. fix #928 2020-06-18 16:41:54 -05:00
Anton Lavrenov
0fe8e7fb7f perf optimizations 2020-06-16 16:20:36 -05:00
Anton Lavrenov
e22a98d656 perf fixes, transformer events 2020-06-16 12:16:53 -05:00
Anton Lavrenov
1d8388eead performance optimizations 2020-06-10 11:57:48 -05:00
Anton Lavrenov
43b23e9559 add FastLayer deprecate 2020-06-09 15:55:08 -05:00
Anton Lavrenov
33ac099ce9 fix dblclick and dbltap triggers. fix #917 2020-06-03 14:06:06 -05:00
Anton Lavrenov
d96e7d9ede text font fix. close #910 2020-05-14 11:25:27 -05:00
Anton Lavrenov
ee99044baa remove inherit from listening property, deprecate FastLayer, font fixes. 2020-05-14 11:13:47 -05:00
Anton Lavrenov
6cc3224769 Merge branch 'master' of github.com:konvajs/konva 2020-05-13 09:23:31 -05:00
Anton Lavrenov
0753569d0d add listening test 2020-05-13 09:21:51 -05:00
Nathan Muir
bf1b4a91e9 Make Node#isVisible() consistent with drawing behaviour
Remove the "inherit" value from Node#visible(), and treat `true` similar to "inherit".

Fixes konvajs/konva#906
2020-05-13 11:55:36 +12:00
Anton Lavrenov
d5481b1b72 prettier 2020-05-08 09:59:35 -05:00
Anton Lavrenov
d868ecc5b6 fix mouseout and mouseleave event on shape destroy. fix #905 2020-05-07 13:47:17 -05:00
Anton Lavrenov
9b4664db3e Transfomer fixes 2020-05-06 11:40:08 -05:00
Anton Lavrenov
0314182992 transformer work 2020-05-05 10:37:58 -05:00
Anton Lavrenov
414f3385ae Fixes for boundBoxFunc of Konva.Transformer. 2020-05-01 16:07:38 -05:00
Anton Lavrenov
099de8aefd pre patch 2020-05-01 14:58:34 -05:00
Anton Lavrenov
b657111578 fix detach bug on destroy 2020-04-23 11:33:00 -05:00
Anton Lavrenov
f58635bbf6 fix deatach 2020-04-23 08:59:19 -05:00
Anton Lavrenov
e7e2efe230 update CHANGELOG with new version 2020-04-22 19:20:44 -05:00
Anton Lavrenov
718531f50a Fixes for Konva.Transformer when parent scale is changed. fix #894 2020-04-22 09:06:31 -05:00
Anton Lavrenov
a7c9e0b5a5 dragbound fixes 2020-04-21 16:10:11 -05:00
Anton Lavrenov
f970121959 many transformer fixes 2020-04-21 14:11:52 -05:00
Anton Lavrenov
9a23b0aa7d fix snap calculations. fix #888 2020-04-13 10:12:39 -05:00
Anton Lavrenov
8937741c31 fix some transformer bugs 2020-04-10 16:00:25 -05:00
Anton Lavrenov
2423ec261b fix transformer on parent transform change. close #834 2020-04-08 17:27:18 -05:00
Anton Lavrenov
d297cec70b Memory usage optimizations when a node is cached. close #887 2020-04-08 16:03:26 -05:00
Anton Lavrenov
865d6c7618 fix imageSmoothingEnabled on resize. fix #884 2020-04-07 12:47:22 -05:00
Anton Lavrenov
1427cf0efc cleaning 2020-04-07 08:46:50 -05:00
Anton Lavrenov
55c812425d some transformer fixes 2020-04-06 21:51:03 -05:00
Anton Lavrenov
185c599257 initial support for multiple nodes for Konva.Transformer 2020-04-02 10:01:31 -05:00
Anton Lavrenov
4f50d42401 clean 2020-03-29 09:34:47 -05:00
Anton Lavrenov
010729dc19 some type fixes. close #869 2020-03-29 07:45:39 -05:00
Anton Lavrenov
7df28d4e50 update CHANGELOG with new version 2020-03-26 15:14:30 -05:00
Anton Lavrenov
3d00d1a344 Fix rounding issues for getClientRect() for some shapes. fix #879 2020-03-26 14:41:06 -05:00
Anton Lavrenov
65e06f200e Fix some issues with mouseenter and mouseleave events. fix #875 2020-03-18 09:41:36 -05:00
Anton Lavrenov
8f18165273 experimental Offscreen canvas support 2020-03-14 21:07:37 -05:00
Anton Lavrenov
b7b50f22d8 fix non-closed hit for Konva.Path. close #867 2020-03-12 09:27:42 -05:00
Anton Lavrenov
2019f8042b Add getActiveAnchor() method to Konva.Transformer 2020-03-03 09:09:21 -05:00
Anton Lavrenov
2e40322b83 fix tests 2020-02-24 20:45:50 -05:00
Anton Lavrenov
7ec68fc501 transformer events fixes, fix readme 2020-02-24 20:39:32 -05:00
Anton Lavrenov
6fbe48e583 allow cloning id 2020-02-17 19:51:18 -05:00
Anton Lavrenov
396297bdfc update CHANGELOG with new version 2020-02-16 07:39:42 -05:00
Anton Lavrenov
86f847a702 Fix wrong internal caching of absolute attributes. fix #843 2020-02-10 08:22:07 -05:00
Anton Lavrenov
1c3a019134 Fix Konva.Transformer behavior on scaled with CSS stage. fix #841. 2020-02-06 10:14:49 -05:00
Anton Lavrenov
1c85a7ee26 fix cursor on anchors for rotated parent. fix#837 2020-01-30 11:41:05 -05:00
Anton Lavrenov
e112c14852 fix calculations 2020-01-27 13:41:18 -05:00
Anton Lavrenov
7f62ccf620 fix docs, fix line calculations, close #829 2020-01-27 13:28:11 -05:00
Anton Lavrenov
f097fe7b2f Add Transform to Konva default exports. So Konva.Transform is available now. close #820 2020-01-07 08:31:28 -05:00
Anton Lavrenov
aab7bf1c0f Fix cache() method of Konva.Arrow(). close #819 2020-01-03 08:59:34 -05:00
Anton Lavrenov
81a8a4eec1 update docs. close #702 2019-12-24 12:15:49 -05:00
Anton Lavrenov
537753cfc2 enable all tests 2019-12-24 11:22:12 -05:00
Anton Lavrenov
76c0e3f272 fix image size detection on zero values. fix #774 2019-12-24 11:21:43 -05:00
Anton Lavrenov
961e61c1bc fix mouseleave on stage. close #811 2019-12-18 13:16:03 -05:00
Anton Lavrenov
7787dfdf14 Make events work on some CSS transforms. fix #792 2019-11-28 12:22:44 -05:00
Anton Lavrenov
65eeb13d66 fix cache with float dimensions. fix #798 2019-11-28 11:51:40 -05:00
Anton Lavrenov
472441fcfe fix text correction. fix #786 2019-11-25 11:25:30 -05:00
Anton Lavrenov
de9a0e24e0 add path test 2019-11-20 13:46:52 -05:00
Anton Lavrenov
ca1ccdaf82 performance update 2019-11-20 13:39:02 -05:00
Anton Lavrenov
af45808d07 Fix path.getClientRect() calculations for Konva.Path 2019-11-14 11:18:12 -05:00
Anton Lavrenov
67d5e362e8 stop triggering click and tap on short drag&drop. fix #784 2019-11-12 15:10:36 -05:00
Anton Lavrenov
680ea026d8 small refactoring 2019-11-12 14:38:36 -05:00
Anton Lavrenov
c2c4f6badd Merge branch 'master' of github.com:konvajs/konva 2019-11-08 11:47:41 -05:00
Anton Lavrenov
bb68b3f1a8 allow hitStrokeWidth usage, even if a shape has not stroke visible. fix #782 2019-11-08 11:37:10 -05:00
Lasse Wallentin
81f930a2ab Fixed zero bounds children resulting in NaN group bounds. 2019-10-23 11:15:20 +02:00
Anton Lavrenov
d82c11ea95 Better calculations for container.getClientRect() 2019-10-21 10:12:10 -05:00
Anton Lavrenov
0669b24cf9 Warn on undefined return value of dragBoundFunc. close #764 2019-10-18 14:09:49 -05:00
Anton Lavrenov
e2e94e08e6 update CHANGELOG with new version 2019-10-15 11:51:13 -05:00
Anton Lavrenov
71261c21bf build and enable all tests 2019-10-11 09:17:54 -05:00
Anton Lavrenov
7de82e5823 fix path calculations 2019-10-11 09:15:38 -05:00
Anton Lavrenov
80c674eb1f Fix globalCompositeOperation + cached hit detections. close #759 2019-10-10 15:52:00 -05:00
Anton Lavrenov
7909283e3d fix absolute position calculations for cached parent. close #753 2019-10-08 15:20:22 -05:00
Anton Lavrenov
201a292a89 clean up 2019-10-07 14:22:52 -05:00
Anton Lavrenov
cf27503518 Fix line.getClientRect() calculations for line with a tension or low number of points 2019-10-02 08:00:06 -05:00
Anton Lavrenov
1fa53d73e0 update CHANGELOG with new version 2019-09-17 12:57:01 -05:00
Anton Lavrenov
1f14bf1fef Fix some bugs when Konva.Transformer has padding > 0 2019-09-17 12:50:28 -05:00
Anton Lavrenov
f16434d6d8 Fix drag position handling. close #739 2019-09-10 12:08:36 -05:00
Anton Lavrenov
e23c288156 repait all tests 2019-09-09 10:56:51 -05:00
Anton Lavrenov
c3f4e53be5 fix multiple selector for find() method. close #735 2019-09-09 10:55:17 -05:00
Anton Lavrenov
c8aa734808 fix test 2019-09-06 14:55:33 -05:00
Anton Lavrenov
456bd9ec91 Fix Konva.Transformer behavior on mirrored nodes. close #732 2019-09-06 14:15:07 -05:00
Anton Lavrenov
be3f7e8059 Fix stage.getPointerPosition() logic. close #733 2019-09-06 13:39:26 -05:00
Anton Lavrenov
2988dce492 fix dragend bug, revert back text fill pattern fix 2019-09-05 13:01:20 -05:00
Anton Lavrenov
cd2853d91d update CHANGELOG with new version 2019-09-03 09:38:19 -05:00
Anton Lavrenov
4383e411b3 Fixed double tap trigger after dragging. close #721 2019-09-02 11:39:22 -05:00
Anton Lavrenov
e325deef1d update CHANGELOG with new version 2019-08-31 16:40:39 -05:00
Anton Lavrenov
0f6ec63fe8 update CHANGELOG with new version 2019-08-17 12:47:48 +07:00
Anton Lavrenov
57d9917b62 fix dragstart bug. close #708 2019-08-12 17:33:27 +07:00
Anton Lavrenov
04968c3b51 Fix nested dragging bug. close #71 2019-08-12 08:42:50 +07:00
Anton Lavrenov
15f5287b34 fix transformer + clone bug. fix #706 2019-08-10 16:57:53 +07:00
Anton Lavrenov
c4be177c9d pointer support check 2019-08-08 22:12:18 +07:00
Anton Lavrenov
0975848dd7 events fixes 2019-08-08 16:24:55 +07:00
Anton Lavrenov
61b46658bc Fixed node.startDrag() behavior. We can call it at any time. 2019-08-08 11:13:55 +07:00
Anton Lavrenov
85d1cdd09c make arrow with tension a bit better 2019-08-07 11:42:35 +07:00
Anton Lavrenov
519bd94a7c prepare new version. Update docs. 2019-08-05 13:54:08 +07:00
Anton Lavrenov
f1846ba996 Merge branch 'master' of github.com:konvajs/konva 2019-08-04 14:46:15 +07:00
Anton Lavrenov
7df6fc4f3f some new files 2019-08-04 14:39:13 +07:00
Anton Lavrenov
34f0f4ae33 drag&drop multitouch 2019-08-04 14:38:57 +07:00
Anton Lavrenov
1d932bf76c better mulitouch 2019-08-04 09:41:57 +07:00
George Gkasdrogkas
5998d38878
feat(ColorToRGBA): support HSL format
closes issue #505
2019-07-28 21:29:01 +03:00
Anton Lavrenov
9cef088d24 Fix wrong double tap trigger 2019-07-18 07:55:22 +07:00
Anton Lavrenov
477a2392ac different values for corner radius. fix #687 2019-07-12 17:12:11 +07:00
Anton Lavrenov
b798a56bff types fixes, konva-node updates 2019-07-11 04:59:39 +07:00
Haochen Wu
46e9243759 add missing semicolon 2019-06-08 22:25:14 -07:00
Haochen Wu
307dfcc911 Fixed set container for dangling stage, related to #510 2019-06-08 22:13:29 -07:00
Anton Lavrenov
2315f542f7 Add new property imageSmoothingEnabled to the node caching 2019-05-30 12:56:24 -05:00
Anton Lavrenov
8252804373 Add new property imageSmoothingEnabled to the layer. some ts fixes. 2019-05-28 15:39:08 -05:00
Anton Lavrenov
b2239a7085 cleanup 2019-05-27 20:25:54 -05:00
Anton Lavrenov
1230f2dd44 fix some Konva.Transformer bugs 2019-05-27 16:16:41 -05:00
Anton Lavrenov
de0d4a6c71 Merge branch 'master' of github.com:konvajs/konva 2019-05-27 14:40:06 -05:00
Anton Lavrenov
da11cf8b01 Merge branch 'wip-pointer-events' of https://github.com/jquense/konva into jquense-wip-pointer-events 2019-05-27 14:39:17 -05:00
William Théroux
5c36b85868 Added ellipse passthrough to context 2019-05-10 00:09:05 +02:00
Jason Quense
9645c5c063 add tests 2019-04-10 10:28:42 -04:00
Anton Lavrenov
a6122178c6 transformer warning, typescript fixes 2019-04-08 12:17:26 -05:00
Anton Lavrenov
49ceea1dfc fix some stage evetns. close #627 2019-04-03 20:28:48 -05:00
Anton Lavrenov
51d880de76 some types updates 2019-04-03 18:08:16 -05:00
Anton Lavrenov
f9c60c99e1 fix hasName method for empty name cases 2019-03-21 07:43:58 -05:00
Anton Lavrenov
0e87ded7ba update CHANGELOG with new version 2019-03-18 14:18:03 -05:00
Anton Lavrenov
3030fe32d1 new property hitStrokeWidth for shapes 2019-03-10 12:35:44 -05:00
Anton Lavrenov
e88a485458 better modules 2019-03-06 22:19:32 -05:00
Anton Lavrenov
daed263c6a back to commonjs 2019-02-27 17:30:47 -05:00
Anton Lavrenov
7c3d9fabae modules fixes 2019-02-27 11:18:21 -05:00
Anton Lavrenov
0d9a27f185 fix drag&drop on mobile 2019-02-27 09:14:07 -05:00
Anton Lavrenov
a62ce96214 fix Transformer bugs 2019-02-27 08:35:30 -05:00
Anton Lavrenov
8962164096 make Konva modular 2019-02-27 08:06:04 -05:00
Anton Lavrenov
13fde9329f update changelog, update test 2019-02-25 08:05:14 -05:00
Anton Lavrenov
75bd2782c6 parcel files 2019-02-25 07:56:17 -05:00
Anton Lavrenov
899d0942ea strokeWidth = 0 bug fix 2019-02-25 07:55:36 -05:00
Anton Lavrenov
472bb1cf63 fix recache bug 2019-02-23 09:40:32 -05:00
Anton Lavrenov
605725fe43 cache fix 2019-02-22 22:13:37 -05:00
Anton Lavrenov
aaf0185363 type fixes, fix fast layer bug 2019-02-22 12:46:46 -05:00
Anton Lavrenov
033dbc57cd clean tests 2019-02-20 11:45:24 -05:00
Anton Lavrenov
645ac49882 more fixes for gradient 2019-02-20 11:33:00 -05:00
Anton Lavrenov
3f410b7d3b change test a bit 2019-02-20 11:06:39 -05:00
Anton Lavrenov
48bedf8fa9 Fixed gradient drawing for Konva.Text 2019-02-20 11:01:38 -05:00
Anton Lavrenov
febdc9e3d4 fix some docs and tests 2019-02-20 09:13:39 -05:00
Anton Lavrenov
c4f21b67a3 Fixed container change for a stage. fix #510 2019-02-19 20:43:06 -05:00
Anton Lavrenov
0ae1f66b60 Private method stage._setPointerPosition() is deprecated
New method `stage.setPointersPositions(event)`
2019-02-19 20:17:49 -05:00
Anton Lavrenov
1b065a55a0 ixed automatic updates for Konva.Transformer 2019-02-19 08:36:16 -05:00
Anton Lavrenov
74210cbc79 fix caching issues. close #581 2019-02-18 12:38:17 -05:00
Anton Lavrenov
7b22a7ae50 Merge branch 'master' of github.com:konvajs/konva 2019-02-18 12:18:16 -05:00
Anton Lavrenov
40cf5a5909 fix some docs, partial cache fixes 2019-02-18 12:12:03 -05:00
VladimirTechMan
26d40ae1f9 Proposal: Using ECMAScript 6 Map for Node._cache instead of plain Object 2019-02-17 23:59:08 +03:00
Anton Lavrenov
1dea3696a2 configure what mouse buttons can be used for drag&drop 2019-02-14 10:33:58 -05:00
Anton Lavrenov
dcff79eb63 more warnings and methods 2019-02-13 23:41:32 -05:00
Anton Lavrenov
99e66c380f cache patterns and gradients 2019-02-13 22:04:54 -05:00
Anton Lavrenov
128b5b403e fix array serialization. fix #576 2019-02-11 08:46:34 -05:00
Anton Lavrenov
33d64e194c build fixes, text underline fixes 2019-02-06 12:46:21 -05:00
Anton Lavrenov
9aed313ef2 better test 2019-02-05 21:21:57 -05:00
Anton Lavrenov
b02ac65e68 fix docs, Better implementation of mouseover event for stage 2019-02-05 16:43:43 -05:00
Anton Lavrenov
31785f6323 Show a warning for incorrect value for component setters. Fix some TODOs 2019-01-27 15:43:50 -05:00
Anton Lavrenov
a0b2f027ba drag&drop refactor, update docs 2019-01-25 00:20:15 -05:00
Anton Lavrenov
11d805795a warning on dublicate ids 2019-01-24 22:52:16 -05:00
Anton Lavrenov
d726c5d6f3 add docs, change perf test 2019-01-24 08:45:17 -05:00
Anton Lavrenov
a81f9ec1f9 Show a warning when a stage has too many layers 2019-01-22 08:43:43 -05:00
Anton Lavrenov
41a46c8afe clean up some methods 2019-01-21 21:22:36 -05:00
Anton Lavrenov
d49ee3dff1 fix tests for HDPI 2019-01-21 17:50:42 -05:00
Anton Lavrenov
7aa3c3238d several fixes 2019-01-21 17:42:02 -05:00
Anton Lavrenov
76299cd07a skip test 2019-01-19 10:46:24 -05:00
Anton Lavrenov
44bf0a69ca remove old checks 2019-01-19 10:39:26 -05:00
Anton Lavrenov
d660efe9fa fix log 2019-01-19 10:31:07 -05:00
Anton Lavrenov
3002891f5e more info in tests 2019-01-19 10:26:21 -05:00
Anton Lavrenov
cab03b5a88 skip test 2019-01-19 10:15:11 -05:00
VladimirTechMan
e6276d28db Minor improvement to the implementation of Text._sceneFunc
As the context's translate() is additive, there is no need for
the two consecutive calls of it inside _sceneFunc(): The same
effect can be achieved with with just one call of translate().

A corresponding update was done in the unit test for Text that
had a pair of calls to translate() in the expected call dump.
2019-01-19 14:56:38 +03:00
Anton Lavrenov
366abc0a79 change test again 2019-01-15 14:58:39 -05:00
Anton Lavrenov
ce5ab7e4cf change test 2019-01-15 14:55:41 -05:00
Anton Lavrenov
5ebef8ef6e some code and comments fixes 2019-01-14 13:29:24 -05:00
Anton Lavrenov
830eb53650 bugs fixes, docs updates. fix #535 2019-01-11 08:51:46 -05:00
Anton Lavrenov
52f2b8178b docs updatesx 2019-01-06 03:01:20 -05:00
Anton Lavrenov
4d58cd6479 initial migrate to typescript 2019-01-01 15:59:27 -05:00
Anton Lavrenov
2404368ec8 New ignoreStroke for Konva.Transformer, perf fixes 2018-12-14 13:28:39 -05:00
Anton Lavrenov
d76b09e026 update docs, update version 2018-11-27 09:02:28 -05:00
Anton Lavrenov
352f493d0a getKerning TextPath API is deprecated. Use "kerningFunc" instead. 2018-11-17 08:50:31 -05:00
Anton Lavrenov
7a95e9ad80 update CHANGELOG with new version 2018-10-24 08:02:01 -05:00
Anton Lavrenov
5136e29d6a Fix transformer behaviour on shapes with shadow. fix #481 2018-10-22 12:16:30 -05:00
Anton Lavrenov
2ccc9a7fdd remove logs, update perf test 2018-10-18 15:12:54 -05:00
Anton Lavrenov
f645b22c4a * `dragstart event behaviour is a bit changed. It will fire BEFORE actual position of a node is changed. fix #476 2018-10-18 12:28:03 -05:00
Anton Lavrenov
4cfedeb80a Performance fixes for caching 2018-10-15 16:40:33 -05:00
Anton Lavrenov
ffbb871a02 Fixed a wrong cache when a shape inside group has listening = false 2018-10-12 12:07:04 -05:00
Anton Lavrenov
ac12c32ca0 rect calculation fixes for Path, sprite start fixes. close #465 2018-10-01 14:44:24 +03:00
Anton Lavrenov
15b9d66b20 Fix click stage event on dragend, Fix some Transformer cursor behavior. fix #463 2018-09-27 10:59:27 +03:00
Anton Lavrenov
c0911572e7 getClientRect calculation fix for groups 2018-09-24 14:40:07 +03:00
Anton Lavrenov
77b51bb587 Added some text trim logic to wrap in better 2018-09-24 09:32:54 +03:00
Anton Lavrenov
27f00b1aad bugs fixes 2018-09-22 14:08:22 +03:00
Anton Lavrenov
4ac38ddc1f new centeredScaling for Konva.Transformer 2018-09-19 15:00:27 +03:00
Anton Lavrenov
3cf4707e1a enable tests 2018-09-11 16:23:58 +03:00
Anton Lavrenov
4f70edc8c1 Centered resize with ALT key for Konva.Transformer 2018-09-11 16:15:42 +03:00
Anton Lavrenov
b0c2112ec8 Tween support for gradient properties. fix #454 2018-09-10 18:02:33 +03:00
Dyakin
94bc556b8d Tests cleanup 2018-09-04 13:37:40 +03:00
Anton Lavrenov
98efbca18f vertical align for the text. close #440 2018-08-30 15:18:09 +03:00
Anton Lavrenov
0a6bd95414 add docs, change tests 2018-08-30 13:49:43 +03:00
Anton Lavrenov
973344a3c6 Merge branch 'master' of https://github.com/andrewDyakin/konva into andrewDyakin-master 2018-08-30 13:42:43 +03:00
Anton Lavrenov
738cc8b79c Automatic validations for many attributes. close #436 2018-08-21 15:56:04 +07:00
Anton Lavrenov
973e7932e4 typescript fixes, id warning template 2018-08-21 14:13:53 +07:00
Dyakin
c16e3d1d0b get point at path 2018-08-19 23:19:13 +03:00
Anton Lavrenov
22eee6530f some toDataURL fixes and refactoring 2018-08-16 14:52:42 +07:00
Anton Lavrenov
77af92cbf0 build and test fix 2018-08-09 12:35:21 +07:00
VladimirTechMan
3a8f10687c Merge remote-tracking branch 'upstream/master' 2018-08-02 22:30:21 -04:00
Anton Lavrenov
98d2d6ffe0 better toDataURL for shapes 2018-08-01 09:26:13 +07:00
VladimirTechMan
940fdfe787 Only update the z-indices that do change after reordering nodes
Right now, when updating the z-index of a node in a container,
the indices of all its siblings are refreshed. However, if the
node changes its z-index from z1 to z2, we only need to refresh
the z-indexes of the node's parent's children in the closed
range [ min(z1,z2), max(z1,z2) ]. For groups and layers with
many children that will be more optimal in many cases.

In addition to the above change, this patch:
* forces the parameter of Node#setZIndex() to be in the valid
  range.
* adds the (now absent) unit tests for the methods of Node that
  change z-indices of the parent's children.
2018-07-28 18:56:37 -04:00
Anton Lavrenov
40416a0cee prettier, build 2018-07-24 11:07:13 +07:00
VladimirTechMan
fc2343078a Support offsetX and offsetY when transformsEnabled is set to 'position'
Supporting both x, y and offsetX, offsetY under the 'position' option
of node property transformsEnabled makes it more useful for real apps.

As there is no benefit in making auxiliary variable transformsEnabled
a part of the function closure, it is moved inside the local function
body itself.
2018-07-23 19:47:05 -04:00
Anton Lavrenov
39e022e786 toDataURL fixes 2018-07-18 14:56:46 +07:00
Anton Lavrenov
87820449ad enable all tests 2018-07-12 11:13:00 +07:00
Anton Lavrenov
aaa3461b1f Transformer fixes 2018-07-12 11:04:20 +07:00
Anton Lavrenov
e6c5325ccb toObject fixes 2018-07-05 14:49:02 +07:00
Anton Lavrenov
a106b3e34c Merge branch 'master' of https://github.com/allada/konva into allada-master 2018-07-03 12:09:19 +07:00
Anton Lavrenov
e518e64935 ome drag&drop fixes 2018-07-03 11:03:06 +07:00
Nathan Bruer
56a2c1c43d Test for Transformer scale changes 2018-07-02 14:47:54 -07:00
Nathan Bruer
1cac35652e Test for transformer curor on parent 2018-07-02 11:03:01 -07:00
Anton Lavrenov
136df898c1 add shape as second argument for sceneFunc and hitFunc 2018-06-15 15:17:14 +07:00
Anton Lavrenov
74d7a65b16 Correct cache reset for Konva.Transformer 2018-06-15 13:12:02 +07:00
Anton Lavrenov
be5362dcfa some bugs fixes 2018-06-05 21:28:34 +07:00
Anton Lavrenov
8c475c0637 update node version, cleanup 2018-05-24 11:21:48 +09:00
Anton Lavrenov
9b2d439751 prettier, fix some tests, new test runner 2018-05-24 10:59:08 +09:00
Anton Lavrenov
c08de940e4 fix Konva.Transformer for shapes with offset. close #386 2018-05-17 13:08:29 +09:00
Anton Lavrenov
74d3a12921 automatically change transformer on shape changes. close #391 2018-05-17 07:22:45 +09:00
Anton Lavrenov
902a151699 update CHANGELOG with new version 2018-05-16 12:32:57 +09:00
Anton Lavrenov
566dd7e2f0 fix some event behaviour 2018-05-07 11:57:10 +09:00
Anton Lavrenov
76c20a27c3 fix arrow with tension. close 197 2018-05-04 15:56:08 +09:00
Anton Lavrenov
2ac7e692f6 Better wrap algorithm for Konva.Text 2018-04-30 10:40:49 +08:00
Anton Lavrenov
7d5e0024be transformer and text fixes. close #381 2018-04-24 12:08:02 +08:00
Anton Lavrenov
7cfef08872 build 2018-04-19 14:38:59 +07:00
Anton Lavrenov
272dafe398 fix stage.toDataURL defaults 2018-04-19 14:33:45 +07:00
Anton Lavrenov
f1e7bf0e8e made some caching fixes 2018-04-18 14:25:39 +07:00
Anton Lavrenov
e415e266ab slightly fix getClientRect calculations 2018-04-18 11:27:51 +07:00
Anton Lavrenov
824261ee6f better fix and test 2018-04-11 11:24:09 +07:00
Anton Lavrenov
f01f810423 better behavior of dblclick event when you click fast on different shapes 2018-04-11 11:11:54 +07:00
Anton Lavrenov
f8bd25cbfe fix "same value" detection in setAttr. fix #378 2018-04-11 09:01:10 +07:00
Anton Lavrenov
76d3282fcf boundBoxFunc for Transformer 2018-04-11 08:36:08 +07:00
Anton Lavrenov
504bab7261 refix dash 2018-04-02 10:47:34 +07:00
Adam L
2466ea61b0 refactor findOne method 2018-03-26 22:52:08 -07:00