Tagged articles
3 articles
Page 1 of 1
ELab Team
ELab Team
Nov 26, 2021 · Frontend Development

How to Build a High‑Performance, Multi‑Touch Canvas Drawing Board from Scratch

This article walks through creating a fully customizable, high‑performance HTML5 canvas drawing board for online teaching, covering devicePixelRatio handling, responsive layout, touch and mouse event processing, drawing pipelines, multi‑touch support, erasing modes, caching strategies, undo/redo, and brush extensions, all with complete React code examples.

CanvasUndo Redodrawing
0 likes · 33 min read
How to Build a High‑Performance, Multi‑Touch Canvas Drawing Board from Scratch
Sohu Tech Products
Sohu Tech Products
Apr 7, 2021 · Frontend Development

Understanding Notion’s Block‑Based Editor Architecture and Operations

The article explains how Notion implements a block‑tree data model and a controlled contenteditable editor using React, detailing the data layer, operation (op) system, rendering components, selection handling, text styling, and copy‑paste mechanisms, all backed by transactional undo/redo logic.

Block ModelNotionReact
0 likes · 27 min read
Understanding Notion’s Block‑Based Editor Architecture and Operations
Programmer DD
Programmer DD
Sep 13, 2020 · Mobile Development

How iOS Implements Undo/Redo with Command & Observer Patterns

This article explains how iOS keyboards achieve undo and redo functionality by combining the Command and Observer design patterns, illustrates their class structures, and shows how the NSUndoManager leverages these patterns to manage undo and redo stacks in Cocoa Touch applications.

Command PatternDesign PatternsMobile Development
0 likes · 5 min read
How iOS Implements Undo/Redo with Command & Observer Patterns