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
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
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
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
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
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
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
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
Adam L
a2c342cf6e
migrate find fn to single method
2018-03-24 17:18:11 -07:00
Adam L
8bb59548e5
add findWhere method to Containers
2018-03-21 19:20:59 -07:00
Anton Lavrenov
248f57cd3f
more Transformer fixes
2018-03-21 15:21:55 +07:00
Anton Lavrenov
1930ffc9d7
getClientRect cals fixes
2018-03-21 12:04:57 +07:00
Anton Lavrenov
2e93f99aab
Transformer optimizations
2018-03-21 09:56:00 +07:00
Anton Lavrenov
fa081dd159
a bit fixes events flow
2018-03-16 10:53:50 +07:00
Anton Lavrenov
21ee8dd492
transformer bug fix
2018-03-16 08:55:02 +07:00
Anton Lavrenov
2f4e127103
update CHANGELOG with new version
2018-03-15 14:11:01 +07:00
Anton Lavrenov
3f8813db9b
some fixes and new release
2018-03-15 12:18:46 +07:00
Anton Lavrenov
2e878aa79b
bugs fixes
2018-03-15 12:11:58 +07:00
Anton Lavrenov
1a45e953c2
shadow fix and small perf improve
2018-03-12 08:33:35 +07:00
Anton Lavrenov
cf60dd8777
fix path data parsing. close #329
2018-03-10 14:41:41 +07:00
Anton Lavrenov
2944158479
clean up
2018-03-10 10:44:36 +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
Anton Lavrenov
ce40d752e8
event fixes
2018-03-01 13:48:03 +08:00
Hauke Broer
591238f667
Add Konva.Text.ellipsis
2018-02-26 11:03:23 +01:00
Anton Lavrenov
da023deb78
fix transformer validation
2018-02-18 11:45:24 +08:00
eugenesqr
587efc86c0
synced with upstream
2018-02-09 15:36:01 +03:00
eugenesqr
054c78dd80
unit tests have been added for TextPath kerning
2018-02-09 13:29:36 +03:00
Anton Lavrenov
8a45c1b4f7
billion transformer fixes
2018-02-09 14:28:19 +07:00
sarthak saxena
1741509cf7
Add tests for basic image contrast + image contrast with tween + image contrast with crop
2018-02-01 02:15:32 +05:30
Anton Lavrenov
8894d75a44
implement off
with callbacks
2018-01-12 11:05:12 +07:00
Anton Lavrenov
ac8e682738
update stage events flow, rename resizer to transformer
2018-01-04 10:59:14 +07:00
Anton Lavrenov
460feab0ae
update deps, change defualt dragDistance to 3px
2017-08-25 13:25:55 +02:00
Anton Lavrenov
e51e675c86
change getClientRect calc
2017-08-01 22:16:44 +02:00
Anton Lavrenov
7b6d97aaa5
build and apply prettier
2017-07-28 18:40:07 +02:00
Anton Lavrenov
f520cf34c3
fix getClientRect calc
2017-07-28 18:36:08 +02:00
Anton Lavrenov
4924c4024c
fix automatic shadow scaling. close #230
2017-04-25 17:21:45 -05:00
Anton Lavrenov
865577b7e6
fix bug with getAllIntersections and Text shape. close #224
2017-04-21 10:40:41 -05:00
Anton Lavrenov
8e7ce7ff4f
test fixes
2017-03-24 09:07:34 -05:00
leMaik
8ae434036f
add dashOffset property to shape
2017-03-18 23:10:17 +01:00
leMaik
6c95612677
add lineDashOffset support to context
2017-03-18 22:40:35 +01:00
Anton Lavrenov
59cc7b99f2
setup prettier and make all code better
2017-02-24 09:15:33 -05:00
Anton Lavrenov
bfb859cfca
possible travis test fix
2017-02-07 11:50:22 -05:00
Anton Lavrenov
1184bb7e71
tests for line-through
2017-02-07 11:37:01 -05:00
kudlajz
4b48544059
Added support for text strikethrough
2017-02-07 16:44:35 +01:00
Anton Lavrenov
e523c86ebd
fix memory leak. close #198
2017-01-10 08:27:32 -05:00
Anton Lavrenov
a498609412
shadow blur fix
2016-12-14 12:37:03 -05:00
Anton Lavrenov
b855765736
shadow fixes
2016-12-14 12:14:56 -05:00
Anton Lavrenov
ad8d38d945
fixed wrong opacity level for cached group with opacity. close #191
2016-12-13 07:01:51 -05:00
Anton Lavrenov
b51ae24e33
justify fix for space in line
2016-12-08 11:13:22 -05:00
Anton Lavrenov
9586d9316d
justify align for Text and TextPath
2016-12-08 09:08:44 -05:00
Anton Lavrenov
03c65860e8
underline width fix
2016-12-07 17:20:47 -05:00
Anton Lavrenov
265e365b12
underline drawing bug fixes
2016-12-07 17:13:34 -05:00
Anton Lavrenov
37d6eb6541
skip test
2016-12-07 17:01:44 -05:00
Anton Lavrenov
115002aaf6
new property for Konva.Text
and Konva.TextPath
: textDecoration
2016-12-07 16:48:25 -05:00
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