Skip to content

Conversation

@peter-gy
Copy link
Owner

CleanShot.2025-04-23.at.15.16.59.mp4

@peter-gy peter-gy requested a review from Copilot April 23, 2025 13:18
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a marimo-based playground for D2 diagrams and updates the widget options handling and rendering logic.

  • Adjusts the widget initialization to use default options.
  • Adds a new playground script based on marimo.
  • Enhances the JS widget rendering with debouncing and improved DOM handling.

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

File Description
src/d2_widget/_widget.py Updates default option handling by changing how options are merged on initialization
playground/d2_playground.py Adds a marimo-based playground with interactive diagram cells
js/widget.ts Introduces an isRendering flag and refines SVG rendering and error display
.github/workflows/playground-deploy.yml Adds a deployment workflow for the playground on GitHub Pages

@peter-gy peter-gy merged commit 97b452a into main Apr 23, 2025
2 checks passed
@peter-gy peter-gy deleted the feat/marimo-playground branch April 23, 2025 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants