Skip to content

wasm: the apply op, a diagram gesture as text edits - #30

Merged
apiarytech merged 1 commit into
mainfrom
diagram-gestures
Nov 4, 2026
Merged

apiarytech merged 1 commit into
mainfrom
diagram-gestures

Conversation

@apiarytech

@apiarytech apiarytech commented Nov 2, 2026 •

Copy link
Copy Markdown
Owner

Stacked on #29. This adds {"op":"apply","source":S,"gesture":G} to the web module. It runs ide.Index.Apply, the gesture engine beehive's VS Code diagram editor uses, and replies {edits, source}. A gesture whose result reads worse than the source is refused with the reason.

beespace's Diagrams tab uses it to edit LD, FBD and SFC bodies by selecting an element and pressing a key or button.

Tests: TestApply covers a contact added after a rung element, an unknown gesture, and a missing gesture. The wasm README and doc/web-debugger.md describe the op.

A page's diagram editor needs what beehive's VS Code editor has: a gesture on an element (ide.Index.Apply) turned into text edits, checked to read no worse. The op gives the edits and the source they make.
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown

Thank you for the pull request. beedance is dual-licensed, so contributors sign the contributor licence agreement once. Please read it and, if you agree, reply with the sentence below.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@apiarytech
apiarytech changed the base branch from go-engine-in-page to main November 4, 2026 06:48
@apiarytech apiarytech closed this Nov 4, 2026
@apiarytech apiarytech reopened this Nov 4, 2026
@apiarytech

Copy link
Copy Markdown
Owner Author

recheck

@github-actions github-actions Bot locked and limited conversation to collaborators Nov 4, 2026
@apiarytech
apiarytech merged commit c1d4fbd into main Nov 4, 2026
22 of 23 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant