mirror of
https://github.com/zsviczian/obsidian-excalidraw-plugin.git
synced 2026-11-27 06:32:42 +00:00
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.
22 lines
821 B
TypeScript
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;
|