@dxos/plugin-illustrator 0.10.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 (172) hide show
  1. package/LICENSE +105 -0
  2. package/PLUGIN.mdl +55 -0
  3. package/dist/lib/IllustratorPlugin.mjs +18 -0
  4. package/dist/lib/IllustratorPlugin.mjs.map +1 -0
  5. package/dist/lib/IllustratorPlugin.node.mjs +18 -0
  6. package/dist/lib/IllustratorPlugin.node.mjs.map +1 -0
  7. package/dist/lib/IllustratorPlugin.workerd.mjs +10 -0
  8. package/dist/lib/IllustratorPlugin.workerd.mjs.map +1 -0
  9. package/dist/lib/capabilities.mjs +11 -0
  10. package/dist/lib/capabilities.mjs.map +1 -0
  11. package/dist/lib/chunk-IllustratorCapabilities.mjs +16 -0
  12. package/dist/lib/chunk-IllustratorCapabilities.mjs.map +1 -0
  13. package/dist/lib/chunk-comment-config.mjs +16 -0
  14. package/dist/lib/chunk-comment-config.mjs.map +1 -0
  15. package/dist/lib/chunk-create-object.mjs +46 -0
  16. package/dist/lib/chunk-create-object.mjs.map +1 -0
  17. package/dist/lib/chunk-create.mjs +20 -0
  18. package/dist/lib/chunk-create.mjs.map +1 -0
  19. package/dist/lib/chunk-edit.mjs +20 -0
  20. package/dist/lib/chunk-edit.mjs.map +1 -0
  21. package/dist/lib/chunk-load-sketch.mjs +64 -0
  22. package/dist/lib/chunk-load-sketch.mjs.map +1 -0
  23. package/dist/lib/chunk-meta.mjs +40 -0
  24. package/dist/lib/chunk-meta.mjs.map +1 -0
  25. package/dist/lib/chunk-model.mjs +202 -0
  26. package/dist/lib/chunk-model.mjs.map +1 -0
  27. package/dist/lib/chunk-operation-handler.mjs +11 -0
  28. package/dist/lib/chunk-operation-handler.mjs.map +1 -0
  29. package/dist/lib/chunk-react-surface.mjs +31 -0
  30. package/dist/lib/chunk-react-surface.mjs.map +1 -0
  31. package/dist/lib/chunk-read.mjs +13 -0
  32. package/dist/lib/chunk-read.mjs.map +1 -0
  33. package/dist/lib/chunk-rolldown-runtime.mjs +13 -0
  34. package/dist/lib/chunk-skill-definition.mjs +10 -0
  35. package/dist/lib/chunk-skill-definition.mjs.map +1 -0
  36. package/dist/lib/chunk-skills.mjs +65 -0
  37. package/dist/lib/chunk-skills.mjs.map +1 -0
  38. package/dist/lib/chunk-types.mjs +108 -0
  39. package/dist/lib/chunk-types.mjs.map +1 -0
  40. package/dist/lib/components.mjs +45 -0
  41. package/dist/lib/components.mjs.map +1 -0
  42. package/dist/lib/containers.mjs +58 -0
  43. package/dist/lib/containers.mjs.map +1 -0
  44. package/dist/lib/index.mjs +9 -0
  45. package/dist/lib/meta.mjs +2 -0
  46. package/dist/lib/model.mjs +2 -0
  47. package/dist/lib/operations.mjs +7 -0
  48. package/dist/lib/operations.mjs.map +1 -0
  49. package/dist/lib/plugin.mjs +9 -0
  50. package/dist/lib/plugin.mjs.map +1 -0
  51. package/dist/lib/skills.mjs +2 -0
  52. package/dist/lib/translations.mjs +27 -0
  53. package/dist/lib/translations.mjs.map +1 -0
  54. package/dist/lib/types.mjs +3 -0
  55. package/dist/lib/util.mjs +2 -0
  56. package/dist/types/dx.config.d.ts +28 -0
  57. package/dist/types/dx.config.d.ts.map +1 -0
  58. package/dist/types/src/IllustratorPlugin.d.ts +4 -0
  59. package/dist/types/src/IllustratorPlugin.d.ts.map +1 -0
  60. package/dist/types/src/IllustratorPlugin.node.d.ts +10 -0
  61. package/dist/types/src/IllustratorPlugin.node.d.ts.map +1 -0
  62. package/dist/types/src/IllustratorPlugin.workerd.d.ts +4 -0
  63. package/dist/types/src/IllustratorPlugin.workerd.d.ts.map +1 -0
  64. package/dist/types/src/capabilities/comment-config.d.ts +5 -0
  65. package/dist/types/src/capabilities/comment-config.d.ts.map +1 -0
  66. package/dist/types/src/capabilities/create-object.d.ts +5 -0
  67. package/dist/types/src/capabilities/create-object.d.ts.map +1 -0
  68. package/dist/types/src/capabilities/index.d.ts +8 -0
  69. package/dist/types/src/capabilities/index.d.ts.map +1 -0
  70. package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
  71. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
  72. package/dist/types/src/capabilities/react-surface.d.ts +5 -0
  73. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
  74. package/dist/types/src/capabilities/skill-definition.d.ts +5 -0
  75. package/dist/types/src/capabilities/skill-definition.d.ts.map +1 -0
  76. package/dist/types/src/components/CreateSketchPanel.d.ts +15 -0
  77. package/dist/types/src/components/CreateSketchPanel.d.ts.map +1 -0
  78. package/dist/types/src/components/index.d.ts +2 -0
  79. package/dist/types/src/components/index.d.ts.map +1 -0
  80. package/dist/types/src/containers/SketchArticle/SketchArticle.d.ts +11 -0
  81. package/dist/types/src/containers/SketchArticle/SketchArticle.d.ts.map +1 -0
  82. package/dist/types/src/containers/SketchArticle/index.d.ts +2 -0
  83. package/dist/types/src/containers/SketchArticle/index.d.ts.map +1 -0
  84. package/dist/types/src/containers/SketchCard/SketchCard.d.ts +10 -0
  85. package/dist/types/src/containers/SketchCard/SketchCard.d.ts.map +1 -0
  86. package/dist/types/src/containers/SketchCard/index.d.ts +2 -0
  87. package/dist/types/src/containers/SketchCard/index.d.ts.map +1 -0
  88. package/dist/types/src/containers/index.d.ts +3 -0
  89. package/dist/types/src/containers/index.d.ts.map +1 -0
  90. package/dist/types/src/index.d.ts +7 -0
  91. package/dist/types/src/index.d.ts.map +1 -0
  92. package/dist/types/src/meta.d.ts +33 -0
  93. package/dist/types/src/meta.d.ts.map +1 -0
  94. package/dist/types/src/model/builder.d.ts +32 -0
  95. package/dist/types/src/model/builder.d.ts.map +1 -0
  96. package/dist/types/src/model/dialect.d.ts +19 -0
  97. package/dist/types/src/model/dialect.d.ts.map +1 -0
  98. package/dist/types/src/model/index.d.ts +4 -0
  99. package/dist/types/src/model/index.d.ts.map +1 -0
  100. package/dist/types/src/model/scene.d.ts +843 -0
  101. package/dist/types/src/model/scene.d.ts.map +1 -0
  102. package/dist/types/src/operations/create.d.ts +5 -0
  103. package/dist/types/src/operations/create.d.ts.map +1 -0
  104. package/dist/types/src/operations/edit.d.ts +5 -0
  105. package/dist/types/src/operations/edit.d.ts.map +1 -0
  106. package/dist/types/src/operations/index.d.ts +3 -0
  107. package/dist/types/src/operations/index.d.ts.map +1 -0
  108. package/dist/types/src/operations/read.d.ts +5 -0
  109. package/dist/types/src/operations/read.d.ts.map +1 -0
  110. package/dist/types/src/plugin.d.ts +4 -0
  111. package/dist/types/src/plugin.d.ts.map +1 -0
  112. package/dist/types/src/skills/index.d.ts +2 -0
  113. package/dist/types/src/skills/index.d.ts.map +1 -0
  114. package/dist/types/src/skills/sketch-skill.d.ts +4 -0
  115. package/dist/types/src/skills/sketch-skill.d.ts.map +1 -0
  116. package/dist/types/src/translations.d.ts +34 -0
  117. package/dist/types/src/translations.d.ts.map +1 -0
  118. package/dist/types/src/types/IllustratorCapabilities.d.ts +10 -0
  119. package/dist/types/src/types/IllustratorCapabilities.d.ts.map +1 -0
  120. package/dist/types/src/types/Sketch.d.ts +50 -0
  121. package/dist/types/src/types/Sketch.d.ts.map +1 -0
  122. package/dist/types/src/types/SketchOperation.d.ts +427 -0
  123. package/dist/types/src/types/SketchOperation.d.ts.map +1 -0
  124. package/dist/types/src/types/index.d.ts +5 -0
  125. package/dist/types/src/types/index.d.ts.map +1 -0
  126. package/dist/types/src/types/types.d.ts +45 -0
  127. package/dist/types/src/types/types.d.ts.map +1 -0
  128. package/dist/types/src/util/index.d.ts +2 -0
  129. package/dist/types/src/util/index.d.ts.map +1 -0
  130. package/dist/types/src/util/load-sketch.d.ts +37 -0
  131. package/dist/types/src/util/load-sketch.d.ts.map +1 -0
  132. package/dist/types/tsconfig.tsbuildinfo +1 -0
  133. package/dx.config.ts +35 -0
  134. package/package.json +144 -0
  135. package/src/IllustratorPlugin.node.tsx +27 -0
  136. package/src/IllustratorPlugin.tsx +30 -0
  137. package/src/IllustratorPlugin.workerd.tsx +16 -0
  138. package/src/capabilities/comment-config.ts +20 -0
  139. package/src/capabilities/create-object.ts +66 -0
  140. package/src/capabilities/index.ts +15 -0
  141. package/src/capabilities/operation-handler.ts +16 -0
  142. package/src/capabilities/react-surface.tsx +37 -0
  143. package/src/capabilities/skill-definition.ts +14 -0
  144. package/src/components/CreateSketchPanel.tsx +68 -0
  145. package/src/components/index.ts +5 -0
  146. package/src/containers/SketchArticle/SketchArticle.tsx +48 -0
  147. package/src/containers/SketchArticle/index.ts +5 -0
  148. package/src/containers/SketchCard/SketchCard.tsx +41 -0
  149. package/src/containers/SketchCard/index.ts +5 -0
  150. package/src/containers/index.ts +6 -0
  151. package/src/index.ts +10 -0
  152. package/src/meta.ts +9 -0
  153. package/src/model/builder.ts +41 -0
  154. package/src/model/dialect.ts +53 -0
  155. package/src/model/index.ts +7 -0
  156. package/src/model/scene.ts +208 -0
  157. package/src/operations/create.ts +27 -0
  158. package/src/operations/edit.ts +23 -0
  159. package/src/operations/index.ts +11 -0
  160. package/src/operations/read.ts +21 -0
  161. package/src/plugin.ts +11 -0
  162. package/src/skills/index.ts +5 -0
  163. package/src/skills/sketch-skill.ts +70 -0
  164. package/src/translations.ts +33 -0
  165. package/src/types/IllustratorCapabilities.ts +19 -0
  166. package/src/types/Sketch.ts +69 -0
  167. package/src/types/SketchOperation.ts +76 -0
  168. package/src/types/index.ts +9 -0
  169. package/src/types/types.ts +53 -0
  170. package/src/util/index.ts +5 -0
  171. package/src/util/load-sketch.ts +74 -0
  172. package/src/vite-env.d.ts +10 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scene.d.ts","sourceRoot":"","sources":["../../../../src/model/scene.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,eAAO,MAAM,KAAK,4JAcjB,CAAC;AACF,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC,CAAC;AAErD,eAAO,MAAM,IAAI,8CAA6C,CAAC;AAC/D,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnD,eAAO,MAAM,MAAM,0DAAyD,CAAC;AAC7E,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,MAAM,CAAC,CAAC;AAEvD,eAAO,MAAM,MAAM,uCAAsC,CAAC;AAC1D,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,MAAM,CAAC,CAAC;AAEvD,eAAO,MAAM,KAAK;;;EAGhB,CAAC;AACH,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC,CAAC;AAcrD,sDAAsD;AACtD,eAAO,MAAM,GAAG;;;;;;;;;;;;;EAUd,CAAC;AACH,MAAM,MAAM,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;AAEjD,8CAA8C;AAC9C,eAAO,MAAM,MAAM;;;;;;;;;;;EAQjB,CAAC;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,MAAM,CAAC,CAAC;AAEvD,kEAAkE;AAClE,eAAO,MAAM,QAAQ;;;;;;;;;;;;EAMnB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,QAAQ,CAAC,CAAC;AAE3D,sDAAsD;AACtD,eAAO,MAAM,KAAK;;;;;;;;;;;EAKhB,CAAC;AACH,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC,CAAC;AAErD;;;;GAIG;AACH,eAAO,MAAM,GAAG;;;;;;;;;;;;EASd,CAAC;AACH,MAAM,MAAM,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;AAEjD,0BAA0B;AAC1B,eAAO,MAAM,IAAI;;;;;;;;;;;EAQf,CAAC;AACH,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnD;;;;GAIG;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;EAShB,CAAC;AACH,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC,CAAC;AAErD,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAA+D,CAAC;AACpF,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,OAAO,CAAC,CAAC;AAEzD;;;;;GAKG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAStB,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,WAAW,CAAC,CAAC;AAEjE,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEhB,CAAC;AACH,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC,CAAC;AAMrD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG2E,CAAC;AAErG,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI4E,CAAC;AAExG,eAAO,MAAM,cAAc;;;;EAIzB,CAAC;AAEH,eAAO,MAAM,YAAY;;;EAGvB,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;EAIrB,CAAC;AAEH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAuF,CAAC;AAC5G,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,OAAO,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { Operation } from '@dxos/compute';
2
+ import { SketchOperation } from '../types';
3
+ declare const handler: Operation.WithHandler<typeof SketchOperation.Create>;
4
+ export default handler;
5
+ //# sourceMappingURL=create.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../src/operations/create.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,OAAO,EAAmC,eAAe,EAAE,MAAM,UAAU,CAAC;AAG5E,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,MAAM,CAYjE,CAAC;eAEa,OAAO"}
@@ -0,0 +1,5 @@
1
+ import { Operation } from '@dxos/compute';
2
+ import { SketchOperation } from '../types';
3
+ declare const handler: Operation.WithHandler<typeof SketchOperation.Edit>;
4
+ export default handler;
5
+ //# sourceMappingURL=edit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"edit.d.ts","sourceRoot":"","sources":["../../../../src/operations/edit.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAG3C,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,IAAI,CAS/D,CAAC;eAEa,OAAO"}
@@ -0,0 +1,3 @@
1
+ import { OperationHandlerSet } from '@dxos/compute';
2
+ export declare const IllustratorOperationHandlerSet: OperationHandlerSet.OperationHandlerSet;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/operations/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,eAAO,MAAM,8BAA8B,yCAI1C,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { Operation } from '@dxos/compute';
2
+ import { SketchOperation } from '../types';
3
+ declare const handler: Operation.WithHandler<typeof SketchOperation.Read>;
4
+ export default handler;
5
+ //# sourceMappingURL=read.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../../../src/operations/read.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAG3C,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,IAAI,CAO/D,CAAC;eAEa,OAAO"}
@@ -0,0 +1,4 @@
1
+ import { Plugin } from '@dxos/app-framework';
2
+ export declare const IllustratorPlugin: Plugin.PluginFactory<void>;
3
+ export { IllustratorOperationHandlerSet } from './operations';
4
+ //# sourceMappingURL=plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../src/plugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAI7C,eAAO,MAAM,iBAAiB,4BAA6C,CAAC;AAE5E,OAAO,EAAE,8BAA8B,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default as SketchSkill } from './sketch-skill';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/skills/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { Skill } from '@dxos/compute';
2
+ declare const skill: Skill.Definition;
3
+ export default skill;
4
+ //# sourceMappingURL=sketch-skill.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sketch-skill.d.ts","sourceRoot":"","sources":["../../../../src/skills/sketch-skill.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAY,MAAM,eAAe,CAAC;AA4DhD,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,UAGlB,CAAC;eAEa,KAAK"}
@@ -0,0 +1,34 @@
1
+ export declare const translations: [{
2
+ readonly 'en-US': {
3
+ readonly [x: string]: {
4
+ readonly 'typename.label': 'Sketch';
5
+ readonly 'typename.label_zero': 'Sketches';
6
+ readonly 'typename.label_one': 'Sketch';
7
+ readonly 'typename.label_other': 'Sketches';
8
+ readonly 'object-name.placeholder': 'New sketch';
9
+ readonly 'add-object.label': 'Add sketch';
10
+ readonly 'rename-object.label': 'Rename sketch';
11
+ readonly 'delete-object.label': 'Delete sketch';
12
+ readonly 'object-deleted.label': 'Sketch deleted';
13
+ readonly 'plugin.name'?: undefined;
14
+ readonly 'create-panel.variant.label'?: undefined;
15
+ readonly 'create-panel.variant.placeholder'?: undefined;
16
+ readonly 'unsupported-variant.label'?: undefined;
17
+ } | {
18
+ readonly 'typename.label'?: undefined;
19
+ readonly 'typename.label_zero'?: undefined;
20
+ readonly 'typename.label_one'?: undefined;
21
+ readonly 'typename.label_other'?: undefined;
22
+ readonly 'object-name.placeholder'?: undefined;
23
+ readonly 'add-object.label'?: undefined;
24
+ readonly 'rename-object.label'?: undefined;
25
+ readonly 'delete-object.label'?: undefined;
26
+ readonly 'object-deleted.label'?: undefined;
27
+ readonly 'plugin.name': 'Illustrator';
28
+ readonly 'create-panel.variant.label': 'Select renderer';
29
+ readonly 'create-panel.variant.placeholder': 'Search renderers...';
30
+ readonly 'unsupported-variant.label': 'Unsupported sketch variant';
31
+ };
32
+ };
33
+ }];
34
+ //# sourceMappingURL=translations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,YAAY;;;uCAIC,QAAQ;4CACH,UAAU;2CACX,QAAQ;6CACN,UAAU;gDACP,YAAY;yCACnB,YAAY;4CACT,eAAe;4CACf,eAAe;6CACd,gBAAgB;;;;;;;;;;;;;;;oCAGzB,aAAa;mDACE,iBAAiB;yDACX,qBAAqB;kDAC5B,4BAA4B;;;EAIlC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { Capability } from '@dxos/app-framework';
2
+ import type { SketchVariant } from './types';
3
+ /**
4
+ * A sketch variant contribution. Each renderer plugin (tldraw, excalidraw, ...)
5
+ * contributes one of these via `Capability.contributes(IllustratorCapabilities.VariantProvider, variant)`.
6
+ * Consumers iterate via `Capability.getAll(IllustratorCapabilities.VariantProvider)` (Effect) or
7
+ * `useCapabilities(IllustratorCapabilities.VariantProvider)` (React).
8
+ */
9
+ export declare const VariantProvider: Capability.InterfaceDef<SketchVariant>;
10
+ //# sourceMappingURL=IllustratorCapabilities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IllustratorCapabilities.d.ts","sourceRoot":"","sources":["../../../../src/types/IllustratorCapabilities.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAIjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C;;;;;GAKG;AACH,eAAO,MAAM,eAAe,wCAA2E,CAAC"}
@@ -0,0 +1,50 @@
1
+ import * as Schema from 'effect/Schema';
2
+ import { Obj, Ref, Type } from '@dxos/echo';
3
+ declare const Sketch_base: Type.ObjClass<Sketch, {
4
+ readonly name?: string | undefined;
5
+ readonly canvas: import("@dxos/echo/internal").Ref<Obj.Unknown>;
6
+ }, {}>;
7
+ /**
8
+ * Base Sketch object. Renderer-specific canvas data lives in a separate referenced object.
9
+ * Unifies all canvas renderers (tldraw, excalidraw, ...) under one typename so they share
10
+ * graph node, create flow, and shared surface scaffolding.
11
+ */
12
+ export declare class Sketch extends Sketch_base {
13
+ }
14
+ /**
15
+ * Variant-narrowed reference to a Sketch.
16
+ *
17
+ * Encodes — at the type level — that the canvas ref points to a specific canvas type.
18
+ * Runtime narrowing is performed by `loadSketch(ref, canvasType)` which validates and
19
+ * returns the resolved Sketch together with its typed canvas.
20
+ *
21
+ * @example
22
+ * ```ts
23
+ * input: Schema.Struct({
24
+ * sketch: SketchRef(Tldraw.Canvas),
25
+ * }),
26
+ * // handler:
27
+ * const { sketch, canvas } = yield* loadSketch(input.sketch, Tldraw.Canvas);
28
+ * // `canvas` is typed as Tldraw.Canvas.
29
+ * ```
30
+ */
31
+ export type SketchRef<_V> = Ref.Ref<Sketch>;
32
+ export declare const SketchRef: <S extends Type.AnyObj>(_canvasType: S) => Schema.Schema<SketchRef<Type.InstanceType<S>>, any, never>;
33
+ /**
34
+ * Build a base `Sketch` object referencing the given canvas ECHO object.
35
+ *
36
+ * The canvas is stored as a `Ref` so the renderer-specific data (e.g. `Tldraw.Canvas`,
37
+ * `Excalidraw.Canvas`) lives as its own ECHO object alongside the Sketch.
38
+ *
39
+ * @param name Optional display name shown in the graph node and Properties form.
40
+ * @param canvas Renderer-specific canvas object.
41
+ * @returns A new `Sketch` object with `canvas` stored as a Ref.
42
+ */
43
+ export declare const make: ({ name, canvas }: {
44
+ name?: string;
45
+ canvas: Obj.Unknown;
46
+ }) => Sketch;
47
+ /** Type guard for {@link Sketch} objects. */
48
+ export declare const isSketch: (object: unknown) => object is Sketch;
49
+ export {};
50
+ //# sourceMappingURL=Sketch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Sketch.d.ts","sourceRoot":"","sources":["../../../../src/types/Sketch.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAmB,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;;;;;AAI7D;;;;GAIG;AACH,qBAAa,MAAO,SAAQ,WAY3B;CAAG;AAEJ;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,SAAS,CAAC,EAAE,IAAI,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAE5C,eAAO,MAAM,SAAS,GAAI,CAAC,SAAS,IAAI,CAAC,MAAM,eAAe,CAAC,KAC1C,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;AAEhF;;;;;;;;;GASG;AACH,eAAO,MAAM,IAAI,qBAAsB;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,GAAG,CAAC,OAAO,CAAA;CAAE,KAAG,MAE/E,CAAC;AAEF,6CAA6C;AAC7C,eAAO,MAAM,QAAQ,WAAY,OAAO,KAAG,MAAM,IAAI,MAAwC,CAAC"}
@@ -0,0 +1,427 @@
1
+ import { Capability } from '@dxos/app-framework';
2
+ import { Operation } from '@dxos/compute';
3
+ import { Database } from '@dxos/echo';
4
+ import * as Sketch from './Sketch';
5
+ export declare const Create: Operation.Definition<{
6
+ readonly name?: string | undefined;
7
+ readonly variant?: string | undefined;
8
+ }, {
9
+ readonly object: Sketch.Sketch & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object>;
10
+ }, Database.Service | Capability.Service>;
11
+ export declare const Read: Operation.Definition<{
12
+ readonly sketch: import("@dxos/echo/internal").Ref<Sketch.Sketch & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown>;
13
+ }, {
14
+ readonly scene: {
15
+ readonly objects: readonly {
16
+ readonly id: string;
17
+ readonly origin?: {
18
+ readonly x: number;
19
+ readonly y: number;
20
+ } | undefined;
21
+ readonly scale?: number | undefined;
22
+ readonly elements: readonly ({
23
+ readonly color?: "black" | "blue" | "green" | "grey" | "light-blue" | "light-green" | "light-red" | "light-violet" | "orange" | "red" | "violet" | "white" | "yellow" | undefined;
24
+ readonly fill?: "none" | "pattern" | "solid" | undefined;
25
+ readonly stroke?: "dashed" | "dotted" | "sketchy" | "solid" | undefined;
26
+ readonly weight?: "l" | "m" | "s" | "xl" | undefined;
27
+ readonly kind: "diamond" | "ellipse" | "rect" | "triangle";
28
+ readonly id: string;
29
+ readonly x: number;
30
+ readonly y: number;
31
+ readonly w: number;
32
+ readonly h: number;
33
+ readonly rotation?: number | undefined;
34
+ readonly text?: string | undefined;
35
+ } | {
36
+ readonly color?: "black" | "blue" | "green" | "grey" | "light-blue" | "light-green" | "light-red" | "light-violet" | "orange" | "red" | "violet" | "white" | "yellow" | undefined;
37
+ readonly fill?: "none" | "pattern" | "solid" | undefined;
38
+ readonly stroke?: "dashed" | "dotted" | "sketchy" | "solid" | undefined;
39
+ readonly weight?: "l" | "m" | "s" | "xl" | undefined;
40
+ readonly kind: "circle";
41
+ readonly id: string;
42
+ readonly cx: number;
43
+ readonly cy: number;
44
+ readonly r: number;
45
+ readonly text?: string | undefined;
46
+ } | {
47
+ readonly color?: "black" | "blue" | "green" | "grey" | "light-blue" | "light-green" | "light-red" | "light-violet" | "orange" | "red" | "violet" | "white" | "yellow" | undefined;
48
+ readonly fill?: "none" | "pattern" | "solid" | undefined;
49
+ readonly stroke?: "dashed" | "dotted" | "sketchy" | "solid" | undefined;
50
+ readonly weight?: "l" | "m" | "s" | "xl" | undefined;
51
+ readonly kind: "line";
52
+ readonly id: string;
53
+ readonly points: readonly {
54
+ readonly x: number;
55
+ readonly y: number;
56
+ }[];
57
+ readonly closed?: boolean | undefined;
58
+ } | {
59
+ readonly color?: "black" | "blue" | "green" | "grey" | "light-blue" | "light-green" | "light-red" | "light-violet" | "orange" | "red" | "violet" | "white" | "yellow" | undefined;
60
+ readonly fill?: "none" | "pattern" | "solid" | undefined;
61
+ readonly stroke?: "dashed" | "dotted" | "sketchy" | "solid" | undefined;
62
+ readonly weight?: "l" | "m" | "s" | "xl" | undefined;
63
+ readonly kind: "curve";
64
+ readonly id: string;
65
+ readonly points: readonly {
66
+ readonly x: number;
67
+ readonly y: number;
68
+ }[];
69
+ } | {
70
+ readonly color?: "black" | "blue" | "green" | "grey" | "light-blue" | "light-green" | "light-red" | "light-violet" | "orange" | "red" | "violet" | "white" | "yellow" | undefined;
71
+ readonly fill?: "none" | "pattern" | "solid" | undefined;
72
+ readonly stroke?: "dashed" | "dotted" | "sketchy" | "solid" | undefined;
73
+ readonly weight?: "l" | "m" | "s" | "xl" | undefined;
74
+ readonly kind: "arc";
75
+ readonly id: string;
76
+ readonly cx: number;
77
+ readonly cy: number;
78
+ readonly r: number;
79
+ readonly startAngle: number;
80
+ readonly endAngle: number;
81
+ } | {
82
+ readonly color?: "black" | "blue" | "green" | "grey" | "light-blue" | "light-green" | "light-red" | "light-violet" | "orange" | "red" | "violet" | "white" | "yellow" | undefined;
83
+ readonly fill?: "none" | "pattern" | "solid" | undefined;
84
+ readonly stroke?: "dashed" | "dotted" | "sketchy" | "solid" | undefined;
85
+ readonly weight?: "l" | "m" | "s" | "xl" | undefined;
86
+ readonly kind: "text";
87
+ readonly id: string;
88
+ readonly x: number;
89
+ readonly y: number;
90
+ readonly w?: number | undefined;
91
+ readonly text: string;
92
+ } | {
93
+ readonly color?: "black" | "blue" | "green" | "grey" | "light-blue" | "light-green" | "light-red" | "light-violet" | "orange" | "red" | "violet" | "white" | "yellow" | undefined;
94
+ readonly fill?: "none" | "pattern" | "solid" | undefined;
95
+ readonly stroke?: "dashed" | "dotted" | "sketchy" | "solid" | undefined;
96
+ readonly weight?: "l" | "m" | "s" | "xl" | undefined;
97
+ readonly kind: "arrow";
98
+ readonly id: string;
99
+ readonly from?: string | undefined;
100
+ readonly to?: string | undefined;
101
+ readonly start?: {
102
+ readonly x: number;
103
+ readonly y: number;
104
+ } | undefined;
105
+ readonly end?: {
106
+ readonly x: number;
107
+ readonly y: number;
108
+ } | undefined;
109
+ readonly text?: string | undefined;
110
+ })[];
111
+ }[];
112
+ };
113
+ readonly unmanaged: number;
114
+ }, Database.Service | Capability.Service>;
115
+ export declare const Edit: Operation.Definition<{
116
+ readonly sketch: import("@dxos/echo/internal").Ref<Sketch.Sketch & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown>;
117
+ readonly commands: readonly ({
118
+ readonly op: "upsert-object";
119
+ readonly object: {
120
+ readonly id: string;
121
+ readonly origin?: {
122
+ readonly x: number;
123
+ readonly y: number;
124
+ } | undefined;
125
+ readonly scale?: number | undefined;
126
+ readonly elements: readonly ({
127
+ readonly color?: "black" | "blue" | "green" | "grey" | "light-blue" | "light-green" | "light-red" | "light-violet" | "orange" | "red" | "violet" | "white" | "yellow" | undefined;
128
+ readonly fill?: "none" | "pattern" | "solid" | undefined;
129
+ readonly stroke?: "dashed" | "dotted" | "sketchy" | "solid" | undefined;
130
+ readonly weight?: "l" | "m" | "s" | "xl" | undefined;
131
+ readonly kind: "diamond" | "ellipse" | "rect" | "triangle";
132
+ readonly id: string;
133
+ readonly x: number;
134
+ readonly y: number;
135
+ readonly w: number;
136
+ readonly h: number;
137
+ readonly rotation?: number | undefined;
138
+ readonly text?: string | undefined;
139
+ } | {
140
+ readonly color?: "black" | "blue" | "green" | "grey" | "light-blue" | "light-green" | "light-red" | "light-violet" | "orange" | "red" | "violet" | "white" | "yellow" | undefined;
141
+ readonly fill?: "none" | "pattern" | "solid" | undefined;
142
+ readonly stroke?: "dashed" | "dotted" | "sketchy" | "solid" | undefined;
143
+ readonly weight?: "l" | "m" | "s" | "xl" | undefined;
144
+ readonly kind: "circle";
145
+ readonly id: string;
146
+ readonly cx: number;
147
+ readonly cy: number;
148
+ readonly r: number;
149
+ readonly text?: string | undefined;
150
+ } | {
151
+ readonly color?: "black" | "blue" | "green" | "grey" | "light-blue" | "light-green" | "light-red" | "light-violet" | "orange" | "red" | "violet" | "white" | "yellow" | undefined;
152
+ readonly fill?: "none" | "pattern" | "solid" | undefined;
153
+ readonly stroke?: "dashed" | "dotted" | "sketchy" | "solid" | undefined;
154
+ readonly weight?: "l" | "m" | "s" | "xl" | undefined;
155
+ readonly kind: "line";
156
+ readonly id: string;
157
+ readonly points: readonly {
158
+ readonly x: number;
159
+ readonly y: number;
160
+ }[];
161
+ readonly closed?: boolean | undefined;
162
+ } | {
163
+ readonly color?: "black" | "blue" | "green" | "grey" | "light-blue" | "light-green" | "light-red" | "light-violet" | "orange" | "red" | "violet" | "white" | "yellow" | undefined;
164
+ readonly fill?: "none" | "pattern" | "solid" | undefined;
165
+ readonly stroke?: "dashed" | "dotted" | "sketchy" | "solid" | undefined;
166
+ readonly weight?: "l" | "m" | "s" | "xl" | undefined;
167
+ readonly kind: "curve";
168
+ readonly id: string;
169
+ readonly points: readonly {
170
+ readonly x: number;
171
+ readonly y: number;
172
+ }[];
173
+ } | {
174
+ readonly color?: "black" | "blue" | "green" | "grey" | "light-blue" | "light-green" | "light-red" | "light-violet" | "orange" | "red" | "violet" | "white" | "yellow" | undefined;
175
+ readonly fill?: "none" | "pattern" | "solid" | undefined;
176
+ readonly stroke?: "dashed" | "dotted" | "sketchy" | "solid" | undefined;
177
+ readonly weight?: "l" | "m" | "s" | "xl" | undefined;
178
+ readonly kind: "arc";
179
+ readonly id: string;
180
+ readonly cx: number;
181
+ readonly cy: number;
182
+ readonly r: number;
183
+ readonly startAngle: number;
184
+ readonly endAngle: number;
185
+ } | {
186
+ readonly color?: "black" | "blue" | "green" | "grey" | "light-blue" | "light-green" | "light-red" | "light-violet" | "orange" | "red" | "violet" | "white" | "yellow" | undefined;
187
+ readonly fill?: "none" | "pattern" | "solid" | undefined;
188
+ readonly stroke?: "dashed" | "dotted" | "sketchy" | "solid" | undefined;
189
+ readonly weight?: "l" | "m" | "s" | "xl" | undefined;
190
+ readonly kind: "text";
191
+ readonly id: string;
192
+ readonly x: number;
193
+ readonly y: number;
194
+ readonly w?: number | undefined;
195
+ readonly text: string;
196
+ } | {
197
+ readonly color?: "black" | "blue" | "green" | "grey" | "light-blue" | "light-green" | "light-red" | "light-violet" | "orange" | "red" | "violet" | "white" | "yellow" | undefined;
198
+ readonly fill?: "none" | "pattern" | "solid" | undefined;
199
+ readonly stroke?: "dashed" | "dotted" | "sketchy" | "solid" | undefined;
200
+ readonly weight?: "l" | "m" | "s" | "xl" | undefined;
201
+ readonly kind: "arrow";
202
+ readonly id: string;
203
+ readonly from?: string | undefined;
204
+ readonly to?: string | undefined;
205
+ readonly start?: {
206
+ readonly x: number;
207
+ readonly y: number;
208
+ } | undefined;
209
+ readonly end?: {
210
+ readonly x: number;
211
+ readonly y: number;
212
+ } | undefined;
213
+ readonly text?: string | undefined;
214
+ })[];
215
+ };
216
+ } | {
217
+ readonly op: "upsert-elements";
218
+ readonly objectId: string;
219
+ readonly elements: readonly ({
220
+ readonly color?: "black" | "blue" | "green" | "grey" | "light-blue" | "light-green" | "light-red" | "light-violet" | "orange" | "red" | "violet" | "white" | "yellow" | undefined;
221
+ readonly fill?: "none" | "pattern" | "solid" | undefined;
222
+ readonly stroke?: "dashed" | "dotted" | "sketchy" | "solid" | undefined;
223
+ readonly weight?: "l" | "m" | "s" | "xl" | undefined;
224
+ readonly kind: "diamond" | "ellipse" | "rect" | "triangle";
225
+ readonly id: string;
226
+ readonly x: number;
227
+ readonly y: number;
228
+ readonly w: number;
229
+ readonly h: number;
230
+ readonly rotation?: number | undefined;
231
+ readonly text?: string | undefined;
232
+ } | {
233
+ readonly color?: "black" | "blue" | "green" | "grey" | "light-blue" | "light-green" | "light-red" | "light-violet" | "orange" | "red" | "violet" | "white" | "yellow" | undefined;
234
+ readonly fill?: "none" | "pattern" | "solid" | undefined;
235
+ readonly stroke?: "dashed" | "dotted" | "sketchy" | "solid" | undefined;
236
+ readonly weight?: "l" | "m" | "s" | "xl" | undefined;
237
+ readonly kind: "circle";
238
+ readonly id: string;
239
+ readonly cx: number;
240
+ readonly cy: number;
241
+ readonly r: number;
242
+ readonly text?: string | undefined;
243
+ } | {
244
+ readonly color?: "black" | "blue" | "green" | "grey" | "light-blue" | "light-green" | "light-red" | "light-violet" | "orange" | "red" | "violet" | "white" | "yellow" | undefined;
245
+ readonly fill?: "none" | "pattern" | "solid" | undefined;
246
+ readonly stroke?: "dashed" | "dotted" | "sketchy" | "solid" | undefined;
247
+ readonly weight?: "l" | "m" | "s" | "xl" | undefined;
248
+ readonly kind: "line";
249
+ readonly id: string;
250
+ readonly points: readonly {
251
+ readonly x: number;
252
+ readonly y: number;
253
+ }[];
254
+ readonly closed?: boolean | undefined;
255
+ } | {
256
+ readonly color?: "black" | "blue" | "green" | "grey" | "light-blue" | "light-green" | "light-red" | "light-violet" | "orange" | "red" | "violet" | "white" | "yellow" | undefined;
257
+ readonly fill?: "none" | "pattern" | "solid" | undefined;
258
+ readonly stroke?: "dashed" | "dotted" | "sketchy" | "solid" | undefined;
259
+ readonly weight?: "l" | "m" | "s" | "xl" | undefined;
260
+ readonly kind: "curve";
261
+ readonly id: string;
262
+ readonly points: readonly {
263
+ readonly x: number;
264
+ readonly y: number;
265
+ }[];
266
+ } | {
267
+ readonly color?: "black" | "blue" | "green" | "grey" | "light-blue" | "light-green" | "light-red" | "light-violet" | "orange" | "red" | "violet" | "white" | "yellow" | undefined;
268
+ readonly fill?: "none" | "pattern" | "solid" | undefined;
269
+ readonly stroke?: "dashed" | "dotted" | "sketchy" | "solid" | undefined;
270
+ readonly weight?: "l" | "m" | "s" | "xl" | undefined;
271
+ readonly kind: "arc";
272
+ readonly id: string;
273
+ readonly cx: number;
274
+ readonly cy: number;
275
+ readonly r: number;
276
+ readonly startAngle: number;
277
+ readonly endAngle: number;
278
+ } | {
279
+ readonly color?: "black" | "blue" | "green" | "grey" | "light-blue" | "light-green" | "light-red" | "light-violet" | "orange" | "red" | "violet" | "white" | "yellow" | undefined;
280
+ readonly fill?: "none" | "pattern" | "solid" | undefined;
281
+ readonly stroke?: "dashed" | "dotted" | "sketchy" | "solid" | undefined;
282
+ readonly weight?: "l" | "m" | "s" | "xl" | undefined;
283
+ readonly kind: "text";
284
+ readonly id: string;
285
+ readonly x: number;
286
+ readonly y: number;
287
+ readonly w?: number | undefined;
288
+ readonly text: string;
289
+ } | {
290
+ readonly color?: "black" | "blue" | "green" | "grey" | "light-blue" | "light-green" | "light-red" | "light-violet" | "orange" | "red" | "violet" | "white" | "yellow" | undefined;
291
+ readonly fill?: "none" | "pattern" | "solid" | undefined;
292
+ readonly stroke?: "dashed" | "dotted" | "sketchy" | "solid" | undefined;
293
+ readonly weight?: "l" | "m" | "s" | "xl" | undefined;
294
+ readonly kind: "arrow";
295
+ readonly id: string;
296
+ readonly from?: string | undefined;
297
+ readonly to?: string | undefined;
298
+ readonly start?: {
299
+ readonly x: number;
300
+ readonly y: number;
301
+ } | undefined;
302
+ readonly end?: {
303
+ readonly x: number;
304
+ readonly y: number;
305
+ } | undefined;
306
+ readonly text?: string | undefined;
307
+ })[];
308
+ } | {
309
+ readonly op: "remove-elements";
310
+ readonly objectId: string;
311
+ readonly elementIds: readonly string[];
312
+ } | {
313
+ readonly op: "remove-object";
314
+ readonly objectId: string;
315
+ } | {
316
+ readonly op: "move-object";
317
+ readonly objectId: string;
318
+ readonly origin: {
319
+ readonly x: number;
320
+ readonly y: number;
321
+ };
322
+ })[];
323
+ }, {
324
+ readonly scene: {
325
+ readonly objects: readonly {
326
+ readonly id: string;
327
+ readonly origin?: {
328
+ readonly x: number;
329
+ readonly y: number;
330
+ } | undefined;
331
+ readonly scale?: number | undefined;
332
+ readonly elements: readonly ({
333
+ readonly color?: "black" | "blue" | "green" | "grey" | "light-blue" | "light-green" | "light-red" | "light-violet" | "orange" | "red" | "violet" | "white" | "yellow" | undefined;
334
+ readonly fill?: "none" | "pattern" | "solid" | undefined;
335
+ readonly stroke?: "dashed" | "dotted" | "sketchy" | "solid" | undefined;
336
+ readonly weight?: "l" | "m" | "s" | "xl" | undefined;
337
+ readonly kind: "diamond" | "ellipse" | "rect" | "triangle";
338
+ readonly id: string;
339
+ readonly x: number;
340
+ readonly y: number;
341
+ readonly w: number;
342
+ readonly h: number;
343
+ readonly rotation?: number | undefined;
344
+ readonly text?: string | undefined;
345
+ } | {
346
+ readonly color?: "black" | "blue" | "green" | "grey" | "light-blue" | "light-green" | "light-red" | "light-violet" | "orange" | "red" | "violet" | "white" | "yellow" | undefined;
347
+ readonly fill?: "none" | "pattern" | "solid" | undefined;
348
+ readonly stroke?: "dashed" | "dotted" | "sketchy" | "solid" | undefined;
349
+ readonly weight?: "l" | "m" | "s" | "xl" | undefined;
350
+ readonly kind: "circle";
351
+ readonly id: string;
352
+ readonly cx: number;
353
+ readonly cy: number;
354
+ readonly r: number;
355
+ readonly text?: string | undefined;
356
+ } | {
357
+ readonly color?: "black" | "blue" | "green" | "grey" | "light-blue" | "light-green" | "light-red" | "light-violet" | "orange" | "red" | "violet" | "white" | "yellow" | undefined;
358
+ readonly fill?: "none" | "pattern" | "solid" | undefined;
359
+ readonly stroke?: "dashed" | "dotted" | "sketchy" | "solid" | undefined;
360
+ readonly weight?: "l" | "m" | "s" | "xl" | undefined;
361
+ readonly kind: "line";
362
+ readonly id: string;
363
+ readonly points: readonly {
364
+ readonly x: number;
365
+ readonly y: number;
366
+ }[];
367
+ readonly closed?: boolean | undefined;
368
+ } | {
369
+ readonly color?: "black" | "blue" | "green" | "grey" | "light-blue" | "light-green" | "light-red" | "light-violet" | "orange" | "red" | "violet" | "white" | "yellow" | undefined;
370
+ readonly fill?: "none" | "pattern" | "solid" | undefined;
371
+ readonly stroke?: "dashed" | "dotted" | "sketchy" | "solid" | undefined;
372
+ readonly weight?: "l" | "m" | "s" | "xl" | undefined;
373
+ readonly kind: "curve";
374
+ readonly id: string;
375
+ readonly points: readonly {
376
+ readonly x: number;
377
+ readonly y: number;
378
+ }[];
379
+ } | {
380
+ readonly color?: "black" | "blue" | "green" | "grey" | "light-blue" | "light-green" | "light-red" | "light-violet" | "orange" | "red" | "violet" | "white" | "yellow" | undefined;
381
+ readonly fill?: "none" | "pattern" | "solid" | undefined;
382
+ readonly stroke?: "dashed" | "dotted" | "sketchy" | "solid" | undefined;
383
+ readonly weight?: "l" | "m" | "s" | "xl" | undefined;
384
+ readonly kind: "arc";
385
+ readonly id: string;
386
+ readonly cx: number;
387
+ readonly cy: number;
388
+ readonly r: number;
389
+ readonly startAngle: number;
390
+ readonly endAngle: number;
391
+ } | {
392
+ readonly color?: "black" | "blue" | "green" | "grey" | "light-blue" | "light-green" | "light-red" | "light-violet" | "orange" | "red" | "violet" | "white" | "yellow" | undefined;
393
+ readonly fill?: "none" | "pattern" | "solid" | undefined;
394
+ readonly stroke?: "dashed" | "dotted" | "sketchy" | "solid" | undefined;
395
+ readonly weight?: "l" | "m" | "s" | "xl" | undefined;
396
+ readonly kind: "text";
397
+ readonly id: string;
398
+ readonly x: number;
399
+ readonly y: number;
400
+ readonly w?: number | undefined;
401
+ readonly text: string;
402
+ } | {
403
+ readonly color?: "black" | "blue" | "green" | "grey" | "light-blue" | "light-green" | "light-red" | "light-violet" | "orange" | "red" | "violet" | "white" | "yellow" | undefined;
404
+ readonly fill?: "none" | "pattern" | "solid" | undefined;
405
+ readonly stroke?: "dashed" | "dotted" | "sketchy" | "solid" | undefined;
406
+ readonly weight?: "l" | "m" | "s" | "xl" | undefined;
407
+ readonly kind: "arrow";
408
+ readonly id: string;
409
+ readonly from?: string | undefined;
410
+ readonly to?: string | undefined;
411
+ readonly start?: {
412
+ readonly x: number;
413
+ readonly y: number;
414
+ } | undefined;
415
+ readonly end?: {
416
+ readonly x: number;
417
+ readonly y: number;
418
+ } | undefined;
419
+ readonly text?: string | undefined;
420
+ })[];
421
+ }[];
422
+ };
423
+ readonly unmanaged: number;
424
+ readonly upserted: readonly string[];
425
+ readonly removed: number;
426
+ }, Database.Service | Capability.Service>;
427
+ //# sourceMappingURL=SketchOperation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SketchOperation.d.ts","sourceRoot":"","sources":["../../../../src/types/SketchOperation.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAa,MAAM,YAAY,CAAC;AAMjD,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AAInC,eAAO,MAAM,MAAM;;;;;yCAYjB,CAAC;AAUH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yCAaf,CAAC;AAEH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yCAkBf,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from './types';
2
+ export * as IllustratorCapabilities from './IllustratorCapabilities';
3
+ export * as Sketch from './Sketch';
4
+ export * as SketchOperation from './SketchOperation';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC;AAExB,OAAO,KAAK,uBAAuB,MAAM,2BAA2B,CAAC;AACrE,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,eAAe,MAAM,mBAAmB,CAAC"}