Commit graph

300 commits

Author SHA1 Message Date
Vojtěch Fošnár
66dc978418
resolved merge conflict 2023-01-15 21:36:43 +01:00
Alexander Wang
0314a74eab
unescape img hrefs 2023-01-14 14:20:08 -08:00
Gavin Nishizawa
224af99efd
add sketch versions of arrowheads 2023-01-13 18:13:28 -08:00
Gavin Nishizawa
54f34d72ad
extend previous segment to target if last segment is very short 2023-01-12 11:23:23 -08:00
Vojtěch Fošnár
19c53d5185
added missing colors conversion 2023-01-12 11:19:34 +01:00
Vojtěch Fošnár
63a0c1e2b1
vary sketch overlay color depending on the background and small refactoring 2023-01-11 22:18:14 +01:00
Vojtěch Fošnár
84e8c25e37
implemented (limited) darkening of theme colors and fixed rendering of the 3D box 2023-01-09 22:50:17 +01:00
Vojtěch Fošnár
a81ab2d73e
support for prefers-color-scheme 2023-01-09 19:16:28 +01:00
Bernard Xie
80892f9ff9
Merge pull request #601 from berniexie/540/fit-to-screen-fix
export: add fit to screen mode to exported svg
2023-01-03 17:42:01 -08:00
Bernard Xie
35c1a1633f
add script to tests 2023-01-03 16:42:39 -08:00
Anmol Sethi
296b6407e9
lib/version/version.go: Update 2023-01-03 14:13:29 -08:00
Alexander Wang
2f545e3f61
tables 2022-12-22 11:06:57 -08:00
Alexander Wang
9812ea54fb
test 2022-12-22 00:46:46 -08:00
Alexander Wang
39cc074757
cleanup 2022-12-22 00:45:32 -08:00
Alexander Wang
4ccaf4a578
ok 2022-12-21 23:57:56 -08:00
Alexander Wang
3a9a784342
wip 2022-12-21 23:13:52 -08:00
Alexander Wang
07fb1a3d86
implement sketch 2022-12-21 20:55:27 -08:00
Anmol Sethi
e79c840ef8
v0.1.2 2022-12-18 22:46:59 -08:00
Alexander Wang
b3a47c845a
bump upscale factor 2022-12-18 20:25:29 -08:00
Bernard Xie
abb86e1c53
increase png export quality by 1.5 2022-12-14 10:35:15 -08:00
Alexander Wang
8b32b0965b
make compression dict determinstic 2022-12-10 16:38:02 -08:00
Anmol Sethi
d89354a8cf
lib/version: Update whoops 2022-12-08 03:03:05 -08:00
Anmol Sethi
b72959a91f
fmt 2022-12-07 23:22:20 -08:00
Anmol Sethi
22e0ed0f9f
v0.1.0 2022-12-06 09:22:51 -08:00
Júlio César Batista
15f83d3b03
Fix page inner size 2022-12-05 19:39:09 -08:00
Júlio César Batista
2cc9405a25
Change inner path base height to 79 2022-12-05 19:16:45 -08:00
Júlio César Batista
3db0afd9c7
Change inner path base width to 66 2022-12-05 19:05:35 -08:00
Júlio César Batista
58cd8d6922
Fix page outer path 2022-12-05 18:52:08 -08:00
Anmol Sethi
d116889fc9
Switch fully to util-go 2022-12-01 11:48:49 -08:00
Anmol Sethi
07e316fac5
xmain: rm -rf 2022-12-01 11:48:49 -08:00
Anmol Sethi
820226c72b
lib/xexec: rm -rf 2022-12-01 11:48:49 -08:00
Anmol Sethi
6139c35af2
watch: Move xbrowser to util-go and fix
Closes #175
Closes #205
2022-12-01 11:48:49 -08:00
Anmol Sethi
a05ba67a36
go2: rm -rf 2022-12-01 10:49:15 -08:00
Anmol Sethi
dd4a7bc2df
lib/diff: Delete in favour of util-go 2022-12-01 10:23:48 -08:00
Anmol Sethi
207a445766
Merge pull request #309 from nhooyr/urlenc-a461
compress -> urlenc
2022-12-01 10:15:52 -08:00
Anmol Sethi
712217050b
compress -> urlenc
And associated cleanup.

Blocked until oss.terrastruct.com/util-go is importable.
2022-12-01 10:06:28 -08:00
Anmol Sethi
2df2c781e9
lib/xmain: Print usage info in separate log 2022-12-01 09:24:48 -08:00
Anmol Sethi
c4ef432daf
Move textmeasure into lib
It's not a d2renderer.
2022-12-01 06:51:17 -08:00
Anmol Sethi
4cfd7c9c03
Update cmdlog 2022-12-01 00:44:59 -08: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
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
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
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
Alexander Wang
7cbcd88f9c
2022-11-29 05:01:15PM 2022-11-29 17:01:15 -08:00
Alexander Wang
a295af23e0
2022-11-29 04:38:26PM 2022-11-29 16:38:26 -08:00
Alexander Wang
66b6c7de56
2022-11-29 02:20:17PM 2022-11-29 14:20:17 -08:00
Alexander Wang
983b05bd9c
2022-11-29 01:50:48PM 2022-11-29 13:50:48 -08:00
Alexander Wang
fe75e7067b
2022-11-29 01:30:22PM 2022-11-29 13:30:22 -08:00
Alexander Wang
10e13c3716
fixes 2022-11-29 13:19:03 -08:00
Alexander Wang
d7fb9c16b8
2022-11-29 12:54:30PM 2022-11-29 12:54:30 -08:00
Anmol Sethi
d31ed1d3ac
imgbundler: Fixes
- Correct concurrency
- Return multierr
- Use []byte wherever possible
- Add semaphore to limit number of workers
- Separate timeout for each fetch
2022-11-29 11:40:53 -08:00
Alexander Wang
7368d15186
typo 2022-11-29 11:15:57 -08:00
Alexander Wang
6c921c9c22
bytes 2022-11-29 11:01:51 -08:00
Alexander Wang
97f7679797
2022-11-29 10:37:57AM 2022-11-29 10:37:57 -08:00
Alexander Wang
ff02459402
no passing respChan 2022-11-29 10:20:32 -08:00
Alexander Wang
a5ab1fea29
httptest 2022-11-29 10:08:18 -08:00
Alexander Wang
9259079d61
small fry 2022-11-29 08:40:05 -08:00
Alexander Wang
9ad44bdec0
2022-11-28 01:25:40PM 2022-11-28 13:25:40 -08:00
Alexander Wang
bd8a389f95
2022-11-26 06:14:41PM 2022-11-26 18:14:41 -08:00
Alexander Wang
ffcf1a05c0
2022-11-26 03:30:19PM 2022-11-26 15:30:19 -08:00
Alexander Wang
8c3b218fac
2022-11-26 03:30:13PM 2022-11-26 15:30:13 -08:00
Alexander Wang
d328b23fb6
2022-11-26 03:26:14PM 2022-11-26 15:26:14 -08:00
Alexander Wang
b0a999ecc1
2022-11-25 07:22:31PM 2022-11-25 19:22:31 -08:00
Bernard Xie
b99b741651
PR comments 2022-11-21 13:24:10 -08:00
Bernard Xie
794df257a7
typecast, fix fmt 2022-11-21 11:05:10 -08:00
Bernard Xie
e8340ff610
Merge branch 'master' into bernie/export-png 2022-11-21 11:00:26 -08:00
Bernard Xie
233fc76e7f
PR comments 2022-11-21 10:46:54 -08:00
Bernard Xie
24aa08bb2b
Update lib/png/png.go
Co-authored-by: Anmol Sethi <anmol@terrastruct.com>
2022-11-21 10:05:48 -08:00
Anmol Sethi
17dd64d89d
install.sh: Add brew integration and documentation
Updates #80
2022-11-20 18:57:34 -08:00
Bernard Xie
0f95288b5c
PR comments 2022-11-18 13:29:30 -08:00
Bernard Xie
8b453eae9a
PR comments 2022-11-17 20:39:10 -08:00
Bernard Xie
269ace1d1c
PR comments 2022-11-17 19:02:25 -08:00
Bernard Xie
3436936349
Remove maxWidth for png exports 2022-11-17 18:30:02 -08:00
Bernard Xie
6bec385811
TODO: somehow defer error reporting 2022-11-17 18:23:44 -08:00
Bernard Xie
3dc999e12c
Revert "Use xdefer to append issue creation message"
This reverts commit 49f0a049fe.
2022-11-17 18:19:00 -08:00
Bernard Xie
49f0a049fe
Use xdefer to append issue creation message 2022-11-17 17:22:08 -08:00
Bernard Xie
3f517fd1c3
obfuscate Playwright from errors 2022-11-17 16:56:38 -08:00
Bernard Xie
6a00cfb005
Report playwright installation errors 2022-11-17 16:49:07 -08:00
Bernard Xie
c2d8d17f46
Cleanup png.Playwright.Init 2022-11-17 16:41:28 -08:00
Bernard Xie
e9d915f8a8
Remove context from Playwright object 2022-11-17 14:55:43 -08:00
Bernard Xie
93ed44c978
handle cleanup error correctly 2022-11-17 14:24:59 -08:00
Bernard Xie
530c70445a
Update help, manpages, and cleanup 2022-11-17 14:13:23 -08:00
Bernard Xie
0e70c0baa5
Small tweaks 2022-11-17 11:34:14 -08:00
Bernard Xie
6ef4246565
create Playwright struct, use BrowserContext 2022-11-17 11:25:07 -08:00
Alexander Wang
052b461b03
2022-11-16 10:33:57PM 2022-11-16 22:33:57 -08:00
Bernard Xie
c3a4c9aa1c
Use Playwright to export images to png 2022-11-16 17:41:53 -08:00
Alexander Wang
d90625dc0a
2022-11-16 04:55:12PM 2022-11-16 16:55:12 -08:00
Alexander Wang
e1846b0e4a
2022-11-16 04:48:19PM 2022-11-16 16:48:19 -08:00
Alexander Wang
06fa709461
2022-11-16 04:42:39PM 2022-11-16 16:42:39 -08:00
Alexander Wang
ff800e1564
Merge branch 'master' into alixander/flag-env-var 2022-11-16 16:31:16 -08:00
Alexander Wang
bded5b13fa
[ci-base] cleanup 2022-11-14 19:05:23 -08:00
Alexander Wang
4d4a00743d
2022-11-14 04:35:22PM 2022-11-14 16:35:22 -08:00
Anmol Sethi
46f6fdad94 install.sh: Get installs working 2022-11-14 02:13:37 -08:00
Gavin Nishizawa
8cc5e733f9 render 3d keyword 2022-11-10 11:36:32 -08:00
Anmol Sethi
0ada291513 cmd/version -> lib/version 2022-11-07 11:39:27 -08:00
Alexander Wang
524c089a74 oss
Co-authored-by: Anmol Sethi <hi@nhooyr.io>
2022-11-03 06:54:49 -07:00