oasis-editor 0.0.10 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -68,6 +68,7 @@ export interface EssentialsDocumentCapability {
68
68
  exportPdf: () => void;
69
69
  importDocument: () => void;
70
70
  insertImage: () => void;
71
+ insertShape: (preset: string) => void;
71
72
  }
72
73
  export interface EssentialsLinkCapability {
73
74
  prompt: () => void;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Builds a canvas {@link Path2D} for a DrawingML preset shape from its
3
+ * backend-agnostic geometry (see
4
+ * {@link getPresetPathSegments}). Used to fill/stroke shapes and
5
+ * non-rectangular text boxes on the canvas.
6
+ */
7
+ export declare function buildPresetPath(preset: string | undefined, x: number, y: number, width: number, height: number): Path2D;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oasis-editor",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",