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
Embed Apollon reliably in host pages: fullscreen overlays stay visible, scrolling and shortcuts remain host-safe, assessment feedback is easier to open and navigate through `revealAssessment(id)`, host controls gain a labeled chrome action, exports no longer expand the page, and diagram interactions remain aligned, sharp, and responsive.
6
+
Labels now also stay vertically centered in SVG, PNG, and PDF exports exactly as they appear in the editor.
|`addOrUpdateAssessment(assessment)`|`(Assessment) => void`| Attach or update a score/feedback assessment on an element. |
204
-
|`setElementHighlights(highlights)`|`(Map<string, string> \| Record<string, string> \| null) => void`| Paint a translucent highlight overlay over the given element ids (id → CSS color) — e.g. to flag elements missing feedback or carrying suggestions. Host-driven and ephemeral: never written to the model, serialized, or shared with collaborators. Each call replaces the previous set; pass `null` or an empty map to clear. |
205
-
|`getElementHighlights()`|`() => Record<string, string>`| The current highlight map (element id → CSS color). |
206
-
|`getElementIdsByTag(tag)`|`(string) => string[]`| Ids of every element carrying the host-defined `tag` — a node, or one of its members (class attribute, method, SFC action row). Exact and case-sensitive apart from surrounding whitespace; `[]` for an unknown or blank tag. Pair with `setElementHighlights` to color a group — see [Element tags](/library/api/element-tags). |
207
-
|`getInteractiveForSerialization()`|`InteractiveElements \| undefined`| Interactive-element flags for inclusion in a saved model. |
|`addOrUpdateAssessment(assessment)`|`(Assessment) => void`| Attach or update a score/feedback assessment on an element. |
204
+
|`setElementHighlights(highlights)`|`(Map<string, string> \| Record<string, string> \| null) => void`| Ring the given element ids (id → CSS color) — e.g. to flag elements missing feedback or carrying suggestions. Drawn as an outline, never a fill, so an element's own text and its assessment badge stay legible. Host-driven and ephemeral: never written to the model, serialized, or shared with collaborators. Each call replaces the previous set; pass `null` or an empty map to clear. |
205
+
|`revealAssessment(id, options?)`|`(string \| null, { reveal?: boolean }) => void`| Select one element, open its feedback popover, and pan the canvas to it at the current zoom. Lets a host's feedback list drive the canvas — click an entry, the diagram answers where it applies. `null` clears the selection and closes the popover; `{ reveal: false }` skips the pan. The popover only opens in assessment mode. |
206
+
|`getElementHighlights()`|`() => Record<string, string>`| The current highlight map (element id → CSS color). |
207
+
|`getElementIdsByTag(tag)`|`(string) => string[]`| Ids of every element carrying the host-defined `tag` — a node, or one of its members (class attribute, method, SFC action row). Exact and case-sensitive apart from surrounding whitespace; `[]` for an unknown or blank tag. Pair with `setElementHighlights` to color a group — see [Element tags](/library/api/element-tags). |
208
+
|`getInteractiveForSerialization()`|`InteractiveElements \| undefined`| Interactive-element flags for inclusion in a saved model. |
208
209
209
210
## Subscriptions
210
211
@@ -267,7 +268,11 @@ SVG/PNG/PDF over HTTP via the standalone server.
267
268
268
269
`Mod` is Ctrl on Windows/Linux and Cmd on macOS; combos marked _view_ work on
269
270
read-only diagrams too. Nothing fires while the user is typing in a field or
270
-
while a dialog or menu is open.
271
+
while a dialog or menu is open. Shortcuts belong to the editor that has focus:
272
+
click or tap the canvas to activate it, then move focus outside the editor to
273
+
return every shortcut to the surrounding page. Pointer-acquired canvas focus is
274
+
released when the pointer leaves, so browser zoom remains available around an
275
+
embedded editor. Keyboard users keep ownership until they move focus normally.
0 commit comments