@oh-just-another/serialization 0.57.1 → 0.59.0
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.
- package/CHANGELOG.md +63 -0
- package/README.md +14 -8
- package/dist/.tsbuildinfo +1 -1
- package/dist/deserialize.d.ts +1 -0
- package/dist/deserialize.d.ts.map +1 -1
- package/dist/deserialize.js +2 -10
- package/dist/deserialize.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/json-schema.d.ts +10 -0
- package/dist/json-schema.d.ts.map +1 -0
- package/dist/json-schema.js +14 -0
- package/dist/json-schema.js.map +1 -0
- package/dist/migrations-builtin.d.ts +2 -0
- package/dist/migrations-builtin.d.ts.map +1 -0
- package/dist/migrations-builtin.js +16 -0
- package/dist/migrations-builtin.js.map +1 -0
- package/dist/schema.d.ts +495 -101
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +18 -6
- package/dist/schema.js.map +1 -1
- package/package.json +9 -6
package/dist/schema.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
/**
|
|
3
|
-
* Wire format version. Bump on any breaking schema change;
|
|
4
|
-
*
|
|
3
|
+
* Wire format version. Bump on any breaking schema change; pair it with a
|
|
4
|
+
* migration that upgrades the older shape to the current one.
|
|
5
5
|
*/
|
|
6
|
-
export declare const CURRENT_VERSION =
|
|
6
|
+
export declare const CURRENT_VERSION = 2;
|
|
7
7
|
declare const ElementZ: z.ZodUnion<[z.ZodObject<{
|
|
8
8
|
id: z.ZodString;
|
|
9
9
|
layerId: z.ZodString;
|
|
@@ -1519,6 +1519,134 @@ declare const ElementZ: z.ZodUnion<[z.ZodObject<{
|
|
|
1519
1519
|
fontFamily: z.ZodString;
|
|
1520
1520
|
fontSize: z.ZodNumber;
|
|
1521
1521
|
maxWidth: z.ZodOptional<z.ZodNumber>;
|
|
1522
|
+
runs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1523
|
+
text: z.ZodString;
|
|
1524
|
+
style: z.ZodOptional<z.ZodObject<{
|
|
1525
|
+
fill: z.ZodOptional<z.ZodString>;
|
|
1526
|
+
stroke: z.ZodOptional<z.ZodString>;
|
|
1527
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
1528
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
1529
|
+
dashArray: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodNumber, "many">>>;
|
|
1530
|
+
lineCap: z.ZodOptional<z.ZodEnum<["butt", "round", "square"]>>;
|
|
1531
|
+
lineJoin: z.ZodOptional<z.ZodEnum<["miter", "round", "bevel"]>>;
|
|
1532
|
+
strokeAlign: z.ZodOptional<z.ZodEnum<["center", "inside", "outside"]>>;
|
|
1533
|
+
roundness: z.ZodOptional<z.ZodObject<{
|
|
1534
|
+
type: z.ZodEnum<["sharp", "round"]>;
|
|
1535
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
1536
|
+
}, "strict", z.ZodTypeAny, {
|
|
1537
|
+
type: "sharp" | "round";
|
|
1538
|
+
value?: number | undefined;
|
|
1539
|
+
}, {
|
|
1540
|
+
type: "sharp" | "round";
|
|
1541
|
+
value?: number | undefined;
|
|
1542
|
+
}>>;
|
|
1543
|
+
} & {
|
|
1544
|
+
textAlign: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
|
|
1545
|
+
textBaseline: z.ZodOptional<z.ZodEnum<["top", "middle", "bottom"]>>;
|
|
1546
|
+
fontWeight: z.ZodOptional<z.ZodEnum<["normal", "bold"]>>;
|
|
1547
|
+
fontStyle: z.ZodOptional<z.ZodEnum<["normal", "italic"]>>;
|
|
1548
|
+
textDecoration: z.ZodOptional<z.ZodObject<{
|
|
1549
|
+
underline: z.ZodOptional<z.ZodBoolean>;
|
|
1550
|
+
strikethrough: z.ZodOptional<z.ZodBoolean>;
|
|
1551
|
+
}, "strict", z.ZodTypeAny, {
|
|
1552
|
+
underline?: boolean | undefined;
|
|
1553
|
+
strikethrough?: boolean | undefined;
|
|
1554
|
+
}, {
|
|
1555
|
+
underline?: boolean | undefined;
|
|
1556
|
+
strikethrough?: boolean | undefined;
|
|
1557
|
+
}>>;
|
|
1558
|
+
}, "strict", z.ZodTypeAny, {
|
|
1559
|
+
fill?: string | undefined;
|
|
1560
|
+
stroke?: string | undefined;
|
|
1561
|
+
strokeWidth?: number | undefined;
|
|
1562
|
+
opacity?: number | undefined;
|
|
1563
|
+
dashArray?: readonly number[] | undefined;
|
|
1564
|
+
lineCap?: "round" | "butt" | "square" | undefined;
|
|
1565
|
+
lineJoin?: "round" | "miter" | "bevel" | undefined;
|
|
1566
|
+
strokeAlign?: "center" | "inside" | "outside" | undefined;
|
|
1567
|
+
roundness?: {
|
|
1568
|
+
type: "sharp" | "round";
|
|
1569
|
+
value?: number | undefined;
|
|
1570
|
+
} | undefined;
|
|
1571
|
+
textAlign?: "center" | "left" | "right" | undefined;
|
|
1572
|
+
textBaseline?: "top" | "middle" | "bottom" | undefined;
|
|
1573
|
+
fontWeight?: "normal" | "bold" | undefined;
|
|
1574
|
+
fontStyle?: "normal" | "italic" | undefined;
|
|
1575
|
+
textDecoration?: {
|
|
1576
|
+
underline?: boolean | undefined;
|
|
1577
|
+
strikethrough?: boolean | undefined;
|
|
1578
|
+
} | undefined;
|
|
1579
|
+
}, {
|
|
1580
|
+
fill?: string | undefined;
|
|
1581
|
+
stroke?: string | undefined;
|
|
1582
|
+
strokeWidth?: number | undefined;
|
|
1583
|
+
opacity?: number | undefined;
|
|
1584
|
+
dashArray?: readonly number[] | undefined;
|
|
1585
|
+
lineCap?: "round" | "butt" | "square" | undefined;
|
|
1586
|
+
lineJoin?: "round" | "miter" | "bevel" | undefined;
|
|
1587
|
+
strokeAlign?: "center" | "inside" | "outside" | undefined;
|
|
1588
|
+
roundness?: {
|
|
1589
|
+
type: "sharp" | "round";
|
|
1590
|
+
value?: number | undefined;
|
|
1591
|
+
} | undefined;
|
|
1592
|
+
textAlign?: "center" | "left" | "right" | undefined;
|
|
1593
|
+
textBaseline?: "top" | "middle" | "bottom" | undefined;
|
|
1594
|
+
fontWeight?: "normal" | "bold" | undefined;
|
|
1595
|
+
fontStyle?: "normal" | "italic" | undefined;
|
|
1596
|
+
textDecoration?: {
|
|
1597
|
+
underline?: boolean | undefined;
|
|
1598
|
+
strikethrough?: boolean | undefined;
|
|
1599
|
+
} | undefined;
|
|
1600
|
+
}>>;
|
|
1601
|
+
}, "strict", z.ZodTypeAny, {
|
|
1602
|
+
text: string;
|
|
1603
|
+
style?: {
|
|
1604
|
+
fill?: string | undefined;
|
|
1605
|
+
stroke?: string | undefined;
|
|
1606
|
+
strokeWidth?: number | undefined;
|
|
1607
|
+
opacity?: number | undefined;
|
|
1608
|
+
dashArray?: readonly number[] | undefined;
|
|
1609
|
+
lineCap?: "round" | "butt" | "square" | undefined;
|
|
1610
|
+
lineJoin?: "round" | "miter" | "bevel" | undefined;
|
|
1611
|
+
strokeAlign?: "center" | "inside" | "outside" | undefined;
|
|
1612
|
+
roundness?: {
|
|
1613
|
+
type: "sharp" | "round";
|
|
1614
|
+
value?: number | undefined;
|
|
1615
|
+
} | undefined;
|
|
1616
|
+
textAlign?: "center" | "left" | "right" | undefined;
|
|
1617
|
+
textBaseline?: "top" | "middle" | "bottom" | undefined;
|
|
1618
|
+
fontWeight?: "normal" | "bold" | undefined;
|
|
1619
|
+
fontStyle?: "normal" | "italic" | undefined;
|
|
1620
|
+
textDecoration?: {
|
|
1621
|
+
underline?: boolean | undefined;
|
|
1622
|
+
strikethrough?: boolean | undefined;
|
|
1623
|
+
} | undefined;
|
|
1624
|
+
} | undefined;
|
|
1625
|
+
}, {
|
|
1626
|
+
text: string;
|
|
1627
|
+
style?: {
|
|
1628
|
+
fill?: string | undefined;
|
|
1629
|
+
stroke?: string | undefined;
|
|
1630
|
+
strokeWidth?: number | undefined;
|
|
1631
|
+
opacity?: number | undefined;
|
|
1632
|
+
dashArray?: readonly number[] | undefined;
|
|
1633
|
+
lineCap?: "round" | "butt" | "square" | undefined;
|
|
1634
|
+
lineJoin?: "round" | "miter" | "bevel" | undefined;
|
|
1635
|
+
strokeAlign?: "center" | "inside" | "outside" | undefined;
|
|
1636
|
+
roundness?: {
|
|
1637
|
+
type: "sharp" | "round";
|
|
1638
|
+
value?: number | undefined;
|
|
1639
|
+
} | undefined;
|
|
1640
|
+
textAlign?: "center" | "left" | "right" | undefined;
|
|
1641
|
+
textBaseline?: "top" | "middle" | "bottom" | undefined;
|
|
1642
|
+
fontWeight?: "normal" | "bold" | undefined;
|
|
1643
|
+
fontStyle?: "normal" | "italic" | undefined;
|
|
1644
|
+
textDecoration?: {
|
|
1645
|
+
underline?: boolean | undefined;
|
|
1646
|
+
strikethrough?: boolean | undefined;
|
|
1647
|
+
} | undefined;
|
|
1648
|
+
} | undefined;
|
|
1649
|
+
}>, "many">>;
|
|
1522
1650
|
}, "strict", z.ZodTypeAny, {
|
|
1523
1651
|
type: "text";
|
|
1524
1652
|
position: {
|
|
@@ -1587,6 +1715,31 @@ declare const ElementZ: z.ZodUnion<[z.ZodObject<{
|
|
|
1587
1715
|
parentId?: string | undefined;
|
|
1588
1716
|
frameId?: string | undefined;
|
|
1589
1717
|
href?: string | undefined;
|
|
1718
|
+
runs?: {
|
|
1719
|
+
text: string;
|
|
1720
|
+
style?: {
|
|
1721
|
+
fill?: string | undefined;
|
|
1722
|
+
stroke?: string | undefined;
|
|
1723
|
+
strokeWidth?: number | undefined;
|
|
1724
|
+
opacity?: number | undefined;
|
|
1725
|
+
dashArray?: readonly number[] | undefined;
|
|
1726
|
+
lineCap?: "round" | "butt" | "square" | undefined;
|
|
1727
|
+
lineJoin?: "round" | "miter" | "bevel" | undefined;
|
|
1728
|
+
strokeAlign?: "center" | "inside" | "outside" | undefined;
|
|
1729
|
+
roundness?: {
|
|
1730
|
+
type: "sharp" | "round";
|
|
1731
|
+
value?: number | undefined;
|
|
1732
|
+
} | undefined;
|
|
1733
|
+
textAlign?: "center" | "left" | "right" | undefined;
|
|
1734
|
+
textBaseline?: "top" | "middle" | "bottom" | undefined;
|
|
1735
|
+
fontWeight?: "normal" | "bold" | undefined;
|
|
1736
|
+
fontStyle?: "normal" | "italic" | undefined;
|
|
1737
|
+
textDecoration?: {
|
|
1738
|
+
underline?: boolean | undefined;
|
|
1739
|
+
strikethrough?: boolean | undefined;
|
|
1740
|
+
} | undefined;
|
|
1741
|
+
} | undefined;
|
|
1742
|
+
}[] | undefined;
|
|
1590
1743
|
}, {
|
|
1591
1744
|
type: "text";
|
|
1592
1745
|
position: {
|
|
@@ -1655,6 +1808,31 @@ declare const ElementZ: z.ZodUnion<[z.ZodObject<{
|
|
|
1655
1808
|
parentId?: string | undefined;
|
|
1656
1809
|
frameId?: string | undefined;
|
|
1657
1810
|
href?: string | undefined;
|
|
1811
|
+
runs?: {
|
|
1812
|
+
text: string;
|
|
1813
|
+
style?: {
|
|
1814
|
+
fill?: string | undefined;
|
|
1815
|
+
stroke?: string | undefined;
|
|
1816
|
+
strokeWidth?: number | undefined;
|
|
1817
|
+
opacity?: number | undefined;
|
|
1818
|
+
dashArray?: readonly number[] | undefined;
|
|
1819
|
+
lineCap?: "round" | "butt" | "square" | undefined;
|
|
1820
|
+
lineJoin?: "round" | "miter" | "bevel" | undefined;
|
|
1821
|
+
strokeAlign?: "center" | "inside" | "outside" | undefined;
|
|
1822
|
+
roundness?: {
|
|
1823
|
+
type: "sharp" | "round";
|
|
1824
|
+
value?: number | undefined;
|
|
1825
|
+
} | undefined;
|
|
1826
|
+
textAlign?: "center" | "left" | "right" | undefined;
|
|
1827
|
+
textBaseline?: "top" | "middle" | "bottom" | undefined;
|
|
1828
|
+
fontWeight?: "normal" | "bold" | undefined;
|
|
1829
|
+
fontStyle?: "normal" | "italic" | undefined;
|
|
1830
|
+
textDecoration?: {
|
|
1831
|
+
underline?: boolean | undefined;
|
|
1832
|
+
strikethrough?: boolean | undefined;
|
|
1833
|
+
} | undefined;
|
|
1834
|
+
} | undefined;
|
|
1835
|
+
}[] | undefined;
|
|
1658
1836
|
}>, z.ZodObject<{
|
|
1659
1837
|
id: z.ZodString;
|
|
1660
1838
|
layerId: z.ZodString;
|
|
@@ -1811,6 +1989,22 @@ declare const ElementZ: z.ZodUnion<[z.ZodObject<{
|
|
|
1811
1989
|
width: z.ZodNumber;
|
|
1812
1990
|
height: z.ZodNumber;
|
|
1813
1991
|
fileId: z.ZodOptional<z.ZodString>;
|
|
1992
|
+
crop: z.ZodOptional<z.ZodObject<{
|
|
1993
|
+
x: z.ZodNumber;
|
|
1994
|
+
y: z.ZodNumber;
|
|
1995
|
+
width: z.ZodNumber;
|
|
1996
|
+
height: z.ZodNumber;
|
|
1997
|
+
}, "strip", z.ZodTypeAny, {
|
|
1998
|
+
x: number;
|
|
1999
|
+
y: number;
|
|
2000
|
+
width: number;
|
|
2001
|
+
height: number;
|
|
2002
|
+
}, {
|
|
2003
|
+
x: number;
|
|
2004
|
+
y: number;
|
|
2005
|
+
width: number;
|
|
2006
|
+
height: number;
|
|
2007
|
+
}>>;
|
|
1814
2008
|
animationKind: z.ZodOptional<z.ZodString>;
|
|
1815
2009
|
animationData: z.ZodOptional<z.ZodUnknown>;
|
|
1816
2010
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -1874,6 +2068,12 @@ declare const ElementZ: z.ZodUnion<[z.ZodObject<{
|
|
|
1874
2068
|
frameId?: string | undefined;
|
|
1875
2069
|
href?: string | undefined;
|
|
1876
2070
|
fileId?: string | undefined;
|
|
2071
|
+
crop?: {
|
|
2072
|
+
x: number;
|
|
2073
|
+
y: number;
|
|
2074
|
+
width: number;
|
|
2075
|
+
height: number;
|
|
2076
|
+
} | undefined;
|
|
1877
2077
|
animationKind?: string | undefined;
|
|
1878
2078
|
animationData?: unknown;
|
|
1879
2079
|
}, {
|
|
@@ -1937,6 +2137,12 @@ declare const ElementZ: z.ZodUnion<[z.ZodObject<{
|
|
|
1937
2137
|
frameId?: string | undefined;
|
|
1938
2138
|
href?: string | undefined;
|
|
1939
2139
|
fileId?: string | undefined;
|
|
2140
|
+
crop?: {
|
|
2141
|
+
x: number;
|
|
2142
|
+
y: number;
|
|
2143
|
+
width: number;
|
|
2144
|
+
height: number;
|
|
2145
|
+
} | undefined;
|
|
1940
2146
|
animationKind?: string | undefined;
|
|
1941
2147
|
animationData?: unknown;
|
|
1942
2148
|
}>, z.ZodObject<{
|
|
@@ -2648,6 +2854,7 @@ declare const ElementZ: z.ZodUnion<[z.ZodObject<{
|
|
|
2648
2854
|
y: number;
|
|
2649
2855
|
width: number;
|
|
2650
2856
|
}>, "many">;
|
|
2857
|
+
closed: z.ZodOptional<z.ZodBoolean>;
|
|
2651
2858
|
}, "strict", z.ZodTypeAny, {
|
|
2652
2859
|
type: "brush";
|
|
2653
2860
|
position: {
|
|
@@ -2710,6 +2917,7 @@ declare const ElementZ: z.ZodUnion<[z.ZodObject<{
|
|
|
2710
2917
|
parentId?: string | undefined;
|
|
2711
2918
|
frameId?: string | undefined;
|
|
2712
2919
|
href?: string | undefined;
|
|
2920
|
+
closed?: boolean | undefined;
|
|
2713
2921
|
}, {
|
|
2714
2922
|
type: "brush";
|
|
2715
2923
|
position: {
|
|
@@ -2772,6 +2980,7 @@ declare const ElementZ: z.ZodUnion<[z.ZodObject<{
|
|
|
2772
2980
|
parentId?: string | undefined;
|
|
2773
2981
|
frameId?: string | undefined;
|
|
2774
2982
|
href?: string | undefined;
|
|
2983
|
+
closed?: boolean | undefined;
|
|
2775
2984
|
}>, z.ZodEffects<z.ZodObject<{
|
|
2776
2985
|
id: z.ZodString;
|
|
2777
2986
|
layerId: z.ZodString;
|
|
@@ -4264,7 +4473,7 @@ declare const ViewportZ: z.ZodObject<{
|
|
|
4264
4473
|
width: number;
|
|
4265
4474
|
height: number;
|
|
4266
4475
|
}>;
|
|
4267
|
-
|
|
4476
|
+
gridEnabled: z.ZodBoolean;
|
|
4268
4477
|
gridStyle: z.ZodOptional<z.ZodEnum<["lines", "dots"]>>;
|
|
4269
4478
|
snapToGrid: z.ZodOptional<z.ZodBoolean>;
|
|
4270
4479
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -4278,7 +4487,7 @@ declare const ViewportZ: z.ZodObject<{
|
|
|
4278
4487
|
y: number;
|
|
4279
4488
|
};
|
|
4280
4489
|
zoom: number;
|
|
4281
|
-
|
|
4490
|
+
gridEnabled: boolean;
|
|
4282
4491
|
gridStyle?: "lines" | "dots" | undefined;
|
|
4283
4492
|
snapToGrid?: boolean | undefined;
|
|
4284
4493
|
}, {
|
|
@@ -4292,96 +4501,10 @@ declare const ViewportZ: z.ZodObject<{
|
|
|
4292
4501
|
y: number;
|
|
4293
4502
|
};
|
|
4294
4503
|
zoom: number;
|
|
4295
|
-
|
|
4504
|
+
gridEnabled: boolean;
|
|
4296
4505
|
gridStyle?: "lines" | "dots" | undefined;
|
|
4297
4506
|
snapToGrid?: boolean | undefined;
|
|
4298
4507
|
}>;
|
|
4299
|
-
declare const CommentZ: z.ZodObject<{
|
|
4300
|
-
id: z.ZodString;
|
|
4301
|
-
authorId: z.ZodString;
|
|
4302
|
-
authorName: z.ZodString;
|
|
4303
|
-
body: z.ZodString;
|
|
4304
|
-
createdAt: z.ZodString;
|
|
4305
|
-
}, "strict", z.ZodTypeAny, {
|
|
4306
|
-
id: string;
|
|
4307
|
-
authorId: string;
|
|
4308
|
-
authorName: string;
|
|
4309
|
-
body: string;
|
|
4310
|
-
createdAt: string;
|
|
4311
|
-
}, {
|
|
4312
|
-
id: string;
|
|
4313
|
-
authorId: string;
|
|
4314
|
-
authorName: string;
|
|
4315
|
-
body: string;
|
|
4316
|
-
createdAt: string;
|
|
4317
|
-
}>;
|
|
4318
|
-
declare const AnnotationZ: z.ZodObject<{
|
|
4319
|
-
id: z.ZodString;
|
|
4320
|
-
elementId: z.ZodNullable<z.ZodString>;
|
|
4321
|
-
position: z.ZodObject<{
|
|
4322
|
-
x: z.ZodNumber;
|
|
4323
|
-
y: z.ZodNumber;
|
|
4324
|
-
}, "strip", z.ZodTypeAny, {
|
|
4325
|
-
x: number;
|
|
4326
|
-
y: number;
|
|
4327
|
-
}, {
|
|
4328
|
-
x: number;
|
|
4329
|
-
y: number;
|
|
4330
|
-
}>;
|
|
4331
|
-
resolved: z.ZodBoolean;
|
|
4332
|
-
thread: z.ZodArray<z.ZodObject<{
|
|
4333
|
-
id: z.ZodString;
|
|
4334
|
-
authorId: z.ZodString;
|
|
4335
|
-
authorName: z.ZodString;
|
|
4336
|
-
body: z.ZodString;
|
|
4337
|
-
createdAt: z.ZodString;
|
|
4338
|
-
}, "strict", z.ZodTypeAny, {
|
|
4339
|
-
id: string;
|
|
4340
|
-
authorId: string;
|
|
4341
|
-
authorName: string;
|
|
4342
|
-
body: string;
|
|
4343
|
-
createdAt: string;
|
|
4344
|
-
}, {
|
|
4345
|
-
id: string;
|
|
4346
|
-
authorId: string;
|
|
4347
|
-
authorName: string;
|
|
4348
|
-
body: string;
|
|
4349
|
-
createdAt: string;
|
|
4350
|
-
}>, "many">;
|
|
4351
|
-
createdAt: z.ZodString;
|
|
4352
|
-
}, "strict", z.ZodTypeAny, {
|
|
4353
|
-
position: {
|
|
4354
|
-
x: number;
|
|
4355
|
-
y: number;
|
|
4356
|
-
};
|
|
4357
|
-
id: string;
|
|
4358
|
-
elementId: string | null;
|
|
4359
|
-
createdAt: string;
|
|
4360
|
-
resolved: boolean;
|
|
4361
|
-
thread: {
|
|
4362
|
-
id: string;
|
|
4363
|
-
authorId: string;
|
|
4364
|
-
authorName: string;
|
|
4365
|
-
body: string;
|
|
4366
|
-
createdAt: string;
|
|
4367
|
-
}[];
|
|
4368
|
-
}, {
|
|
4369
|
-
position: {
|
|
4370
|
-
x: number;
|
|
4371
|
-
y: number;
|
|
4372
|
-
};
|
|
4373
|
-
id: string;
|
|
4374
|
-
elementId: string | null;
|
|
4375
|
-
createdAt: string;
|
|
4376
|
-
resolved: boolean;
|
|
4377
|
-
thread: {
|
|
4378
|
-
id: string;
|
|
4379
|
-
authorId: string;
|
|
4380
|
-
authorName: string;
|
|
4381
|
-
body: string;
|
|
4382
|
-
createdAt: string;
|
|
4383
|
-
}[];
|
|
4384
|
-
}>;
|
|
4385
4508
|
export declare const SceneDocumentZ: z.ZodObject<{
|
|
4386
4509
|
/** Magic to make a `.json` file recognisable without sniffing. */
|
|
4387
4510
|
format: z.ZodLiteral<"oh-just-another/scene">;
|
|
@@ -5901,6 +6024,134 @@ export declare const SceneDocumentZ: z.ZodObject<{
|
|
|
5901
6024
|
fontFamily: z.ZodString;
|
|
5902
6025
|
fontSize: z.ZodNumber;
|
|
5903
6026
|
maxWidth: z.ZodOptional<z.ZodNumber>;
|
|
6027
|
+
runs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6028
|
+
text: z.ZodString;
|
|
6029
|
+
style: z.ZodOptional<z.ZodObject<{
|
|
6030
|
+
fill: z.ZodOptional<z.ZodString>;
|
|
6031
|
+
stroke: z.ZodOptional<z.ZodString>;
|
|
6032
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
6033
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
6034
|
+
dashArray: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodNumber, "many">>>;
|
|
6035
|
+
lineCap: z.ZodOptional<z.ZodEnum<["butt", "round", "square"]>>;
|
|
6036
|
+
lineJoin: z.ZodOptional<z.ZodEnum<["miter", "round", "bevel"]>>;
|
|
6037
|
+
strokeAlign: z.ZodOptional<z.ZodEnum<["center", "inside", "outside"]>>;
|
|
6038
|
+
roundness: z.ZodOptional<z.ZodObject<{
|
|
6039
|
+
type: z.ZodEnum<["sharp", "round"]>;
|
|
6040
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
6041
|
+
}, "strict", z.ZodTypeAny, {
|
|
6042
|
+
type: "sharp" | "round";
|
|
6043
|
+
value?: number | undefined;
|
|
6044
|
+
}, {
|
|
6045
|
+
type: "sharp" | "round";
|
|
6046
|
+
value?: number | undefined;
|
|
6047
|
+
}>>;
|
|
6048
|
+
} & {
|
|
6049
|
+
textAlign: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
|
|
6050
|
+
textBaseline: z.ZodOptional<z.ZodEnum<["top", "middle", "bottom"]>>;
|
|
6051
|
+
fontWeight: z.ZodOptional<z.ZodEnum<["normal", "bold"]>>;
|
|
6052
|
+
fontStyle: z.ZodOptional<z.ZodEnum<["normal", "italic"]>>;
|
|
6053
|
+
textDecoration: z.ZodOptional<z.ZodObject<{
|
|
6054
|
+
underline: z.ZodOptional<z.ZodBoolean>;
|
|
6055
|
+
strikethrough: z.ZodOptional<z.ZodBoolean>;
|
|
6056
|
+
}, "strict", z.ZodTypeAny, {
|
|
6057
|
+
underline?: boolean | undefined;
|
|
6058
|
+
strikethrough?: boolean | undefined;
|
|
6059
|
+
}, {
|
|
6060
|
+
underline?: boolean | undefined;
|
|
6061
|
+
strikethrough?: boolean | undefined;
|
|
6062
|
+
}>>;
|
|
6063
|
+
}, "strict", z.ZodTypeAny, {
|
|
6064
|
+
fill?: string | undefined;
|
|
6065
|
+
stroke?: string | undefined;
|
|
6066
|
+
strokeWidth?: number | undefined;
|
|
6067
|
+
opacity?: number | undefined;
|
|
6068
|
+
dashArray?: readonly number[] | undefined;
|
|
6069
|
+
lineCap?: "round" | "butt" | "square" | undefined;
|
|
6070
|
+
lineJoin?: "round" | "miter" | "bevel" | undefined;
|
|
6071
|
+
strokeAlign?: "center" | "inside" | "outside" | undefined;
|
|
6072
|
+
roundness?: {
|
|
6073
|
+
type: "sharp" | "round";
|
|
6074
|
+
value?: number | undefined;
|
|
6075
|
+
} | undefined;
|
|
6076
|
+
textAlign?: "center" | "left" | "right" | undefined;
|
|
6077
|
+
textBaseline?: "top" | "middle" | "bottom" | undefined;
|
|
6078
|
+
fontWeight?: "normal" | "bold" | undefined;
|
|
6079
|
+
fontStyle?: "normal" | "italic" | undefined;
|
|
6080
|
+
textDecoration?: {
|
|
6081
|
+
underline?: boolean | undefined;
|
|
6082
|
+
strikethrough?: boolean | undefined;
|
|
6083
|
+
} | undefined;
|
|
6084
|
+
}, {
|
|
6085
|
+
fill?: string | undefined;
|
|
6086
|
+
stroke?: string | undefined;
|
|
6087
|
+
strokeWidth?: number | undefined;
|
|
6088
|
+
opacity?: number | undefined;
|
|
6089
|
+
dashArray?: readonly number[] | undefined;
|
|
6090
|
+
lineCap?: "round" | "butt" | "square" | undefined;
|
|
6091
|
+
lineJoin?: "round" | "miter" | "bevel" | undefined;
|
|
6092
|
+
strokeAlign?: "center" | "inside" | "outside" | undefined;
|
|
6093
|
+
roundness?: {
|
|
6094
|
+
type: "sharp" | "round";
|
|
6095
|
+
value?: number | undefined;
|
|
6096
|
+
} | undefined;
|
|
6097
|
+
textAlign?: "center" | "left" | "right" | undefined;
|
|
6098
|
+
textBaseline?: "top" | "middle" | "bottom" | undefined;
|
|
6099
|
+
fontWeight?: "normal" | "bold" | undefined;
|
|
6100
|
+
fontStyle?: "normal" | "italic" | undefined;
|
|
6101
|
+
textDecoration?: {
|
|
6102
|
+
underline?: boolean | undefined;
|
|
6103
|
+
strikethrough?: boolean | undefined;
|
|
6104
|
+
} | undefined;
|
|
6105
|
+
}>>;
|
|
6106
|
+
}, "strict", z.ZodTypeAny, {
|
|
6107
|
+
text: string;
|
|
6108
|
+
style?: {
|
|
6109
|
+
fill?: string | undefined;
|
|
6110
|
+
stroke?: string | undefined;
|
|
6111
|
+
strokeWidth?: number | undefined;
|
|
6112
|
+
opacity?: number | undefined;
|
|
6113
|
+
dashArray?: readonly number[] | undefined;
|
|
6114
|
+
lineCap?: "round" | "butt" | "square" | undefined;
|
|
6115
|
+
lineJoin?: "round" | "miter" | "bevel" | undefined;
|
|
6116
|
+
strokeAlign?: "center" | "inside" | "outside" | undefined;
|
|
6117
|
+
roundness?: {
|
|
6118
|
+
type: "sharp" | "round";
|
|
6119
|
+
value?: number | undefined;
|
|
6120
|
+
} | undefined;
|
|
6121
|
+
textAlign?: "center" | "left" | "right" | undefined;
|
|
6122
|
+
textBaseline?: "top" | "middle" | "bottom" | undefined;
|
|
6123
|
+
fontWeight?: "normal" | "bold" | undefined;
|
|
6124
|
+
fontStyle?: "normal" | "italic" | undefined;
|
|
6125
|
+
textDecoration?: {
|
|
6126
|
+
underline?: boolean | undefined;
|
|
6127
|
+
strikethrough?: boolean | undefined;
|
|
6128
|
+
} | undefined;
|
|
6129
|
+
} | undefined;
|
|
6130
|
+
}, {
|
|
6131
|
+
text: string;
|
|
6132
|
+
style?: {
|
|
6133
|
+
fill?: string | undefined;
|
|
6134
|
+
stroke?: string | undefined;
|
|
6135
|
+
strokeWidth?: number | undefined;
|
|
6136
|
+
opacity?: number | undefined;
|
|
6137
|
+
dashArray?: readonly number[] | undefined;
|
|
6138
|
+
lineCap?: "round" | "butt" | "square" | undefined;
|
|
6139
|
+
lineJoin?: "round" | "miter" | "bevel" | undefined;
|
|
6140
|
+
strokeAlign?: "center" | "inside" | "outside" | undefined;
|
|
6141
|
+
roundness?: {
|
|
6142
|
+
type: "sharp" | "round";
|
|
6143
|
+
value?: number | undefined;
|
|
6144
|
+
} | undefined;
|
|
6145
|
+
textAlign?: "center" | "left" | "right" | undefined;
|
|
6146
|
+
textBaseline?: "top" | "middle" | "bottom" | undefined;
|
|
6147
|
+
fontWeight?: "normal" | "bold" | undefined;
|
|
6148
|
+
fontStyle?: "normal" | "italic" | undefined;
|
|
6149
|
+
textDecoration?: {
|
|
6150
|
+
underline?: boolean | undefined;
|
|
6151
|
+
strikethrough?: boolean | undefined;
|
|
6152
|
+
} | undefined;
|
|
6153
|
+
} | undefined;
|
|
6154
|
+
}>, "many">>;
|
|
5904
6155
|
}, "strict", z.ZodTypeAny, {
|
|
5905
6156
|
type: "text";
|
|
5906
6157
|
position: {
|
|
@@ -5969,6 +6220,31 @@ export declare const SceneDocumentZ: z.ZodObject<{
|
|
|
5969
6220
|
parentId?: string | undefined;
|
|
5970
6221
|
frameId?: string | undefined;
|
|
5971
6222
|
href?: string | undefined;
|
|
6223
|
+
runs?: {
|
|
6224
|
+
text: string;
|
|
6225
|
+
style?: {
|
|
6226
|
+
fill?: string | undefined;
|
|
6227
|
+
stroke?: string | undefined;
|
|
6228
|
+
strokeWidth?: number | undefined;
|
|
6229
|
+
opacity?: number | undefined;
|
|
6230
|
+
dashArray?: readonly number[] | undefined;
|
|
6231
|
+
lineCap?: "round" | "butt" | "square" | undefined;
|
|
6232
|
+
lineJoin?: "round" | "miter" | "bevel" | undefined;
|
|
6233
|
+
strokeAlign?: "center" | "inside" | "outside" | undefined;
|
|
6234
|
+
roundness?: {
|
|
6235
|
+
type: "sharp" | "round";
|
|
6236
|
+
value?: number | undefined;
|
|
6237
|
+
} | undefined;
|
|
6238
|
+
textAlign?: "center" | "left" | "right" | undefined;
|
|
6239
|
+
textBaseline?: "top" | "middle" | "bottom" | undefined;
|
|
6240
|
+
fontWeight?: "normal" | "bold" | undefined;
|
|
6241
|
+
fontStyle?: "normal" | "italic" | undefined;
|
|
6242
|
+
textDecoration?: {
|
|
6243
|
+
underline?: boolean | undefined;
|
|
6244
|
+
strikethrough?: boolean | undefined;
|
|
6245
|
+
} | undefined;
|
|
6246
|
+
} | undefined;
|
|
6247
|
+
}[] | undefined;
|
|
5972
6248
|
}, {
|
|
5973
6249
|
type: "text";
|
|
5974
6250
|
position: {
|
|
@@ -6037,6 +6313,31 @@ export declare const SceneDocumentZ: z.ZodObject<{
|
|
|
6037
6313
|
parentId?: string | undefined;
|
|
6038
6314
|
frameId?: string | undefined;
|
|
6039
6315
|
href?: string | undefined;
|
|
6316
|
+
runs?: {
|
|
6317
|
+
text: string;
|
|
6318
|
+
style?: {
|
|
6319
|
+
fill?: string | undefined;
|
|
6320
|
+
stroke?: string | undefined;
|
|
6321
|
+
strokeWidth?: number | undefined;
|
|
6322
|
+
opacity?: number | undefined;
|
|
6323
|
+
dashArray?: readonly number[] | undefined;
|
|
6324
|
+
lineCap?: "round" | "butt" | "square" | undefined;
|
|
6325
|
+
lineJoin?: "round" | "miter" | "bevel" | undefined;
|
|
6326
|
+
strokeAlign?: "center" | "inside" | "outside" | undefined;
|
|
6327
|
+
roundness?: {
|
|
6328
|
+
type: "sharp" | "round";
|
|
6329
|
+
value?: number | undefined;
|
|
6330
|
+
} | undefined;
|
|
6331
|
+
textAlign?: "center" | "left" | "right" | undefined;
|
|
6332
|
+
textBaseline?: "top" | "middle" | "bottom" | undefined;
|
|
6333
|
+
fontWeight?: "normal" | "bold" | undefined;
|
|
6334
|
+
fontStyle?: "normal" | "italic" | undefined;
|
|
6335
|
+
textDecoration?: {
|
|
6336
|
+
underline?: boolean | undefined;
|
|
6337
|
+
strikethrough?: boolean | undefined;
|
|
6338
|
+
} | undefined;
|
|
6339
|
+
} | undefined;
|
|
6340
|
+
}[] | undefined;
|
|
6040
6341
|
}>, z.ZodObject<{
|
|
6041
6342
|
id: z.ZodString;
|
|
6042
6343
|
layerId: z.ZodString;
|
|
@@ -6193,6 +6494,22 @@ export declare const SceneDocumentZ: z.ZodObject<{
|
|
|
6193
6494
|
width: z.ZodNumber;
|
|
6194
6495
|
height: z.ZodNumber;
|
|
6195
6496
|
fileId: z.ZodOptional<z.ZodString>;
|
|
6497
|
+
crop: z.ZodOptional<z.ZodObject<{
|
|
6498
|
+
x: z.ZodNumber;
|
|
6499
|
+
y: z.ZodNumber;
|
|
6500
|
+
width: z.ZodNumber;
|
|
6501
|
+
height: z.ZodNumber;
|
|
6502
|
+
}, "strip", z.ZodTypeAny, {
|
|
6503
|
+
x: number;
|
|
6504
|
+
y: number;
|
|
6505
|
+
width: number;
|
|
6506
|
+
height: number;
|
|
6507
|
+
}, {
|
|
6508
|
+
x: number;
|
|
6509
|
+
y: number;
|
|
6510
|
+
width: number;
|
|
6511
|
+
height: number;
|
|
6512
|
+
}>>;
|
|
6196
6513
|
animationKind: z.ZodOptional<z.ZodString>;
|
|
6197
6514
|
animationData: z.ZodOptional<z.ZodUnknown>;
|
|
6198
6515
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -6256,6 +6573,12 @@ export declare const SceneDocumentZ: z.ZodObject<{
|
|
|
6256
6573
|
frameId?: string | undefined;
|
|
6257
6574
|
href?: string | undefined;
|
|
6258
6575
|
fileId?: string | undefined;
|
|
6576
|
+
crop?: {
|
|
6577
|
+
x: number;
|
|
6578
|
+
y: number;
|
|
6579
|
+
width: number;
|
|
6580
|
+
height: number;
|
|
6581
|
+
} | undefined;
|
|
6259
6582
|
animationKind?: string | undefined;
|
|
6260
6583
|
animationData?: unknown;
|
|
6261
6584
|
}, {
|
|
@@ -6319,6 +6642,12 @@ export declare const SceneDocumentZ: z.ZodObject<{
|
|
|
6319
6642
|
frameId?: string | undefined;
|
|
6320
6643
|
href?: string | undefined;
|
|
6321
6644
|
fileId?: string | undefined;
|
|
6645
|
+
crop?: {
|
|
6646
|
+
x: number;
|
|
6647
|
+
y: number;
|
|
6648
|
+
width: number;
|
|
6649
|
+
height: number;
|
|
6650
|
+
} | undefined;
|
|
6322
6651
|
animationKind?: string | undefined;
|
|
6323
6652
|
animationData?: unknown;
|
|
6324
6653
|
}>, z.ZodObject<{
|
|
@@ -7030,6 +7359,7 @@ export declare const SceneDocumentZ: z.ZodObject<{
|
|
|
7030
7359
|
y: number;
|
|
7031
7360
|
width: number;
|
|
7032
7361
|
}>, "many">;
|
|
7362
|
+
closed: z.ZodOptional<z.ZodBoolean>;
|
|
7033
7363
|
}, "strict", z.ZodTypeAny, {
|
|
7034
7364
|
type: "brush";
|
|
7035
7365
|
position: {
|
|
@@ -7092,6 +7422,7 @@ export declare const SceneDocumentZ: z.ZodObject<{
|
|
|
7092
7422
|
parentId?: string | undefined;
|
|
7093
7423
|
frameId?: string | undefined;
|
|
7094
7424
|
href?: string | undefined;
|
|
7425
|
+
closed?: boolean | undefined;
|
|
7095
7426
|
}, {
|
|
7096
7427
|
type: "brush";
|
|
7097
7428
|
position: {
|
|
@@ -7154,6 +7485,7 @@ export declare const SceneDocumentZ: z.ZodObject<{
|
|
|
7154
7485
|
parentId?: string | undefined;
|
|
7155
7486
|
frameId?: string | undefined;
|
|
7156
7487
|
href?: string | undefined;
|
|
7488
|
+
closed?: boolean | undefined;
|
|
7157
7489
|
}>, z.ZodEffects<z.ZodObject<{
|
|
7158
7490
|
id: z.ZodString;
|
|
7159
7491
|
layerId: z.ZodString;
|
|
@@ -8624,8 +8956,8 @@ export declare const SceneDocumentZ: z.ZodObject<{
|
|
|
8624
8956
|
locked: boolean;
|
|
8625
8957
|
}>, "many">;
|
|
8626
8958
|
/**
|
|
8627
|
-
* Threaded comments. Optional
|
|
8628
|
-
*
|
|
8959
|
+
* Threaded comments. Optional — documents without an `annotations` field
|
|
8960
|
+
* deserialize as an empty thread list.
|
|
8629
8961
|
*/
|
|
8630
8962
|
annotations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8631
8963
|
id: z.ZodString;
|
|
@@ -8717,7 +9049,7 @@ export declare const SceneDocumentZ: z.ZodObject<{
|
|
|
8717
9049
|
width: number;
|
|
8718
9050
|
height: number;
|
|
8719
9051
|
}>;
|
|
8720
|
-
|
|
9052
|
+
gridEnabled: z.ZodBoolean;
|
|
8721
9053
|
gridStyle: z.ZodOptional<z.ZodEnum<["lines", "dots"]>>;
|
|
8722
9054
|
snapToGrid: z.ZodOptional<z.ZodBoolean>;
|
|
8723
9055
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -8731,7 +9063,7 @@ export declare const SceneDocumentZ: z.ZodObject<{
|
|
|
8731
9063
|
y: number;
|
|
8732
9064
|
};
|
|
8733
9065
|
zoom: number;
|
|
8734
|
-
|
|
9066
|
+
gridEnabled: boolean;
|
|
8735
9067
|
gridStyle?: "lines" | "dots" | undefined;
|
|
8736
9068
|
snapToGrid?: boolean | undefined;
|
|
8737
9069
|
}, {
|
|
@@ -8745,7 +9077,7 @@ export declare const SceneDocumentZ: z.ZodObject<{
|
|
|
8745
9077
|
y: number;
|
|
8746
9078
|
};
|
|
8747
9079
|
zoom: number;
|
|
8748
|
-
|
|
9080
|
+
gridEnabled: boolean;
|
|
8749
9081
|
gridStyle?: "lines" | "dots" | undefined;
|
|
8750
9082
|
snapToGrid?: boolean | undefined;
|
|
8751
9083
|
}>;
|
|
@@ -9095,6 +9427,31 @@ export declare const SceneDocumentZ: z.ZodObject<{
|
|
|
9095
9427
|
parentId?: string | undefined;
|
|
9096
9428
|
frameId?: string | undefined;
|
|
9097
9429
|
href?: string | undefined;
|
|
9430
|
+
runs?: {
|
|
9431
|
+
text: string;
|
|
9432
|
+
style?: {
|
|
9433
|
+
fill?: string | undefined;
|
|
9434
|
+
stroke?: string | undefined;
|
|
9435
|
+
strokeWidth?: number | undefined;
|
|
9436
|
+
opacity?: number | undefined;
|
|
9437
|
+
dashArray?: readonly number[] | undefined;
|
|
9438
|
+
lineCap?: "round" | "butt" | "square" | undefined;
|
|
9439
|
+
lineJoin?: "round" | "miter" | "bevel" | undefined;
|
|
9440
|
+
strokeAlign?: "center" | "inside" | "outside" | undefined;
|
|
9441
|
+
roundness?: {
|
|
9442
|
+
type: "sharp" | "round";
|
|
9443
|
+
value?: number | undefined;
|
|
9444
|
+
} | undefined;
|
|
9445
|
+
textAlign?: "center" | "left" | "right" | undefined;
|
|
9446
|
+
textBaseline?: "top" | "middle" | "bottom" | undefined;
|
|
9447
|
+
fontWeight?: "normal" | "bold" | undefined;
|
|
9448
|
+
fontStyle?: "normal" | "italic" | undefined;
|
|
9449
|
+
textDecoration?: {
|
|
9450
|
+
underline?: boolean | undefined;
|
|
9451
|
+
strikethrough?: boolean | undefined;
|
|
9452
|
+
} | undefined;
|
|
9453
|
+
} | undefined;
|
|
9454
|
+
}[] | undefined;
|
|
9098
9455
|
} | {
|
|
9099
9456
|
type: "image";
|
|
9100
9457
|
width: number;
|
|
@@ -9156,6 +9513,12 @@ export declare const SceneDocumentZ: z.ZodObject<{
|
|
|
9156
9513
|
frameId?: string | undefined;
|
|
9157
9514
|
href?: string | undefined;
|
|
9158
9515
|
fileId?: string | undefined;
|
|
9516
|
+
crop?: {
|
|
9517
|
+
x: number;
|
|
9518
|
+
y: number;
|
|
9519
|
+
width: number;
|
|
9520
|
+
height: number;
|
|
9521
|
+
} | undefined;
|
|
9159
9522
|
animationKind?: string | undefined;
|
|
9160
9523
|
animationData?: unknown;
|
|
9161
9524
|
} | {
|
|
@@ -9338,6 +9701,7 @@ export declare const SceneDocumentZ: z.ZodObject<{
|
|
|
9338
9701
|
parentId?: string | undefined;
|
|
9339
9702
|
frameId?: string | undefined;
|
|
9340
9703
|
href?: string | undefined;
|
|
9704
|
+
closed?: boolean | undefined;
|
|
9341
9705
|
} | z.objectOutputType<{
|
|
9342
9706
|
id: z.ZodString;
|
|
9343
9707
|
layerId: z.ZodString;
|
|
@@ -9630,7 +9994,7 @@ export declare const SceneDocumentZ: z.ZodObject<{
|
|
|
9630
9994
|
y: number;
|
|
9631
9995
|
};
|
|
9632
9996
|
zoom: number;
|
|
9633
|
-
|
|
9997
|
+
gridEnabled: boolean;
|
|
9634
9998
|
gridStyle?: "lines" | "dots" | undefined;
|
|
9635
9999
|
snapToGrid?: boolean | undefined;
|
|
9636
10000
|
};
|
|
@@ -9997,6 +10361,31 @@ export declare const SceneDocumentZ: z.ZodObject<{
|
|
|
9997
10361
|
parentId?: string | undefined;
|
|
9998
10362
|
frameId?: string | undefined;
|
|
9999
10363
|
href?: string | undefined;
|
|
10364
|
+
runs?: {
|
|
10365
|
+
text: string;
|
|
10366
|
+
style?: {
|
|
10367
|
+
fill?: string | undefined;
|
|
10368
|
+
stroke?: string | undefined;
|
|
10369
|
+
strokeWidth?: number | undefined;
|
|
10370
|
+
opacity?: number | undefined;
|
|
10371
|
+
dashArray?: readonly number[] | undefined;
|
|
10372
|
+
lineCap?: "round" | "butt" | "square" | undefined;
|
|
10373
|
+
lineJoin?: "round" | "miter" | "bevel" | undefined;
|
|
10374
|
+
strokeAlign?: "center" | "inside" | "outside" | undefined;
|
|
10375
|
+
roundness?: {
|
|
10376
|
+
type: "sharp" | "round";
|
|
10377
|
+
value?: number | undefined;
|
|
10378
|
+
} | undefined;
|
|
10379
|
+
textAlign?: "center" | "left" | "right" | undefined;
|
|
10380
|
+
textBaseline?: "top" | "middle" | "bottom" | undefined;
|
|
10381
|
+
fontWeight?: "normal" | "bold" | undefined;
|
|
10382
|
+
fontStyle?: "normal" | "italic" | undefined;
|
|
10383
|
+
textDecoration?: {
|
|
10384
|
+
underline?: boolean | undefined;
|
|
10385
|
+
strikethrough?: boolean | undefined;
|
|
10386
|
+
} | undefined;
|
|
10387
|
+
} | undefined;
|
|
10388
|
+
}[] | undefined;
|
|
10000
10389
|
} | {
|
|
10001
10390
|
type: "image";
|
|
10002
10391
|
width: number;
|
|
@@ -10058,6 +10447,12 @@ export declare const SceneDocumentZ: z.ZodObject<{
|
|
|
10058
10447
|
frameId?: string | undefined;
|
|
10059
10448
|
href?: string | undefined;
|
|
10060
10449
|
fileId?: string | undefined;
|
|
10450
|
+
crop?: {
|
|
10451
|
+
x: number;
|
|
10452
|
+
y: number;
|
|
10453
|
+
width: number;
|
|
10454
|
+
height: number;
|
|
10455
|
+
} | undefined;
|
|
10061
10456
|
animationKind?: string | undefined;
|
|
10062
10457
|
animationData?: unknown;
|
|
10063
10458
|
} | {
|
|
@@ -10240,6 +10635,7 @@ export declare const SceneDocumentZ: z.ZodObject<{
|
|
|
10240
10635
|
parentId?: string | undefined;
|
|
10241
10636
|
frameId?: string | undefined;
|
|
10242
10637
|
href?: string | undefined;
|
|
10638
|
+
closed?: boolean | undefined;
|
|
10243
10639
|
} | z.objectInputType<{
|
|
10244
10640
|
id: z.ZodString;
|
|
10245
10641
|
layerId: z.ZodString;
|
|
@@ -10532,7 +10928,7 @@ export declare const SceneDocumentZ: z.ZodObject<{
|
|
|
10532
10928
|
y: number;
|
|
10533
10929
|
};
|
|
10534
10930
|
zoom: number;
|
|
10535
|
-
|
|
10931
|
+
gridEnabled: boolean;
|
|
10536
10932
|
gridStyle?: "lines" | "dots" | undefined;
|
|
10537
10933
|
snapToGrid?: boolean | undefined;
|
|
10538
10934
|
};
|
|
@@ -10559,7 +10955,5 @@ export type SerializedElement = z.infer<typeof ElementZ>;
|
|
|
10559
10955
|
export type SerializedLink = z.infer<typeof LinkZ>;
|
|
10560
10956
|
export type SerializedLayer = z.infer<typeof LayerZ>;
|
|
10561
10957
|
export type SerializedViewport = z.infer<typeof ViewportZ>;
|
|
10562
|
-
export type SerializedAnnotation = z.infer<typeof AnnotationZ>;
|
|
10563
|
-
export type SerializedComment = z.infer<typeof CommentZ>;
|
|
10564
10958
|
export {};
|
|
10565
10959
|
//# sourceMappingURL=schema.d.ts.map
|