@sentropic/diagram-core 0.4.0 → 0.4.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/dist/view.d.ts CHANGED
@@ -184,7 +184,7 @@ export interface PresentationState {
184
184
  };
185
185
  /** A theme id the host resolves. No colour, no token value is stored here. */
186
186
  readonly theme?: string;
187
- /** Pinned card/zone anatomy (`diagram-anatomy/v1 | v2`). New views default to `"v2"`. */
187
+ /** Pinned card/zone anatomy (`diagram-anatomy/v1 | v2`). Absent means legacy `"v1"`; `"v2"` is opt-in. */
188
188
  readonly anatomy?: DiagramAnatomyVersion;
189
189
  /** Typed presentation fragment (M3 §3.2.2). Absent means no presentation contract. */
190
190
  readonly diagram?: DiagramPresentation;
package/dist/view.js CHANGED
@@ -29,7 +29,7 @@ export const VIEW_DOCUMENT_FIELDS = [
29
29
  "summaryLabels",
30
30
  "viewId",
31
31
  ];
32
- export const DEFAULT_PRESENTATION = { camera: { x: 0, y: 0, zoom: 1 }, anatomy: "v2" };
32
+ export const DEFAULT_PRESENTATION = { camera: { x: 0, y: 0, zoom: 1 } };
33
33
  export function createView(input) {
34
34
  return {
35
35
  viewId: input.viewId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentropic/diagram-core",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Typed semantic core for diagrams: versioned documents and profiles, views with occurrences, transactional commands with logical inverses. No runtime dependency, no DOM, no framework.",
5
5
  "publishConfig": {
6
6
  "access": "public"