@blocksandarrows/math 0.18.1 → 0.18.2

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.
@@ -241,6 +241,8 @@ export declare const VERSIONS: {
241
241
  readonly excalidrawLibrary: 2;
242
242
  };
243
243
  export declare const BOUND_TEXT_PADDING = 5;
244
+ /** Horizontal padding (left/right) for text element background (e.g. arrow labels) */
245
+ export declare const TEXT_BACKGROUND_PADDING_X = 4;
244
246
  export declare const ARROW_LABEL_WIDTH_FRACTION = 0.7;
245
247
  export declare const ARROW_LABEL_FONT_SIZE_TO_MIN_WIDTH_RATIO = 11;
246
248
  export declare const VERTICAL_ALIGN: {
@@ -1,5 +1,5 @@
1
1
  import type { ElementOrToolType } from "@excalidraw/excalidraw/types";
2
- export declare const hasBackground: (type: ElementOrToolType) => type is "line" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "iframe" | "freedraw";
2
+ export declare const hasBackground: (type: ElementOrToolType) => type is "line" | "text" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "iframe" | "freedraw";
3
3
  export declare const hasStrokeColor: (type: ElementOrToolType) => type is "line" | "arrow" | "text" | "rectangle" | "diamond" | "ellipse" | "freedraw";
4
4
  export declare const hasStrokeWidth: (type: ElementOrToolType) => type is "line" | "arrow" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "iframe" | "freedraw";
5
5
  export declare const hasStrokeStyle: (type: ElementOrToolType) => type is "line" | "arrow" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "iframe";
@@ -1,10 +1,11 @@
1
+ import type { MermaidConfig } from "@excalidraw/mermaid-to-excalidraw";
1
2
  import type { MermaidToExcalidrawResult } from "@excalidraw/mermaid-to-excalidraw/dist/interfaces";
2
3
  import type { NonDeletedExcalidrawElement } from "@excalidraw/element/types";
3
4
  import type { AppClassProperties, BinaryFiles } from "../../types";
4
5
  export interface MermaidToExcalidrawLibProps {
5
6
  loaded: boolean;
6
7
  api: Promise<{
7
- parseMermaidToExcalidraw: (definition: string, options?: any) => Promise<MermaidToExcalidrawResult>;
8
+ parseMermaidToExcalidraw: (definition: string, config?: MermaidConfig) => Promise<MermaidToExcalidrawResult>;
8
9
  }>;
9
10
  }
10
11
  interface ConvertMermaidToExcalidrawFormatProps {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocksandarrows/math",
3
- "version": "0.18.1",
3
+ "version": "0.18.2",
4
4
  "type": "module",
5
5
  "types": "./dist/types/math/src/index.d.ts",
6
6
  "main": "./dist/prod/index.js",
@@ -61,6 +61,6 @@
61
61
  "build:esm": "rimraf dist && node ../../scripts/buildBase.js && yarn gen:types"
62
62
  },
63
63
  "dependencies": {
64
- "@blocksandarrows/common": "0.18.1"
64
+ "@excalidraw/common": "0.18.0"
65
65
  }
66
66
  }