Questions tagged [konva]

Konva is an HTML5 Canvas JavaScript framework that extends the 2d context by enabling canvas interactivity for desktop and mobile applications.

Konva is an HTML5 Canvas JavaScript framework that extends the 2d context by enabling canvas interactivity for desktop and mobile applications.

270 questions
0
votes
1 answer

Text in Konva Custom Shape

I need text output from my Custom Shape. My code: sceneFunc(context, shape) { context.strokeStyle = "black"; context.font = (15 / shape.parent.scale().x).toFixed(0) + "px arial"; context.textBaseline = 'middle'; context.textAlign =…
DF_D
  • 1
  • 2
0
votes
2 answers

Canvas to PDF, HTML, Konva.js

I am working about draggable objects on Konva stage. I want to the canvas object layer turn to PDF. I use toDataURL. Like this; var stage = new Konva.Stage({ container: 'container', width: width, height: height, id:…
sssss_sssss
  • 161
  • 2
  • 14
0
votes
1 answer

Konvajs - relative zoom in to pointer, but non-relative zoom out

I am using Konva canvas framework and I want to implement zoom in and zoom out with mouse wheel. The zoom in should be relative to my cursor pointer, but zoom out should always zoom out to the initial state. …
0
votes
1 answer

Center stage in Vue-Konva

I am trying to build a very basic app for editing videos, using Vue-Konva in Vue 2. Here's a Vue component named 'konvaStage'. It's a simple stage with a 1px black frame :