Commit graph

1995 commits

Author SHA1 Message Date
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
Júlio César Batista
062ee76b61
Merge branch 'master' into nested-sequence-diagrams 2022-11-30 14:03:01 -08:00
Júlio César Batista
e533aeeed5
Add nested test 2022-11-30 14:01:16 -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
Júlio César Batista
a86bfc0b9b
Rename edges -> messages 2022-11-30 12:09:29 -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
Júlio César Batista
9c0df4ebdb
tests 2022-11-29 21:38:19 -08:00
Júlio César Batista
94d74d4ddf
Add some comments 2022-11-29 21:38:19 -08:00
Júlio César Batista
a9b8b3c0b1
Vertical pad 2022-11-29 21:38:19 -08:00
Júlio César Batista
ebac99e3db
Minor refactor 2022-11-29 21:38:19 -08:00
Júlio César Batista
a79da2db56
rename lifespan to activation box 2022-11-29 21:38:19 -08:00
Júlio César Batista
77b1166abd
Handle nested lifespan 2022-11-29 21:38:19 -08:00
Júlio César Batista
f22580d9ed
Route to proper lifespan box sides 2022-11-29 21:38:19 -08:00
Júlio César Batista
341db70e9d
remove labels from lifespan 2022-11-29 21:38:19 -08:00