etassia 0.1.1 → 0.1.2

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/dist/etassia.wasm CHANGED
Binary file
package/dist/index.d.ts CHANGED
@@ -17,3 +17,10 @@ export declare class EtassiaError extends Error {
17
17
  export declare function render(source: string): string;
18
18
  /** Detect the diagram type name of `source`. Throws EtassiaError when undetectable. */
19
19
  export declare function detect(source: string): string;
20
+ /**
21
+ * Render a DIM 0.1 document (JSON) to SVG. DIM is the Diagram Interchange
22
+ * Model: a declarative graph a model tool emits (see etassia/docs
23
+ * emitter-guide.md). Throws EtassiaError (class Unsupported) for a foreign
24
+ * DIM version, EtassiaError otherwise for invalid documents.
25
+ */
26
+ export declare function renderDim(source: string): string;
package/dist/index.js CHANGED
@@ -75,3 +75,12 @@ export function render(source) {
75
75
  export function detect(source) {
76
76
  return call("etassia_detect", source);
77
77
  }
78
+ /**
79
+ * Render a DIM 0.1 document (JSON) to SVG. DIM is the Diagram Interchange
80
+ * Model: a declarative graph a model tool emits (see etassia/docs
81
+ * emitter-guide.md). Throws EtassiaError (class Unsupported) for a foreign
82
+ * DIM version, EtassiaError otherwise for invalid documents.
83
+ */
84
+ export function renderDim(source) {
85
+ return call("etassia_render_dim", source);
86
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "etassia",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "TypeScript binding for the Etassia Rust runtime (etassia-core compiled to WebAssembly)",
5
5
  "license": "BSD-2-Clause",
6
6
  "repository": { "type": "git", "url": "git+https://github.com/etassia/etassia-ts.git" },