Commit Graph

510 Commits

Author SHA1 Message Date
Anton Lavrenov
414f3385ae Fixes for boundBoxFunc of Konva.Transformer. 2020-05-01 16:07:38 -05:00
Anton Lavrenov
884244b562 update CHANGELOG with new version 2020-04-23 11:34:11 -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
e5d9d65713 update CHANGELOG with new version 2020-04-21 16:23:55 -05:00
Anton Lavrenov
a7c9e0b5a5 dragbound fixes 2020-04-21 16:10:11 -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
7df28d4e50 update CHANGELOG with new version 2020-03-26 15:14:30 -05:00
Anton Lavrenov
104566a58b update CHANGELOG with new version 2020-03-26 14:42:26 -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
56405c5a1f update CHANGELOG with new version 2020-03-14 21:37:43 -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
a0e49332e6 add changelog 2020-03-03 08:50:55 -05:00
Anton Lavrenov
c6e38c55a1 better error messages 2020-02-25 19:22:46 -05:00
Anton Lavrenov
7ec68fc501 transformer events fixes, fix readme 2020-02-24 20:39:32 -05:00
Anton Lavrenov
801509febc change log 2020-02-17 19:52:12 -05:00
Anton Lavrenov
396297bdfc update CHANGELOG with new version 2020-02-16 07:39:42 -05:00
Anton Lavrenov
d4619032a7 update CHANGELOG with new version 2020-02-10 08:23:22 -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
a4b967a375 update CHANGELOG with new version 2020-01-30 11:43:22 -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
1263ac9396 update CHANGELOG with new version 2020-01-08 08:15:12 -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
76c0e3f272 fix image size detection on zero values. fix #774 2019-12-24 11:21:43 -05:00
Anton Lavrenov
2fbd2f7a10 update CHANGELOG with new version 2019-12-23 10:54:33 -05:00
Anton Lavrenov
00c5ccc4bb Increase default anchor size for Konva.Transformer on touch devices. fix #814 2019-12-23 10:52:49 -05:00
Anton Lavrenov
fbebc3fad2 build 2019-12-18 14:35:29 -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
af45808d07 Fix path.getClientRect() calculations for Konva.Path 2019-11-14 11:18:12 -05:00
Anton Lavrenov
2cee61d8eb update CHANGELOG with new version 2019-11-08 11:48:50 -05:00
Anton Lavrenov
61936af059 polyfill tripRight for IE11. fix #783 2019-11-08 11:45:59 -05:00
Anton Lavrenov
5734b888af update CHANGELOG with new version 2019-10-21 10:13:11 -05: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
7de82e5823 fix path calculations 2019-10-11 09:15:38 -05:00
Anton Lavrenov
0731316a7e ts fixes 2019-10-11 07:55:04 -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
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
ea042183c7 update CHANGELOG with new version 2019-09-17 12:54:42 -05:00
Anton Lavrenov
1f14bf1fef Fix some bugs when Konva.Transformer has padding > 0 2019-09-17 12:50:28 -05:00
Anton Lavrenov
7428433217 update CHANGELOG with new version 2019-09-10 12:09:37 -05:00
Anton Lavrenov
f16434d6d8 Fix drag position handling. close #739 2019-09-10 12:08:36 -05:00
Anton Lavrenov
c3f4e53be5 fix multiple selector for find() method. close #735 2019-09-09 10:55:17 -05:00
Anton Lavrenov
e7d8bf5d15 update CHANGELOG with new version 2019-09-06 14:16:11 -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
3ef2cec1cc update CHANGELOG with new version 2019-09-05 13:03:06 -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
537ad149ce update CHANGELOG with new version 2019-08-12 08:44:29 +07:00
Anton Lavrenov
04968c3b51 Fix nested dragging bug. close #71 2019-08-12 08:42:50 +07:00
Anton Lavrenov
d191e21cc3 Add node.isCached() method 2019-08-10 16:41:54 +07:00
Anton Lavrenov
627359115a update CHANGELOG with new version 2019-08-08 22:14:56 +07:00
Anton Lavrenov
0975848dd7 events fixes 2019-08-08 16:24:55 +07:00
Anton Lavrenov
3c5b66275b update CHANGELOG with new version 2019-08-08 11:36:56 +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
2db18ee7e1 update CHANGELOG with new version 2019-08-07 18:47:48 +07:00
Anton Lavrenov
519bd94a7c prepare new version. Update docs. 2019-08-05 13:54:08 +07:00
Anton Lavrenov
34f0f4ae33 drag&drop multitouch 2019-08-04 14:38:57 +07:00
Anton Lavrenov
9cef088d24 Fix wrong double tap trigger 2019-07-18 07:55:22 +07:00
Anton Lavrenov
d0e5a45543 update CHANGELOG with new version 2019-07-12 17:14:25 +07:00
Anton Lavrenov
477a2392ac different values for corner radius. fix #687 2019-07-12 17:12:11 +07:00
Anton Lavrenov
4e489321f8 ts fixes 2019-06-18 15:29:07 -05:00
Anton Lavrenov
aaadaa665d update CHANGELOG with new version 2019-06-07 15:24:52 -05:00
Anton Lavrenov
c2c49614fa update CHANGELOG with new version 2019-06-03 09:44:30 -05:00
Anton Lavrenov
94116b5b0a update CHANGELOG with new version 2019-05-30 13:06:13 -05:00
Anton Lavrenov
2315f542f7 Add new property imageSmoothingEnabled to the node caching 2019-05-30 12:56:24 -05:00
Anton Lavrenov
2a502d9d8f update CHANGELOG with new version 2019-05-28 15:42:09 -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
e786a5c1dd update CHANGELOG with new version 2019-05-27 20:27:01 -05:00
Anton Lavrenov
1230f2dd44 fix some Konva.Transformer bugs 2019-05-27 16:16:41 -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
Anton Lavrenov
6b9f73f280 ts fixes 2019-05-27 12:54:11 -05:00
Anton Lavrenov
1a23923aee typescript fixes 2019-05-09 08:28:09 -05:00
Anton Lavrenov
a587612f99 update CHANGELOG with new version 2019-04-17 11:02:42 -05:00
Anton Lavrenov
a6122178c6 transformer warning, typescript fixes 2019-04-08 12:17:26 -05:00
Anton Lavrenov
620fb08287 update CHANGELOG with new version 2019-04-05 08:15:42 -05:00
Anton Lavrenov
03d7ceef5a better production detection, fix version injection 2019-04-05 08:14:05 -05:00
Anton Lavrenov
49ceea1dfc fix some stage evetns. close #627 2019-04-03 20:28:48 -05:00
Anton Lavrenov
f9c60c99e1 fix hasName method for empty name cases 2019-03-21 07:43:58 -05:00
Anton Lavrenov
706758ecd7 update CHANGELOG with new version 2019-03-19 18:19:40 -05:00
Anton Lavrenov
0e87ded7ba update CHANGELOG with new version 2019-03-18 14:18:03 -05:00
Anton Lavrenov
382e39d009 update CHANGELOG with new version 2019-03-10 12:40:49 -05:00
Anton Lavrenov
ce9d5465cb make some API public 2019-03-10 10:51:14 -05:00
Anton Lavrenov
5cd523ed98 update CHANGELOG with new version 2019-03-06 22:51:34 -05:00
Anton Lavrenov
712d53b86c another exports fix 2019-02-27 18:27:18 -05:00
Anton Lavrenov
16407de83d update CHANGELOG with new version 2019-02-27 17:59:23 -05:00
Anton Lavrenov
c2db437c72 update CHANGELOG with new version 2019-02-27 17:32:18 -05:00
Anton Lavrenov
457168641a update CHANGELOG with new version 2019-02-27 11:19:24 -05:00
Anton Lavrenov
81524f537e update CHANGELOG with new version 2019-02-27 09:39:56 -05:00
Anton Lavrenov
a511fd8143 update CHANGELOG with new version 2019-02-27 09:34:29 -05:00
Anton Lavrenov
0d9a27f185 fix drag&drop on mobile 2019-02-27 09:14:07 -05:00
Anton Lavrenov
61a75477c6 update changes 2019-02-27 08:11:17 -05:00
Anton Lavrenov
13fde9329f update changelog, update test 2019-02-25 08:05:14 -05:00
Anton Lavrenov
35961a3a6d update changes 2019-02-24 12:12:36 -05:00
Anton Lavrenov
98afa3fac6 refactoring 2019-02-23 20:54:20 -05:00
Anton Lavrenov
010800dba4 update change log 2019-02-22 21:39:58 -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
ab4a14abce deprecate getTextHeight 2019-02-19 08:41:32 -05:00
Anton Lavrenov
1b065a55a0 ixed automatic updates for Konva.Transformer 2019-02-19 08:36:16 -05: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
12fbe870bd update changelog 2019-02-06 12:48:05 -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
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
7aa3c3238d several fixes 2019-01-21 17:42:02 -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
1cbabcb06d add back ie fix 2018-12-18 12:29:48 -05:00
Anton Lavrenov
6de50d8ffd type fixes 2018-12-18 12:19:51 -05:00
Anton Lavrenov
11449fd8c3 update CHANGELOG with new version 2018-12-14 13:30:05 -05:00
Anton Lavrenov
2404368ec8 New ignoreStroke for Konva.Transformer, perf fixes 2018-12-14 13:28:39 -05:00
Anton Lavrenov
352f493d0a getKerning TextPath API is deprecated. Use "kerningFunc" instead. 2018-11-17 08:50:31 -05:00
Anton Lavrenov
8327371bd6 update CHANGELOG with new version 2018-11-08 09:15:47 -05:00
Anton Lavrenov
b085ece741 Use custom functions for trimRight and trimLeft (for better browsers support) 2018-11-08 09:12:51 -05:00
Anton Lavrenov
7a95e9ad80 update CHANGELOG with new version 2018-10-24 08:02:01 -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
298a563b8a New anchorCornerRadius for Konva.Transformer 2018-10-18 12:00:01 -05:00
Anton Lavrenov
4cfedeb80a Performance fixes for caching 2018-10-15 16:40:33 -05:00
Anton Lavrenov
bea42cf362 update CHANGELOG with new version 2018-10-12 12:07:58 -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
a1deb32c45 update CHANGELOG with new version 2018-10-08 05:16:38 -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
2d5c41194b update CHANGELOG with new version 2018-09-19 15:01:34 +03:00
Anton Lavrenov
4ac38ddc1f new centeredScaling for Konva.Transformer 2018-09-19 15:00:27 +03:00
Anton Lavrenov
f7ed3f7d52 Add user-select: none to the stage container to fix some "selected contend around" issues 2018-09-19 14:09:29 +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
Anton Lavrenov
d184af9f92 update CHANGELOG with new version 2018-08-30 15:24:45 +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
6573cd9b26 update CHANGELOG with new version 2018-08-21 16:07:28 +07:00
Anton Lavrenov
738cc8b79c Automatic validations for many attributes. close #436 2018-08-21 15:56:04 +07:00
Anton Lavrenov
363f9943c5 change some defaults and change messages 2018-08-13 12:13:29 +07:00
Anton Lavrenov
8420e44c1b fix stop transform bug 2018-08-10 13:19:56 +07:00
Anton Lavrenov
e03fe8ba99 update CHANGELOG with new version 2018-08-10 12:39:30 +07:00
Anton Lavrenov
093d501cf6 new transformer style functions 2018-08-10 10:22:08 +07:00
Anton Lavrenov
a9ea5a54f6 update CHANGELOG with new version 2018-08-01 18:35:52 +07:00
Anton Lavrenov
98d2d6ffe0 better toDataURL for shapes 2018-08-01 09:26:13 +07:00
Anton Lavrenov
39e022e786 toDataURL fixes 2018-07-18 14:56:46 +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
e518e64935 ome drag&drop fixes 2018-07-03 11:03:06 +07:00
Anton Lavrenov
93a0cbe791 update CHANGELOG with new version 2018-06-20 18:01:29 +07:00
Anton Lavrenov
e58102466c update CHANGELOG with new version 2018-06-15 15:18:04 +07:00
Anton Lavrenov
136df898c1 add shape as second argument for sceneFunc and hitFunc 2018-06-15 15:17:14 +07:00
Anton Lavrenov
7400977f50 typescript and docs fixes 2018-06-15 14:50:36 +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
9b2d439751 prettier, fix some tests, new test runner 2018-05-24 10:59:08 +09:00
Anton Lavrenov
b585873266 update CHANGELOG with new version 2018-05-17 13:11:12 +09:00
Anton Lavrenov
c08de940e4 fix Konva.Transformer for shapes with offset. close #386 2018-05-17 13:08:29 +09:00
Anton Lavrenov
0d3043afe3 update CHANGELOG with new version 2018-05-16 12:36:10 +09:00
Anton Lavrenov
902a151699 update CHANGELOG with new version 2018-05-16 12:32:57 +09:00
Anton Lavrenov
417b9a1adb update CHANGELOG with new version 2018-05-16 11:42:32 +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
9698e08e50 update CHANGELOG with new version 2018-04-21 08:06:09 +07:00
Anton Lavrenov
7cfef08872 build 2018-04-19 14:38:59 +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
cf0ec1641d update changelog 2018-04-02 10:51:36 +07:00
Anton Lavrenov
7a3cebab6e update changelog, make a build 2018-03-29 18:41:36 +07:00
Anton Lavrenov
1930ffc9d7 getClientRect cals fixes 2018-03-21 12:04:57 +07:00
oott123
afe3b9f384 add globalCompositeOperation (fix #362) 2018-03-19 11:17:46 +08:00
Anton Lavrenov
3c6170072b type fixes 2018-03-16 11:14:36 +07:00
Anton Lavrenov
fa081dd159 a bit fixes events flow 2018-03-16 10:53:50 +07:00
Anton Lavrenov
9ddaee6801 update CHANGELOG with new version 2018-03-16 08:56:08 +07:00
Anton Lavrenov
2f4e127103 update CHANGELOG with new version 2018-03-15 14:11:01 +07:00
Anton Lavrenov
e8b3059e0b update changelog and readme 2018-03-15 13:38:49 +07:00
Anton Lavrenov
3f8813db9b some fixes and new release 2018-03-15 12:18:46 +07:00
Anton Lavrenov
921fd70417 keepProportion attribute for Transformer 2018-03-14 10:07:55 +07:00
Anton Lavrenov
cf60dd8777 fix path data parsing. close #329 2018-03-10 14:41:41 +07:00
Anton Lavrenov
0363090052 remove some deprecations 2018-03-10 09:56:27 +07:00
Anton Lavrenov
a91e00fc05 Merge branch 'add-stroke-gradient' of https://github.com/MaxGraey/konva into MaxGraey-add-stroke-gradient 2018-03-10 09:49:43 +07:00