Repository navigation
feat: copy ready-to-paste iframe embed code from the share box - #7
Merged
Merged
Conversation
Like YouTube's Embed: the Copy client link box now has an "Embed on a website" section with the <iframe> code, a size choice (responsive 16:10, 960x600, 800x500, 640x480), Copy embed code and Copy embed link. The code keeps the diagram style, icon setting and 2D/3D view. embedCode() lives in the shared core (strict-typed) and is unit-tested. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Like YouTube's "Embed": the Copy client link box now also gives ready-to-paste iframe code.
<iframe>code;title,loading="lazy"andallowfullscreen. It also keeps the diagram style, the icon setting and the 2D/3D view.embedCode()is in the shared core, which is strict-typed (still 0 errors), and has a unit test.Testing
npm run checkpasses: lint, both type checks, the strict core and 64 unit tests.node server.js:Embed options
&t=0).&v=0).Refs AHL-571.
🤖 Generated with Claude Code