Tag

Konva.js

1 views collected around this technical thread.

Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jan 7, 2024 · Frontend Development

Introducing Pictode: A Konva.js‑Based Graphical Editor Framework with Tutorials and Plugin Guide

This article presents Pictode, a Konva.js‑driven graphics editor framework, explains its core features, demonstrates how to set up a canvas, use drawing tools, selector and history plugins, and provides step‑by‑step code examples for integration with Vue or other front‑end projects.

Graphics EditorJavaScriptKonva.js
0 likes · 14 min read
Introducing Pictode: A Konva.js‑Based Graphical Editor Framework with Tutorials and Plugin Guide
KooFE Frontend Team
KooFE Frontend Team
Nov 28, 2021 · Frontend Development

How Konva.js Uses Random Colors for Precise Canvas Hit Detection

Konva.js detects whether a point lies inside a shape by assigning each shape a unique random color key, rendering a hidden hitCanvas with these colors, and then reading the pixel color at the click position to identify the corresponding shape, supporting up to 16.7 million objects.

JavaScriptKonva.jscanvas
0 likes · 5 min read
How Konva.js Uses Random Colors for Precise Canvas Hit Detection