Files
obsidian-excalidraw-plugin/src/types/penTypes.ts
T
zsviczian 3a7b23779e Alias pen/stroke-options types to the fork's canonical definitions
src/types/penTypes.ts and ObsidianMenu.tsx's ResetCustomPenState now
alias @zsviczian/excalidraw's ObsidianPenStyle/ObsidianPenOptions/
ObsidianResetCustomPenState instead of maintaining independent copies,
and ExcalidrawViewAppState drops the unknown overrides that were
re-loosening those fields after the base AppState already typed them
precisely.
2026-08-12 22:06:03 +02:00

22 lines
821 B
TypeScript

import type {
ObsidianExtendedFillStyle,
ObsidianPenOptions,
ObsidianPenStrokeOptions,
ObsidianPenStyle,
ObsidianPenType,
} from "@zsviczian/excalidraw/types/excalidraw/obsidianTypes";
/**
* Local names for the custom-pen types, aliased to the canonical
* definitions owned by the Excalidraw fork
* (packages/excalidraw/obsidianTypes.ts, referenced by
* `AppState.customPens`/`currentStrokeOptions`). The fork cannot depend on
* this plugin, so the shapes live there and are aliased here rather than
* duplicated -- edit the fork's `Obsidian*` types, not these.
*/
export type StrokeOptions = ObsidianPenStrokeOptions;
export type PenOptions = ObsidianPenOptions;
export type ExtendedFillStyle = ObsidianExtendedFillStyle;
export type PenType = ObsidianPenType;
export type PenStyle = ObsidianPenStyle;