@openmaic/renderer 0.1.10 → 0.1.11

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 (2) hide show
  1. package/README.md +7 -0
  2. package/package.json +6 -2
package/README.md CHANGED
@@ -236,3 +236,10 @@ import '@openmaic/renderer/fonts.css';
236
236
  ## License
237
237
 
238
238
  MIT
239
+
240
+ ## Geometry without rendering
241
+
242
+ Import `getElementRange` and `getLineElementPath` from `@openmaic/renderer/geometry`
243
+ to reuse the renderer's geometry in Node or server-side document operations without
244
+ loading React components. Line ranges include endpoint minima and active control
245
+ points; curves use a conservative control hull.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmaic/renderer",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "React component for rendering PPTist-style Slide JSON, extracted from OpenMAIC.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -23,7 +23,11 @@
23
23
  "types": "./dist/snapshot/index.d.ts",
24
24
  "import": "./dist/snapshot/index.js"
25
25
  },
26
- "./fonts.css": "./fonts.css"
26
+ "./fonts.css": "./fonts.css",
27
+ "./geometry": {
28
+ "types": "./dist/utils/element.d.ts",
29
+ "import": "./dist/utils/element.js"
30
+ }
27
31
  },
28
32
  "files": [
29
33
  "dist",