Commit graph

469 commits

Author SHA1 Message Date
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
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
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
Júlio César Batista
b3dfd8548d
Add lifespan 2022-11-29 21:38:19 -08:00
Júlio César Batista
b8355c7fa9
Add sequenceDiagram to hold values required to layout the diagram 2022-11-29 21:38:19 -08:00
Alexander Wang
e509fbbc2f
Merge pull request #274 from alixander/empty-direction
Empty direction
2022-11-29 18:02:55 -08:00
Alexander Wang
6d4735a8ef
2022-11-29 05:59:27PM 2022-11-29 17:59:27 -08:00
Alexander Wang
edff033308
src change 2022-11-29 17:57:17 -08:00
Alexander Wang
0de29f08c3
Merge pull request #224 from alixander/png-img
inline images
2022-11-29 17:37:49 -08:00
Alexander Wang
de56cda278
2022-11-29 05:09:21PM 2022-11-29 17:09:21 -08:00
Alexander Wang
7cbcd88f9c
2022-11-29 05:01:15PM 2022-11-29 17:01:15 -08:00
Alexander Wang
9b982a684e
Merge branch 'master' into png-img 2022-11-29 16:54:09 -08:00
Alexander Wang
dd1d920424
Merge branch 'master' into png-img 2022-11-29 16:52:55 -08:00
Alexander Wang
c498097b15
Merge pull request #251 from alixander/alixander/orientation
layout: `direction` keyword
2022-11-29 16:52:15 -08:00
Alexander Wang
de786787bb
Merge branch 'master' into alixander/orientation 2022-11-29 16:49:13 -08:00
gavin-ts
6e0740ceea
Merge pull request #246 from gavin-ts/render-3d-aio
render: fix transparent 3d square drawing
2022-11-29 16:45:57 -08:00
Gavin Nishizawa
1847c76b08
cleanup border path trailing space 2022-11-29 16:42:37 -08:00
Alexander Wang
a295af23e0
2022-11-29 04:38:26PM 2022-11-29 16:38:26 -08:00
Alexander Wang
56955b9613
2022-11-29 04:36:22PM 2022-11-29 16:36:22 -08:00
Alexander Wang
a8b011c7fd
Merge branch 'master' into png-img 2022-11-29 16:35:42 -08:00
Alexander Wang
e56d22d948
Merge branch 'master' into alixander/orientation 2022-11-29 16:28:06 -08:00
Alexander Wang
9f94a5d8fe
2022-11-29 04:27:22PM 2022-11-29 16:27:22 -08:00
Anmol Sethi
102404bf49
d2chaos: Commit gitignore 2022-11-29 16:25:39 -08:00
Alexander Wang
c495253f86
Merge branch 'master' into alixander/orientation 2022-11-29 16:18:39 -08:00
Alexander Wang
34cd5191bd
2022-11-29 04:14:27PM 2022-11-29 16:14:27 -08:00
Alexander Wang
88a89d4f72
2022-11-29 04:13:34PM 2022-11-29 16:13:34 -08:00
Alexander Wang
bc21965892
2022-11-29 04:12:23PM 2022-11-29 16:12:23 -08:00
Alexander Wang
d45aa3f5c4
2022-11-29 04:08:36PM 2022-11-29 16:08:36 -08:00
Alexander Wang
a39bfce697
2022-11-29 04:02:37PM 2022-11-29 16:02:37 -08:00