Comments (1)
I think you will understand hit term in this example: http://lavrton.github.io/KineticJS/Events/Custom_Hit_Region.html
In short: scene
define how shape looks. hit
define area of event reaction.
One of the most useful case: you have a very thin line on canvas. You need to listen click event on it. But it is not easy to click on such line. So you can increase hit area of the line.
from konva.
Related Issues (20)
- Uncaught TypeError: getImage.crop is not a function HOT 1
- how to make toDataURL render entire virtual canvas, regardless of which part of the stage is showing HOT 8
- Transformer.flipEnabled(false) doesn't work HOT 1
- Konva.Shape with Transformer bound issue HOT 1
- Mirror a shape with respect to custom axis HOT 2
- Layer pixel ratio not properly applied to shapes with opacity
- Get shape config
- Missing Some Definitions in TransformerConfig HOT 1
- Text Position Discrepancy Between React Konva and Konva Node for Identical Elements HOT 1
- Font weight 500 not working HOT 2
- Pixelate filter adds bottom and right borders since v8.3.4 HOT 1
- Clip using line stroke (not the fill) HOT 7
- v-circle dragmove with v-line error HOT 2
- After changing and puttingImageData, the result of layer.toDataURL is not updated HOT 1
- Text have extra space at top in node as compared to browser and native canvas HOT 5
- getClientRect() for custom shapes returns wrong IRect
- Event was not triggered HOT 3
- pointer-events attribute let rect canβt drag HOT 1
- Change transformer rotation origin for rectangle HOT 1
- Rect absoluteScale incorrect when a negative X scale is applied, also affects transformer anchors HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from konva.