Tagged articles
9 articles
Page 1 of 1
Code Mala Tang
Code Mala Tang
Nov 9, 2025 · Frontend Development

How to Customize Rotation Icons and Dynamic Cursors in Fabric.js

This tutorial shows how to initialize a Fabric.js canvas, replace the default rotation handle with a custom SVG icon, create a rotating cursor using data‑URL SVGs, and optimize performance by updating the cursor only at 15‑degree intervals.

CanvasFabric.jscustom rotation icon
0 likes · 16 min read
How to Customize Rotation Icons and Dynamic Cursors in Fabric.js
Code Mala Tang
Code Mala Tang
Nov 7, 2025 · Frontend Development

Smooth Canvas Drag & Zoom on Mobile Using Fabric.js and CSS Transform

To enable fluid dragging and zooming of a Fabric.js seat‑layout canvas on mobile, the author replaces costly canvas viewport transforms with CSS transform translate/scale, adds mouse and touch handlers, debounces scaling, disables object caching, caps offsets, and throttles events, achieving smooth performance across browsers.

CSS transformCanvasFabric.js
0 likes · 16 min read
Smooth Canvas Drag & Zoom on Mobile Using Fabric.js and CSS Transform
Code Mala Tang
Code Mala Tang
Oct 29, 2025 · Frontend Development

Implementing Robust Undo/Redo in Fabric.js Canvas Editors

This article explains how to add undo and redo functionality to a Fabric.js canvas editor by maintaining a history stack, provides full source code, discusses performance considerations, and compares alternative approaches such as the Command Pattern and object‑level diff snapshots.

CanvasFabric.jsJavaScript
0 likes · 8 min read
Implementing Robust Undo/Redo in Fabric.js Canvas Editors
Code Mala Tang
Code Mala Tang
Oct 27, 2025 · Frontend Development

Master Fabric.js: Build Interactive Canvas with Zoom, Snap, and Guides

This article walks through setting up Fabric.js on a web page, creating a canvas, drawing rectangles, adding zoom and pan controls, implementing object snapping and alignment guides, and provides complete source code so readers can quickly build an interactive canvas application.

CanvasFabric.jsJavaScript
0 likes · 21 min read
Master Fabric.js: Build Interactive Canvas with Zoom, Snap, and Guides
Sohu Tech Products
Sohu Tech Products
Sep 25, 2024 · Frontend Development

Poster Generation: Techniques, Libraries, and Common Issues

The article reviews poster generation methods—server‑side rendering with headless browsers or watermarking, client‑side CPU/GPU approaches, and frontend Canvas‑based techniques—detailing libraries such as Fabric.js, html2canvas, and dom‑to‑image, comparing speed, quality, compatibility, addressing cross‑origin and rendering bugs, and advising when to choose each solution.

Canvas APIFabric.jsImage Rendering
0 likes · 13 min read
Poster Generation: Techniques, Libraries, and Common Issues
大转转FE
大转转FE
Sep 20, 2024 · Frontend Development

Poster Generation: Frontend, Backend, and Mobile Implementation Overview

This article explains various techniques for generating custom posters—including canvas, Fabric.js, html2canvas, and dom‑to‑image—covers client‑side, server‑side, and mobile approaches, compares their performance and compatibility, and provides solutions to common issues such as cross‑origin restrictions, white‑screen bugs, and image‑ratio problems.

CanvasFabric.jsfrontend development
0 likes · 18 min read
Poster Generation: Frontend, Backend, and Mobile Implementation Overview
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 17, 2023 · Frontend Development

Custom Avatar 2.0: A Vue3‑based Online Avatar Customization Tool

This article introduces Custom Avatar 2.0, an open‑source web tool built with Vue3, Vite, TypeScript and Fabric.js that lets users upload a portrait, apply themed frames, stickers, and generate shareable posters, detailing the project architecture, new features, code implementation, and deployment instructions.

Fabric.jsTypeScriptVue3
0 likes · 18 min read
Custom Avatar 2.0: A Vue3‑based Online Avatar Customization Tool
The Dominant Programmer
The Dominant Programmer
Feb 10, 2022 · Frontend Development

Quick Start with Fabric.js: Building a Canvas App in Vue

This guide introduces Fabric.js—a library that adds an object model, SVG parsing, and interactivity to HTML5 Canvas—and walks through setting up a Vue project, installing the library, creating a canvas element, and drawing a red rectangle with concise code examples.

CanvasFabric.jsGraphics
0 likes · 4 min read
Quick Start with Fabric.js: Building a Canvas App in Vue