Skip to content

Commit

Permalink
new glob feature docs
Browse files Browse the repository at this point in the history
  • Loading branch information
alixander committed Sep 28, 2024
1 parent 5503559 commit b835b37
Show file tree
Hide file tree
Showing 5 changed files with 393 additions and 3 deletions.
27 changes: 24 additions & 3 deletions docs/tour/globs.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import GlobsRecursive from '@site/static/d2/globs-recursive.d2';
import GlobsRecursive2 from '@site/static/d2/globs-recursive-2.d2';
import GlobsFilter from '@site/static/d2/globs-filter.d2';
import GlobsFilter2 from '@site/static/d2/globs-filter-2.d2';
import GlobsFilterGlobValue from '@site/static/d2/globs-filter-glob-value.d2';
import GlobsInverseFilter from '@site/static/d2/globs-inverse-filter.d2';
import GlobsNested from '@site/static/d2/globs-nested.d2';

# Globs
Expand Down Expand Up @@ -125,6 +127,8 @@ Use `&` to filter what globs target.

<div style={{width: 600}} className="embedSVG" dangerouslySetInnerHTML={{__html: require('@site/static/img/generated/globs-filter.svg2')}}></div>

### Filters on array values

If the filtered attribute has an array value, the filter will match if it matches any
element of the array.

Expand All @@ -134,9 +138,26 @@ element of the array.

<div style={{width: 600}} className="embedSVG" dangerouslySetInnerHTML={{__html: require('@site/static/img/generated/globs-filter-2.svg2')}}></div>

:::info
We are working on adding more filters, as well as the "not-filter", `!&`.
:::
### Globs as filter values

Globs can also appear in the value of a filter. `*` by itself as a value for a filter
means the key must be specified.

<CodeBlock className="language-d2">
{GlobsFilterGlobValue}
</CodeBlock>

<div style={{width: 600}} className="embedSVG" dangerouslySetInnerHTML={{__html: require('@site/static/img/generated/globs-filter-glob-value.svg2')}}></div>

## Inverse filters

Use `!&` to inverse-filter what globs target.

<CodeBlock className="language-d2">
{GlobsInverseFilter}
</CodeBlock>

<div style={{width: 600}} className="embedSVG" dangerouslySetInnerHTML={{__html: require('@site/static/img/generated/globs-inverse-filter.svg2')}}></div>

## Nested globs

Expand Down
7 changes: 7 additions & 0 deletions static/d2/globs-filter-glob-value.d2
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*: {
&link: *;
style.fill: red
}

x.link: https://google.com
y
9 changes: 9 additions & 0 deletions static/d2/globs-inverse-filter.d2
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
bravo team.shape: person
charlie team.shape: person
command center.shape: cloud
hq.shape: rectangle

*: {
!&shape: person
style.multiple: true
}
183 changes: 183 additions & 0 deletions static/img/generated/globs-filter-glob-value.svg2
Original file line number Diff line number Diff line change
@@ -0,0 +1,183 @@
<?xml version="1.0" encoding="utf-8"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" d2Version="v0.6.6-HEAD" preserveAspectRatio="xMidYMid meet" viewBox="0 0 201 85"><svg id="d2-svg" class="d2-1320259691" width="201" height="85" viewBox="-1 -18 201 85"><rect x="-1.000000" y="-18.000000" width="201.000000" height="85.000000" rx="0.000000" class=" fill-N7" stroke-width="0" /><style type="text/css"><![CDATA[
.appendix-icon {
filter: drop-shadow(0px 0px 32px rgba(31, 36, 58, 0.1));
}
.d2-1320259691 .text-bold {
font-family: "d2-1320259691-font-bold";
}
@font-face {
font-family: d2-1320259691-font-bold;
src: url("data:application/font-woff;base64,d09GRgABAAAAAApoAAoAAAAAEGgAAguFAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAAA9AAAAGAAAABgXxHXrmNtYXAAAAFUAAAAfAAAAJ4CQwNGZ2x5ZgAAAdAAAARrAAAFjGOEE+5oZWFkAAAGPAAAADYAAAA2G38e1GhoZWEAAAZ0AAAAJAAAACQKfwXQaG10eAAABpgAAABEAAAARCC7Au9sb2NhAAAG3AAAACQAAAAkDaYPBG1heHAAAAcAAAAAIAAAACAAKQD3bmFtZQAAByAAAAMoAAAIKgjwVkFwb3N0AAAKSAAAAB0AAAAg/9EAMgADAioCvAAFAAACigJYAAAASwKKAlgAAAFeADIBKQAAAgsHAwMEAwICBGAAAvcAAAADAAAAAAAAAABBREJPACAAIP//Au7/BgAAA9gBESAAAZ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fzP8gP3qT4YfslttG/6YZ9Udw59sO/4y/Cn7vF3gCrzgV8MVdskMb7HDj4a3eYTFrFR5RNNwjc/YM1xnD+gzoSBmQsIIx5AJI66YEZHjEzFjwpCIEEeHFjGFviYEQo7Rf34N8CmYESjimAJHjE9MQM7YIv4ir5RzZRzqNLO7FgVjAi7kcUlAgiNlREpCxKXiFBRkvKJBg5yB+GYU5HjkTIjxSJkxokGXNqf0GTMhx9FWpJKZT8qQgmsC5XdmUXZmQERCbqyuSAjF04lfJO8Opzi6ZLJdj3y6EeFLHN/Ju+SWyvYrPP26NWabeZdsAubqZ6yuxLq51gTHui3ztvhWuOAV7l792WTy/h6F+l8o8gVXmn+oSSVikuDcLi18Kch3j3Ec6dzBV0e+p0OfE7q8oa9zix49WpzRp8Nr+Xbp4fiaLmccy6MjvLhrSzFn/IDjGzqyKWNH1p/FxCJ+JjN15+I4Ux1TMvW8ZO6p1kgV3n3C5Q6lG+rI5TPQHpWWTvNLtGcBI1NFJoZT9XKpjdz6F5oipqqlnO3tfbkNc9u95RbfkGqHS7UuOJWTWzB631S9dzRzrR+PgJCUC1kMSJnSoOBGvM8JuCLGcazunWhLClornzLPjVQSMRWDDonizMj0NzDd+MZ9sKF7Z29JKP+S6eWqqvtkcerV7YzeqHvLO9+6HK1NoGFTTdfUNBDXxLQfaafW+fvyzfW6pTzliJSY8F8vwDM8muxzwCFjZRjoZm6vQ1MvRJOXHKr6SyJZDaXnyCIc4PGcAw54yfN3+rhk4oyLW3FZz93imCO6HH5QFQv7Lke8Xn37/6y/i2lTtTierk4v7j3FJ3dQ6xfas9v3sqeJlZOYW7TbrTgjYFpycbvrNbnHeP8AAAD//wEAAP//9LdPUXicYmBmAIP/5xiMGLAAAAAAAP//AQAA//8vAQIDAAAA");
}]]></style><style type="text/css"><![CDATA[.shape {
shape-rendering: geometricPrecision;
stroke-linejoin: round;
}
.connection {
stroke-linecap: round;
stroke-linejoin: round;
}
.blend {
mix-blend-mode: multiply;
opacity: 0.5;
}
.d2-1320259691 .fill-N1{fill:#0A0F25;}
.d2-1320259691 .fill-N2{fill:#676C7E;}
.d2-1320259691 .fill-N3{fill:#9499AB;}
.d2-1320259691 .fill-N4{fill:#CFD2DD;}
.d2-1320259691 .fill-N5{fill:#DEE1EB;}
.d2-1320259691 .fill-N6{fill:#EEF1F8;}
.d2-1320259691 .fill-N7{fill:#FFFFFF;}
.d2-1320259691 .fill-B1{fill:#0D32B2;}
.d2-1320259691 .fill-B2{fill:#0D32B2;}
.d2-1320259691 .fill-B3{fill:#E3E9FD;}
.d2-1320259691 .fill-B4{fill:#E3E9FD;}
.d2-1320259691 .fill-B5{fill:#EDF0FD;}
.d2-1320259691 .fill-B6{fill:#F7F8FE;}
.d2-1320259691 .fill-AA2{fill:#4A6FF3;}
.d2-1320259691 .fill-AA4{fill:#EDF0FD;}
.d2-1320259691 .fill-AA5{fill:#F7F8FE;}
.d2-1320259691 .fill-AB4{fill:#EDF0FD;}
.d2-1320259691 .fill-AB5{fill:#F7F8FE;}
.d2-1320259691 .stroke-N1{stroke:#0A0F25;}
.d2-1320259691 .stroke-N2{stroke:#676C7E;}
.d2-1320259691 .stroke-N3{stroke:#9499AB;}
.d2-1320259691 .stroke-N4{stroke:#CFD2DD;}
.d2-1320259691 .stroke-N5{stroke:#DEE1EB;}
.d2-1320259691 .stroke-N6{stroke:#EEF1F8;}
.d2-1320259691 .stroke-N7{stroke:#FFFFFF;}
.d2-1320259691 .stroke-B1{stroke:#0D32B2;}
.d2-1320259691 .stroke-B2{stroke:#0D32B2;}
.d2-1320259691 .stroke-B3{stroke:#E3E9FD;}
.d2-1320259691 .stroke-B4{stroke:#E3E9FD;}
.d2-1320259691 .stroke-B5{stroke:#EDF0FD;}
.d2-1320259691 .stroke-B6{stroke:#F7F8FE;}
.d2-1320259691 .stroke-AA2{stroke:#4A6FF3;}
.d2-1320259691 .stroke-AA4{stroke:#EDF0FD;}
.d2-1320259691 .stroke-AA5{stroke:#F7F8FE;}
.d2-1320259691 .stroke-AB4{stroke:#EDF0FD;}
.d2-1320259691 .stroke-AB5{stroke:#F7F8FE;}
.d2-1320259691 .background-color-N1{background-color:#0A0F25;}
.d2-1320259691 .background-color-N2{background-color:#676C7E;}
.d2-1320259691 .background-color-N3{background-color:#9499AB;}
.d2-1320259691 .background-color-N4{background-color:#CFD2DD;}
.d2-1320259691 .background-color-N5{background-color:#DEE1EB;}
.d2-1320259691 .background-color-N6{background-color:#EEF1F8;}
.d2-1320259691 .background-color-N7{background-color:#FFFFFF;}
.d2-1320259691 .background-color-B1{background-color:#0D32B2;}
.d2-1320259691 .background-color-B2{background-color:#0D32B2;}
.d2-1320259691 .background-color-B3{background-color:#E3E9FD;}
.d2-1320259691 .background-color-B4{background-color:#E3E9FD;}
.d2-1320259691 .background-color-B5{background-color:#EDF0FD;}
.d2-1320259691 .background-color-B6{background-color:#F7F8FE;}
.d2-1320259691 .background-color-AA2{background-color:#4A6FF3;}
.d2-1320259691 .background-color-AA4{background-color:#EDF0FD;}
.d2-1320259691 .background-color-AA5{background-color:#F7F8FE;}
.d2-1320259691 .background-color-AB4{background-color:#EDF0FD;}
.d2-1320259691 .background-color-AB5{background-color:#F7F8FE;}
.d2-1320259691 .color-N1{color:#0A0F25;}
.d2-1320259691 .color-N2{color:#676C7E;}
.d2-1320259691 .color-N3{color:#9499AB;}
.d2-1320259691 .color-N4{color:#CFD2DD;}
.d2-1320259691 .color-N5{color:#DEE1EB;}
.d2-1320259691 .color-N6{color:#EEF1F8;}
.d2-1320259691 .color-N7{color:#FFFFFF;}
.d2-1320259691 .color-B1{color:#0D32B2;}
.d2-1320259691 .color-B2{color:#0D32B2;}
.d2-1320259691 .color-B3{color:#E3E9FD;}
.d2-1320259691 .color-B4{color:#E3E9FD;}
.d2-1320259691 .color-B5{color:#EDF0FD;}
.d2-1320259691 .color-B6{color:#F7F8FE;}
.d2-1320259691 .color-AA2{color:#4A6FF3;}
.d2-1320259691 .color-AA4{color:#EDF0FD;}
.d2-1320259691 .color-AA5{color:#F7F8FE;}
.d2-1320259691 .color-AB4{color:#EDF0FD;}
.d2-1320259691 .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);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}@media screen and (prefers-color-scheme:dark){
.d2-1320259691 .fill-N1{fill:#CDD6F4;}
.d2-1320259691 .fill-N2{fill:#BAC2DE;}
.d2-1320259691 .fill-N3{fill:#A6ADC8;}
.d2-1320259691 .fill-N4{fill:#585B70;}
.d2-1320259691 .fill-N5{fill:#45475A;}
.d2-1320259691 .fill-N6{fill:#313244;}
.d2-1320259691 .fill-N7{fill:#1E1E2E;}
.d2-1320259691 .fill-B1{fill:#CBA6f7;}
.d2-1320259691 .fill-B2{fill:#CBA6f7;}
.d2-1320259691 .fill-B3{fill:#6C7086;}
.d2-1320259691 .fill-B4{fill:#585B70;}
.d2-1320259691 .fill-B5{fill:#45475A;}
.d2-1320259691 .fill-B6{fill:#313244;}
.d2-1320259691 .fill-AA2{fill:#f38BA8;}
.d2-1320259691 .fill-AA4{fill:#45475A;}
.d2-1320259691 .fill-AA5{fill:#313244;}
.d2-1320259691 .fill-AB4{fill:#45475A;}
.d2-1320259691 .fill-AB5{fill:#313244;}
.d2-1320259691 .stroke-N1{stroke:#CDD6F4;}
.d2-1320259691 .stroke-N2{stroke:#BAC2DE;}
.d2-1320259691 .stroke-N3{stroke:#A6ADC8;}
.d2-1320259691 .stroke-N4{stroke:#585B70;}
.d2-1320259691 .stroke-N5{stroke:#45475A;}
.d2-1320259691 .stroke-N6{stroke:#313244;}
.d2-1320259691 .stroke-N7{stroke:#1E1E2E;}
.d2-1320259691 .stroke-B1{stroke:#CBA6f7;}
.d2-1320259691 .stroke-B2{stroke:#CBA6f7;}
.d2-1320259691 .stroke-B3{stroke:#6C7086;}
.d2-1320259691 .stroke-B4{stroke:#585B70;}
.d2-1320259691 .stroke-B5{stroke:#45475A;}
.d2-1320259691 .stroke-B6{stroke:#313244;}
.d2-1320259691 .stroke-AA2{stroke:#f38BA8;}
.d2-1320259691 .stroke-AA4{stroke:#45475A;}
.d2-1320259691 .stroke-AA5{stroke:#313244;}
.d2-1320259691 .stroke-AB4{stroke:#45475A;}
.d2-1320259691 .stroke-AB5{stroke:#313244;}
.d2-1320259691 .background-color-N1{background-color:#CDD6F4;}
.d2-1320259691 .background-color-N2{background-color:#BAC2DE;}
.d2-1320259691 .background-color-N3{background-color:#A6ADC8;}
.d2-1320259691 .background-color-N4{background-color:#585B70;}
.d2-1320259691 .background-color-N5{background-color:#45475A;}
.d2-1320259691 .background-color-N6{background-color:#313244;}
.d2-1320259691 .background-color-N7{background-color:#1E1E2E;}
.d2-1320259691 .background-color-B1{background-color:#CBA6f7;}
.d2-1320259691 .background-color-B2{background-color:#CBA6f7;}
.d2-1320259691 .background-color-B3{background-color:#6C7086;}
.d2-1320259691 .background-color-B4{background-color:#585B70;}
.d2-1320259691 .background-color-B5{background-color:#45475A;}
.d2-1320259691 .background-color-B6{background-color:#313244;}
.d2-1320259691 .background-color-AA2{background-color:#f38BA8;}
.d2-1320259691 .background-color-AA4{background-color:#45475A;}
.d2-1320259691 .background-color-AA5{background-color:#313244;}
.d2-1320259691 .background-color-AB4{background-color:#45475A;}
.d2-1320259691 .background-color-AB5{background-color:#313244;}
.d2-1320259691 .color-N1{color:#CDD6F4;}
.d2-1320259691 .color-N2{color:#BAC2DE;}
.d2-1320259691 .color-N3{color:#A6ADC8;}
.d2-1320259691 .color-N4{color:#585B70;}
.d2-1320259691 .color-N5{color:#45475A;}
.d2-1320259691 .color-N6{color:#313244;}
.d2-1320259691 .color-N7{color:#1E1E2E;}
.d2-1320259691 .color-B1{color:#CBA6f7;}
.d2-1320259691 .color-B2{color:#CBA6f7;}
.d2-1320259691 .color-B3{color:#6C7086;}
.d2-1320259691 .color-B4{color:#585B70;}
.d2-1320259691 .color-B5{color:#45475A;}
.d2-1320259691 .color-B6{color:#313244;}
.d2-1320259691 .color-AA2{color:#f38BA8;}
.d2-1320259691 .color-AA4{color:#45475A;}
.d2-1320259691 .color-AA5{color:#313244;}
.d2-1320259691 .color-AB4{color:#45475A;}
.d2-1320259691 .color-AB5{color:#313244;}.appendix text.text{fill:#CDD6F4}.md{--color-fg-default:#CDD6F4;--color-fg-muted:#BAC2DE;--color-fg-subtle:#A6ADC8;--color-canvas-default:#1E1E2E;--color-canvas-subtle:#313244;--color-border-default:#CBA6f7;--color-border-muted:#CBA6f7;--color-neutral-muted:#313244;--color-accent-fg:#CBA6f7;--color-accent-emphasis:#CBA6f7;--color-attention-subtle:#BAC2DE;--color-danger-fg:red;}.sketch-overlay-B1{fill:url(#streaks-normal);mix-blend-mode:color-burn}.sketch-overlay-B2{fill:url(#streaks-normal);mix-blend-mode:color-burn}.sketch-overlay-B3{fill:url(#streaks-dark);mix-blend-mode:overlay}.sketch-overlay-B4{fill:url(#streaks-dark);mix-blend-mode:overlay}.sketch-overlay-B5{fill:url(#streaks-darker);mix-blend-mode:lighten}.sketch-overlay-B6{fill:url(#streaks-darker);mix-blend-mode:lighten}.sketch-overlay-AA2{fill:url(#streaks-normal);mix-blend-mode:color-burn}.sketch-overlay-AA4{fill:url(#streaks-darker);mix-blend-mode:lighten}.sketch-overlay-AA5{fill:url(#streaks-darker);mix-blend-mode:lighten}.sketch-overlay-AB4{fill:url(#streaks-darker);mix-blend-mode:lighten}.sketch-overlay-AB5{fill:url(#streaks-darker);mix-blend-mode:lighten}.sketch-overlay-N1{fill:url(#streaks-normal);mix-blend-mode:color-burn}.sketch-overlay-N2{fill:url(#streaks-normal);mix-blend-mode:color-burn}.sketch-overlay-N3{fill:url(#streaks-normal);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-dark);mix-blend-mode:overlay}.sketch-overlay-N5{fill:url(#streaks-darker);mix-blend-mode:lighten}.sketch-overlay-N6{fill:url(#streaks-darker);mix-blend-mode:lighten}.sketch-overlay-N7{fill:url(#streaks-darker);mix-blend-mode:lighten}.light-code{display: none}.dark-code{display: block}}]]></style><a href="https://google.com" xlink:href="https://google.com"><g id="x"><g class="shape" ><rect x="0.000000" y="0.000000" width="85.000000" height="66.000000" fill="red" class=" stroke-B1" style="stroke-width:2;" /></g><text x="42.500000" y="38.500000" class="text-bold fill-N1" style="text-anchor:middle;font-size:16px">x</text></g></a><g id="y"><g class="shape" ><rect x="145.000000" y="0.000000" width="54.000000" height="66.000000" class=" stroke-B1 fill-B6" style="stroke-width:2;" /></g><text x="172.000000" y="38.500000" class="text-bold fill-N1" style="text-anchor:middle;font-size:16px">y</text></g><g transform="translate(69 -16)" class="appendix-icon"><svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_3440_35088111)">
<path d="M16 31.1109C24.3456 31.1109 31.1111 24.3454 31.1111 15.9998C31.1111 7.65415 24.3456 0.888672 16 0.888672C7.65436 0.888672 0.888885 7.65415 0.888885 15.9998C0.888885 24.3454 7.65436 31.1109 16 31.1109Z" fill="white" stroke="#DEE1EB"/>
<path d="M14.3909 16.7965C14.7364 17.2584 15.1772 17.6406 15.6834 17.9171C16.1896 18.1938 16.7494 18.3582 17.3248 18.3993C17.9001 18.4405 18.4777 18.3575 19.0181 18.1559C19.5586 17.9543 20.0492 17.6389 20.4571 17.2309L22.8708 14.8173C23.6036 14.0586 24.0089 13.0425 23.9998 11.9877C23.9906 10.933 23.5676 9.92404 22.8217 9.17821C22.0759 8.43237 21.067 8.00931 20.0123 8.00015C18.9575 7.99098 17.9413 8.39644 17.1827 9.1292L15.7988 10.505" stroke="#2E3346" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M17.609 15.1874C17.2635 14.7255 16.8227 14.3433 16.3165 14.0667C15.8103 13.7902 15.2505 13.6257 14.6752 13.5845C14.0998 13.5433 13.5223 13.6263 12.9819 13.8279C12.4414 14.0295 11.9506 14.345 11.5428 14.753L9.1292 17.1666C8.39644 17.9252 7.99098 18.9414 8.00015 19.9962C8.00931 21.0509 8.43237 22.0598 9.17821 22.8056C9.92405 23.5515 10.933 23.9745 11.9877 23.9837C13.0425 23.9928 14.0586 23.5875 14.8173 22.8547L16.193 21.4788" stroke="#2E3346" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</g>
<defs>
<clipPath id="clip0_3440_35088111">
<rect width="32" height="32" fill="white"/>
</clipPath>
</defs>
</svg>
</g><mask id="d2-1320259691" maskUnits="userSpaceOnUse" x="-1" y="-18" width="201" height="85">
<rect x="-1" y="-18" width="201" height="85" fill="white"></rect>
<rect x="38.500000" y="22.500000" width="8" height="21" fill="rgba(0,0,0,0.75)"></rect>
<rect x="167.500000" y="22.500000" width="9" height="21" fill="rgba(0,0,0,0.75)"></rect>
</mask></svg></svg>
Loading

0 comments on commit b835b37

Please sign in to comment.