Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 16:11
    IWMTom opened #746
  • 13:27
    lavrton closed #744
  • 13:02
    lavrton commented #745
  • 08:20
    EvilChxm commented #744
  • 08:16
    EvilChxm commented #744
  • 08:16
    EvilChxm commented #744
  • 06:24
    shimingw commented #745
  • 06:24
    shimingw commented #745
  • 06:18
    shimingw opened #745
  • Sep 18 18:31
    Nadoedalo commented #742
  • Sep 18 14:20
    lavrton commented #744
  • Sep 18 09:33
    EvilChxm opened #744
  • Sep 17 18:22
    lavrton commented #479
  • Sep 17 18:19

    lavrton on 4.0.12

    (compare)

  • Sep 17 18:19

    lavrton on master

    update CHANGELOG with new versi… build for 4.0.12 update cdn link and 9 more (compare)

  • Sep 17 17:51

    lavrton on 4.0.11

    (compare)

  • Sep 17 17:51

    lavrton on master

    Fix some bugs when `Konva.Trans… Merge branch 'master' of github… update CHANGELOG with new versi… and 2 more (compare)

  • Sep 17 16:07
    lavrton commented #742
  • Sep 17 11:44
    lavrton commented #743
  • Sep 17 11:44

    lavrton on master

    Fix doc of `Node.getAbsoluteSca… Merge pull request #743 from na… (compare)

Anton Lavrenov
@lavrton
Right.
panchalsahab
@panchalsahab
if we keep all info of node in array will it impact the performance ?
Anton Lavrenov
@lavrton
It depends.
How many nodes, what information exactly, etc.
panchalsahab
@panchalsahab
there are many nodes
thousands
and complax
Anton Lavrenov
@lavrton
Yeah, in that case all information will be too large. Try to save only required.
panchalsahab
@panchalsahab
OK Thanks :)
Johann Wagner
@johannwagner

Hey, I just have a quick question.
I need my offset in general at 0,0, but I need to rotate and pinch in/out at some point, which is defined by the event, e.g. the center of the pinch/rotation.
My approach was to set the offset, rotate/pinch and remove the offset, but it appears, that the changes, which are done to image element, are not applied instantly.

Can you may give me some more references to documentation about this behaviour and an idea, how I can archieve this?

Important: I do not want to draw in between those operations
Johann Wagner
@johannwagner
It does not work with draws in between either.
Abdul Basit
@Abdul___Says_twitter
Hi, Can i draw a cloned stage i.e stage.clone() as a node on a stage again ?
let say i have coned a stage temporarily, and after that i want to redraw that cloned stage on Konva.Stage() ? @lavrton
Anton Lavrenov
@lavrton
@Abdul___Says_twitter, no, you can’t do this.
@johannwagner if you are changing offset, you have to move the image too, so it stays on the same place.

that the changes, which are done to image element, are not applied instantly

Not sure what you mean here.

Abdul Basit
@Abdul___Says_twitter
okay. is there anywork around for achieving this ?
Johann Wagner
@johannwagner
@lavrton I totally understand this. But in my case, the offset is not applied. So I expected the image to move, but it didn't.
Derk92
@Derk92
@lavrton Hi, I create a text with align: 'center', and it is centered, however when I change the text content with the text method (like: ThisNode.text('This is new text');) the text is not centered anymore. How to fix that?
Abdul Basit
@Abdul___Says_twitter
@Derk92 are you making a rect around text ?
text alignment is relative to its parent node. if you are making a Konva.Rect() around Konva.Text() then make the Konva.Rect() slightly bigger than the Konva.Text() to see 'align' property effect. if you are not making Rect then align will be relative to the parent node i.e Stage
Derk92
@Derk92
OK, I'm on it. I have a member of a group. How to get this group in order to get position of the group? When I use getParent it gets the whole stage
Derk92
@Derk92
Oh, yeah, I got it
Anton Lavrenov
@lavrton
@johannwagner can you make a small demo?
Derk92
@Derk92
Anyway, text.align('center'); does not work for me:(
WORKS! Just needed to set width
Derk92
@Derk92
Sorry for bothering
Derk92
@Derk92
OK, the text fontStyle can be normal, bold, or italic. And how to achieve Thin, Light etc. For instance Roboto font
Abdul Basit
@Abdul___Says_twitter
@Derk92 you can load the font for thin, regular, light etc.
slhuerter
@slhuerter
Any recommendation for smooth zoom using mouse wheel?
Anton Lavrenov
@lavrton
@slhuerter what help do you need here?
brainseed
@brainseed
If I add a clipfunc to a group and then add that group to another group, I am seeing the outer group get clipped (so other images that in the outer group that are not in the inner group are getting clipped). Is that intended behavior?
ljovcheg
@ljovcheg
Some strange behavior I've noticed in the FF using clipfunc together with globalCompositeOperation. So, what do I have: group with clipfunc and some shape with globalCompositeOperation inside it. In chrome and edge everything looks perfect, but in FF clipfunc doesn't work then. If I remove globalCompositeOperation the everything works fine. Here's a sample https://codepen.io/plur/pen/zYOmrXL?editors=0010 , what am I doing wrong? :)
Anton Lavrenov
@lavrton
@brainseed not, outer group should not be effected.
This works fine.
Please make a demo of your issue.
brainseed
@brainseed
Huh, okay will do. Possibly due to me being on an older version
Anton Lavrenov
@lavrton
@ljovcheg I see the same picture in both Chrome and FF.
Vijay Solanki
@solankivj94
Hi. does anyone know how to add text node with certain coordinate in vuejs?
Anton Lavrenov
@lavrton
Just pass x and y properties into it.
ljovcheg
@ljovcheg
@lavrton I use latest FF. And I see gradient shape which is going outside the clip. Here's a screenshot: https://ibb.co/vP4vrN2
Anton Lavrenov
@lavrton
@ljovcheg hmm. It works ok for me in the latest FF on Mac. As woraround you can just draw back rectagle on top of empty spaces.
Probably a stupid workaround, but it will do the work.
zlatan
@tehzlatan_twitter
has anyone had success with multiple konva images hosting video at the same time? I can get one or two working, but the third one never renders
and my cpu load get maxed out
ljovcheg
@ljovcheg
@lavrton ok, it looks like bug in windows FF. This workaround works only if background color is the same, but clipfunc still will not work =/
ljovcheg
@ljovcheg
Found out, that this issue is known for three years already: https://bugzilla.mozilla.org/show_bug.cgi?id=1333090
zlatan
@tehzlatan_twitter
multiple videos appears to be fine...I must just be doing something else incorrectly -- https://codepen.io/orangeraven/pen/LYPXNwV