@pairdraw/scene-graph 0.19.2 → 0.20.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.
Files changed (166) hide show
  1. package/dist/components/index.d.ts +2 -2
  2. package/dist/components/index.js +2 -2
  3. package/dist/components/variants.d.ts +12 -1
  4. package/dist/components/variants.d.ts.map +1 -1
  5. package/dist/components/variants.js +30 -1
  6. package/dist/components/variants.js.map +1 -1
  7. package/dist/constants.d.ts +25 -1
  8. package/dist/constants.d.ts.map +1 -1
  9. package/dist/constants.js +94 -1
  10. package/dist/constants.js.map +1 -1
  11. package/dist/copy.d.ts.map +1 -1
  12. package/dist/copy.js +17 -1
  13. package/dist/copy.js.map +1 -1
  14. package/dist/css/index.d.ts +2 -2
  15. package/dist/css/index.js +2 -2
  16. package/dist/css/text.d.ts +17 -1
  17. package/dist/css/text.d.ts.map +1 -1
  18. package/dist/css/text.js +62 -1
  19. package/dist/css/text.js.map +1 -1
  20. package/dist/design-memory/index.d.ts +3 -0
  21. package/dist/design-memory/index.js +3 -0
  22. package/dist/design-memory/model.d.ts +33 -0
  23. package/dist/design-memory/model.d.ts.map +1 -0
  24. package/dist/design-memory/model.js +142 -0
  25. package/dist/design-memory/model.js.map +1 -0
  26. package/dist/design-memory/schema.d.ts +76 -0
  27. package/dist/design-memory/schema.d.ts.map +1 -0
  28. package/dist/design-memory/schema.js +72 -0
  29. package/dist/design-memory/schema.js.map +1 -0
  30. package/dist/effects.d.ts +7 -4
  31. package/dist/effects.d.ts.map +1 -1
  32. package/dist/effects.js +9 -4
  33. package/dist/effects.js.map +1 -1
  34. package/dist/empty-values.js +93 -0
  35. package/dist/empty-values.js.map +1 -0
  36. package/dist/fields/components.d.ts +9 -0
  37. package/dist/fields/components.d.ts.map +1 -0
  38. package/dist/fields/components.js +24 -0
  39. package/dist/fields/components.js.map +1 -0
  40. package/dist/fields/index.d.ts +3 -2
  41. package/dist/fields/index.js +3 -2
  42. package/dist/fields/layout.d.ts +3 -1
  43. package/dist/fields/layout.d.ts.map +1 -1
  44. package/dist/fields/layout.js +10 -1
  45. package/dist/fields/layout.js.map +1 -1
  46. package/dist/graph.d.ts +8 -1
  47. package/dist/graph.d.ts.map +1 -1
  48. package/dist/graph.js +28 -5
  49. package/dist/graph.js.map +1 -1
  50. package/dist/grid-values.d.ts +10 -0
  51. package/dist/grid-values.d.ts.map +1 -0
  52. package/dist/grid-values.js +53 -0
  53. package/dist/grid-values.js.map +1 -0
  54. package/dist/hit-test/drop.d.ts +20 -0
  55. package/dist/hit-test/drop.d.ts.map +1 -0
  56. package/dist/hit-test/drop.js +54 -0
  57. package/dist/hit-test/drop.js.map +1 -0
  58. package/dist/hit-test/geometry.js +86 -0
  59. package/dist/hit-test/geometry.js.map +1 -0
  60. package/dist/hit-test/masks.d.ts +14 -0
  61. package/dist/hit-test/masks.d.ts.map +1 -0
  62. package/dist/hit-test/masks.js +41 -0
  63. package/dist/hit-test/masks.js.map +1 -0
  64. package/dist/hit-test/paint.d.ts +6 -0
  65. package/dist/hit-test/paint.d.ts.map +1 -0
  66. package/dist/hit-test/paint.js +19 -0
  67. package/dist/hit-test/paint.js.map +1 -0
  68. package/dist/hit-test.d.ts +4 -15
  69. package/dist/hit-test.d.ts.map +1 -1
  70. package/dist/hit-test.js +5 -173
  71. package/dist/hit-test.js.map +1 -1
  72. package/dist/index.d.ts +2 -2
  73. package/dist/instances/fields.d.ts.map +1 -1
  74. package/dist/instances/fields.js +2 -0
  75. package/dist/instances/fields.js.map +1 -1
  76. package/dist/instances/index.d.ts +2 -1
  77. package/dist/instances/index.d.ts.map +1 -1
  78. package/dist/instances/index.js +1 -1
  79. package/dist/instances/index.js.map +1 -1
  80. package/dist/instances/source-walk.d.ts +12 -0
  81. package/dist/instances/source-walk.d.ts.map +1 -0
  82. package/dist/node-defaults.d.ts.map +1 -1
  83. package/dist/node-defaults.js +41 -36
  84. package/dist/node-defaults.js.map +1 -1
  85. package/dist/plugin-data/fields.d.ts +75 -0
  86. package/dist/plugin-data/fields.d.ts.map +1 -1
  87. package/dist/plugin-data/fields.js +18 -1
  88. package/dist/plugin-data/fields.js.map +1 -1
  89. package/dist/preview.d.ts.map +1 -1
  90. package/dist/preview.js +2 -0
  91. package/dist/preview.js.map +1 -1
  92. package/dist/scaling/node.d.ts.map +1 -1
  93. package/dist/scaling/node.js +5 -1
  94. package/dist/scaling/node.js.map +1 -1
  95. package/dist/token-sources/document.d.ts +26 -0
  96. package/dist/token-sources/document.d.ts.map +1 -0
  97. package/dist/token-sources/document.js +80 -0
  98. package/dist/token-sources/document.js.map +1 -0
  99. package/dist/token-sources/index.d.ts +3 -0
  100. package/dist/token-sources/index.js +3 -0
  101. package/dist/token-sources/schema.d.ts +43 -0
  102. package/dist/token-sources/schema.d.ts.map +1 -0
  103. package/dist/token-sources/schema.js +50 -0
  104. package/dist/token-sources/schema.js.map +1 -0
  105. package/dist/types.d.ts +102 -14
  106. package/dist/types.d.ts.map +1 -1
  107. package/dist/types.js.map +1 -1
  108. package/dist/variations/copy.d.ts +16 -0
  109. package/dist/variations/copy.d.ts.map +1 -0
  110. package/dist/variations/copy.js +78 -0
  111. package/dist/variations/copy.js.map +1 -0
  112. package/dist/variations/index.d.ts +6 -0
  113. package/dist/variations/index.js +6 -0
  114. package/dist/variations/match.d.ts +23 -0
  115. package/dist/variations/match.d.ts.map +1 -0
  116. package/dist/variations/match.js +80 -0
  117. package/dist/variations/match.js.map +1 -0
  118. package/dist/variations/model.d.ts +39 -0
  119. package/dist/variations/model.d.ts.map +1 -0
  120. package/dist/variations/model.js +90 -0
  121. package/dist/variations/model.js.map +1 -0
  122. package/dist/variations/pick.d.ts +43 -0
  123. package/dist/variations/pick.d.ts.map +1 -0
  124. package/dist/variations/pick.js +211 -0
  125. package/dist/variations/pick.js.map +1 -0
  126. package/dist/variations/schema.d.ts +27 -0
  127. package/dist/variations/schema.d.ts.map +1 -0
  128. package/dist/variations/schema.js +27 -0
  129. package/dist/variations/schema.js.map +1 -0
  130. package/package.json +21 -1
  131. package/src/components/variants.ts +39 -0
  132. package/src/constants.ts +75 -0
  133. package/src/copy.ts +20 -1
  134. package/src/css/index.ts +7 -1
  135. package/src/css/text.ts +62 -0
  136. package/src/design-memory/index.ts +2 -0
  137. package/src/design-memory/model.ts +143 -0
  138. package/src/design-memory/schema.ts +84 -0
  139. package/src/effects.ts +16 -7
  140. package/src/empty-values.ts +101 -0
  141. package/src/fields/components.ts +21 -0
  142. package/src/fields/index.ts +1 -0
  143. package/src/fields/layout.ts +10 -0
  144. package/src/graph.ts +37 -5
  145. package/src/grid-values.ts +47 -0
  146. package/src/hit-test/drop.ts +90 -0
  147. package/src/hit-test/geometry.ts +131 -0
  148. package/src/hit-test/masks.ts +57 -0
  149. package/src/hit-test/paint.ts +24 -0
  150. package/src/hit-test.ts +8 -277
  151. package/src/instances/fields.ts +2 -0
  152. package/src/instances/index.ts +1 -0
  153. package/src/node-defaults.ts +49 -39
  154. package/src/plugin-data/fields.ts +18 -1
  155. package/src/preview.ts +2 -0
  156. package/src/scaling/node.ts +7 -2
  157. package/src/token-sources/document.ts +104 -0
  158. package/src/token-sources/index.ts +2 -0
  159. package/src/token-sources/schema.ts +59 -0
  160. package/src/types.ts +115 -13
  161. package/src/variations/copy.ts +89 -0
  162. package/src/variations/index.ts +5 -0
  163. package/src/variations/match.ts +100 -0
  164. package/src/variations/model.ts +132 -0
  165. package/src/variations/pick.ts +293 -0
  166. package/src/variations/schema.ts +29 -0
@@ -0,0 +1,80 @@
1
+ import { readPluginData, withPluginData } from "../plugin-data/field.js";
2
+ import { relativeTokenPathSchema } from "./schema.js";
3
+ import { PAIRDRAW_PLUGIN_DATA } from "../plugin-data/fields.js";
4
+ import * as v from "valibot";
5
+ //#region src/token-sources/document.ts
6
+ const { tokenSources } = PAIRDRAW_PLUGIN_DATA;
7
+ /**
8
+ * The code a document's variables are linked to, with what it held at the last sync. The links
9
+ * live in Pairdraw's plugin data on the document node, so they travel with the `.fig` file and
10
+ * Figma ignores them; where each file is on this computer stays with the app, not the document.
11
+ */
12
+ function readTokenSources(graph) {
13
+ return readPluginData(graph.getNode(graph.rootId)?.pluginData, tokenSources) ?? [];
14
+ }
15
+ /**
16
+ * The links with their snapshots keyed by the graph's variable and mode ids. A format that keys
17
+ * variables and modes by name, such as `.pen`, gives them new ids when it reads them back; the
18
+ * names the file stored when it was saved, or the last sync's where the file recorded none, find
19
+ * them again. `names` and the snapshot's token identities are kept as they were. Links whose
20
+ * variables are all gone are left as they are.
21
+ */
22
+ function rekeyTokenSources(graph, sources) {
23
+ const collectionsByName = new Map([...graph.variableCollections.values()].map((collection) => [collection.name, collection]));
24
+ const variablesByKey = /* @__PURE__ */ new Map();
25
+ for (const variable of graph.variables.values()) {
26
+ const collection = graph.variableCollections.get(variable.collectionId);
27
+ if (collection) variablesByKey.set(`${collection.name}/${variable.name}`, variable.id);
28
+ }
29
+ const currentModeId = (collectionName, modeId, modes) => {
30
+ const name = modes?.[collectionName]?.[modeId];
31
+ if (name === void 0) return modeId;
32
+ return (collectionsByName.get(collectionName)?.modes.find((entry) => entry.name === name))?.modeId ?? modeId;
33
+ };
34
+ return sources.map((source) => {
35
+ const ids = /* @__PURE__ */ new Map();
36
+ for (const [id, key] of Object.entries(source.currentNames ?? source.names ?? {})) {
37
+ const current = variablesByKey.get(key);
38
+ if (current !== void 0) ids.set(id, current);
39
+ }
40
+ if (ids.size === 0) return source;
41
+ const collectionOf = (id) => {
42
+ const variable = graph.variables.get(id);
43
+ return variable ? graph.variableCollections.get(variable.collectionId)?.name : void 0;
44
+ };
45
+ const snapshot = {};
46
+ for (const [oldId, values] of Object.entries(source.snapshot)) {
47
+ const id = ids.get(oldId) ?? oldId;
48
+ const collection = collectionOf(id);
49
+ const entry = {};
50
+ for (const [modeId, signature] of Object.entries(values)) entry[collection ? currentModeId(collection, modeId, source.modes) : modeId] = signature;
51
+ snapshot[id] = {
52
+ ...snapshot[id],
53
+ ...entry
54
+ };
55
+ }
56
+ const names = Object.fromEntries(Object.entries(source.names ?? {}).map(([id, key]) => [ids.get(id) ?? id, key]));
57
+ const modes = source.modes ? Object.fromEntries(Object.entries(source.modes).map(([collectionName, byMode]) => [collectionName, Object.fromEntries(Object.entries(byMode).map(([modeId, name]) => [currentModeId(collectionName, modeId, source.modes), name]))])) : void 0;
58
+ return {
59
+ ...source,
60
+ snapshot,
61
+ names,
62
+ ...modes ? { modes } : {}
63
+ };
64
+ });
65
+ }
66
+ /**
67
+ * The document node's plugin data holding `sources` in place of its links, for an edit that
68
+ * writes them, undoably or not, as one change to the node.
69
+ */
70
+ function tokenSourcesPluginData(graph, sources) {
71
+ const stored = sources.map(({ path, ...source }) => path !== void 0 && v.is(relativeTokenPathSchema, path) ? {
72
+ ...source,
73
+ path
74
+ } : source);
75
+ return withPluginData(graph.getNode(graph.rootId)?.pluginData ?? [], tokenSources, stored.length > 0 ? stored : void 0);
76
+ }
77
+ //#endregion
78
+ export { readTokenSources, rekeyTokenSources, tokenSourcesPluginData };
79
+
80
+ //# sourceMappingURL=document.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"document.js","names":[],"sources":["../../src/token-sources/document.ts"],"sourcesContent":["import * as v from 'valibot'\n\nimport type { SceneGraph } from '../graph'\nimport { readPluginData, withPluginData } from '../plugin-data/field'\nimport { PAIRDRAW_PLUGIN_DATA } from '../plugin-data/fields'\nimport type { PluginDataEntry } from '../types'\nimport { relativeTokenPathSchema, type TokenSource } from './schema'\n\nconst { tokenSources } = PAIRDRAW_PLUGIN_DATA\n\n/**\n * The code a document's variables are linked to, with what it held at the last sync. The links\n * live in Pairdraw's plugin data on the document node, so they travel with the `.fig` file and\n * Figma ignores them; where each file is on this computer stays with the app, not the document.\n */\nexport function readTokenSources(graph: SceneGraph): TokenSource[] {\n return readPluginData(graph.getNode(graph.rootId)?.pluginData, tokenSources) ?? []\n}\n\n/**\n * The links with their snapshots keyed by the graph's variable and mode ids. A format that keys\n * variables and modes by name, such as `.pen`, gives them new ids when it reads them back; the\n * names the file stored when it was saved, or the last sync's where the file recorded none, find\n * them again. `names` and the snapshot's token identities are kept as they were. Links whose\n * variables are all gone are left as they are.\n */\nexport function rekeyTokenSources(\n graph: SceneGraph,\n sources: readonly TokenSource[]\n): TokenSource[] {\n const collectionsByName = new Map(\n [...graph.variableCollections.values()].map((collection) => [collection.name, collection])\n )\n const variablesByKey = new Map<string, string>()\n for (const variable of graph.variables.values()) {\n const collection = graph.variableCollections.get(variable.collectionId)\n if (collection) variablesByKey.set(`${collection.name}/${variable.name}`, variable.id)\n }\n const currentModeId = (collectionName: string, modeId: string, modes: TokenSource['modes']) => {\n const name = modes?.[collectionName]?.[modeId]\n if (name === undefined) return modeId\n const mode = collectionsByName.get(collectionName)?.modes.find((entry) => entry.name === name)\n return mode?.modeId ?? modeId\n }\n return sources.map((source) => {\n const ids = new Map<string, string>()\n for (const [id, key] of Object.entries(source.currentNames ?? source.names ?? {})) {\n const current = variablesByKey.get(key)\n if (current !== undefined) ids.set(id, current)\n }\n if (ids.size === 0) return source\n const collectionOf = (id: string) => {\n const variable = graph.variables.get(id)\n return variable ? graph.variableCollections.get(variable.collectionId)?.name : undefined\n }\n const snapshot: TokenSource['snapshot'] = {}\n for (const [oldId, values] of Object.entries(source.snapshot)) {\n const id = ids.get(oldId) ?? oldId\n const collection = collectionOf(id)\n const entry: Record<string, string> = {}\n for (const [modeId, signature] of Object.entries(values)) {\n entry[collection ? currentModeId(collection, modeId, source.modes) : modeId] = signature\n }\n snapshot[id] = { ...snapshot[id], ...entry }\n }\n const names = Object.fromEntries(\n Object.entries(source.names ?? {}).map(([id, key]) => [ids.get(id) ?? id, key])\n )\n const modes = source.modes\n ? Object.fromEntries(\n Object.entries(source.modes).map(([collectionName, byMode]) => [\n collectionName,\n Object.fromEntries(\n Object.entries(byMode).map(([modeId, name]) => [\n currentModeId(collectionName, modeId, source.modes),\n name\n ])\n )\n ])\n )\n : undefined\n return { ...source, snapshot, names, ...(modes ? { modes } : {}) }\n })\n}\n\n/**\n * The document node's plugin data holding `sources` in place of its links, for an edit that\n * writes them, undoably or not, as one change to the node.\n */\nexport function tokenSourcesPluginData(\n graph: SceneGraph,\n sources: readonly TokenSource[]\n): PluginDataEntry[] {\n // A path that is not relative would make the reader drop the whole link; the link keeps going\n // by its name instead.\n const stored = sources.map(({ path, ...source }) =>\n path !== undefined && v.is(relativeTokenPathSchema, path) ? { ...source, path } : source\n )\n return withPluginData(\n graph.getNode(graph.rootId)?.pluginData ?? [],\n tokenSources,\n stored.length > 0 ? stored : undefined\n )\n}\n"],"mappings":";;;;;AAQA,MAAM,EAAE,iBAAiB;;;;;;AAOzB,SAAgB,iBAAiB,OAAkC;CACjE,OAAO,eAAe,MAAM,QAAQ,MAAM,MAAM,CAAC,EAAE,YAAY,YAAY,KAAK,CAAC;AACnF;;;;;;;;AASA,SAAgB,kBACd,OACA,SACe;CACf,MAAM,oBAAoB,IAAI,IAC5B,CAAC,GAAG,MAAM,oBAAoB,OAAO,CAAC,CAAC,CAAC,KAAK,eAAe,CAAC,WAAW,MAAM,UAAU,CAAC,CAC3F;CACA,MAAM,iCAAiB,IAAI,IAAoB;CAC/C,KAAK,MAAM,YAAY,MAAM,UAAU,OAAO,GAAG;EAC/C,MAAM,aAAa,MAAM,oBAAoB,IAAI,SAAS,YAAY;EACtE,IAAI,YAAY,eAAe,IAAI,GAAG,WAAW,KAAK,GAAG,SAAS,QAAQ,SAAS,EAAE;CACvF;CACA,MAAM,iBAAiB,gBAAwB,QAAgB,UAAgC;EAC7F,MAAM,OAAO,QAAQ,eAAe,GAAG;EACvC,IAAI,SAAS,KAAA,GAAW,OAAO;EAE/B,QADa,kBAAkB,IAAI,cAAc,CAAC,EAAE,MAAM,MAAM,UAAU,MAAM,SAAS,IAAI,EAAA,EAChF,UAAU;CACzB;CACA,OAAO,QAAQ,KAAK,WAAW;EAC7B,MAAM,sBAAM,IAAI,IAAoB;EACpC,KAAK,MAAM,CAAC,IAAI,QAAQ,OAAO,QAAQ,OAAO,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;;AAMA,SAAgB,uBACd,OACA,SACmB;CAGnB,MAAM,SAAS,QAAQ,KAAK,EAAE,MAAM,GAAG,aACrC,SAAS,KAAA,KAAa,EAAE,GAAG,yBAAyB,IAAI,IAAI;EAAE,GAAG;EAAQ;CAAK,IAAI,MACpF;CACA,OAAO,eACL,MAAM,QAAQ,MAAM,MAAM,CAAC,EAAE,cAAc,CAAC,GAC5C,cACA,OAAO,SAAS,IAAI,SAAS,KAAA,CAC/B;AACF"}
@@ -0,0 +1,3 @@
1
+ import { TokenSource, relativeTokenPathSchema, tokenSourcesSchema } from "./schema.js";
2
+ import { readTokenSources, rekeyTokenSources, tokenSourcesPluginData } from "./document.js";
3
+ export { TokenSource, readTokenSources, rekeyTokenSources, relativeTokenPathSchema, tokenSourcesPluginData, tokenSourcesSchema };
@@ -0,0 +1,3 @@
1
+ import { relativeTokenPathSchema, tokenSourcesSchema } from "./schema.js";
2
+ import { readTokenSources, rekeyTokenSources, tokenSourcesPluginData } from "./document.js";
3
+ export { readTokenSources, rekeyTokenSources, relativeTokenPathSchema, tokenSourcesPluginData, tokenSourcesSchema };
@@ -0,0 +1,43 @@
1
+ import * as v from "valibot";
2
+ //#region src/token-sources/schema.d.ts
3
+ /**
4
+ * A path from the document's folder, never one that names a place on its own: no leading `/` or
5
+ * `\\` (POSIX roots, UNC shares), no `~` (a home folder), and no drive letter or URL scheme such
6
+ * as `C:` or `file:`.
7
+ */
8
+ declare const relativeTokenPathSchema: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 1024, undefined>, v.CheckAction<string, "A linked path is relative to the document">]>;
9
+ declare const tokenSourceSchema: v.ObjectSchema<{
10
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 64, undefined>]>;
11
+ /** A stylesheet, a project folder, or W3C design token files. */
12
+ readonly kind: v.PicklistSchema<["css", "folder", "dtcg"], undefined>;
13
+ /** The file or folder name, for people. */
14
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, undefined>]>;
15
+ /** Where it is from the document's folder, when the document has one. */
16
+ readonly path: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 1024, undefined>, v.CheckAction<string, "A linked path is relative to the document">]>, undefined>;
17
+ readonly syncedAt: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>;
18
+ /** What the code held at the last sync: a value signature by variable id and mode id. */
19
+ readonly snapshot: v.RecordSchema<v.StringSchema<undefined>, v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;
20
+ /**
21
+ * The token each variable was at the last sync, `Collection/name` by variable id, so a variable
22
+ * deleted on the canvas is known when the code still has it.
23
+ */
24
+ readonly names: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;
25
+ /**
26
+ * The names the document held when it was saved, `Collection/name` by variable id. A format that
27
+ * keys variables by name gives them new ids when it reads them back; this finds a renamed
28
+ * variable's new id while `names` keeps the token it was at the last sync.
29
+ */
30
+ readonly currentNames: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;
31
+ /**
32
+ * The mode names the document holds, by collection name and mode id. A format that keys variables
33
+ * and modes by name gives them new ids when it reads them back, and this maps the snapshot onto
34
+ * those.
35
+ */
36
+ readonly modes: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>, undefined>;
37
+ }, undefined>;
38
+ type TokenSource = v.InferOutput<typeof tokenSourceSchema>;
39
+ /** The code a document's variables are linked to; entries that cannot be read are left out. */
40
+ declare const tokenSourcesSchema: v.GenericSchema<unknown, TokenSource[]>;
41
+ //#endregion
42
+ export { TokenSource, relativeTokenPathSchema, tokenSourcesSchema };
43
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","names":[],"sources":["../../src/token-sources/schema.ts"],"mappings":";;;;;;;cAOa,yBAAuB,EAAA,yBAAA,EAAA,yBAAA,EAAA,mCAAA,EAAA,0CAAA,EAAA;cAU9B,mBAAiB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA8BX,cAAc,EAAE,mBAAmB;;cAGlC,oBAAoB,EAAE,uBAAuB"}
@@ -0,0 +1,50 @@
1
+ import * as v from "valibot";
2
+ //#region src/token-sources/schema.ts
3
+ /**
4
+ * A path from the document's folder, never one that names a place on its own: no leading `/` or
5
+ * `\\` (POSIX roots, UNC shares), no `~` (a home folder), and no drive letter or URL scheme such
6
+ * as `C:` or `file:`.
7
+ */
8
+ const relativeTokenPathSchema = v.pipe(v.string(), v.nonEmpty(), v.maxLength(1024), v.check((path) => !/^(?:[/\\~]|[a-z][\w+.-]*:)/i.test(path), "A linked path is relative to the document"));
9
+ const tokenSourceSchema = v.object({
10
+ id: v.pipe(v.string(), v.nonEmpty(), v.maxLength(64)),
11
+ /** A stylesheet, a project folder, or W3C design token files. */
12
+ kind: v.picklist([
13
+ "css",
14
+ "folder",
15
+ "dtcg"
16
+ ]),
17
+ /** The file or folder name, for people. */
18
+ name: v.pipe(v.string(), v.maxLength(256)),
19
+ /** Where it is from the document's folder, when the document has one. */
20
+ path: v.optional(relativeTokenPathSchema),
21
+ syncedAt: v.optional(v.pipe(v.string(), v.isoTimestamp())),
22
+ /** What the code held at the last sync: a value signature by variable id and mode id. */
23
+ snapshot: v.record(v.string(), v.record(v.string(), v.string())),
24
+ /**
25
+ * The token each variable was at the last sync, `Collection/name` by variable id, so a variable
26
+ * deleted on the canvas is known when the code still has it.
27
+ */
28
+ names: v.optional(v.record(v.string(), v.string())),
29
+ /**
30
+ * The names the document held when it was saved, `Collection/name` by variable id. A format that
31
+ * keys variables by name gives them new ids when it reads them back; this finds a renamed
32
+ * variable's new id while `names` keeps the token it was at the last sync.
33
+ */
34
+ currentNames: v.optional(v.record(v.string(), v.string())),
35
+ /**
36
+ * The mode names the document holds, by collection name and mode id. A format that keys variables
37
+ * and modes by name gives them new ids when it reads them back, and this maps the snapshot onto
38
+ * those.
39
+ */
40
+ modes: v.optional(v.record(v.string(), v.record(v.string(), v.string())))
41
+ });
42
+ /** The code a document's variables are linked to; entries that cannot be read are left out. */
43
+ const tokenSourcesSchema = v.pipe(v.array(v.unknown()), v.transform((items) => items.flatMap((item) => {
44
+ const parsed = v.safeParse(tokenSourceSchema, item);
45
+ return parsed.success ? [parsed.output] : [];
46
+ })));
47
+ //#endregion
48
+ export { relativeTokenPathSchema, tokenSourcesSchema };
49
+
50
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","names":[],"sources":["../../src/token-sources/schema.ts"],"sourcesContent":["import * as v from 'valibot'\n\n/**\n * A path from the document's folder, never one that names a place on its own: no leading `/` or\n * `\\\\` (POSIX roots, UNC shares), no `~` (a home folder), and no drive letter or URL scheme such\n * as `C:` or `file:`.\n */\nexport const relativeTokenPathSchema = v.pipe(\n v.string(),\n v.nonEmpty(),\n v.maxLength(1024),\n v.check(\n (path) => !/^(?:[/\\\\~]|[a-z][\\w+.-]*:)/i.test(path),\n 'A linked path is relative to the document'\n )\n)\n\nconst tokenSourceSchema = v.object({\n id: v.pipe(v.string(), v.nonEmpty(), v.maxLength(64)),\n /** A stylesheet, a project folder, or W3C design token files. */\n kind: v.picklist(['css', 'folder', 'dtcg']),\n /** The file or folder name, for people. */\n name: v.pipe(v.string(), v.maxLength(256)),\n /** Where it is from the document's folder, when the document has one. */\n path: v.optional(relativeTokenPathSchema),\n syncedAt: v.optional(v.pipe(v.string(), v.isoTimestamp())),\n /** What the code held at the last sync: a value signature by variable id and mode id. */\n snapshot: v.record(v.string(), v.record(v.string(), v.string())),\n /**\n * The token each variable was at the last sync, `Collection/name` by variable id, so a variable\n * deleted on the canvas is known when the code still has it.\n */\n names: v.optional(v.record(v.string(), v.string())),\n /**\n * The names the document held when it was saved, `Collection/name` by variable id. A format that\n * keys variables by name gives them new ids when it reads them back; this finds a renamed\n * variable's new id while `names` keeps the token it was at the last sync.\n */\n currentNames: v.optional(v.record(v.string(), v.string())),\n /**\n * The mode names the document holds, by collection name and mode id. A format that keys variables\n * and modes by name gives them new ids when it reads them back, and this maps the snapshot onto\n * those.\n */\n modes: v.optional(v.record(v.string(), v.record(v.string(), v.string())))\n})\n\nexport type TokenSource = v.InferOutput<typeof tokenSourceSchema>\n\n/** The code a document's variables are linked to; entries that cannot be read are left out. */\nexport const tokenSourcesSchema: v.GenericSchema<unknown, TokenSource[]> = v.pipe(\n v.array(v.unknown()),\n v.transform((items) =>\n items.flatMap((item) => {\n const parsed = v.safeParse(tokenSourceSchema, item)\n return parsed.success ? [parsed.output] : []\n })\n )\n)\n"],"mappings":";;;;;;;AAOA,MAAa,0BAA0B,EAAE,KACvC,EAAE,OAAO,GACT,EAAE,SAAS,GACX,EAAE,UAAU,IAAI,GAChB,EAAE,OACC,SAAS,CAAC,8BAA8B,KAAK,IAAI,GAClD,2CACF,CACF;AAEA,MAAM,oBAAoB,EAAE,OAAO;CACjC,IAAI,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,SAAS,GAAG,EAAE,UAAU,EAAE,CAAC;;CAEpD,MAAM,EAAE,SAAS;EAAC;EAAO;EAAU;CAAM,CAAC;;CAE1C,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,UAAU,GAAG,CAAC;;CAEzC,MAAM,EAAE,SAAS,uBAAuB;CACxC,UAAU,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,aAAa,CAAC,CAAC;;CAEzD,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC;;;;;CAK/D,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC;;;;;;CAMlD,cAAc,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC;;;;;;CAMzD,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC;AAC1E,CAAC;;AAKD,MAAa,qBAA8D,EAAE,KAC3E,EAAE,MAAM,EAAE,QAAQ,CAAC,GACnB,EAAE,WAAW,UACX,MAAM,SAAS,SAAS;CACtB,MAAM,SAAS,EAAE,UAAU,mBAAmB,IAAI;CAClD,OAAO,OAAO,UAAU,CAAC,OAAO,MAAM,IAAI,CAAC;AAC7C,CAAC,CACH,CACF"}
package/dist/types.d.ts CHANGED
@@ -46,12 +46,30 @@ interface FigmaSourcePayload {
46
46
  derivedSymbolDataLayoutVersion: number | null;
47
47
  uniformScaleFactor: number | null;
48
48
  }
49
+ /**
50
+ * An edge as its draw.io file wrote it: the style pairs and geometry the author set. A connector
51
+ * read from a file keeps them so saving an unedited edge writes back what draw.io had, instead of
52
+ * re-routing it.
53
+ */
54
+ interface DrawIOEdgeSource {
55
+ /** The style's names and its pairs, in the order the file wrote them. */
56
+ styleNames: string[];
57
+ styleValues: Partial<Record<string, string>>;
58
+ /** The label's place along the edge, as the geometry's `x`. */
59
+ labelX: number;
60
+ /** Bend points and free ends, in the edge's parent's axes. */
61
+ points: Vector[];
62
+ sourcePoint: Vector | null;
63
+ targetPoint: Vector | null;
64
+ }
49
65
  interface SourceMetadata {
50
66
  format: 'fig' | null;
51
67
  id: string | null;
52
68
  orderKey: string | null;
53
69
  editedFields: string[];
54
70
  fig: FigmaSourcePayload;
71
+ /** The edge cell a connector was read from, kept until the connector is edited. */
72
+ drawio?: DrawIOEdgeSource | null;
55
73
  }
56
74
  type HandleMirroring = 'NONE' | 'ANGLE' | 'ANGLE_AND_LENGTH';
57
75
  type WindingRule = 'NONZERO' | 'EVENODD';
@@ -136,7 +154,7 @@ interface Fill {
136
154
  imageTransform?: GradientTransform;
137
155
  /** Clockwise turn of a Fill, Fit or Tile image, in multiples of 90°; a crop holds its own. */
138
156
  imageRotation?: number;
139
- /** An image's adjustments, kept and saved; the canvas does not draw them. */
157
+ /** An image's adjustments, in Figma's plugin API units. */
140
158
  filters?: ImageFilters;
141
159
  sourceNodeId?: string;
142
160
  scale?: number;
@@ -185,7 +203,7 @@ interface Stroke extends Fill {
185
203
  join?: StrokeJoin;
186
204
  dashPattern?: number[];
187
205
  }
188
- type Effect = ShadowEffect | ShaderEffect;
206
+ type Effect = ShadowEffect | ShaderEffect | NoiseEffect | TextureEffect;
189
207
  interface ShadowEffect {
190
208
  type: 'DROP_SHADOW' | 'INNER_SHADOW' | 'LAYER_BLUR' | 'BACKGROUND_BLUR' | 'FOREGROUND_BLUR';
191
209
  color: Color;
@@ -196,6 +214,46 @@ interface ShadowEffect {
196
214
  blendMode?: BlendMode;
197
215
  showShadowBehindNode?: boolean;
198
216
  }
217
+ /**
218
+ * A Noise effect's grain, in Figma's plugin terms: `MONOTONE` grains in the effect's colour,
219
+ * `DUOTONE` in it and `secondaryColor`, `MULTITONE` in many colours at `opacity`. `noiseSize` is a
220
+ * grain's size in px, which Figma keeps within 0 to 100, and `density` how much of the layer the
221
+ * grains cover, 0 to 1. `seed` picks the pattern; Figma's plugin API neither shows nor sets it.
222
+ */
223
+ interface NoiseEffectParams {
224
+ noiseType: NoiseType;
225
+ noiseSize: Vector;
226
+ density: number;
227
+ secondaryColor?: Color;
228
+ opacity?: number;
229
+ seed?: number;
230
+ }
231
+ /**
232
+ * A Texture effect's grain, which roughens the layer's edges: `noiseSize` is the grain's size in
233
+ * px, within 0 to 100 as Figma keeps it, and `clipToShape` keeps the roughened layer inside its
234
+ * own outline. The effect's `radius` is how far the grain moves the edges. `.fig` files name the
235
+ * effect `GRAIN`.
236
+ */
237
+ interface TextureEffectParams {
238
+ noiseSize: Vector;
239
+ clipToShape: boolean;
240
+ seed?: number;
241
+ }
242
+ interface NoiseEffect {
243
+ type: 'NOISE';
244
+ color: Color;
245
+ visible: boolean;
246
+ blendMode?: BlendMode;
247
+ noise: NoiseEffectParams;
248
+ }
249
+ interface TextureEffect {
250
+ type: 'TEXTURE';
251
+ color: Color;
252
+ radius: number;
253
+ visible: boolean;
254
+ blendMode?: BlendMode;
255
+ texture: TextureEffectParams;
256
+ }
199
257
  /** A layer post-processed by shader code the user wrote; the layer is the `pencil:object` sample. */
200
258
  interface ShaderEffect {
201
259
  type: 'SHADER';
@@ -489,25 +547,51 @@ interface CommentThread {
489
547
  deleted?: boolean;
490
548
  replies: CommentReply[];
491
549
  }
492
- /** How a prototype reaction starts, as `.fig` keeps `PrototypeEvent.interactionType`. */
493
- type PrototypeTriggerType = 'ON_CLICK' | 'AFTER_TIMEOUT';
550
+ /**
551
+ * How a prototype reaction starts, as `.fig` keeps `PrototypeEvent.interactionType`: a click, the
552
+ * pointer held over the layer (`ON_HOVER`, While hovering) or pressed on it (`ON_PRESS`, While
553
+ * pressing), which undo themselves when it leaves or lifts, the pointer entering or leaving it,
554
+ * or a delay.
555
+ */
556
+ type PrototypeTriggerType = 'ON_CLICK' | 'ON_HOVER' | 'ON_PRESS' | 'MOUSE_ENTER' | 'MOUSE_LEAVE' | 'AFTER_TIMEOUT';
494
557
  /** What a reaction does, as `.fig` keeps `ConnectionType` on `PrototypeAction`. */
495
558
  type PrototypeActionType = 'NODE' | 'BACK' | 'CLOSE';
496
- /** Whether an action moves to a frame or opens it over the screen, as `NavigationType`. */
497
- type PrototypeNavigationType = 'NAVIGATE' | 'OVERLAY';
498
- /** How a reaction animates between frames, as `TransitionType` keeps them. */
499
- type PrototypeTransitionType = 'INSTANT' | 'DISSOLVE';
559
+ /**
560
+ * What a node action does with its node, as `NavigationType`: move to a frame, open it over the
561
+ * screen, show another variant of the instance's set (Figma's Change to, `SWAP_STATE` in `.fig`),
562
+ * or scroll the layer into view.
563
+ */
564
+ type PrototypeNavigationType = 'NAVIGATE' | 'OVERLAY' | 'CHANGE_TO' | 'SCROLL_TO';
565
+ /** Which way a frame's content scrolls in play, as Figma's `overflowDirection`. */
566
+ type OverflowDirection = 'NONE' | 'HORIZONTAL' | 'VERTICAL' | 'BOTH';
567
+ /**
568
+ * How a layer moves when its parent frame scrolls in play: with the content, fixed in the frame,
569
+ * or scrolled until it reaches the frame's top/left edge and then stuck there.
570
+ */
571
+ type ScrollBehavior = 'SCROLLS' | 'FIXED' | 'STICKY_SCROLLS';
572
+ /**
573
+ * How a reaction animates between frames, as `TransitionType` keeps them: a cut, a crossfade, or
574
+ * Smart animate, which moves the layers two frames share by name and fades the rest.
575
+ */
576
+ type PrototypeTransitionType = 'INSTANT' | 'DISSOLVE' | 'SMART_ANIMATE';
577
+ /** How a transition eases, by the names Figma's plugin API gives its presets. */
578
+ type PrototypeEasingType = 'LINEAR' | 'EASE_IN' | 'EASE_OUT' | 'EASE_IN_AND_OUT';
500
579
  /** Where an overlay sits over the screen, as `OverlayPositionType`. */
501
580
  type PrototypeOverlayPositionType = 'CENTER' | 'TOP_LEFT' | 'TOP_CENTER' | 'TOP_RIGHT' | 'BOTTOM_LEFT' | 'BOTTOM_CENTER' | 'BOTTOM_RIGHT';
502
- /** How a reaction animates, and how long it takes in seconds. */
581
+ /** How a reaction animates, how long it takes in seconds, and how it eases. */
503
582
  interface PrototypeTransition {
504
583
  type: PrototypeTransitionType;
505
584
  duration: number;
585
+ /** Absent eases as Figma's default does, `DEFAULT_PROTOTYPE_EASING`. */
586
+ easing?: PrototypeEasingType;
506
587
  }
507
- /** A reaction's move to another frame, or the overlay it opens. */
588
+ /** A reaction's move to another frame, the overlay it opens, the variant or layer it shows. */
508
589
  interface PrototypeNodeAction {
509
590
  type: 'NODE';
510
- /** The frame the action shows; `null` keeps the connection when its target is gone. */
591
+ /**
592
+ * The frame the action shows, the variant a Change to shows, or the layer a Scroll to brings
593
+ * into view; `null` keeps the connection when its target is gone.
594
+ */
511
595
  nodeId: string | null;
512
596
  navigation: PrototypeNavigationType;
513
597
  transition: PrototypeTransition;
@@ -523,10 +607,10 @@ interface PrototypeCloseAction {
523
607
  type: 'CLOSE';
524
608
  }
525
609
  type PrototypeAction = PrototypeNodeAction | PrototypeBackAction | PrototypeCloseAction;
526
- /** What starts a reaction, and after how long an AFTER_TIMEOUT does. */
610
+ /** What starts a reaction, and after how long an AFTER_TIMEOUT or mouse enter or leave does. */
527
611
  interface PrototypeTrigger {
528
612
  type: PrototypeTriggerType;
529
- /** AFTER_TIMEOUT only: the seconds before the reaction runs. */
613
+ /** AFTER_TIMEOUT, MOUSE_ENTER and MOUSE_LEAVE: the seconds before the reaction runs. */
530
614
  delay: number;
531
615
  }
532
616
  /**
@@ -574,6 +658,10 @@ interface SceneNode {
574
658
  visible: boolean;
575
659
  locked: boolean;
576
660
  clipsContent: boolean;
661
+ /** Which way the frame's content scrolls in play; a nested frame scrolls only while it clips. */
662
+ overflowDirection: OverflowDirection;
663
+ /** How this layer moves while its parent frame scrolls in play. */
664
+ scrollBehavior: ScrollBehavior;
577
665
  blendMode: BlendMode;
578
666
  text: string;
579
667
  fontSize: number;
@@ -928,5 +1016,5 @@ declare function isLibraryCollection(collection: Pick<VariableCollection, 'key'>
928
1016
  declare const MODE_ATTRIBUTE_PATTERN: RegExp;
929
1017
  declare function isModeAttributeName(name: string): boolean;
930
1018
  //#endregion
931
- export { ArcData, AxisSizingMode, BlendMode, BooleanOperation, CODE_SYNTAX_PLATFORMS, CharacterStyleOverride, CodeSyntaxPlatform, CommentReply, CommentThread, ComponentPropertyDefinition, ComponentPropertyReference, ComponentPropertyReferenceField, ComponentPropertyType, ConnectorControlPoint, ConnectorEndpoint, ConnectorLabelPosition, ConnectorLineType, ConnectorMagnet, ConstraintType, DerivedTextGlyph, DocumentColorSpace, DocumentKind, Effect, EnabledLibraryBinding, ExportSetting, FigmaLayoutMetadata, FigmaSourcePayload, Fill, FillType, FontFeature, FontVariation, GeometryPath, GradientStop, GradientTransform, GridPosition, GridTrack, GridTrackSizing, HandleMirroring, HyperlinkTarget, ImageFilters, ImageScaleMode, LayoutAlign, LayoutAlignSelf, LayoutCounterAlign, LayoutDirection, LayoutGrid, LayoutMode, LayoutSizing, LayoutWrap, LeadingTrim, LibraryAssetIdentity, LibraryAssetSource, MODE_ATTRIBUTE_PATTERN, MaskType, MeshGradientPoint, NodeChangeObserver, NodeType, NoiseType, NumericNodeProperty, PatternAlignment, PatternTileType, PluginDataEntry, PluginRelaunchDataEntry, PrototypeAction, PrototypeActionType, PrototypeBackAction, PrototypeCloseAction, PrototypeNavigationType, PrototypeNodeAction, PrototypeOverlayPositionType, PrototypeReaction, PrototypeTransition, PrototypeTransitionType, PrototypeTrigger, PrototypeTriggerType, SceneGraphEventHandlers, SceneGraphEvents, SceneNode, ShaderEffect, ShadowEffect, SharedStyle, SharedStyleKind, SharedStyleType, SlotSettings, SourceLibraryPublication, SourceMetadata, Stroke, StrokeCap, StrokeJoin, StyleRun, SymbolLink, TEXT_BINDABLE_FIELDS, TOKEN_UNITS, TextAlignVertical, TextAutoResize, TextBindableField, TextBoundVariables, TextCase, TextDecoration, TextDecorationStyle, TextDirection, TextLength, TextListType, TextParagraphSpacingField, TextParagraphStyle, TextPathData, TokenExpression, TokenUnit, VARIABLE_FORMULA_OPERATORS, VARIABLE_SCOPES, Variable, VariableAlias, VariableCollection, VariableCollectionMode, VariableColorExpression, VariableFormula, VariableFormulaNode, VariableFormulaOperation, VariableFormulaOperator, VariableLiteral, VariableModeMap, VariableScope, VariableType, VariableUnsupportedExpression, VariableValue, VariantPropSpec, VectorNetwork, VectorRegion, VectorSegment, VectorVertex, WindingRule, isLibraryCollection, isModeAttributeName };
1019
+ export { ArcData, AxisSizingMode, BlendMode, BooleanOperation, CODE_SYNTAX_PLATFORMS, CharacterStyleOverride, CodeSyntaxPlatform, CommentReply, CommentThread, ComponentPropertyDefinition, ComponentPropertyReference, ComponentPropertyReferenceField, ComponentPropertyType, ConnectorControlPoint, ConnectorEndpoint, ConnectorLabelPosition, ConnectorLineType, ConnectorMagnet, ConstraintType, DerivedTextGlyph, DocumentColorSpace, DocumentKind, DrawIOEdgeSource, Effect, EnabledLibraryBinding, ExportSetting, FigmaLayoutMetadata, FigmaSourcePayload, Fill, FillType, FontFeature, FontVariation, GeometryPath, GradientStop, GradientTransform, GridPosition, GridTrack, GridTrackSizing, HandleMirroring, HyperlinkTarget, ImageFilters, ImageScaleMode, LayoutAlign, LayoutAlignSelf, LayoutCounterAlign, LayoutDirection, LayoutGrid, LayoutMode, LayoutSizing, LayoutWrap, LeadingTrim, LibraryAssetIdentity, LibraryAssetSource, MODE_ATTRIBUTE_PATTERN, MaskType, MeshGradientPoint, NodeChangeObserver, NodeType, NoiseEffect, NoiseEffectParams, NoiseType, NumericNodeProperty, OverflowDirection, PatternAlignment, PatternTileType, PluginDataEntry, PluginRelaunchDataEntry, PrototypeAction, PrototypeActionType, PrototypeBackAction, PrototypeCloseAction, PrototypeEasingType, PrototypeNavigationType, PrototypeNodeAction, PrototypeOverlayPositionType, PrototypeReaction, PrototypeTransition, PrototypeTransitionType, PrototypeTrigger, PrototypeTriggerType, SceneGraphEventHandlers, SceneGraphEvents, SceneNode, ScrollBehavior, ShaderEffect, ShadowEffect, SharedStyle, SharedStyleKind, SharedStyleType, SlotSettings, SourceLibraryPublication, SourceMetadata, Stroke, StrokeCap, StrokeJoin, StyleRun, SymbolLink, TEXT_BINDABLE_FIELDS, TOKEN_UNITS, TextAlignVertical, TextAutoResize, TextBindableField, TextBoundVariables, TextCase, TextDecoration, TextDecorationStyle, TextDirection, TextLength, TextListType, TextParagraphSpacingField, TextParagraphStyle, TextPathData, TextureEffect, TextureEffectParams, TokenExpression, TokenUnit, VARIABLE_FORMULA_OPERATORS, VARIABLE_SCOPES, Variable, VariableAlias, VariableCollection, VariableCollectionMode, VariableColorExpression, VariableFormula, VariableFormulaNode, VariableFormulaOperation, VariableFormulaOperator, VariableLiteral, VariableModeMap, VariableScope, VariableType, VariableUnsupportedExpression, VariableValue, VariantPropSpec, VectorNetwork, VectorRegion, VectorSegment, VectorVertex, WindingRule, isLibraryCollection, isModeAttributeName };
932
1020
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","names":[],"sources":["../src/types.ts"],"mappings":";;;;;;;UASiB;EACf,iBAAiB,MAAM;EACvB,iBAAiB,YAAY,SAAS,QAAQ;EAC9C,wBAAwB,YAAY,SAAS,QAAQ;EACrD,iBAAiB,YAAY;EAC7B,oBAAoB,gBAAgB,4BAA4B;EAChE,mBACE,gBACA,kBACA,eACA;;KAIQ,0BAA0B;EACpC,UAAU,MAAM;EAChB,UAAU,YAAY,SAAS,QAAQ;EACvC,iBAAiB,YAAY,SAAS,QAAQ;EAC9C,UAAU,YAAY;EACtB,aAAa,gBAAgB,4BAA4B;EACzD,YACE,gBACA,kBACA,eACA;;;UAKa;;EAEf,SAAS,MAAM;;EAEf,UAAU,MAAM;;EAEhB;;EAEA;;KAGU;;KAGA;UAEK;EACf,SAAS;EACT,cAAc;EACd,eAAe;EACf,QAAQ;EACR;EACA;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA;EACA,KAAK;;KAGK;KACA;UAEK;EACf;EACA;EACA;EACA;EACA;EACA,kBAAkB;;UAGH;EACf;EACA;EACA,cAAc;EACd,YAAY;;UAGG;EACf,aAAa;EACb;;UAGe;EACf,UAAU;EACV,UAAU;EACV,SAAS;;UAGM;EACf,aAAa;EACb,cAAc;;EAEd,QAAQ;;EAER;;KAGU;KAsBA;KAYA;KAoBA;KACA;KACA;KACA;UAEK;EACf,OAAO;EACP;;;;;;;;UASe;EACf,UAAU;EACV,OAAO;;KAGG,oBAAoB;;UAGf;EACf;EACA;EACA;EACA;EACA;EACA;EACA;;UAGe;EACf,MAAM;EACN,OAAO;EACP;EACA;EACA,YAAY;EACZ,gBAAgB;EAChB,oBAA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AGe;EACf;EACA;EACA;EACA;;;;;;KAMU;KACA;KACA;KACA;UAEK;EACf;EACA;EACA;;UAGe;EACf;EACA,QAAQ;;EAER;;UAGe;EACf;EACA;EACA;EACA;;;;;;;UAQe;EACf,SAAS;EACT,gBAAgB;;EAEhB;EACA;;EAEA;;UAGe;;EAEf;EACA,cAAc;EACd;EACA;EACA;;EAEA;;;;;EAKA;;;;;;;EAOA;EACA;;;;;EAKA;;EAEA;;UAGe;EACf;EACA;EACA;;UAGe;EACf;EACA;;KAGU,sBAAsB,QAChC,oOAaE,qMAWA;UAGa;EACf;EACA;EACA;;UAGe;EACf,UAAU;EACV;EACA;;UAGe;EACf;EACA;EACA;;;UAIe;EACf;EACA;EACA;EACA;;;UAIe;EACf;EACA;;EAEA,cAAc;;EAEd;EACA;EACA;;;UAIe;EACf;EACA;;EAEA;;EAEA;EACA;;EAEA;EACA;;EAEA;EACA;EACA;;EAEA,cAAc;;EAEd;EACA;;EAEA;EACA;EACA;;EAEA;EACA,SAAS;;;KAIC;;KAGA;;KAGA;;KAGA;;KAGA;;UAUK;EACf,MAAM;EACN;;;UAIe;EACf;;EAEA;EACA,YAAY;EACZ,YAAY;;EAEZ,iBAAiB;;;UAIF;EACf;;;UAIe;EACf;;KAGU,kBAAkB,sBAAsB,sBAAsB;;UAGzD;EACf,MAAM;;EAEN;;;;;;UAOe;EACf;EACA,SAAS;EACT,SAAS;;UAGM;EACf;EACA,MAAM;EACN;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA,QAAQ;;EAER,eAAe,QAAQ;EAEvB,OAAO;EACP,SAAS;EACT,SAAS;EACT,aAAa;EACb,QAAQ;EACR;EACA;EACA;EACA;EACA;EACA,iBAAiB;EACjB;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EAEA,WAAW;EAEX;EACA;EACA;EACA;EACA;;;;;EAKA;EACA;EACA,eAAe;EACf;EACA,mBAAmB;EACnB,gBAAgB;EAChB,UAAU;EACV,gBA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;EAEA,cAAc;;EAEd,aAAa;;KAGH;;KAGA;UAEK;EACf;EACA,OAAO;;;UAIQ;EACf;EACA;EACA;EACA;;EAEA;;;;;;UAOe;EACf;EACA;EACA,MAAM;EACN;EACA;EACA;EACA;EACA,eAAe;;KAGL;UACK;EACf;;;UAIe;EACf;EACA,OAAO,QAAQ;EACf,kBAAkB;;KAGR,kBAAkB;;cAEjB;KAmBD,kCAAkC;UAC7B;EACf,UAAU;EACV,UAAU;;KAEA,sBAAsB,kBAAkB,gBAAgB;UACnD;EACf;EACA,MAAM;EACN,OAAO;;;;;;;;UAQQ;EACf;;EAEA;EACA,OAAO;EACP;EACA;;KAEU,gBACR,kBACA,gBACA,0BACA,kBACA;KACQ,kBAAkB;;cAGjB;KAyBD,wBAAwB;cAEvB;KACD,6BAA6B;;;;;cAM5B;KACD,oBAAoB;;;;;;UAOf;EACf;EACA;;UAGe;EACf;EACA;EACA,MAAM;EACN;EACA,cAAc,eAAe;EAC7B;EACA;;EAEA,SAAS;;;;;EAKT,aAAa,QAAQ,OAAO;;EAE5B,OAAO;;EAEP,cAAc,eAAe;EAC7B,aAAa;;EAEb;;EAEA;;;KAIU,yBACT,WAAW,cAAc,UAAU,oBAAoB,mBAClD;UAES;EACf;EACA;;;;;EAKA;;EAEA;;UAGe;EACf;EACA;;EAEA,OAAO;EACP;EACA;;;;;EAKA;EACA,aAAa;;;;;EAKb;;EAEA;;;iBAIc,oBAAoB,YAAY,KAAK;;cAKxC,wBAAsB;iBAEnB,oBAAoB"}
1
+ {"version":3,"file":"types.d.ts","names":[],"sources":["../src/types.ts"],"mappings":";;;;;;;UASiB;EACf,iBAAiB,MAAM;EACvB,iBAAiB,YAAY,SAAS,QAAQ;EAC9C,wBAAwB,YAAY,SAAS,QAAQ;EACrD,iBAAiB,YAAY;EAC7B,oBAAoB,gBAAgB,4BAA4B;EAChE,mBACE,gBACA,kBACA,eACA;;KAIQ,0BAA0B;EACpC,UAAU,MAAM;EAChB,UAAU,YAAY,SA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