openpencil/packages/pen-types
2026-04-27 08:20:00 +08:00
..
src fix(core): design.md lives on PenDocument — kill cross-document leak 2026-04-20 00:37:31 +08:00
CLAUDE.md V0.7.1 (#102) 2026-04-13 21:30:23 +08:00
LICENSE V0.7.1 (#102) 2026-04-13 21:30:23 +08:00
package.json chore(release): bump to v0.8.0 2026-04-27 08:20:00 +08:00
README.md V0.7.1 (#102) 2026-04-13 21:30:23 +08:00
tsconfig.json V0.5.0 (#67) 2026-03-22 09:44:04 +08:00

@zseven-w/pen-types

Type definitions for the OpenPencil document model.

Install

npm install @zseven-w/pen-types

What's Included

This package provides all TypeScript types and interfaces for the OpenPencil design file format (.op):

  • Document modelPenDocument, PenPage, PenNode and all node types (FrameNode, RectangleNode, EllipseNode, TextNode, ImageNode, PathNode, etc.)
  • StylesPenFill (solid, gradient, image), PenStroke, PenEffect (blur, shadow), BlendMode, StyledTextSegment
  • Variables & ThemesVariableDefinition, VariableValue, ThemedValue
  • Canvas stateToolType, ViewportState, SelectionState, CanvasInteraction
  • UIKitUIKit, KitComponent, ComponentCategory
  • Theme presetsThemePreset, ThemePresetFile
  • Design specDesignMdSpec, DesignMdColor, DesignMdTypography

Usage

import type { PenDocument, PenNode, FrameNode } from '@zseven-w/pen-types';

License

MIT