Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support layers #114

Open
alixander opened this issue Jul 19, 2023 · 4 comments
Open

support layers #114

alixander opened this issue Jul 19, 2023 · 4 comments

Comments

@alixander
Copy link
Contributor

not sure how best to do it, but just creating the issue so it's not forgotten

Screen Shot 2023-07-19 at 4 55 41 PM
@BarryNolte
Copy link
Collaborator

The layers paradigm seems to lend itself to being represented as a separate page per layer. This could be rendered as an actual preview tab per layer, or on one preview with html rendered tabs to switch between layers. The question really being how to relay this information from d2 cli to the d2 extension.

@jlnrrg
Copy link

jlnrrg commented Oct 18, 2023

As layers are currently not supported, this leads to a compilation error in the vs-code preview.
grafik

For my specific use case, I build links between different d2 files, thus using the layers as link for the pdf mode.
The problem is, once I include the links, the vs-code preview does not work any longer.

Would it be possible to just ignore layers without breaking the compilation?
Or including a beta flag, that allows the vs-code preview to ignore layers, but the pdf export to use it?

@BarryNolte
Copy link
Collaborator

I'll take another look at this.

@BarryNolte
Copy link
Collaborator

@alixander What is the mode of operation in D2 Studio? How are Layers handled there?

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

No branches or pull requests

3 participants