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