You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .changeset/unified-controls-api.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,4 +6,4 @@ Embedding apps can now compose Apollon's built-in editor controls instead of acc
6
6
7
7
Imperative hosts can configure the same controls with `paletteControl()`, `zoomControl()`, `miniMapControl()`, and `defaultControls()`. Omitting `controls` keeps the default chrome, passing `[]` renders a bare canvas, and `addControl` / `updateControl` / `removeControl` manage custom or built-in controls at runtime.
8
8
9
-
Editor-owned labels are now localizable through `labels`, `editor.setLabels(...)`, and `useLabels()`. The shared overlay layout also measures reserving bands and corner controls so diagram content and chrome stay clear under the documented responsive sizing rules.
9
+
Localize the editor’s own tooltips, aria labels, and edit/assessment popovers through `labels`, `editor.setLabels(...)`, and `useLabels()`. Built-in and custom controls now stay clear of each other and keep diagram content visible across responsive layouts.
Copy file name to clipboardExpand all lines: AGENTS.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ A pnpm + Vite monorepo (the server compiles with `tsc`, not Vite).
42
42
- The library is consumed by the standalone app, the VS Code extension, and external embedders — don't couple its APIs to standalone-only assumptions; gate behind options.
43
43
- The server requires `OWNER_SECRET` ≥ 32 chars in production (`openssl rand -hex 32`); local dev accepts a placeholder.
44
44
- Never commit build output (`library/dist/`, `standalone/webapp/dist/`, …).
45
-
-Don't hand-edit the `.changeset/*.md`entries the changelog automation will consume — create them with `pnpm changeset`.
45
+
-Create changesets with `pnpm changeset`. You may edit the generated `.changeset/*.md`body for release-note quality; don't hand-edit `CHANGELOG.md` or invent changeset frontmatter by hand.
46
46
- Don't put co-authored-by / agent-attribution trailers in a changeset body — it lands in `CHANGELOG.md` verbatim.
47
47
-`CLAUDE.md` is a checked-in symlink to this file (git mode `120000`); on Windows, enable symlinks (`git config --global core.symlinks true`) or it checks out as plain text.
|`setLabels(labels)`|`(Partial<ApollonLabels>) => void`| Replace localized editor strings by merging a partial dictionary over the English defaults. |
165
-
|`fitView(options?)`|`({ padding?, duration?, respectInsets? }) => void`|Zoom/pan so the whole diagram is visible (capped at `maxZoom: 1.0`). With no reserved insets and a scalar/absent `padding`, fits with a fraction (default `0.15`). When chrome is reserved — or `padding` is a per-side object — each side is padded by `inset + (per-side px ?? 16px gutter)` (the explicit px replaces the gutter; it does not stack with it). `respectInsets` (default `true`) includes the reserved [overlay control](/library/api/overlay-controls) insets; `duration` defaults to `200` ms. Retries up to 10 rAF ticks until nodes measure. |
0 commit comments