Commit Graph

2104 Commits

Author SHA1 Message Date
iaosee
2d8e30085c feat: The Image adds rounded corner support 2022-12-19 23:46:01 +08:00
Anton Lavrenov
c29300e8cf fix transformer clone. close #1457 2022-12-17 10:24:49 -05:00
iaosee
ac49b05829 refactor: add type declare for methods of Context 2022-12-14 13:38:25 +08:00
iaosee
0744aac409 fix: 🐛 hex color string supports four/eight-value syntax 2022-12-04 21:16:27 +08:00
Anton Lavrenov
763a7be0f9 fix more docs 2022-11-16 22:25:11 -05:00
Anton Lavrenov
3786404f71 fix docs. clsoe #1426 2022-11-16 22:18:46 -05:00
Anton Lavrenov
e79d6de4a4 release canvas on destroy 2022-11-09 13:26:58 -05:00
Dmitry Zarva
d03b31f6ce fix: release cache canvas elements in Node.clearCache() 2022-11-07 16:17:46 +03:00
Dmitry Zarva
0f00aa9401 fix: fixes releasing hit canvas on Layer destroy 2022-11-07 15:02:15 +03:00
Dmitry Zarva
c4c7c6c60b feat: add releaseCanvasOnDestroy flag 2022-11-07 09:19:29 +03:00
Dmitry Zarva
e7b2bd6d15 fix: fixes canvas resources release (useful for getting rid of the canvas memory leaks on iOS) 2022-10-31 20:27:32 +03:00
gloryyin
4e89618a78 feature: add native context types 2022-10-08 02:50:32 +08:00
Anton Lavrenov
bc0219700a use non passive listeners. close#1382 2022-10-03 11:59:11 -05:00
Anton Lavrenov
3e749e1ea8 Add willReadFrequently. close #1417 2022-10-03 11:58:49 -05:00
VelociRaptor
fc0469f80f
Update Node.ts 2022-10-02 21:38:00 +05:30
Anton Lavrenov
25b3fe2db0 Merge branch 'master' of github.com:konvajs/konva into master 2022-09-21 11:00:28 -05:00
Anton Lavrenov
a1d3586e1e remove unused attribute from ring. close #1406. 2022-09-21 11:00:21 -05:00
gloryyin
ce32a3240e fix: fix parsing rgba error 2022-09-10 14:44:33 +08:00
Anton Lavrenov
7eef552637 update CHANGELOG with new version 2022-08-29 09:38:49 -05:00
Anton Lavrenov
08498ab463 Merge branch 'master' of github.com:konvajs/konva into master 2022-08-19 17:48:46 -05:00
Anton Lavrenov
63d2aceaa7 allow reset component attributes via overloader 2022-08-19 17:48:03 -05:00
Clemens Grabmann
9cdbbd6616
#1387 make sure the Transformer affects the client-rect if it is attached
Signed-off-by: Clemens Grabmann <clemens.grabmann@cloudflight.io>
2022-08-11 10:20:30 +02:00
Nguyen Huu Kim
6f9c3fcbf9 fix(TextPath): comparison is always false pathCmd === {} 2022-08-09 09:57:26 +07:00
Tim de Koning
f6d077b3ec - Allow all TypedArrays
- Validator should not crash when TypedArray is not available
2022-08-08 15:55:43 +02:00
Tim de Koning
01134dcf2a Allow line points to be of type TypedArray. 2022-08-08 12:19:47 +02:00
Anton Lavrenov
05c98fa463 fix wront mouseleale trigger after drag is finished. close #1374 2022-08-05 10:57:36 -05:00
Anton Lavrenov
ba2fe1b907
Revert "Revert "make sure preventDefault() is not called on touchend-events per default"" 2022-08-05 10:33:04 -05:00
Anton Lavrenov
e06d3b85b9 fix label position on attributes changes 2022-08-05 10:21:48 -05:00
Anton Lavrenov
0f8f2f4548 little refactor 2022-08-05 10:07:22 -05:00
gloryyin
40267e0d44 fix: add ellipsis for last line 2022-08-01 02:33:41 +08:00
Anton Lavrenov
ae94f3e59e
Revert "make sure preventDefault() is not called on touchend-events per default" 2022-07-30 21:44:38 -05:00
Anton Lavrenov
e8a9a8b7c3
Merge pull request #1372 from cloudflightio/cg/touch_click_propagation
make sure `preventDefault()` is not called on touchend-events per default
2022-07-30 21:42:51 -05:00
Clemens Grabmann
525f4f43ef
make sure preventDefault() is not called on touchend-events per default
* calling `preventDefault()` on touch-events prevents the browser from creating and dispatching the click-event which results in click-listeners of parent dom-nodes not executing even though its expected

Signed-off-by: Clemens Grabmann <clemens.grabmann@cloudflight.io>
2022-07-25 17:54:28 +02:00
Austin S
c5f24966e2 Added toBlob. Added Promise return to toImage. 2022-07-21 16:35:57 -07:00
Anton Lavrenov
ab5c93e6ac Skip Konva.Transformer in container.getClientRect() calculations 2022-06-20 12:45:51 -05:00
Maritaria
1283e5f309
Declare config type for Group node 2022-05-27 12:41:09 +02:00
Anton Lavrenov
81cf46c18a
Merge pull request #1324 from cloudflightio/master
Fix math in Transform.setAbsolutePosition
2022-04-13 16:15:16 -05:00
Jakob Fischl
31c4155a01 remove incorrect implementation of Transform.setAbsolutePosition 2022-04-12 16:13:20 +02:00
Anton Lavrenov
e88ed2c28c imageSmoothingEnabled for export functions. close #1320 2022-04-11 18:20:09 -05:00
Anton Lavrenov
a863db9580 update CHANGELOG with new version 2022-03-21 13:49:55 -05:00
Anton Lavrenov
aaa6f93f38 update CHANGELOG with new version 2022-03-13 08:08:37 -05:00
Anton Lavrenov
831288e4c3
Merge branch 'master' into getClientRect-no-rounding 2022-03-12 22:57:20 -05:00
Anton Lavrenov
eaf67ad9c4 fix typo 2022-03-12 22:50:05 -05:00
Anton Lavrenov
0e267368fb Merge branch 'master' of https://github.com/VanquishedWombat/konva into VanquishedWombat-master 2022-03-12 22:49:46 -05:00
Anton Lavrenov
fcf53dc138 remove rounding from getClientRect 2022-03-12 22:28:19 -05:00
VanquishedWombat
0fe3ad7401
Update TextPath.ts
Fix missing change listener for fontFamilyChange.
2022-03-11 16:23:07 +00:00
Anton Lavrenov
a75fd53f0e fix transformstart event. close #1294 2022-03-08 11:00:28 -05:00
Tom Esterez
d312311f20 remove stroke rounding 2022-03-08 14:23:54 +01:00
Anton Lavrenov
1663a941bf Fix justify align for text with several paragraphs 2022-02-23 20:21:15 -05:00
Alexander Chernoskutov
3a1e085622 Fix math in Node.isClientRectOnScreen() method 2022-01-20 16:06:18 +05:00
Samuel Laulhau
602e76a76d fix arc getSelfRect bound 2021-12-17 21:46:54 +01:00
Anton Lavrenov
077505ec51
Merge pull request #1249 from derekjan1240/master
fix: rgbaColorToRGBA function output NaN when input with percentage
2021-12-15 13:47:57 -05:00
Artyom Khudyakov
8ffac91f05 Added error handler for Image.fromURL 2021-12-14 19:17:11 +03:00
Kai
4845904ab3 fix(color): fix rgba convert NaN when input percentage 2021-12-14 21:20:46 +08:00
Anton Lavrenov
caa2ec7098 Merge branch 'master' of github.com:konvajs/konva into master 2021-12-09 08:57:43 -05:00
Anton Lavrenov
a4cc960353 Fix dbltap event in Safari. close #1209 2021-12-09 08:57:01 -05:00
Gumball12
1cb224d7ee
fix: avoid moveToTop if node is on top 2021-12-04 00:08:39 +09:00
i18u
bed6f8bb7a fix: handle Arc clockwise on getSelfRect 2021-11-26 10:15:35 +08:00
i18u
279eaac88c feat: impliment getSelftRect method for Arc 2021-11-25 19:05:56 +08:00
Aleksandr Morozov
e1806fd855 add export StageConfig from index-types.d.ts 2021-11-24 18:08:53 +03:00
Anton Lavrenov
b39b9a8116 update readme 2021-11-23 10:51:58 -05:00
Anton Lavrenov
2927e44c99 update CHANGELOG with new version 2021-11-15 12:22:04 -05:00
Anton Lavrenov
4dfdd6eeaf update CHANGELOG with new version 2021-11-15 08:27:41 -05:00
Anton Lavrenov
272627a2da fix pointer events 2021-10-22 10:09:34 -05:00
Anton Lavrenov
0c7ea65e22 Fix Konva.Arrow rendering when it has two pointers 2021-10-06 09:17:11 -05:00
Anton Lavrenov
586ea3d860 fix line, fix finger, close #1181, close #1177 2021-09-22 10:14:38 -05:00
Anton Lavrenov
81153546a9 fix dblclick events 2021-09-15 15:33:27 -05:00
Anton Lavrenov
08c8a78451 fix fillPattern cache 2021-08-04 18:34:22 +07:00
Anton Lavrenov
7f52e8a203 update CHANGELOG with new version 2021-08-04 15:56:59 +07:00
Anton Lavrenov
089334b41c fix memory leak. close #1154 2021-08-04 15:28:00 +07:00
Anton Lavrenov
0679643389 fix transformer bad behavior when back is dragged. close #1141 2021-07-01 12:39:22 +07:00
Albert Brand
7c1787ca35 Make sure to schedule draw when calling removeChildren or destroyChildren 2021-06-30 10:06:41 +02:00
Anton Lavrenov
51371a8140 New property useSingleNodeRotation for Konva.Transformer 2021-06-29 11:44:22 +07:00
Anton Lavrenov
cdede5e1c4 fix types. close #1128 2021-06-16 15:58:27 +07:00
Anton Lavrenov
71f49589c5 update CHANGELOG with new version 2021-06-08 14:24:57 +07:00
Anton Lavrenov
3fce0a5b45 fix pattern bug 2021-06-08 14:16:08 +07:00
Anton Lavrenov
38b2501e4b fix cache with invisble shapes 2021-05-27 20:04:30 -05:00
Anton Lavrenov
9ed1cd7009 fix transform cache issue. close #1116 2021-05-27 15:02:59 -05:00
Anton Lavrenov
3f2c2e5042 fix readme 2021-05-27 10:12:44 -05:00
Anton Lavrenov
c4ae3a1880 update CHANGELOG with new version 2021-05-21 18:20:52 -05:00
Anton Lavrenov
29badd7f6c deprecate some methods 2021-05-21 10:45:44 -05:00
Anton Lavrenov
734a66a75c nodejs fixes, bugs fixes 2021-05-09 08:11:42 -05:00
Anton Lavrenov
3219008dfa node.getRelativePointerPosition() method 2021-05-08 21:43:51 -05:00
Anton Lavrenov
f8e71d608a cleanup 2021-05-08 20:22:20 -05:00
Anton Lavrenov
fcd7cf62b0 events rewrite, fix types 2021-05-07 07:48:13 -05:00
Anton Lavrenov
b6e9d58db8 polish method 2021-05-06 15:49:23 -05:00
Anton Lavrenov
f4ce027b1d Merge branch 'master' of https://github.com/AlexIII/konva into AlexIII-master 2021-05-06 15:38:31 -05:00
Anton Lavrenov
dbe88946ed new flipEnabled property for Konva.Transformer. close #954 2021-05-06 15:36:32 -05:00
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
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
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
235530c543
Merge pull request #1107 from raphael-papazikas/feature-1106
hit canvas pixel ratio configurable
2021-05-04 08:56:23 -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
yurui
d731edf37a add pointerAtEnding to Arrow 2021-04-29 11:24:45 +08:00
Alexander Chernoskutov
600bb7268e Add isClientRectOnScreen() method to Node #1086 2021-04-28 22:03:23 +05:00
Vojtěch Lank
2acedfadd3
Add captureTouchEventsEnabled to index-types 2021-04-22 14:09:22 +02:00
Slawa Pidgorny
c4fba7b3fe
var imageObj = Util.createImageElement(); 2021-03-24 07:31:10 +01:00
Anton Lavrenov
2328fb06d4 update version 2021-03-15 07:34:20 -05:00
Anton Lavrenov
42276bfce2 update CHANGELOG with new version 2021-03-03 12:06:37 -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
977c1653f5 Merge branch 'master' of github.com:konvajs/konva into master 2020-12-18 11:12:26 -05:00
Anton Lavrenov
6fcfd4de54 Fix ellipsis rendering for Konva.Text 2020-12-18 11:12:19 -05:00
Keita Urashima
1d47a3598c Fix Node#size() usage example 2020-12-18 05:57:24 +09:00
Keita Urashima
f0a4e55b75
Fix typo in getAbsoluteRotation() code example 2020-12-18 05:37:18 +09: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
06a51b71dc Merge branch 'master' of github.com:konvajs/konva into master 2020-11-20 12:21:45 -05:00
Anton Lavrenov
184322e2a9 Fix autodrawing for Konva.Transformer when it is on a different layer 2020-11-20 12:21:15 -05:00
wujing
91547d7a8a fix: return type of container.find() #1016 2020-11-18 15:27:47 +08: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
2bc3fcfb0e Merge branch 'master' of github.com:konvajs/konva into master 2020-11-16 11:12:37 -05:00
Anton Lavrenov
ae8dd87e2f Fix incorrect rendering of TextPath in some cases 2020-11-16 11:12:23 -05:00
Tyler Kindy
2b5f51f0c9
Add missing text props to config type definition 2020-11-13 00:01:44 -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
c17cba6ff5 Merge branch 'master' of github.com:konvajs/konva into master 2020-11-10 09:00:30 -05:00
Anton Lavrenov
38eb854453 performance fixes, docs fixes 2020-11-10 08:59:20 -05:00
Anton Lavrenov
229032bd15
Merge pull request #1002 from moonrailgun/moonrailgun/export-box
export type box and others type complement
2020-10-25 13:24:44 -05:00
moonrailgun
ccb2dae376 type complement 2020-10-25 19:15:34 +08:00
Anton Lavrenov
88908d409d clean 2020-10-21 16:41:25 -05:00
moonrailgun
3b3d135099 export box and fix type problem 2020-10-16 14:34:14 +08: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
451b34d25d
Merge pull request #994 from moonrailgun/fix-shape-errortype
fix shape getClientRect error type
2020-10-12 08:52:23 -05:00
Anton Lavrenov
9571ae0804 Merge branch 'master' of github.com:konvajs/konva into master 2020-10-12 08:49:33 -05:00
Anton Lavrenov
64373c7eac fix ts iterations 2020-10-12 08:49:18 -05:00
moonrailgun
3e779114c9 fix shape getClientRect error type
Looks like the arguments of getClientRect is not necessary
2020-10-10 15:39:26 +08:00
moonrailgun
4389b156bf fix miss type of dragBoundFunc 2020-10-09 11:11:29 +08: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
6fffed9e70 a bit better performance 2020-09-17 14:35:46 -05:00
Anton Lavrenov
4ce6800fd9 better tests 2020-09-17 13:25:46 -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