2026-03-01 13:09:25 +00:00
|
|
|
# Changelog
|
|
|
|
|
|
2026-03-01 19:16:13 +00:00
|
|
|
## Unreleased
|
|
|
|
|
|
|
|
|
|
### Performance
|
|
|
|
|
|
2026-03-01 19:28:03 +00:00
|
|
|
- SkPicture scene caching — pan/zoom replays cached display list instead of re-rendering all nodes
|
2026-03-01 19:21:20 +00:00
|
|
|
- Cache vector network paths — avoid rebuilding WASM paths every frame
|
|
|
|
|
- Cache ruler and pen overlay paints — eliminate 10 WASM Paint allocations per frame
|
2026-03-01 19:16:13 +00:00
|
|
|
- Only enable `preserveDrawingBuffer` in test mode
|
2026-03-01 19:21:20 +00:00
|
|
|
- Hoist URL param parsing out of render loop
|
2026-03-01 19:07:47 +00:00
|
|
|
|
|
|
|
|
### Bug Fixes
|
|
|
|
|
|
|
|
|
|
- Fix trackpad pinch-to-zoom on Safari macOS
|
|
|
|
|
|
2026-03-01 18:17:07 +00:00
|
|
|
## 0.2.1 (2026-03-01)
|
|
|
|
|
|
|
|
|
|
### UI
|
|
|
|
|
|
|
|
|
|
- Panel header with app logo, editable document name, and sidebar toggle
|
|
|
|
|
- ⌘\\ to toggle side panels for distraction-free canvas
|
|
|
|
|
- Panels hidden by default on mobile (< 768px)
|
|
|
|
|
- Floating bar with logo, filename, and restore button when panels hidden
|
|
|
|
|
- Always show local user avatar in collab header
|
|
|
|
|
- Touch support for pan and pinch-zoom on iOS
|
|
|
|
|
|
|
|
|
|
### Performance
|
|
|
|
|
|
|
|
|
|
- Stubbed shiki to remove 9MB of unused language grammars (20MB → 11MB bundle)
|
|
|
|
|
|
2026-03-01 15:27:12 +00:00
|
|
|
## 0.2.0 (2026-03-01)
|
P2P collaboration: cursors, follow mode, cleanup
- Broadcast cursor position from canvas mouse move via awareness
- Broadcast selection changes via reactive watcher on selectedIds
- Follow mode: click peer avatar to track their viewport (pan + zoom)
- Zoom broadcast via watcher on store.state.zoom, not just mouse move
- Figma-style cursor arrows: colored fill, white border, name pill
- Stale cursor cleanup: removeAwarenessStates on peer leave
- MQTT signaling (replace Nostr), STUN + TURN ICE servers
- Collab constants extracted to src/constants.ts
- crypto.getRandomValues() replaces Math.random() everywhere
- Provide/inject for collab composable (COLLAB_KEY)
- Update README (collab section, tech stack), CHANGELOG, AGENTS.md
- AGENTS.md: release process, CI workflows, documentation guidelines
2026-03-01 15:11:07 +00:00
|
|
|
|
|
|
|
|
### Collaboration
|
|
|
|
|
|
|
|
|
|
- Real-time P2P collaboration via Trystero (WebRTC) + Yjs CRDT
|
|
|
|
|
- Peer-to-peer sync — no server relay, zero hosting cost
|
|
|
|
|
- WebRTC signaling via MQTT public brokers
|
|
|
|
|
- STUN (Google, Cloudflare) + TURN (Open Relay) for NAT traversal
|
|
|
|
|
- Awareness protocol: live cursors, selections, presence
|
|
|
|
|
- Figma-style colored cursor arrows with name pills
|
|
|
|
|
- Click peer avatar to follow their viewport, click again to stop
|
|
|
|
|
- Stale cursor cleanup on peer disconnect
|
|
|
|
|
- Local persistence via y-indexeddb — room survives page refresh
|
|
|
|
|
- Share link at `/share/<room-id>` with vue-router
|
|
|
|
|
- Secure room IDs via `crypto.getRandomValues()`
|
|
|
|
|
- Removed Cloudflare Durable Object relay server (`packages/collab/`)
|
|
|
|
|
|
|
|
|
|
### UI
|
|
|
|
|
|
2026-03-01 15:25:04 +00:00
|
|
|
- Toast notifications via Reka UI Toast — top-center blue pill for info, red for errors
|
|
|
|
|
- Global error handler (window.error + unhandledrejection) shows errors as toasts
|
|
|
|
|
- Link copied toast on share and copy link actions
|
P2P collaboration: cursors, follow mode, cleanup
- Broadcast cursor position from canvas mouse move via awareness
- Broadcast selection changes via reactive watcher on selectedIds
- Follow mode: click peer avatar to track their viewport (pan + zoom)
- Zoom broadcast via watcher on store.state.zoom, not just mouse move
- Figma-style cursor arrows: colored fill, white border, name pill
- Stale cursor cleanup: removeAwarenessStates on peer leave
- MQTT signaling (replace Nostr), STUN + TURN ICE servers
- Collab constants extracted to src/constants.ts
- crypto.getRandomValues() replaces Math.random() everywhere
- Provide/inject for collab composable (COLLAB_KEY)
- Update README (collab section, tech stack), CHANGELOG, AGENTS.md
- AGENTS.md: release process, CI workflows, documentation guidelines
2026-03-01 15:11:07 +00:00
|
|
|
- HsvColorArea extracted as shared component (ColorPicker + FillPicker)
|
|
|
|
|
- Scrollable app menu without visible scrollbar
|
|
|
|
|
- Selection broadcasting to remote peers
|
|
|
|
|
|
2026-03-01 13:09:25 +00:00
|
|
|
## 0.1.0-alpha (2026-03-01)
|
|
|
|
|
|
|
|
|
|
First public alpha. The editor is functional but not production-ready.
|
|
|
|
|
|
|
|
|
|
### Editor
|
|
|
|
|
|
|
|
|
|
- Canvas rendering via CanvasKit (Skia WASM) on WebGL surface
|
|
|
|
|
- Rectangle, Ellipse, Line, Polygon, Star drawing tools
|
|
|
|
|
- Pen tool with vector network model (bezier curves, open/closed paths)
|
|
|
|
|
- Inline text editing on canvas with phantom textarea for input/IME
|
|
|
|
|
- Rich text formatting: bold, italic, underline per-character via style runs
|
|
|
|
|
- Font picker with system font enumeration (font-kit on desktop, Local Font Access API in browser)
|
|
|
|
|
- Auto-layout via Yoga WASM (direction, gap, padding, justify, align, child sizing)
|
|
|
|
|
- Components, instances, component sets with live sync and override preservation
|
|
|
|
|
- Variables with collections, modes, color bindings, alias chains
|
|
|
|
|
- Undo/redo for all operations (inverse-command pattern)
|
|
|
|
|
- Snap guides with rotation-aware edge/center snapping
|
|
|
|
|
- Canvas rulers with selection range badges
|
|
|
|
|
- Marquee selection, multi-select, resize handles, rotation
|
|
|
|
|
- Group/ungroup, z-order, visibility, lock
|
|
|
|
|
- Sections with title pills and auto-adoption of overlapping nodes
|
|
|
|
|
- Multi-page documents with independent viewport state
|
|
|
|
|
- Hover highlight following node geometry (ellipses, rounded rects, vectors)
|
|
|
|
|
- Context menu with clipboard, z-order, grouping, component, and visibility actions
|
|
|
|
|
- Color picker with HSV, gradients (linear, radial, angular, diamond), image fills
|
|
|
|
|
- Properties panel: position, appearance, fill, stroke, effects, typography, layout, export
|
|
|
|
|
- ScrubInput drag-to-change number controls
|
|
|
|
|
- Resizable side panels via reka-ui Splitter
|
|
|
|
|
|
|
|
|
|
### File Format
|
|
|
|
|
|
|
|
|
|
- .fig file import via Kiwi binary codec (194 definitions, ~390 fields)
|
|
|
|
|
- .fig file export with Kiwi encoding, Zstd compression, thumbnail generation
|
|
|
|
|
- Figma clipboard: copy/paste between OpenPencil and Figma
|
|
|
|
|
- Round-trip fidelity for supported node types
|
|
|
|
|
|
|
|
|
|
### AI Integration
|
|
|
|
|
|
|
|
|
|
- Built-in AI chat in properties panel (⌘J)
|
|
|
|
|
- Direct browser → OpenRouter communication, no backend
|
|
|
|
|
- Model selector: Claude, Gemini, GPT, DeepSeek, Qwen, Kimi, Llama
|
|
|
|
|
- 10 AI tools: create_shape, set_fill, set_stroke, update_node, set_layout, delete_node, select_nodes, get_page_tree, get_selection, rename_node
|
|
|
|
|
- Streaming markdown responses (vue-stream-markdown)
|
|
|
|
|
- Tool call timeline with collapsible details
|
|
|
|
|
|
|
|
|
|
### Code Panel
|
|
|
|
|
|
|
|
|
|
- JSX export of selected nodes with Tailwind-like shorthand props
|
|
|
|
|
- Syntax highlighting via Prism.js
|
|
|
|
|
- Copy to clipboard
|
|
|
|
|
|
|
|
|
|
### CLI (`@open-pencil/cli`)
|
|
|
|
|
|
|
|
|
|
- `info` — document stats, node types, fonts
|
|
|
|
|
- `tree` — visual node tree
|
|
|
|
|
- `find` — search by name/type
|
|
|
|
|
- `export` — render to PNG/JPG/WEBP at any scale
|
|
|
|
|
- `node` — detailed properties by ID
|
|
|
|
|
- `pages` — list pages with node counts
|
|
|
|
|
- `variables` — list design variables and collections
|
|
|
|
|
- `eval` — run scripts with Figma-compatible plugin API
|
|
|
|
|
- `analyze colors` — color palette usage
|
|
|
|
|
- `analyze typography` — font/size/weight distribution
|
|
|
|
|
- `analyze spacing` — gap/padding values
|
|
|
|
|
- `analyze clusters` — repeated patterns
|
|
|
|
|
- All commands support `--json`
|
|
|
|
|
|
|
|
|
|
### Core (`@open-pencil/core`)
|
|
|
|
|
|
|
|
|
|
- Scene graph with flat Map storage and parentIndex tree
|
|
|
|
|
- FigmaAPI with ~65% Figma plugin API compatibility
|
|
|
|
|
- JSX renderer (TreeNode builder functions with shorthand props)
|
|
|
|
|
- Kiwi binary codec (encode/decode)
|
|
|
|
|
- Vector network blob encoder/decoder
|
|
|
|
|
|
|
|
|
|
### Desktop App
|
|
|
|
|
|
|
|
|
|
- Tauri v2 (~5 MB)
|
|
|
|
|
- Native menu bar, save/open dialogs
|
|
|
|
|
- System font enumeration via font-kit
|
|
|
|
|
- Zstd compression in Rust
|
|
|
|
|
- macOS and Windows builds via GitHub Actions
|
|
|
|
|
|
|
|
|
|
### Web App
|
|
|
|
|
|
|
|
|
|
- Runs at [app.openpencil.dev](https://app.openpencil.dev)
|
|
|
|
|
- No installation required
|
|
|
|
|
- File System Access API for save/open (Chrome/Edge), download fallback elsewhere
|
|
|
|
|
|
|
|
|
|
### Documentation
|
|
|
|
|
|
|
|
|
|
- [openpencil.dev](https://openpencil.dev) — VitePress site with user guide, reference, and development docs
|
|
|
|
|
- Deployed via Cloudflare Pages
|