This commit is contained in:
Alexander Wang 2023-03-01 11:27:58 -08:00
parent 5c96ffe6a1
commit 9fd773bbb7
No known key found for this signature in database
GPG key ID: D89FA31966BDBECE

View file

@ -327,7 +327,7 @@ func (c *compiler) compileReserved(attrs *d2graph.Attributes, f *d2ir.Field) {
attrs.Link = &d2graph.Scalar{} attrs.Link = &d2graph.Scalar{}
attrs.Link.Value = scalar.ScalarString() attrs.Link.Value = scalar.ScalarString()
attrs.Link.MapKey = f.LastPrimaryKey() attrs.Link.MapKey = f.LastPrimaryKey()
// TODO I think these all need the rank actually // TODO I think all the attributes need the range actually
attrs.Link.MapKey.Range = scalar.GetRange() attrs.Link.MapKey.Range = scalar.GetRange()
case "direction": case "direction":
dirs := []string{"up", "down", "right", "left"} dirs := []string{"up", "down", "right", "left"}