refactored Shape & connection renderers
This commit is contained in:
parent
cb489a4ac0
commit
1f5508bf6d
8 changed files with 208 additions and 231 deletions
|
|
@ -194,11 +194,8 @@ func applyStyles(shape *d2target.Shape, obj *d2graph.Object) {
|
|||
if obj.Style.DoubleBorder != nil {
|
||||
shape.DoubleBorder, _ = strconv.ParseBool(obj.Style.DoubleBorder.Value)
|
||||
}
|
||||
if obj.IconStyle != (d2graph.Style{}) {
|
||||
shape.IconStyle = &d2target.ShapeIconStyle{}
|
||||
}
|
||||
if obj.IconStyle.BorderRadius != nil {
|
||||
shape.IconStyle.BorderRadius, _ = strconv.Atoi(obj.IconStyle.BorderRadius.Value)
|
||||
shape.IconBorderRadius, _ = strconv.Atoi(obj.IconStyle.BorderRadius.Value)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -853,25 +853,18 @@ func drawConnection(writer io.Writer, diagramHash string, connection d2target.Co
|
|||
if connection.Icon != nil {
|
||||
iconPos := connection.GetIconPosition()
|
||||
if iconPos != nil {
|
||||
connectionIconClipPath := ""
|
||||
if connection.IconBorderRadius != 0 {
|
||||
fmt.Fprintf(writer, `<image href="%s" x="%f" y="%f" width="%d" height="%d" clip-path="inset(0 round %fpx)" />`,
|
||||
html.EscapeString(connection.Icon.String()),
|
||||
iconPos.X,
|
||||
iconPos.Y,
|
||||
d2target.DEFAULT_ICON_SIZE,
|
||||
d2target.DEFAULT_ICON_SIZE,
|
||||
connection.IconBorderRadius,
|
||||
)
|
||||
} else {
|
||||
|
||||
fmt.Fprintf(writer, `<image href="%s" x="%f" y="%f" width="%d" height="%d" />`,
|
||||
html.EscapeString(connection.Icon.String()),
|
||||
iconPos.X,
|
||||
iconPos.Y,
|
||||
d2target.DEFAULT_ICON_SIZE,
|
||||
d2target.DEFAULT_ICON_SIZE,
|
||||
)
|
||||
connectionIconClipPath = fmt.Sprintf(` clip-path="inset(0 round %fpx)"`, connection.IconBorderRadius)
|
||||
}
|
||||
fmt.Fprintf(writer, `<image href="%s" x="%f" y="%f" width="%d" height="%d"%s />`,
|
||||
html.EscapeString(connection.Icon.String()),
|
||||
iconPos.X,
|
||||
iconPos.Y,
|
||||
d2target.DEFAULT_ICON_SIZE,
|
||||
d2target.DEFAULT_ICON_SIZE,
|
||||
connectionIconClipPath,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1447,9 +1440,10 @@ func drawShape(writer, appendixWriter io.Writer, diagramHash string, targetShape
|
|||
el.Fill = fill
|
||||
el.Stroke = stroke
|
||||
el.Style = style
|
||||
if targetShape.IconStyle != nil && targetShape.IconStyle.BorderRadius != 0 {
|
||||
fmt.Fprint(writer, clipPathForIconBorderRadius(diagramHash, targetShape))
|
||||
el.ClipPath = fmt.Sprintf("%v-%v-icon", diagramHash, targetShape.ID)
|
||||
if targetShape.IconBorderRadius != 0 {
|
||||
clipPathId := fmt.Sprintf("%v-%v-icon", diagramHash, svg.SVGID(targetShape.ID))
|
||||
fmt.Fprint(writer, applyIconBorderRadius(clipPathId, targetShape))
|
||||
el.ClipPath = clipPathId
|
||||
}
|
||||
fmt.Fprint(writer, el.Render())
|
||||
|
||||
|
|
@ -1643,24 +1637,18 @@ func drawShape(writer, appendixWriter io.Writer, diagramHash string, targetShape
|
|||
|
||||
tl := iconPosition.GetPointOnBox(box, label.PADDING, float64(iconSize), float64(iconSize))
|
||||
|
||||
if targetShape.IconStyle != nil && targetShape.IconStyle.BorderRadius != 0 {
|
||||
fmt.Fprintf(writer, `<image href="%s" x="%f" y="%f" width="%d" height="%d" clip-path="inset(0 round %dpx)" />`,
|
||||
html.EscapeString(targetShape.Icon.String()),
|
||||
tl.X,
|
||||
tl.Y,
|
||||
iconSize,
|
||||
iconSize,
|
||||
targetShape.IconStyle.BorderRadius,
|
||||
)
|
||||
} else {
|
||||
fmt.Fprintf(writer, `<image href="%s" x="%f" y="%f" width="%d" height="%d" />`,
|
||||
html.EscapeString(targetShape.Icon.String()),
|
||||
tl.X,
|
||||
tl.Y,
|
||||
iconSize,
|
||||
iconSize,
|
||||
)
|
||||
shapeIconClipPath := ""
|
||||
if targetShape.IconBorderRadius != 0 {
|
||||
shapeIconClipPath = fmt.Sprintf(` clip-path="inset(0 round %dpx)"`, targetShape.IconBorderRadius)
|
||||
}
|
||||
fmt.Fprintf(writer, `<image href="%s" x="%f" y="%f" width="%d" height="%d"%s />`,
|
||||
html.EscapeString(targetShape.Icon.String()),
|
||||
tl.X,
|
||||
tl.Y,
|
||||
iconSize,
|
||||
iconSize,
|
||||
shapeIconClipPath,
|
||||
)
|
||||
}
|
||||
|
||||
if targetShape.Label != "" && targetShape.Opacity != 0 {
|
||||
|
|
@ -1889,6 +1877,28 @@ func drawShape(writer, appendixWriter io.Writer, diagramHash string, targetShape
|
|||
return labelMask, nil
|
||||
}
|
||||
|
||||
func applyIconBorderRadius(clipPathId string, shape d2target.Shape) string {
|
||||
box := geo.NewBox(
|
||||
geo.NewPoint(float64(shape.Pos.X), float64(shape.Pos.Y)),
|
||||
float64(shape.Width),
|
||||
float64(shape.Height),
|
||||
)
|
||||
topX, topY := box.TopLeft.X+box.Width, box.TopLeft.Y
|
||||
|
||||
out := fmt.Sprintf(`<clipPath id="%s">`, clipPathId)
|
||||
out += fmt.Sprintf(`<path d="M %f %f L %f %f S %f %f %f %f `, box.TopLeft.X, box.TopLeft.Y+float64(shape.IconBorderRadius), box.TopLeft.X, box.TopLeft.Y+float64(shape.IconBorderRadius), box.TopLeft.X, box.TopLeft.Y, box.TopLeft.X+float64(shape.IconBorderRadius), box.TopLeft.Y)
|
||||
out += fmt.Sprintf(`L %f %f L %f %f `, box.TopLeft.X+box.Width-float64(shape.IconBorderRadius), box.TopLeft.Y, topX-float64(shape.IconBorderRadius), topY)
|
||||
|
||||
out += fmt.Sprintf(`S %f %f %f %f `, topX, topY, topX, topY+float64(shape.IconBorderRadius))
|
||||
out += fmt.Sprintf(`L %f %f `, topX, topY+box.Height-float64(shape.IconBorderRadius))
|
||||
out += fmt.Sprintf(`S %f % f %f %f `, topX, topY+box.Height, topX-float64(shape.IconBorderRadius), topY+box.Height)
|
||||
out += fmt.Sprintf(`L %f %f `, box.TopLeft.X+float64(shape.IconBorderRadius), box.TopLeft.Y+box.Height)
|
||||
out += fmt.Sprintf(`S %f %f %f %f`, box.TopLeft.X, box.TopLeft.Y+box.Height, box.TopLeft.X, box.TopLeft.Y+box.Height-float64(shape.IconBorderRadius))
|
||||
out += fmt.Sprintf(`L %f %f`, box.TopLeft.X, box.TopLeft.Y+float64(shape.IconBorderRadius))
|
||||
out += fmt.Sprintf(`Z %f %f" `, box.TopLeft.X, box.TopLeft.Y)
|
||||
return out + `fill="none" /> </clipPath>`
|
||||
}
|
||||
|
||||
func addAppendixItems(writer io.Writer, diagramHash string, targetShape d2target.Shape, s shape.Shape) {
|
||||
var p1, p2 *geo.Point
|
||||
if targetShape.Tooltip != "" || targetShape.Link != "" {
|
||||
|
|
|
|||
|
|
@ -41,28 +41,6 @@ func clipPathForBorderRadius(diagramHash string, shape d2target.Shape) string {
|
|||
return out + `fill="none" /> </clipPath>`
|
||||
}
|
||||
|
||||
func clipPathForIconBorderRadius(diagramHash string, shape d2target.Shape) string {
|
||||
box := geo.NewBox(
|
||||
geo.NewPoint(float64(shape.Pos.X), float64(shape.Pos.Y)),
|
||||
float64(shape.Width),
|
||||
float64(shape.Height),
|
||||
)
|
||||
topX, topY := box.TopLeft.X+box.Width, box.TopLeft.Y
|
||||
|
||||
out := fmt.Sprintf(`<clipPath id="%v-%v-icon">`, diagramHash, shape.ID)
|
||||
out += fmt.Sprintf(`<path d="M %f %f L %f %f S %f %f %f %f `, box.TopLeft.X, box.TopLeft.Y+float64(shape.IconStyle.BorderRadius), box.TopLeft.X, box.TopLeft.Y+float64(shape.IconStyle.BorderRadius), box.TopLeft.X, box.TopLeft.Y, box.TopLeft.X+float64(shape.IconStyle.BorderRadius), box.TopLeft.Y)
|
||||
out += fmt.Sprintf(`L %f %f L %f %f `, box.TopLeft.X+box.Width-float64(shape.IconStyle.BorderRadius), box.TopLeft.Y, topX-float64(shape.IconStyle.BorderRadius), topY)
|
||||
|
||||
out += fmt.Sprintf(`S %f %f %f %f `, topX, topY, topX, topY+float64(shape.IconStyle.BorderRadius))
|
||||
out += fmt.Sprintf(`L %f %f `, topX, topY+box.Height-float64(shape.IconStyle.BorderRadius))
|
||||
out += fmt.Sprintf(`S %f % f %f %f `, topX, topY+box.Height, topX-float64(shape.IconStyle.BorderRadius), topY+box.Height)
|
||||
out += fmt.Sprintf(`L %f %f `, box.TopLeft.X+float64(shape.IconStyle.BorderRadius), box.TopLeft.Y+box.Height)
|
||||
out += fmt.Sprintf(`S %f %f %f %f`, box.TopLeft.X, box.TopLeft.Y+box.Height, box.TopLeft.X, box.TopLeft.Y+box.Height-float64(shape.IconStyle.BorderRadius))
|
||||
out += fmt.Sprintf(`L %f %f`, box.TopLeft.X, box.TopLeft.Y+float64(shape.IconStyle.BorderRadius))
|
||||
out += fmt.Sprintf(`Z %f %f" `, box.TopLeft.X, box.TopLeft.Y)
|
||||
return out + `fill="none" /> </clipPath>`
|
||||
}
|
||||
|
||||
func tableHeader(diagramHash string, shape d2target.Shape, box *geo.Box, text string, textWidth, textHeight, fontSize float64, inlineTheme *d2themes.Theme) string {
|
||||
rectEl := d2themes.NewThemableElement("rect", inlineTheme)
|
||||
rectEl.X, rectEl.Y = box.TopLeft.X, box.TopLeft.Y
|
||||
|
|
|
|||
|
|
@ -503,12 +503,12 @@ type Shape struct {
|
|||
Multiple bool `json:"multiple"`
|
||||
DoubleBorder bool `json:"double-border"`
|
||||
|
||||
Tooltip string `json:"tooltip"`
|
||||
Link string `json:"link"`
|
||||
PrettyLink string `json:"prettyLink,omitempty"`
|
||||
Icon *url.URL `json:"icon"`
|
||||
IconStyle *ShapeIconStyle `json:"iconStyle,omitempty"`
|
||||
IconPosition string `json:"iconPosition"`
|
||||
Tooltip string `json:"tooltip"`
|
||||
Link string `json:"link"`
|
||||
PrettyLink string `json:"prettyLink,omitempty"`
|
||||
Icon *url.URL `json:"icon"`
|
||||
IconBorderRadius int `json:"iconBorderRadius,omitempty"`
|
||||
IconPosition string `json:"iconPosition"`
|
||||
|
||||
// Whether the shape should allow shapes behind it to bleed through
|
||||
// Currently just used for sequence diagram groups
|
||||
|
|
@ -532,10 +532,6 @@ type Shape struct {
|
|||
NeutralAccentColor string `json:"neutralAccentColor,omitempty"`
|
||||
}
|
||||
|
||||
type ShapeIconStyle struct {
|
||||
BorderRadius int `json:"borderRadius"`
|
||||
}
|
||||
|
||||
func (s Shape) GetFontColor() string {
|
||||
if s.Type == ShapeClass || s.Type == ShapeSQLTable {
|
||||
if !color.IsThemeColor(s.Color) {
|
||||
|
|
|
|||
4
e2etests/testdata/txtar/icon-style/dagre/board.exp.json
generated
vendored
4
e2etests/testdata/txtar/icon-style/dagre/board.exp.json
generated
vendored
|
|
@ -46,9 +46,7 @@
|
|||
"Fragment": "",
|
||||
"RawFragment": ""
|
||||
},
|
||||
"iconStyle": {
|
||||
"borderRadius": 20
|
||||
},
|
||||
"iconBorderRadius": 20,
|
||||
"iconPosition": "INSIDE_MIDDLE_CENTER",
|
||||
"blend": false,
|
||||
"fields": null,
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" data-d2-version="v0.6.9-HEAD" preserveAspectRatio="xMinYMin meet" viewBox="0 0 130 155"><svg class="d2-2468484529 d2-svg" width="130" height="155" viewBox="-1 -1 130 155"><rect x="-1.000000" y="-1.000000" width="130.000000" height="155.000000" rx="0.000000" fill="#FFFFFF" class=" fill-N7" stroke-width="0" /><style type="text/css"><![CDATA[
|
||||
.d2-2468484529 .text-bold {
|
||||
font-family: "d2-2468484529-font-bold";
|
||||
<?xml version="1.0" encoding="utf-8"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" data-d2-version="v0.6.9-HEAD" preserveAspectRatio="xMinYMin meet" viewBox="0 0 130 155"><svg class="d2-2397759342 d2-svg" width="130" height="155" viewBox="-1 -1 130 155"><rect x="-1.000000" y="-1.000000" width="130.000000" height="155.000000" rx="0.000000" fill="#FFFFFF" class=" fill-N7" stroke-width="0" /><style type="text/css"><![CDATA[
|
||||
.d2-2397759342 .text-bold {
|
||||
font-family: "d2-2397759342-font-bold";
|
||||
}
|
||||
@font-face {
|
||||
font-family: d2-2468484529-font-bold;
|
||||
font-family: d2-2397759342-font-bold;
|
||||
src: url("data:application/font-woff;base64,d09GRgABAAAAAAeEAAoAAAAADHAAAguFAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAAA9AAAAGAAAABgXxHXrmNtYXAAAAFUAAAAQwAAAEgAggEsZ2x5ZgAAAZgAAAH9AAACLMAty6VoZWFkAAADmAAAADYAAAA2G38e1GhoZWEAAAPQAAAAJAAAACQKfwXFaG10eAAAA/QAAAAYAAAAGA2yAWRsb2NhAAAEDAAAAA4AAAAOAkIBpm1heHAAAAQcAAAAIAAAACAAHgD3bmFtZQAABDwAAAMoAAAIKgjwVkFwb3N0AAAHZAAAAB0AAAAg/9EAMgADAioCvAAFAAACigJYAAAASwKKAlgAAAFeADIBKQAAAgsHAwMEAwICBGAAAvcAAAADAAAAAAAAAABBREJPACAAIP//Au7/BgAAA9gBESAAAZ8AAAAAAfAClAAAACAAA3icJMq7DYQwAAUw53NSihuJZUApYR862PQhgWujaAr+ugXDULGZjgSraU9y58r53k9RNd2PBwAA//8BAAD//3bDC6gAeJxMkT1v01AUhs+9cWwaWY3s+COJajn2bXzjhipNHNuIRG2jtKmgaRUGaKQCFhlYyodohZQyIxbElA5MTDAgsTBSKcxIZUTiD/ADEIqYEgc5pYjlvtM9z3neA3HoAOAePoEYzEESRJABHMEQ8g6lhPMd3ydqzKdI4DpYDN+9pTZj28xS7rX+LAjQzl18Mnmwv9Pr/Q5qtfDNp9PwFTo6BcCwNB2hb2gMGSAAqmm5Vc+3LGKyHPU8p6LIA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rAuV3ZlF2ZkBEQm6srkgIxdOJXyTvDqc4umSyXY98uhHhSxzfybvklsr2Kzz9ujVmm3mXbALm6mesrsS6udYEx7ot87b4VrjgFe5e/dlk8v4ehfpfKPIFV5p/qEklYpLg3C4tfCnId49xHOncwVdHvqdDnxO6vKGvc4sePVqc0afDa/l26eH4mi5nHMujI7y4a0sxZ/yA4xs6siljR9afxcQifiYzdefiOFMdUzL1vGTuqdZIFd59wuUOpRvqyOUz0B6Vlk7zS7RnASNTRSaGU/VyqY3c+heaIqaqpZzt7X25DXPbveUW35Bqh0u1LjiVk1swet9UvXc0c60fj4CQlAtZDEiZ0qDgRrzPCbgixnGs7p1oSwpaK58yz41UEjEVgw6J4szI9Dcw3fjGfbChe2dvSSj/kunlqqr7ZHHq1e2M3qh7yzvfuhytTaBhU03X1DQQ18S0H2mn1vn78s31uqU85YiUmPBfL8AzPJrsc8AhY2UY6GZur0NTL0STlxyq+ksiWQ2l58giHODxnAMOeMnzd/q4ZOKMi1txWc/d4pgjuhx+UBUL+y5HvF59+/+sv4tpU7U4nq5OL+49xSd3UOsX2rPb97KniZWTmFu02604I2BacnG76zW5x3j/AAAA//8BAAD///S3T1F4nGJgZgCD/+cYjBiwAAAAAAD//wEAAP//LwECAwAAAA==");
|
||||
}]]></style><style type="text/css"><![CDATA[.shape {
|
||||
shape-rendering: geometricPrecision;
|
||||
|
|
@ -18,78 +18,78 @@
|
|||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.d2-2468484529 .fill-N1{fill:#0A0F25;}
|
||||
.d2-2468484529 .fill-N2{fill:#676C7E;}
|
||||
.d2-2468484529 .fill-N3{fill:#9499AB;}
|
||||
.d2-2468484529 .fill-N4{fill:#CFD2DD;}
|
||||
.d2-2468484529 .fill-N5{fill:#DEE1EB;}
|
||||
.d2-2468484529 .fill-N6{fill:#EEF1F8;}
|
||||
.d2-2468484529 .fill-N7{fill:#FFFFFF;}
|
||||
.d2-2468484529 .fill-B1{fill:#0D32B2;}
|
||||
.d2-2468484529 .fill-B2{fill:#0D32B2;}
|
||||
.d2-2468484529 .fill-B3{fill:#E3E9FD;}
|
||||
.d2-2468484529 .fill-B4{fill:#E3E9FD;}
|
||||
.d2-2468484529 .fill-B5{fill:#EDF0FD;}
|
||||
.d2-2468484529 .fill-B6{fill:#F7F8FE;}
|
||||
.d2-2468484529 .fill-AA2{fill:#4A6FF3;}
|
||||
.d2-2468484529 .fill-AA4{fill:#EDF0FD;}
|
||||
.d2-2468484529 .fill-AA5{fill:#F7F8FE;}
|
||||
.d2-2468484529 .fill-AB4{fill:#EDF0FD;}
|
||||
.d2-2468484529 .fill-AB5{fill:#F7F8FE;}
|
||||
.d2-2468484529 .stroke-N1{stroke:#0A0F25;}
|
||||
.d2-2468484529 .stroke-N2{stroke:#676C7E;}
|
||||
.d2-2468484529 .stroke-N3{stroke:#9499AB;}
|
||||
.d2-2468484529 .stroke-N4{stroke:#CFD2DD;}
|
||||
.d2-2468484529 .stroke-N5{stroke:#DEE1EB;}
|
||||
.d2-2468484529 .stroke-N6{stroke:#EEF1F8;}
|
||||
.d2-2468484529 .stroke-N7{stroke:#FFFFFF;}
|
||||
.d2-2468484529 .stroke-B1{stroke:#0D32B2;}
|
||||
.d2-2468484529 .stroke-B2{stroke:#0D32B2;}
|
||||
.d2-2468484529 .stroke-B3{stroke:#E3E9FD;}
|
||||
.d2-2468484529 .stroke-B4{stroke:#E3E9FD;}
|
||||
.d2-2468484529 .stroke-B5{stroke:#EDF0FD;}
|
||||
.d2-2468484529 .stroke-B6{stroke:#F7F8FE;}
|
||||
.d2-2468484529 .stroke-AA2{stroke:#4A6FF3;}
|
||||
.d2-2468484529 .stroke-AA4{stroke:#EDF0FD;}
|
||||
.d2-2468484529 .stroke-AA5{stroke:#F7F8FE;}
|
||||
.d2-2468484529 .stroke-AB4{stroke:#EDF0FD;}
|
||||
.d2-2468484529 .stroke-AB5{stroke:#F7F8FE;}
|
||||
.d2-2468484529 .background-color-N1{background-color:#0A0F25;}
|
||||
.d2-2468484529 .background-color-N2{background-color:#676C7E;}
|
||||
.d2-2468484529 .background-color-N3{background-color:#9499AB;}
|
||||
.d2-2468484529 .background-color-N4{background-color:#CFD2DD;}
|
||||
.d2-2468484529 .background-color-N5{background-color:#DEE1EB;}
|
||||
.d2-2468484529 .background-color-N6{background-color:#EEF1F8;}
|
||||
.d2-2468484529 .background-color-N7{background-color:#FFFFFF;}
|
||||
.d2-2468484529 .background-color-B1{background-color:#0D32B2;}
|
||||
.d2-2468484529 .background-color-B2{background-color:#0D32B2;}
|
||||
.d2-2468484529 .background-color-B3{background-color:#E3E9FD;}
|
||||
.d2-2468484529 .background-color-B4{background-color:#E3E9FD;}
|
||||
.d2-2468484529 .background-color-B5{background-color:#EDF0FD;}
|
||||
.d2-2468484529 .background-color-B6{background-color:#F7F8FE;}
|
||||
.d2-2468484529 .background-color-AA2{background-color:#4A6FF3;}
|
||||
.d2-2468484529 .background-color-AA4{background-color:#EDF0FD;}
|
||||
.d2-2468484529 .background-color-AA5{background-color:#F7F8FE;}
|
||||
.d2-2468484529 .background-color-AB4{background-color:#EDF0FD;}
|
||||
.d2-2468484529 .background-color-AB5{background-color:#F7F8FE;}
|
||||
.d2-2468484529 .color-N1{color:#0A0F25;}
|
||||
.d2-2468484529 .color-N2{color:#676C7E;}
|
||||
.d2-2468484529 .color-N3{color:#9499AB;}
|
||||
.d2-2468484529 .color-N4{color:#CFD2DD;}
|
||||
.d2-2468484529 .color-N5{color:#DEE1EB;}
|
||||
.d2-2468484529 .color-N6{color:#EEF1F8;}
|
||||
.d2-2468484529 .color-N7{color:#FFFFFF;}
|
||||
.d2-2468484529 .color-B1{color:#0D32B2;}
|
||||
.d2-2468484529 .color-B2{color:#0D32B2;}
|
||||
.d2-2468484529 .color-B3{color:#E3E9FD;}
|
||||
.d2-2468484529 .color-B4{color:#E3E9FD;}
|
||||
.d2-2468484529 .color-B5{color:#EDF0FD;}
|
||||
.d2-2468484529 .color-B6{color:#F7F8FE;}
|
||||
.d2-2468484529 .color-AA2{color:#4A6FF3;}
|
||||
.d2-2468484529 .color-AA4{color:#EDF0FD;}
|
||||
.d2-2468484529 .color-AA5{color:#F7F8FE;}
|
||||
.d2-2468484529 .color-AB4{color:#EDF0FD;}
|
||||
.d2-2468484529 .color-AB5{color:#F7F8FE;}.appendix text.text{fill:#0A0F25}.md{--color-fg-default:#0A0F25;--color-fg-muted:#676C7E;--color-fg-subtle:#9499AB;--color-canvas-default:#FFFFFF;--color-canvas-subtle:#EEF1F8;--color-border-default:#0D32B2;--color-border-muted:#0D32B2;--color-neutral-muted:#EEF1F8;--color-accent-fg:#0D32B2;--color-accent-emphasis:#0D32B2;--color-attention-subtle:#676C7E;--color-danger-fg:red;}.sketch-overlay-B1{fill:url(#streaks-darker-d2-2468484529);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker-d2-2468484529);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright-d2-2468484529);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright-d2-2468484529);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright-d2-2468484529);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright-d2-2468484529);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark-d2-2468484529);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright-d2-2468484529);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright-d2-2468484529);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright-d2-2468484529);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright-d2-2468484529);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker-d2-2468484529);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark-d2-2468484529);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal-d2-2468484529);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal-d2-2468484529);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright-d2-2468484529);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright-d2-2468484529);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright-d2-2468484529);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]></style><g class="bGFtYmRh"><g class="shape" ><clipPath id="d2-2468484529-lambda-icon"><path d="M 0.000000 20.000000 L 0.000000 20.000000 S 0.000000 0.000000 20.000000 0.000000 L 108.000000 0.000000 L 108.000000 0.000000 S 128.000000 0.000000 128.000000 20.000000 L 128.000000 108.000000 S 128.000000 128.000000 108.000000 128.000000 L 20.000000 128.000000 S 0.000000 128.000000 0.000000 108.000000L 0.000000 20.000000Z 0.000000 0.000000" fill="none" /> </clipPath><image href="https://icons.terrastruct.com/aws%2FCompute%2FAWS-Lambda.svg" x="0.000000" y="0.000000" width="128.000000" height="128.000000" stroke="#0D32B2" fill="#FFFFFF" class=" stroke-B1 fill-N7" style="stroke-width:2;" clip-path="url(#d2-2468484529-lambda-icon)" /></g><text x="64.000000" y="149.000000" fill="#0A0F25" class="text-bold fill-N1" style="text-anchor:middle;font-size:16px">lambda</text></g><mask id="d2-2468484529" maskUnits="userSpaceOnUse" x="-1" y="-1" width="130" height="155">
|
||||
.d2-2397759342 .fill-N1{fill:#0A0F25;}
|
||||
.d2-2397759342 .fill-N2{fill:#676C7E;}
|
||||
.d2-2397759342 .fill-N3{fill:#9499AB;}
|
||||
.d2-2397759342 .fill-N4{fill:#CFD2DD;}
|
||||
.d2-2397759342 .fill-N5{fill:#DEE1EB;}
|
||||
.d2-2397759342 .fill-N6{fill:#EEF1F8;}
|
||||
.d2-2397759342 .fill-N7{fill:#FFFFFF;}
|
||||
.d2-2397759342 .fill-B1{fill:#0D32B2;}
|
||||
.d2-2397759342 .fill-B2{fill:#0D32B2;}
|
||||
.d2-2397759342 .fill-B3{fill:#E3E9FD;}
|
||||
.d2-2397759342 .fill-B4{fill:#E3E9FD;}
|
||||
.d2-2397759342 .fill-B5{fill:#EDF0FD;}
|
||||
.d2-2397759342 .fill-B6{fill:#F7F8FE;}
|
||||
.d2-2397759342 .fill-AA2{fill:#4A6FF3;}
|
||||
.d2-2397759342 .fill-AA4{fill:#EDF0FD;}
|
||||
.d2-2397759342 .fill-AA5{fill:#F7F8FE;}
|
||||
.d2-2397759342 .fill-AB4{fill:#EDF0FD;}
|
||||
.d2-2397759342 .fill-AB5{fill:#F7F8FE;}
|
||||
.d2-2397759342 .stroke-N1{stroke:#0A0F25;}
|
||||
.d2-2397759342 .stroke-N2{stroke:#676C7E;}
|
||||
.d2-2397759342 .stroke-N3{stroke:#9499AB;}
|
||||
.d2-2397759342 .stroke-N4{stroke:#CFD2DD;}
|
||||
.d2-2397759342 .stroke-N5{stroke:#DEE1EB;}
|
||||
.d2-2397759342 .stroke-N6{stroke:#EEF1F8;}
|
||||
.d2-2397759342 .stroke-N7{stroke:#FFFFFF;}
|
||||
.d2-2397759342 .stroke-B1{stroke:#0D32B2;}
|
||||
.d2-2397759342 .stroke-B2{stroke:#0D32B2;}
|
||||
.d2-2397759342 .stroke-B3{stroke:#E3E9FD;}
|
||||
.d2-2397759342 .stroke-B4{stroke:#E3E9FD;}
|
||||
.d2-2397759342 .stroke-B5{stroke:#EDF0FD;}
|
||||
.d2-2397759342 .stroke-B6{stroke:#F7F8FE;}
|
||||
.d2-2397759342 .stroke-AA2{stroke:#4A6FF3;}
|
||||
.d2-2397759342 .stroke-AA4{stroke:#EDF0FD;}
|
||||
.d2-2397759342 .stroke-AA5{stroke:#F7F8FE;}
|
||||
.d2-2397759342 .stroke-AB4{stroke:#EDF0FD;}
|
||||
.d2-2397759342 .stroke-AB5{stroke:#F7F8FE;}
|
||||
.d2-2397759342 .background-color-N1{background-color:#0A0F25;}
|
||||
.d2-2397759342 .background-color-N2{background-color:#676C7E;}
|
||||
.d2-2397759342 .background-color-N3{background-color:#9499AB;}
|
||||
.d2-2397759342 .background-color-N4{background-color:#CFD2DD;}
|
||||
.d2-2397759342 .background-color-N5{background-color:#DEE1EB;}
|
||||
.d2-2397759342 .background-color-N6{background-color:#EEF1F8;}
|
||||
.d2-2397759342 .background-color-N7{background-color:#FFFFFF;}
|
||||
.d2-2397759342 .background-color-B1{background-color:#0D32B2;}
|
||||
.d2-2397759342 .background-color-B2{background-color:#0D32B2;}
|
||||
.d2-2397759342 .background-color-B3{background-color:#E3E9FD;}
|
||||
.d2-2397759342 .background-color-B4{background-color:#E3E9FD;}
|
||||
.d2-2397759342 .background-color-B5{background-color:#EDF0FD;}
|
||||
.d2-2397759342 .background-color-B6{background-color:#F7F8FE;}
|
||||
.d2-2397759342 .background-color-AA2{background-color:#4A6FF3;}
|
||||
.d2-2397759342 .background-color-AA4{background-color:#EDF0FD;}
|
||||
.d2-2397759342 .background-color-AA5{background-color:#F7F8FE;}
|
||||
.d2-2397759342 .background-color-AB4{background-color:#EDF0FD;}
|
||||
.d2-2397759342 .background-color-AB5{background-color:#F7F8FE;}
|
||||
.d2-2397759342 .color-N1{color:#0A0F25;}
|
||||
.d2-2397759342 .color-N2{color:#676C7E;}
|
||||
.d2-2397759342 .color-N3{color:#9499AB;}
|
||||
.d2-2397759342 .color-N4{color:#CFD2DD;}
|
||||
.d2-2397759342 .color-N5{color:#DEE1EB;}
|
||||
.d2-2397759342 .color-N6{color:#EEF1F8;}
|
||||
.d2-2397759342 .color-N7{color:#FFFFFF;}
|
||||
.d2-2397759342 .color-B1{color:#0D32B2;}
|
||||
.d2-2397759342 .color-B2{color:#0D32B2;}
|
||||
.d2-2397759342 .color-B3{color:#E3E9FD;}
|
||||
.d2-2397759342 .color-B4{color:#E3E9FD;}
|
||||
.d2-2397759342 .color-B5{color:#EDF0FD;}
|
||||
.d2-2397759342 .color-B6{color:#F7F8FE;}
|
||||
.d2-2397759342 .color-AA2{color:#4A6FF3;}
|
||||
.d2-2397759342 .color-AA4{color:#EDF0FD;}
|
||||
.d2-2397759342 .color-AA5{color:#F7F8FE;}
|
||||
.d2-2397759342 .color-AB4{color:#EDF0FD;}
|
||||
.d2-2397759342 .color-AB5{color:#F7F8FE;}.appendix text.text{fill:#0A0F25}.md{--color-fg-default:#0A0F25;--color-fg-muted:#676C7E;--color-fg-subtle:#9499AB;--color-canvas-default:#FFFFFF;--color-canvas-subtle:#EEF1F8;--color-border-default:#0D32B2;--color-border-muted:#0D32B2;--color-neutral-muted:#EEF1F8;--color-accent-fg:#0D32B2;--color-accent-emphasis:#0D32B2;--color-attention-subtle:#676C7E;--color-danger-fg:red;}.sketch-overlay-B1{fill:url(#streaks-darker-d2-2397759342);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker-d2-2397759342);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright-d2-2397759342);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright-d2-2397759342);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright-d2-2397759342);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright-d2-2397759342);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark-d2-2397759342);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright-d2-2397759342);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright-d2-2397759342);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright-d2-2397759342);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright-d2-2397759342);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker-d2-2397759342);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark-d2-2397759342);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal-d2-2397759342);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal-d2-2397759342);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright-d2-2397759342);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright-d2-2397759342);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright-d2-2397759342);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]></style><g class="bGFtYmRh"><g class="shape" ><clipPath id="d2-2397759342-NRQW2YTEME-icon"><path d="M 0.000000 20.000000 L 0.000000 20.000000 S 0.000000 0.000000 20.000000 0.000000 L 108.000000 0.000000 L 108.000000 0.000000 S 128.000000 0.000000 128.000000 20.000000 L 128.000000 108.000000 S 128.000000 128.000000 108.000000 128.000000 L 20.000000 128.000000 S 0.000000 128.000000 0.000000 108.000000L 0.000000 20.000000Z 0.000000 0.000000" fill="none" /> </clipPath><image href="https://icons.terrastruct.com/aws%2FCompute%2FAWS-Lambda.svg" x="0.000000" y="0.000000" width="128.000000" height="128.000000" stroke="#0D32B2" fill="#FFFFFF" class=" stroke-B1 fill-N7" style="stroke-width:2;" clip-path="url(#d2-2397759342-NRQW2YTEME-icon)" /></g><text x="64.000000" y="149.000000" fill="#0A0F25" class="text-bold fill-N1" style="text-anchor:middle;font-size:16px">lambda</text></g><mask id="d2-2397759342" maskUnits="userSpaceOnUse" x="-1" y="-1" width="130" height="155">
|
||||
<rect x="-1" y="-1" width="130" height="155" fill="white"></rect>
|
||||
<rect x="35.500000" y="133.000000" width="57" height="21" fill="rgba(0,0,0,0.75)"></rect>
|
||||
</mask></svg></svg>
|
||||
|
Before Width: | Height: | Size: 9.8 KiB After Width: | Height: | Size: 9.8 KiB |
4
e2etests/testdata/txtar/icon-style/elk/board.exp.json
generated
vendored
4
e2etests/testdata/txtar/icon-style/elk/board.exp.json
generated
vendored
|
|
@ -46,9 +46,7 @@
|
|||
"Fragment": "",
|
||||
"RawFragment": ""
|
||||
},
|
||||
"iconStyle": {
|
||||
"borderRadius": 20
|
||||
},
|
||||
"iconBorderRadius": 20,
|
||||
"iconPosition": "INSIDE_MIDDLE_CENTER",
|
||||
"blend": false,
|
||||
"fields": null,
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" data-d2-version="v0.6.9-HEAD" preserveAspectRatio="xMinYMin meet" viewBox="0 0 130 155"><svg class="d2-1884699753 d2-svg" width="130" height="155" viewBox="11 11 130 155"><rect x="11.000000" y="11.000000" width="130.000000" height="155.000000" rx="0.000000" fill="#FFFFFF" class=" fill-N7" stroke-width="0" /><style type="text/css"><![CDATA[
|
||||
.d2-1884699753 .text-bold {
|
||||
font-family: "d2-1884699753-font-bold";
|
||||
<?xml version="1.0" encoding="utf-8"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" data-d2-version="v0.6.9-HEAD" preserveAspectRatio="xMinYMin meet" viewBox="0 0 130 155"><svg class="d2-2677970358 d2-svg" width="130" height="155" viewBox="11 11 130 155"><rect x="11.000000" y="11.000000" width="130.000000" height="155.000000" rx="0.000000" fill="#FFFFFF" class=" fill-N7" stroke-width="0" /><style type="text/css"><![CDATA[
|
||||
.d2-2677970358 .text-bold {
|
||||
font-family: "d2-2677970358-font-bold";
|
||||
}
|
||||
@font-face {
|
||||
font-family: d2-1884699753-font-bold;
|
||||
font-family: d2-2677970358-font-bold;
|
||||
src: url("data:application/font-woff;base64,d09GRgABAAAAAAeEAAoAAAAADHAAAguFAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAAA9AAAAGAAAABgXxHXrmNtYXAAAAFUAAAAQwAAAEgAggEsZ2x5ZgAAAZgAAAH9AAACLMAty6VoZWFkAAADmAAAADYAAAA2G38e1GhoZWEAAAPQAAAAJAAAACQKfwXFaG10eAAAA/QAAAAYAAAAGA2yAWRsb2NhAAAEDAAAAA4AAAAOAkIBpm1heHAAAAQcAAAAIAAAACAAHgD3bmFtZQAABDwAAAMoAAAIKgjwVkFwb3N0AAAHZAAAAB0AAAAg/9EAMgADAioC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8BAAD///S3T1F4nGJgZgCD/+cYjBiwAAAAAAD//wEAAP//LwECAwAAAA==");
|
||||
}]]></style><style type="text/css"><![CDATA[.shape {
|
||||
shape-rendering: geometricPrecision;
|
||||
|
|
@ -18,78 +18,78 @@
|
|||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.d2-1884699753 .fill-N1{fill:#0A0F25;}
|
||||
.d2-1884699753 .fill-N2{fill:#676C7E;}
|
||||
.d2-1884699753 .fill-N3{fill:#9499AB;}
|
||||
.d2-1884699753 .fill-N4{fill:#CFD2DD;}
|
||||
.d2-1884699753 .fill-N5{fill:#DEE1EB;}
|
||||
.d2-1884699753 .fill-N6{fill:#EEF1F8;}
|
||||
.d2-1884699753 .fill-N7{fill:#FFFFFF;}
|
||||
.d2-1884699753 .fill-B1{fill:#0D32B2;}
|
||||
.d2-1884699753 .fill-B2{fill:#0D32B2;}
|
||||
.d2-1884699753 .fill-B3{fill:#E3E9FD;}
|
||||
.d2-1884699753 .fill-B4{fill:#E3E9FD;}
|
||||
.d2-1884699753 .fill-B5{fill:#EDF0FD;}
|
||||
.d2-1884699753 .fill-B6{fill:#F7F8FE;}
|
||||
.d2-1884699753 .fill-AA2{fill:#4A6FF3;}
|
||||
.d2-1884699753 .fill-AA4{fill:#EDF0FD;}
|
||||
.d2-1884699753 .fill-AA5{fill:#F7F8FE;}
|
||||
.d2-1884699753 .fill-AB4{fill:#EDF0FD;}
|
||||
.d2-1884699753 .fill-AB5{fill:#F7F8FE;}
|
||||
.d2-1884699753 .stroke-N1{stroke:#0A0F25;}
|
||||
.d2-1884699753 .stroke-N2{stroke:#676C7E;}
|
||||
.d2-1884699753 .stroke-N3{stroke:#9499AB;}
|
||||
.d2-1884699753 .stroke-N4{stroke:#CFD2DD;}
|
||||
.d2-1884699753 .stroke-N5{stroke:#DEE1EB;}
|
||||
.d2-1884699753 .stroke-N6{stroke:#EEF1F8;}
|
||||
.d2-1884699753 .stroke-N7{stroke:#FFFFFF;}
|
||||
.d2-1884699753 .stroke-B1{stroke:#0D32B2;}
|
||||
.d2-1884699753 .stroke-B2{stroke:#0D32B2;}
|
||||
.d2-1884699753 .stroke-B3{stroke:#E3E9FD;}
|
||||
.d2-1884699753 .stroke-B4{stroke:#E3E9FD;}
|
||||
.d2-1884699753 .stroke-B5{stroke:#EDF0FD;}
|
||||
.d2-1884699753 .stroke-B6{stroke:#F7F8FE;}
|
||||
.d2-1884699753 .stroke-AA2{stroke:#4A6FF3;}
|
||||
.d2-1884699753 .stroke-AA4{stroke:#EDF0FD;}
|
||||
.d2-1884699753 .stroke-AA5{stroke:#F7F8FE;}
|
||||
.d2-1884699753 .stroke-AB4{stroke:#EDF0FD;}
|
||||
.d2-1884699753 .stroke-AB5{stroke:#F7F8FE;}
|
||||
.d2-1884699753 .background-color-N1{background-color:#0A0F25;}
|
||||
.d2-1884699753 .background-color-N2{background-color:#676C7E;}
|
||||
.d2-1884699753 .background-color-N3{background-color:#9499AB;}
|
||||
.d2-1884699753 .background-color-N4{background-color:#CFD2DD;}
|
||||
.d2-1884699753 .background-color-N5{background-color:#DEE1EB;}
|
||||
.d2-1884699753 .background-color-N6{background-color:#EEF1F8;}
|
||||
.d2-1884699753 .background-color-N7{background-color:#FFFFFF;}
|
||||
.d2-1884699753 .background-color-B1{background-color:#0D32B2;}
|
||||
.d2-1884699753 .background-color-B2{background-color:#0D32B2;}
|
||||
.d2-1884699753 .background-color-B3{background-color:#E3E9FD;}
|
||||
.d2-1884699753 .background-color-B4{background-color:#E3E9FD;}
|
||||
.d2-1884699753 .background-color-B5{background-color:#EDF0FD;}
|
||||
.d2-1884699753 .background-color-B6{background-color:#F7F8FE;}
|
||||
.d2-1884699753 .background-color-AA2{background-color:#4A6FF3;}
|
||||
.d2-1884699753 .background-color-AA4{background-color:#EDF0FD;}
|
||||
.d2-1884699753 .background-color-AA5{background-color:#F7F8FE;}
|
||||
.d2-1884699753 .background-color-AB4{background-color:#EDF0FD;}
|
||||
.d2-1884699753 .background-color-AB5{background-color:#F7F8FE;}
|
||||
.d2-1884699753 .color-N1{color:#0A0F25;}
|
||||
.d2-1884699753 .color-N2{color:#676C7E;}
|
||||
.d2-1884699753 .color-N3{color:#9499AB;}
|
||||
.d2-1884699753 .color-N4{color:#CFD2DD;}
|
||||
.d2-1884699753 .color-N5{color:#DEE1EB;}
|
||||
.d2-1884699753 .color-N6{color:#EEF1F8;}
|
||||
.d2-1884699753 .color-N7{color:#FFFFFF;}
|
||||
.d2-1884699753 .color-B1{color:#0D32B2;}
|
||||
.d2-1884699753 .color-B2{color:#0D32B2;}
|
||||
.d2-1884699753 .color-B3{color:#E3E9FD;}
|
||||
.d2-1884699753 .color-B4{color:#E3E9FD;}
|
||||
.d2-1884699753 .color-B5{color:#EDF0FD;}
|
||||
.d2-1884699753 .color-B6{color:#F7F8FE;}
|
||||
.d2-1884699753 .color-AA2{color:#4A6FF3;}
|
||||
.d2-1884699753 .color-AA4{color:#EDF0FD;}
|
||||
.d2-1884699753 .color-AA5{color:#F7F8FE;}
|
||||
.d2-1884699753 .color-AB4{color:#EDF0FD;}
|
||||
.d2-1884699753 .color-AB5{color:#F7F8FE;}.appendix text.text{fill:#0A0F25}.md{--color-fg-default:#0A0F25;--color-fg-muted:#676C7E;--color-fg-subtle:#9499AB;--color-canvas-default:#FFFFFF;--color-canvas-subtle:#EEF1F8;--color-border-default:#0D32B2;--color-border-muted:#0D32B2;--color-neutral-muted:#EEF1F8;--color-accent-fg:#0D32B2;--color-accent-emphasis:#0D32B2;--color-attention-subtle:#676C7E;--color-danger-fg:red;}.sketch-overlay-B1{fill:url(#streaks-darker-d2-1884699753);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker-d2-1884699753);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright-d2-1884699753);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright-d2-1884699753);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright-d2-1884699753);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright-d2-1884699753);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark-d2-1884699753);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright-d2-1884699753);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright-d2-1884699753);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright-d2-1884699753);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright-d2-1884699753);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker-d2-1884699753);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark-d2-1884699753);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal-d2-1884699753);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal-d2-1884699753);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright-d2-1884699753);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright-d2-1884699753);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright-d2-1884699753);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]></style><g class="bGFtYmRh"><g class="shape" ><clipPath id="d2-1884699753-lambda-icon"><path d="M 12.000000 32.000000 L 12.000000 32.000000 S 12.000000 12.000000 32.000000 12.000000 L 120.000000 12.000000 L 120.000000 12.000000 S 140.000000 12.000000 140.000000 32.000000 L 140.000000 120.000000 S 140.000000 140.000000 120.000000 140.000000 L 32.000000 140.000000 S 12.000000 140.000000 12.000000 120.000000L 12.000000 32.000000Z 12.000000 12.000000" fill="none" /> </clipPath><image href="https://icons.terrastruct.com/aws%2FCompute%2FAWS-Lambda.svg" x="12.000000" y="12.000000" width="128.000000" height="128.000000" stroke="#0D32B2" fill="#FFFFFF" class=" stroke-B1 fill-N7" style="stroke-width:2;" clip-path="url(#d2-1884699753-lambda-icon)" /></g><text x="76.000000" y="161.000000" fill="#0A0F25" class="text-bold fill-N1" style="text-anchor:middle;font-size:16px">lambda</text></g><mask id="d2-1884699753" maskUnits="userSpaceOnUse" x="11" y="11" width="130" height="155">
|
||||
.d2-2677970358 .fill-N1{fill:#0A0F25;}
|
||||
.d2-2677970358 .fill-N2{fill:#676C7E;}
|
||||
.d2-2677970358 .fill-N3{fill:#9499AB;}
|
||||
.d2-2677970358 .fill-N4{fill:#CFD2DD;}
|
||||
.d2-2677970358 .fill-N5{fill:#DEE1EB;}
|
||||
.d2-2677970358 .fill-N6{fill:#EEF1F8;}
|
||||
.d2-2677970358 .fill-N7{fill:#FFFFFF;}
|
||||
.d2-2677970358 .fill-B1{fill:#0D32B2;}
|
||||
.d2-2677970358 .fill-B2{fill:#0D32B2;}
|
||||
.d2-2677970358 .fill-B3{fill:#E3E9FD;}
|
||||
.d2-2677970358 .fill-B4{fill:#E3E9FD;}
|
||||
.d2-2677970358 .fill-B5{fill:#EDF0FD;}
|
||||
.d2-2677970358 .fill-B6{fill:#F7F8FE;}
|
||||
.d2-2677970358 .fill-AA2{fill:#4A6FF3;}
|
||||
.d2-2677970358 .fill-AA4{fill:#EDF0FD;}
|
||||
.d2-2677970358 .fill-AA5{fill:#F7F8FE;}
|
||||
.d2-2677970358 .fill-AB4{fill:#EDF0FD;}
|
||||
.d2-2677970358 .fill-AB5{fill:#F7F8FE;}
|
||||
.d2-2677970358 .stroke-N1{stroke:#0A0F25;}
|
||||
.d2-2677970358 .stroke-N2{stroke:#676C7E;}
|
||||
.d2-2677970358 .stroke-N3{stroke:#9499AB;}
|
||||
.d2-2677970358 .stroke-N4{stroke:#CFD2DD;}
|
||||
.d2-2677970358 .stroke-N5{stroke:#DEE1EB;}
|
||||
.d2-2677970358 .stroke-N6{stroke:#EEF1F8;}
|
||||
.d2-2677970358 .stroke-N7{stroke:#FFFFFF;}
|
||||
.d2-2677970358 .stroke-B1{stroke:#0D32B2;}
|
||||
.d2-2677970358 .stroke-B2{stroke:#0D32B2;}
|
||||
.d2-2677970358 .stroke-B3{stroke:#E3E9FD;}
|
||||
.d2-2677970358 .stroke-B4{stroke:#E3E9FD;}
|
||||
.d2-2677970358 .stroke-B5{stroke:#EDF0FD;}
|
||||
.d2-2677970358 .stroke-B6{stroke:#F7F8FE;}
|
||||
.d2-2677970358 .stroke-AA2{stroke:#4A6FF3;}
|
||||
.d2-2677970358 .stroke-AA4{stroke:#EDF0FD;}
|
||||
.d2-2677970358 .stroke-AA5{stroke:#F7F8FE;}
|
||||
.d2-2677970358 .stroke-AB4{stroke:#EDF0FD;}
|
||||
.d2-2677970358 .stroke-AB5{stroke:#F7F8FE;}
|
||||
.d2-2677970358 .background-color-N1{background-color:#0A0F25;}
|
||||
.d2-2677970358 .background-color-N2{background-color:#676C7E;}
|
||||
.d2-2677970358 .background-color-N3{background-color:#9499AB;}
|
||||
.d2-2677970358 .background-color-N4{background-color:#CFD2DD;}
|
||||
.d2-2677970358 .background-color-N5{background-color:#DEE1EB;}
|
||||
.d2-2677970358 .background-color-N6{background-color:#EEF1F8;}
|
||||
.d2-2677970358 .background-color-N7{background-color:#FFFFFF;}
|
||||
.d2-2677970358 .background-color-B1{background-color:#0D32B2;}
|
||||
.d2-2677970358 .background-color-B2{background-color:#0D32B2;}
|
||||
.d2-2677970358 .background-color-B3{background-color:#E3E9FD;}
|
||||
.d2-2677970358 .background-color-B4{background-color:#E3E9FD;}
|
||||
.d2-2677970358 .background-color-B5{background-color:#EDF0FD;}
|
||||
.d2-2677970358 .background-color-B6{background-color:#F7F8FE;}
|
||||
.d2-2677970358 .background-color-AA2{background-color:#4A6FF3;}
|
||||
.d2-2677970358 .background-color-AA4{background-color:#EDF0FD;}
|
||||
.d2-2677970358 .background-color-AA5{background-color:#F7F8FE;}
|
||||
.d2-2677970358 .background-color-AB4{background-color:#EDF0FD;}
|
||||
.d2-2677970358 .background-color-AB5{background-color:#F7F8FE;}
|
||||
.d2-2677970358 .color-N1{color:#0A0F25;}
|
||||
.d2-2677970358 .color-N2{color:#676C7E;}
|
||||
.d2-2677970358 .color-N3{color:#9499AB;}
|
||||
.d2-2677970358 .color-N4{color:#CFD2DD;}
|
||||
.d2-2677970358 .color-N5{color:#DEE1EB;}
|
||||
.d2-2677970358 .color-N6{color:#EEF1F8;}
|
||||
.d2-2677970358 .color-N7{color:#FFFFFF;}
|
||||
.d2-2677970358 .color-B1{color:#0D32B2;}
|
||||
.d2-2677970358 .color-B2{color:#0D32B2;}
|
||||
.d2-2677970358 .color-B3{color:#E3E9FD;}
|
||||
.d2-2677970358 .color-B4{color:#E3E9FD;}
|
||||
.d2-2677970358 .color-B5{color:#EDF0FD;}
|
||||
.d2-2677970358 .color-B6{color:#F7F8FE;}
|
||||
.d2-2677970358 .color-AA2{color:#4A6FF3;}
|
||||
.d2-2677970358 .color-AA4{color:#EDF0FD;}
|
||||
.d2-2677970358 .color-AA5{color:#F7F8FE;}
|
||||
.d2-2677970358 .color-AB4{color:#EDF0FD;}
|
||||
.d2-2677970358 .color-AB5{color:#F7F8FE;}.appendix text.text{fill:#0A0F25}.md{--color-fg-default:#0A0F25;--color-fg-muted:#676C7E;--color-fg-subtle:#9499AB;--color-canvas-default:#FFFFFF;--color-canvas-subtle:#EEF1F8;--color-border-default:#0D32B2;--color-border-muted:#0D32B2;--color-neutral-muted:#EEF1F8;--color-accent-fg:#0D32B2;--color-accent-emphasis:#0D32B2;--color-attention-subtle:#676C7E;--color-danger-fg:red;}.sketch-overlay-B1{fill:url(#streaks-darker-d2-2677970358);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker-d2-2677970358);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright-d2-2677970358);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright-d2-2677970358);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright-d2-2677970358);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright-d2-2677970358);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark-d2-2677970358);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright-d2-2677970358);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright-d2-2677970358);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright-d2-2677970358);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright-d2-2677970358);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker-d2-2677970358);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark-d2-2677970358);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal-d2-2677970358);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal-d2-2677970358);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright-d2-2677970358);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright-d2-2677970358);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright-d2-2677970358);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]></style><g class="bGFtYmRh"><g class="shape" ><clipPath id="d2-2677970358-NRQW2YTEME-icon"><path d="M 12.000000 32.000000 L 12.000000 32.000000 S 12.000000 12.000000 32.000000 12.000000 L 120.000000 12.000000 L 120.000000 12.000000 S 140.000000 12.000000 140.000000 32.000000 L 140.000000 120.000000 S 140.000000 140.000000 120.000000 140.000000 L 32.000000 140.000000 S 12.000000 140.000000 12.000000 120.000000L 12.000000 32.000000Z 12.000000 12.000000" fill="none" /> </clipPath><image href="https://icons.terrastruct.com/aws%2FCompute%2FAWS-Lambda.svg" x="12.000000" y="12.000000" width="128.000000" height="128.000000" stroke="#0D32B2" fill="#FFFFFF" class=" stroke-B1 fill-N7" style="stroke-width:2;" clip-path="url(#d2-2677970358-NRQW2YTEME-icon)" /></g><text x="76.000000" y="161.000000" fill="#0A0F25" class="text-bold fill-N1" style="text-anchor:middle;font-size:16px">lambda</text></g><mask id="d2-2677970358" maskUnits="userSpaceOnUse" x="11" y="11" width="130" height="155">
|
||||
<rect x="11" y="11" width="130" height="155" fill="white"></rect>
|
||||
<rect x="47.500000" y="145.000000" width="57" height="21" fill="rgba(0,0,0,0.75)"></rect>
|
||||
</mask></svg></svg>
|
||||
|
Before Width: | Height: | Size: 9.8 KiB After Width: | Height: | Size: 9.8 KiB |
Loading…
Reference in a new issue