mirror of
https://github.com/ZSeven-W/openpencil.git
synced 2026-06-01 03:14:29 +07:00
* fix(ai): add icon name aliases and fix multi-path SVG concatenation Add 55+ common icon name aliases (burger→hamburger, sushi→fish, etc.) to both client icon-resolver and server icon API for robust AI-generated icon resolution. Register Lucide's own aliases for broader coverage. Fix SVG path concatenation bug where joining multiple <path> d-values caused incorrect rendering — a standalone <path> treats initial lowercase "m" as absolute, but after concatenation it becomes relative to the previous sub-path endpoint. Now ensures each sub-path starts with absolute "M". Add tryAsyncIconFontResolution for icon_font nodes that miss local lookup — fetches from server API, caches result, and triggers canvas re-render. * fix(canvas): preserve badge/overlay absolute positioning in auto-layout Add isBadgeOverlayNode() detector for badge, indicator, notification-dot, and overlay nodes. These nodes now retain their x/y coordinates instead of being stripped by layout sanitization. Update computeLayoutPositions to exclude badge nodes from the layout flow — they keep absolute positioning and render on top (prepended for correct z-order in reverse iteration). * fix(ai): prevent duplicate canvas objects and fix emoji-to-icon pipeline Streaming path: add ensureUniqueNodeIds before inserting nodes to prevent ID collisions across multiple AI generations. Track newly inserted IDs so subsequent streaming nodes don't collide either. Canvas sync: deduplicate Fabric objects sharing the same penNodeId — keep only the one tracked in objMap, remove stale duplicates. Badge nodes: use shared isBadgeOverlayNode() for z-order insertion and skip x/y stripping in layout parents. Fix emoji-to-icon pipeline: re-run applyIconPathResolution after applyNoEmojiIconHeuristic converts emoji text nodes to path nodes, so the icon resolver can match by name (e.g. "Pizza Emoji Path" → pizza). * fix(canvas): add async icon resolution fallback for icon_font nodes When lookupIconByName fails locally, queue tryAsyncIconFontResolution to fetch from server API. Cache result in ICON_PATH_MAP and trigger canvas re-render via store update. Store iconFontName and iconStyle on Fabric object for sync tracking. * fix(ai): strengthen emoji ban in prompts and improve orchestrator defaults Update all AI prompts to explicitly ban emoji characters with concrete examples and redirect to icon_font nodes instead of the previously incorrect "path nodes" guidance. Add z-order rule to orchestrator prompt: overlay elements must come before content they overlap. Add padding support to OrchestratorPlan rootFrame type. Default mobile root frame gap to 16 for consistent spacing. * feat(electron): add publisher name to Windows build configuration Updated the `electron-builder.yml` to include a publisher name for Windows builds, enhancing the identification of the application during installation. Additionally, revised the README files across multiple languages to reflect the new project description and features, emphasizing OpenPencil as the world's first AI-native open-source vector design tool with concurrent agent teams and design-as-code capabilities. --------- Co-authored-by: Fini <fini.yang@gmail.com>
78 lines
1.6 KiB
YAML
78 lines
1.6 KiB
YAML
appId: dev.openpencil.app
|
|
productName: OpenPencil
|
|
copyright: Copyright (c) 2024-2026 OpenPencil contributors
|
|
|
|
directories:
|
|
output: dist-electron
|
|
buildResources: build
|
|
|
|
files:
|
|
- electron-dist/**/*
|
|
- "!node_modules"
|
|
|
|
extraResources:
|
|
- from: .output/server
|
|
to: server
|
|
- from: .output/public
|
|
to: public
|
|
- from: dist/mcp-server.cjs
|
|
to: mcp-server.cjs
|
|
|
|
mac:
|
|
category: public.app-category.graphics-design
|
|
icon: build/icon.icns
|
|
artifactName: "${productName}-${version}-${arch}-mac.${ext}"
|
|
target:
|
|
- dmg
|
|
- zip
|
|
hardenedRuntime: true
|
|
gatekeeperAssess: false
|
|
notarize: true
|
|
|
|
dmg:
|
|
title: "${productName} ${version}"
|
|
|
|
win:
|
|
icon: build/icon.ico
|
|
artifactName: "${productName}-${version}-${arch}-win.${ext}"
|
|
publisherName: "OpenPencil"
|
|
target:
|
|
- nsis
|
|
- portable
|
|
|
|
nsis:
|
|
artifactName: "${productName}-${version}-${arch}-win-setup.${ext}"
|
|
oneClick: false
|
|
perMachine: false
|
|
allowToChangeInstallationDirectory: true
|
|
createDesktopShortcut: true
|
|
createStartMenuShortcut: true
|
|
|
|
linux:
|
|
icon: build/icon.png
|
|
category: Graphics
|
|
artifactName: "${productName}-${version}-${arch}-linux.${ext}"
|
|
desktop:
|
|
entry: |
|
|
[Desktop Entry]
|
|
Name=OpenPencil
|
|
Exec=AppRun --no-sandbox %U
|
|
Terminal=false
|
|
Type=Application
|
|
Icon=openpencil
|
|
StartupWMClass=openpencil
|
|
Categories=Graphics;
|
|
MimeType=application/x-openpencil;
|
|
target:
|
|
- AppImage
|
|
- deb
|
|
|
|
fileAssociations:
|
|
- ext: op
|
|
name: OpenPencil Document
|
|
description: OpenPencil Design File
|
|
mimeType: application/x-openpencil
|
|
role: Editor
|
|
icon: build/icon
|
|
|
|
asar: true
|