Commit graph

150 commits

Author SHA1 Message Date
Alexander Wang
905a9317a2
fix 2023-06-26 10:51:07 -07:00
Alexander Wang
5be1f6c187
cleanup 2023-06-26 10:39:38 -07:00
Alexander Wang
09d1ec6314
reimplement 2023-06-25 23:10:56 -07:00
Alexander Wang
757f292a20
edge works 2023-06-25 20:36:10 -07:00
Alexander Wang
6749115ce2
reappear works 2023-06-25 18:59:53 -07:00
Alexander Wang
48bb6df3fe
save 2023-06-25 18:43:30 -07:00
Alexander Wang
80ddea94fa
set on edge. fix arrowhead setting case 2023-06-25 11:51:21 -07:00
Alexander Wang
6f9e478f59
label and icon position attributes 2023-06-22 16:13:08 -07:00
Alexander Wang
21d2c44413
set wip 2023-06-20 18:56:03 -07:00
Alexander Wang
a25f418c12
new implementation 2023-06-20 18:56:02 -07:00
Alexander Wang
1ff119d803
baseAST 2023-06-20 18:56:02 -07:00
Alexander Wang
c790ddd172
fix 2023-06-18 11:19:37 -07:00
Alexander Wang
77911aa313
Merge pull request #1414 from alixander/board-ast
use right AST for nested board
2023-06-17 22:22:57 -07:00
Alexander Wang
b30f9702bd
fix shape composite 2023-06-16 16:50:16 -07:00
Alexander Wang
64daf4643f
use right AST 2023-06-16 16:23:57 -07:00
Alexander Wang
8b8afb2638
fix idval edge case 2023-06-12 11:26:51 -07:00
Anmol Sethi
1f891a3c9e
d2ir: Fix for windows
Closes #1388
2023-06-09 19:45:31 -07:00
Gavin Nishizawa
28be902870
don't consider tooltip value a valid url if host is empty 2023-06-09 14:10:51 -07:00
Alexander Wang
a283e619bb
prevent bad constraint usage 2023-06-08 11:07:46 -07:00
Alexander Wang
538812f928
Merge branch 'master' into imports 2023-06-07 15:38:52 -07:00
Alexander Wang
0d4392eac2
add class array footgun 2023-06-06 20:24:47 -07:00
Anmol Sethi
de0a863e9f
d2: Fix nested import spread ghost container bug 2023-06-06 15:09:27 -07:00
Anmol Sethi
111759f6bd
d2cli: Pass path for imports correctly 2023-06-06 13:44:41 -07:00
Anmol Sethi
2fcc9ed140
d2ir: Compile imports
Works as so:

index.d2:
```d2
x: @x
```

x.d2:
```d2
label: meow
shape: circle
```

TODO:

- [ ] Correctly import into fields by handling the scenarios/steps overlay.
      - And links.
- [ ] Test every kind of import.
2023-06-04 23:31:18 -07:00
satoqz
78995c38bd
Merge branch 'terrastruct:master' into master 2023-06-03 13:57:52 +02:00
Bernard Xie
cd09aba54f
trim space 2023-06-02 10:42:44 -07:00
Bernard Xie
3db70bb31d
Update compile.go 2023-06-01 18:42:43 -07:00
Alexander Wang
6d2b77170b
fix arrowhead overriding 2023-06-01 17:11:11 -07:00
Alexander Wang
3afbf724f0
fix 2023-05-16 10:45:35 -07:00
Gavin Nishizawa
aff2c5c68e
layout nested grids 2023-05-10 12:57:38 -07:00
satoqz
14f88e2db9
address code review 2023-05-03 13:42:31 +02:00
satoqz
fd8eee7219
implement compiler changes 2023-05-01 13:59:57 +02:00
Alexander Wang
b08431b73a
Merge pull request #1256 from alixander/class-array
implement arrays for classes
2023-04-27 15:21:06 -07:00
Alexander Wang
7c401a4806
implement arrays for classes
update

changelog
2023-04-27 15:12:39 -07:00
Alexander Wang
72b0f62bf0
fix test 2023-04-27 11:58:42 -07:00
Alexander Wang
595fafc4c8
fix class
style validation

changelog
2023-04-27 11:48:07 -07:00
Alexander Wang
16478fd894
fix classes panic 2023-04-26 12:40:42 -07:00
gavin-ts
a78698610c
Merge pull request #1198 from gavin-ts/refactor-attributes
refactor d2graph.Attributes
2023-04-14 20:18:30 -07:00
Andreas Deininger
6ae417cde9
Fixing typos
Signed-off-by: Andreas Deininger <andreas@deininger.net>
2023-04-14 07:48:22 +02:00
Gavin Nishizawa
214c95eefc
refactor d2graph.Attributes 2023-04-13 20:04:55 -07:00
Gavin Nishizawa
c0e164e44b
rename to horizontal-gap and vertical-gap 2023-04-12 13:51:04 -07:00
Gavin Nishizawa
c20c122ee4
add grid-gap keywords 2023-04-10 18:18:48 -07:00
Stoica Alex
a260068d2c
Add text-transform attribute to the style block
This provides an option to override the functionality provided by the
theme, or apply `text-transform` outside of the theme.

The functionality of the `text-transform` is as below:

- `text-transform: none` - will disable **any** transformation (like the uppercasing by `terminal` theme)
- `text-transform: uppercase` (uppercase not upper as per your message) - will force all characters into uppercase.
- `text-transform: lowercase` - will force all characters into lowercase.
- `text-transform: capitalize` - will uppercase the first letter of every word

In addition, this commit introduces:
- helper methods on the `d2graph.Style` struct to determine the type of
  `text-transform` to be applied.
- `ApplyTextTransform` method on the `d2graph.Attributes` which will
  transform the `Label.Value` to the correct text case.
2023-04-08 18:56:13 +01:00
Alexander Wang
305c72d239
implement classes 2023-04-07 09:57:51 -07:00
donglixiaoche
b2f905efb8
Merge branch 'master' into near-keys-for-container
Conflicts:
	d2layouts/d2near/layout.go
2023-04-07 10:40:40 +08:00
Gavin Nishizawa
a75d4dd0b9
update keywords rows -> grid-rows 2023-04-06 15:48:01 -07:00
Gavin Nishizawa
37fc3ea8e0
cleanup 2023-04-06 15:37:35 -07:00
donglixiaoche
e61629e692
fix: cr 2023-04-06 05:00:12 +08:00
Gavin Nishizawa
06a942cf99
rename to grid diagram 2023-04-05 11:15:52 -07:00
Gavin Nishizawa
04775c8491
validate descendants 2023-04-04 21:00:40 -07:00