Alexander Wang

Results 443 comments of Alexander Wang

@orange-buffalo this should be entirely doable within d2. We just haven't documented all the different flavors of it (though here's one: https://d2lang.com/tour/model-view/). Can you describe your use case?

we don't want editor lock-in, where your teammate uses vscode and you use vim and you can't decode unless you download vscode. i think this is a good feature to...

the concern with space pertains more to serving images over the web. i'm not sure what the exact flow for easier to test/debug is, can you elaborate on a use...

dev notes: It's the `mono` rule in the theme that's effecting it. I've inspected the pre-processisng code in d2graph and the some of the code in textmeasure. Can't find anything...

the way to do this in D2 will be with globs. it's being worked on. ``` *: { shape: circle } ```

``` * -> *: { style.stroke: red } ```

@nhooyr pretty interesting for globs: https://github.com/terrastruct/d2/issues/1327#issuecomment-1586910187

@the42 it'll be done like so: ``` * -> *: { &dst.class: sql_table &src.class: sql_table style.opacity: 0.4 } ```

@bo-ku-ra that's a good point. theming currently has some rules for depth, but the selectors with globs should be able to get that too, so in theory, yeah this can...

> Your use-case seems to be: assign source and destination to shape type sql_table and style the link with opacity 0.4 @the42 the use-case is as you describe. `&` is...