@danielsimonjr/sciengjs 0.7.0 → 0.7.1
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/README.md +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ sciengjs turns diagram source into images on your own machine. It sends no sourc
|
|
|
10
10
|
|
|
11
11
|
## What this release does
|
|
12
12
|
|
|
13
|
-
Release 0.7.
|
|
13
|
+
Release 0.7.1 holds eight input types. They are **Graphviz DOT**, **Mermaid** (every diagram type) and **LaTeX math** (to SVG, PNG and PDF). They also include **Plotly plots** (to SVG, PNG and HTML) and **HTML** (to PNG, PDF and Markdown). The CAD files **STEP**, **IGES** and **BREP** go to GLB, to a viewer page in HTML, and to PNG. The browser stage draws the Mermaid types other than class, state and sequence, and every PDF.
|
|
14
14
|
|
|
15
15
|
| Input | Output | Engine |
|
|
16
16
|
|---|---|---|
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { SciengConfig } from "./config.ts";
|
|
|
2
2
|
import type { Capability, RenderRequest, RenderResult } from "./types.ts";
|
|
3
3
|
export { RenderError, RENDER_ERROR_CODES, type RenderErrorCode } from "./errors.ts";
|
|
4
4
|
export { loadConfig, type SciengConfig, type NetworkPolicy } from "./config.ts";
|
|
5
|
-
export { INPUT_TYPES, OUTPUT_FORMATS, type InputType, type OutputFormat, type RenderOptions, type RenderRequest, type RenderResult, type RenderAsset, type Capability, } from "./types.ts";
|
|
5
|
+
export { INPUT_TYPES, BINARY_INPUT_TYPES, OUTPUT_FORMATS, type InputType, type OutputFormat, type RenderOptions, type RenderRequest, type RenderResult, type RenderAsset, type Capability, } from "./types.ts";
|
|
6
6
|
/** Renders one source to the requested format. Rejects with a RenderError. Never falls back to another format. */
|
|
7
7
|
export declare function render(req: RenderRequest, config?: Partial<SciengConfig>): Promise<RenderResult>;
|
|
8
8
|
/** Reports each supported pair, its stage and whether that stage is ready on this machine. */
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { capabilitiesWithRegistry, renderWithRegistry } from "./core.js";
|
|
|
2
2
|
import { DEFAULT_REGISTRY } from "./registry.js";
|
|
3
3
|
export { RenderError, RENDER_ERROR_CODES } from "./errors.js";
|
|
4
4
|
export { loadConfig } from "./config.js";
|
|
5
|
-
export { INPUT_TYPES, OUTPUT_FORMATS, } from "./types.js";
|
|
5
|
+
export { INPUT_TYPES, BINARY_INPUT_TYPES, OUTPUT_FORMATS, } from "./types.js";
|
|
6
6
|
/** Renders one source to the requested format. Rejects with a RenderError. Never falls back to another format. */
|
|
7
7
|
export function render(req, config) {
|
|
8
8
|
return renderWithRegistry(req, config ?? {}, DEFAULT_REGISTRY);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAIjD,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAwB,MAAM,aAAa,CAAC;AACpF,OAAO,EAAE,UAAU,EAAyC,MAAM,aAAa,CAAC;AAChF,OAAO,EACL,WAAW,EACX,cAAc,GAQf,MAAM,YAAY,CAAC;AAEpB,kHAAkH;AAClH,MAAM,UAAU,MAAM,CAAC,GAAkB,EAAE,MAA8B;IACvE,OAAO,kBAAkB,CAAC,GAAG,EAAE,MAAM,IAAI,EAAE,EAAE,gBAAgB,CAAC,CAAC;AACjE,CAAC;AAED,8FAA8F;AAC9F,MAAM,UAAU,YAAY,CAAC,MAA8B;IACzD,OAAO,wBAAwB,CAAC,MAAM,IAAI,EAAE,EAAE,gBAAgB,CAAC,CAAC;AAClE,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAIjD,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAwB,MAAM,aAAa,CAAC;AACpF,OAAO,EAAE,UAAU,EAAyC,MAAM,aAAa,CAAC;AAChF,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,cAAc,GAQf,MAAM,YAAY,CAAC;AAEpB,kHAAkH;AAClH,MAAM,UAAU,MAAM,CAAC,GAAkB,EAAE,MAA8B;IACvE,OAAO,kBAAkB,CAAC,GAAG,EAAE,MAAM,IAAI,EAAE,EAAE,gBAAgB,CAAC,CAAC;AACjE,CAAC;AAED,8FAA8F;AAC9F,MAAM,UAAU,YAAY,CAAC,MAA8B;IACzD,OAAO,wBAAwB,CAAC,MAAM,IAAI,EAAE,EAAE,gBAAgB,CAAC,CAAC;AAClE,CAAC"}
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const ENGINE_VERSION = "0.7.
|
|
1
|
+
export declare const ENGINE_VERSION = "0.7.1";
|
package/dist/version.js
CHANGED