Commit graph

503 commits

Author SHA1 Message Date
Anmol Sethi
c55bf62438
d2: Move cmd to repo root
Closes #113
2022-11-30 21:16:02 -08:00
Anmol Sethi
5fa80861ff
Merge pull request #288 from nhooyr/ver-1242
lib/version: Set to HEAD when building from source instead of ????
2022-11-30 18:58:07 -05:00
Anmol Sethi
63d5a66962
lib/version: Update to include some version context 2022-11-30 15:50:53 -08:00
Anmol Sethi
e3060f6aca
lib/version: Set to HEAD when building from source instead of ????
More clear. See https://github.com/terrastruct/d2/issues/202
2022-11-30 15:38:40 -08:00
Anmol Sethi
b3859c25f5
Merge pull request #277 from nhooyr/comp-31a5
README: Add comparison front and center
2022-11-30 18:18:28 -05:00
Anmol Sethi
43dbf8cb96
README: Add comparison front and center
There's been a few comments that our comparison was buried in the FAQ
and it sort of is. It's important enough to be front and center along
with the language docs and cheat sheet.
2022-11-30 15:16:52 -08:00
Anmol Sethi
29562feeb2
Merge pull request #278 from nhooyr/fixes-d6f3
imgbundler and CLI fixes
2022-11-30 18:00:29 -05:00
Anmol Sethi
1d2ea2bb87
imgbundler: Use time.Ticker instead 2022-11-30 14:58:52 -08:00
Anmol Sethi
e3104688a6
pr278: Review fixes 2022-11-30 14:58:52 -08:00
Anmol Sethi
39a990364d
changelog: Update 2022-11-30 14:58:52 -08:00
Anmol Sethi
fd0eba997d
imgbundler: Split bundle into three functions 2022-11-30 14:58:52 -08:00
Anmol Sethi
b8b269db0c
imgbundler: Improve mime type detection
The order of priority in detecting the mime type is now:
- Content-Type response header
- File path extension
- http.DetectContentType
2022-11-30 14:58:52 -08:00
Anmol Sethi
eb1868cd0d
d2: Indicate whether partial render was written in default build 2022-11-30 14:58:52 -08:00
Anmol Sethi
206d3eecb8
d2.1: Document partial renders 2022-11-30 14:58:52 -08:00
Anmol Sethi
0edf30a6cd
imgbundler: Fixes
- Make bundle flag work
- Display error and update render at the same time in watch mode.
  Before we would just display the render and not show the error.

- Rename imgbundler.InlineX functions to BundleX
- Print imgbundler fetch/readFile errors as they happen in the workers
  instead of coalescing and printing at the end.
- Minor performance improvements by using []byte everywhere possible.
- Improved symbol naming in imgbundler code
- **major**: Ignore already bundled images instead of trying to os.ReadFile them.
2022-11-30 14:58:52 -08:00
Anmol Sethi
f8418f3a2c
xmain: Return usage errors automatically from opts 2022-11-30 14:58:52 -08:00
Anmol Sethi
8e76cbd3c8
watch.css: Fix from d2c -> d2 rename
cc @alixander this has been broken for so long lol
From when the code was in the monorepo.
2022-11-30 14:58:52 -08:00
ejulio-ts
20fd100431
Merge pull request #287 from ejulio-ts/fix-sequence-diagram-zindex
Fix span render
2022-11-30 13:57:44 -08:00
Júlio César Batista
641c809464
Fix span rendering order 2022-11-30 13:41:20 -08:00
ejulio-ts
4c6dd8d9f8
Merge pull request #267 from ejulio-ts/render-priority
Render priority
2022-11-30 13:36:49 -08:00
Júlio César Batista
568121204e
Update tests 2022-11-30 13:33:26 -08:00
Júlio César Batista
a73d9ff7b7
Merge branch 'master' into render-priority 2022-11-30 13:31:32 -08:00
Júlio César Batista
347a6b263d
PR comments 2022-11-30 13:15:33 -08:00
gavin-ts
bf5b8c601f
Merge pull request #250 from gavin-ts/support-all-font-sizes-in-range
render: use style.font-size attribute
2022-11-30 11:50:23 -08:00
Gavin Nishizawa
2f96210e77
refactor to load all font sizes on demand 2022-11-30 11:46:41 -08:00
Gavin Nishizawa
7e58edc436
changelog 2022-11-30 11:46:40 -08:00
Gavin Nishizawa
723826ee30
update tests 2022-11-30 11:46:39 -08:00
Gavin Nishizawa
acebca9739
load font at new size on demand 2022-11-30 11:45:29 -08:00
Gavin Nishizawa
23d0b4499a
add large font size tests 2022-11-30 11:45:27 -08:00
Gavin Nishizawa
53cfa31ee1
render all font sizes in range 2022-11-30 11:44:12 -08:00
Gavin Nishizawa
8705212a95
add font_sizes test 2022-11-30 11:41:28 -08:00
Júlio César Batista
5c9f87f64a
Merge branch 'master' into render-priority 2022-11-30 11:26:29 -08:00
Júlio César Batista
61f4e1172a
Ensure object count doesn't change suring sorting 2022-11-30 11:26:12 -08:00
Júlio César Batista
abcfa7cb24
Update tests 2022-11-30 11:23:30 -08:00
Júlio César Batista
684b72eb5a
Change sorting order to be multi level 2022-11-30 11:22:43 -08:00
Anmol Sethi
7f7977eb8b
ci: Fix d2chaos upload 2022-11-30 03:52:52 -08:00
ejulio-ts
e6c7d06616
Merge pull request #259 from ejulio-ts/sequence-diagrams-lifespan
Sequence diagrams: activation boxes
2022-11-29 21:44:09 -08:00
Júlio César Batista
399b96ca0e
Update tests 2022-11-29 21:43:01 -08:00
Júlio César Batista
a5943d505b
Rename to maxObjectZIndex 2022-11-29 21:41:32 -08:00
Júlio César Batista
0fc1294ae6
Rename RenderPriority -> ZIndex 2022-11-29 21:41:32 -08:00
Júlio César Batista
cf527672b1
Fix lint 2022-11-29 21:41:31 -08:00
Júlio César Batista
e13f8f6711
update tests 2022-11-29 21:41:29 -08:00
Júlio César Batista
e7b72b4365
Add RenderPriority to objects and edges 2022-11-29 21:40:50 -08:00
Júlio César Batista
5a5240b73b
Remove objectDepth 2022-11-29 21:38:19 -08:00
Júlio César Batista
de58624f06
Rename span box 2022-11-29 21:38:19 -08:00
Júlio César Batista
68638899bf
Span boxes -> spans 2022-11-29 21:38:19 -08:00
Júlio César Batista
82f2cd37f5
Rename activation box to span box 2022-11-29 21:38:19 -08:00
Júlio César Batista
8c84ed0378
Refactor 2022-11-29 21:38:19 -08:00
Júlio César Batista
d002531768
Add vertical pad to activation boxes 2022-11-29 21:38:19 -08:00
Júlio César Batista
a0c0546059
Add padding to edges 2022-11-29 21:38:19 -08:00