Commit Graph

888 Commits

Author SHA1 Message Date
Anton Lavrenov
386287eebe remove Konva.names and Konva.ids. close #1073 2021-05-06 15:25:12 -05:00
Anton Lavrenov
ef6fbf2e14 Fix fill pattern for Konva.Text when the pattern has an offset or rotation. close #852 2021-05-06 14:53:02 -05:00
Anton Lavrenov
8359287949 fix path parse. close #851 2021-05-06 14:23:04 -05:00
Anton Lavrenov
4f11244607 fix arrow head direction. close #501 2021-05-06 08:41:34 -05:00
Anton Lavrenov
d54832865d better context method. close #343 2021-05-06 07:46:36 -05:00
Anton Lavrenov
2753d2d709 fix text test 2021-05-05 14:07:51 -05:00
Anton Lavrenov
89687574d1 clean data after test 2021-05-05 13:44:32 -05:00
Anton Lavrenov
46d2c25a9a enable all tests 2021-05-05 13:24:52 -05:00
Anton Lavrenov
432ff1a87b FIX TESTS AGAIN!!!! 2021-05-05 12:57:35 -05:00
Anton Lavrenov
b6e8afec6e fix test 2021-05-05 09:54:03 -05:00
Anton Lavrenov
7bd5c62ee3 tests refactor, clean build 2021-05-05 09:19:24 -05:00
Anton Lavrenov
cb20f00e4b fix tests 2021-05-04 09:33:41 -05:00
Anton Lavrenov
7a6613118e fix tests 2021-05-04 09:05:27 -05:00
Anton Lavrenov
3066765d79 Merge branch 'master' of github.com:konvajs/konva into master 2021-05-04 08:57:47 -05:00
Anton Lavrenov
1c6bc48c83 autodraw 2021-05-04 08:57:03 -05:00
Anton Lavrenov
ca1de3a351 finish tests fixing 2021-05-03 21:21:04 -05:00
Anton Lavrenov
59956fe944 refactor tests 2021-05-03 17:09:18 -05:00
Raphael Papazikas
628a8ea9ca
fix #1106: hit canvas pixel ratio configurable 2021-05-03 22:54:22 +02:00
Anton Lavrenov
c926bd623c initial tests migration 2021-04-30 09:24:27 -05:00
Alexander Chernoskutov
600bb7268e Add isClientRectOnScreen() method to Node #1086 2021-04-28 22:03:23 +05:00
Anton Lavrenov
015707c455 Fix wrong mouseleave trigger for Konva.Stage 2021-02-19 13:01:23 -05:00
Anton Lavrenov
24d069212c Fix transformer rotation when parent of a node is rotated too 2021-02-12 16:44:00 -05:00
Anton Lavrenov
febf3251eb docs and types 2021-01-26 11:43:52 -05:00
Anton Lavrenov
76476a5d77 build 2021-01-08 11:24:18 -05:00
Anton Lavrenov
6fcfd4de54 Fix ellipsis rendering for Konva.Text 2020-12-18 11:12:19 -05:00
Anton Lavrenov
e6c842c83f add funding, enable all tests 2020-12-16 14:22:00 -05:00
Anton Lavrenov
d5d6af43fa Fix wrong size calculations for Konva.Line with tension. fix #1030 2020-12-16 14:13:25 -05:00
Anton Lavrenov
7b69e5b2f6 Fix shape.intersects() behavior when a node is dragged 2020-12-11 11:12:40 -05:00
Anton Lavrenov
837cf3d53a Fix correct transformstart and transformend events when several nodes are attached with Konva.Transformer 2020-12-07 11:10:40 -05:00
Anton Lavrenov
ceae701fd8 Fix correct rendering of Konva.Label when heigh of text is changed 2020-11-25 10:19:40 -05:00
Anton Lavrenov
14156b3222 Fix rendering of TextPath one more time 2020-11-23 10:09:11 -05:00
Anton Lavrenov
f50019f176 New property fillAfterStrokeEnabled for Konva.Shape 2020-11-22 13:49:15 -05:00
Anton Lavrenov
0e2a09ba46 fix regular polygin size calculations. close #1015 2020-11-17 14:09:25 -05:00
Anton Lavrenov
691ef799c7 more textpath rendering fixes 2020-11-17 11:19:23 -05:00
Anton Lavrenov
ae8dd87e2f Fix incorrect rendering of TextPath in some cases 2020-11-16 11:12:23 -05:00
Anton Lavrenov
0830819eba Fix for correct image/dataURL/canvas exports for Konva.Stage. 2020-11-10 12:50:29 -05:00
Anton Lavrenov
38eb854453 performance fixes, docs fixes 2020-11-10 08:59:20 -05:00
Anton Lavrenov
25e25f3ea6 build 2020-10-12 09:34:12 -05:00
Anton Lavrenov
f4d566e431 Fix double dragend, dragstart, dragmove triggers on Konva.Transformer 2020-10-12 09:11:46 -05:00
Anton Lavrenov
58f18c268a fix event trigger flow. close #989 2020-09-25 09:49:00 -05:00
Anton Lavrenov
160b44b94d Fix double dragend trigger on Konva.Transformer. close #988 2020-09-25 09:09:35 -05:00
Anton Lavrenov
4ce6800fd9 better tests 2020-09-17 13:25:46 -05:00
Anton Lavrenov
16796d49f3 update CHANGELOG with new version 2020-09-17 09:48:36 -05:00
Anton Lavrenov
6cb86685f7 text rendering fixes 2020-09-17 09:39:15 -05:00
Anton Lavrenov
0e1afd3d5c fix ellipsis for Konva.Text 2020-09-16 09:55:40 -05:00
Anton Lavrenov
44f79edbbb fix fill patter scale for text. close #720 2020-09-14 16:37:25 -05:00
Anton Lavrenov
fa33896e6b revert perf fix 2020-09-14 14:30:03 -05:00
Anton Lavrenov
9bd68eacf1 Some performance fixes and optimizations 2020-09-14 13:41:32 -05:00
Anton Lavrenov
b939a6f48a build 2020-09-14 13:04:44 -05:00
Anton Lavrenov
1edb5ef55c fix evt property when transformer is used. fix #981 2020-09-14 13:01:45 -05:00
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