@pairdraw/core 0.19.0 → 0.19.1

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.
@@ -5,7 +5,7 @@ import { SceneGraph, SceneNode } from "@pairdraw/scene-graph";
5
5
  * images. Kept per document and image count, since the renderer asks on every frame.
6
6
  */
7
7
  declare function needsImagePreviews(graph: SceneGraph): boolean;
8
- declare function previewEdge(node: Pick<SceneNode, 'width' | 'height'>, zoom: number, dpr?: number): 256 | 128 | 1024 | 512 | 2048;
8
+ declare function previewEdge(node: Pick<SceneNode, 'width' | 'height'>, zoom: number, dpr?: number): 1024 | 256 | 128 | 512 | 2048;
9
9
  interface ImagePreview {
10
10
  bytes: Uint8Array<ArrayBuffer>;
11
11
  originalWidth: number;
@@ -43,7 +43,7 @@ interface TokenImportResult {
43
43
  declare function applyTokenImport(target: TokenImportTarget, plan: TokenImportPlan): TokenImportResult;
44
44
  /** A style node: hidden from the layer list, found by its style id, as `.fig` styles are. */
45
45
  declare function styleNodeProps(style: PlannedStyle, fields: Partial<SceneNode>): Partial<SceneNode>;
46
- declare function styleNodeType(style: PlannedStyle): "TEXT" | "RECTANGLE";
46
+ declare function styleNodeType(style: PlannedStyle): "RECTANGLE" | "TEXT";
47
47
  /**
48
48
  * Imports straight into a graph, for scripts, tools, and the CLI working on a document without
49
49
  * an editor; the layers bound to variables whose values changed are resolved and laid out
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pairdraw/core",
3
- "version": "0.19.0",
3
+ "version": "0.19.1",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "dist",
@@ -11,14 +11,14 @@
11
11
  "types": "./dist/index.d.ts",
12
12
  "dependencies": {
13
13
  "@iconify/utils": "^3.1.4",
14
- "@pairdraw/design-jsx": "^0.19.0",
15
- "@pairdraw/dom-css": "^0.19.0",
16
- "@pairdraw/drawio": "^0.19.0",
17
- "@pairdraw/fig": "^0.19.0",
18
- "@pairdraw/kiwi": "^0.19.0",
19
- "@pairdraw/mermaid": "^0.19.0",
20
- "@pairdraw/pen": "^0.19.0",
21
- "@pairdraw/scene-graph": "^0.19.0",
14
+ "@pairdraw/design-jsx": "^0.19.1",
15
+ "@pairdraw/dom-css": "^0.19.1",
16
+ "@pairdraw/drawio": "^0.19.1",
17
+ "@pairdraw/fig": "^0.19.1",
18
+ "@pairdraw/kiwi": "^0.19.1",
19
+ "@pairdraw/mermaid": "^0.19.1",
20
+ "@pairdraw/pen": "^0.19.1",
21
+ "@pairdraw/scene-graph": "^0.19.1",
22
22
  "@tauri-apps/api": "^2.12.1",
23
23
  "@valibot/to-json-schema": "^1.8.0",
24
24
  "@xmldom/xmldom": "^0.9.12",