Skip to content

Commit eb1e91c

Browse files
authored
[Doc] fix document of struct_pack layout (#918)
1 parent 75b2c25 commit eb1e91c

File tree

8 files changed

+34
-33
lines changed

8 files changed

+34
-33
lines changed

website/docs/en/struct_pack/images/layout/expected.drawio

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
<mxfile host="65bd71144e">
2-
<diagram id="O7yQctMvagBGV_ycwG3O" name="第 1 页">
2+
<diagram id="dYHXQBVI6bAebu9VXsiw" name="第 1 页">
33
<mxGraphModel dx="498" dy="745" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1169" pageHeight="1654" math="0" shadow="0">
44
<root>
55
<mxCell id="0"/>
66
<mxCell id="1" parent="0"/>
7-
<mxCell id="2" value="std::variant&amp;lt;int,std::string,double&amp;gt;{3.14}" style="rounded=0;whiteSpace=wrap;html=1;fillColor=none;" vertex="1" parent="1">
8-
<mxGeometry x="610" y="360" width="270" height="40" as="geometry"/>
7+
<mxCell id="2" value="std::expect&amp;lt;int,std::errc&amp;gt;{42}" style="rounded=0;whiteSpace=wrap;html=1;fillColor=none;" parent="1" vertex="1">
8+
<mxGeometry x="590" y="360" width="290" height="40" as="geometry"/>
99
</mxCell>
10-
<mxCell id="3" value="9 Bytes" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
10+
<mxCell id="3" value="5 Bytes" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1">
1111
<mxGeometry x="715" y="330" width="60" height="30" as="geometry"/>
1212
</mxCell>
13-
<mxCell id="4" value="3.14(IEEE-754编码)" style="rounded=0;whiteSpace=wrap;html=1;fillColor=none;" vertex="1" parent="1">
13+
<mxCell id="4" value="0x2a 0x00 0x00 0x00" style="rounded=0;whiteSpace=wrap;html=1;fillColor=none;" parent="1" vertex="1">
1414
<mxGeometry x="650" y="400" width="230" height="40" as="geometry"/>
1515
</mxCell>
16-
<mxCell id="5" value="2&lt;br&gt;(Index)" style="rounded=0;whiteSpace=wrap;html=1;fillColor=none;" vertex="1" parent="1">
17-
<mxGeometry x="610" y="400" width="40" height="40" as="geometry"/>
16+
<mxCell id="5" value="true&lt;br&gt;has_value" style="rounded=0;whiteSpace=wrap;html=1;fillColor=none;" parent="1" vertex="1">
17+
<mxGeometry x="590" y="400" width="60" height="40" as="geometry"/>
1818
</mxCell>
19-
<mxCell id="6" value="8 Bytes" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
19+
<mxCell id="6" value="4 Bytes" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1">
2020
<mxGeometry x="735" y="450" width="60" height="30" as="geometry"/>
2121
</mxCell>
22-
<mxCell id="7" value="1 Byte" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
23-
<mxGeometry x="600" y="450" width="60" height="30" as="geometry"/>
22+
<mxCell id="7" value="1 Byte" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1">
23+
<mxGeometry x="590" y="450" width="60" height="30" as="geometry"/>
2424
</mxCell>
2525
</root>
2626
</mxGraphModel>
Loading

website/docs/en/struct_pack/images/layout/variant.drawio

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
<mxfile host="65bd71144e">
2-
<diagram id="dYHXQBVI6bAebu9VXsiw" name="第 1 页">
2+
<diagram id="O7yQctMvagBGV_ycwG3O" name="第 1 页">
33
<mxGraphModel dx="498" dy="745" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1169" pageHeight="1654" math="0" shadow="0">
44
<root>
55
<mxCell id="0"/>
66
<mxCell id="1" parent="0"/>
7-
<mxCell id="2" value="std::expect&amp;lt;int,std::errc&amp;gt;{42}" style="rounded=0;whiteSpace=wrap;html=1;fillColor=none;" parent="1" vertex="1">
8-
<mxGeometry x="590" y="360" width="290" height="40" as="geometry"/>
7+
<mxCell id="2" value="std::variant&amp;lt;int,std::string,double&amp;gt;{3.14}" style="rounded=0;whiteSpace=wrap;html=1;fillColor=none;" vertex="1" parent="1">
8+
<mxGeometry x="610" y="360" width="270" height="40" as="geometry"/>
99
</mxCell>
10-
<mxCell id="3" value="5 Bytes" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1">
10+
<mxCell id="3" value="9 Bytes" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
1111
<mxGeometry x="715" y="330" width="60" height="30" as="geometry"/>
1212
</mxCell>
13-
<mxCell id="4" value="0x2a 0x00 0x00 0x00" style="rounded=0;whiteSpace=wrap;html=1;fillColor=none;" parent="1" vertex="1">
13+
<mxCell id="4" value="3.14(IEEE-754编码)" style="rounded=0;whiteSpace=wrap;html=1;fillColor=none;" vertex="1" parent="1">
1414
<mxGeometry x="650" y="400" width="230" height="40" as="geometry"/>
1515
</mxCell>
16-
<mxCell id="5" value="true&lt;br&gt;has_value" style="rounded=0;whiteSpace=wrap;html=1;fillColor=none;" parent="1" vertex="1">
17-
<mxGeometry x="590" y="400" width="60" height="40" as="geometry"/>
16+
<mxCell id="5" value="2&lt;br&gt;(Index)" style="rounded=0;whiteSpace=wrap;html=1;fillColor=none;" vertex="1" parent="1">
17+
<mxGeometry x="610" y="400" width="40" height="40" as="geometry"/>
1818
</mxCell>
19-
<mxCell id="6" value="4 Bytes" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1">
19+
<mxCell id="6" value="8 Bytes" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
2020
<mxGeometry x="735" y="450" width="60" height="30" as="geometry"/>
2121
</mxCell>
22-
<mxCell id="7" value="1 Byte" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1">
23-
<mxGeometry x="590" y="450" width="60" height="30" as="geometry"/>
22+
<mxCell id="7" value="1 Byte" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
23+
<mxGeometry x="600" y="450" width="60" height="30" as="geometry"/>
2424
</mxCell>
2525
</root>
2626
</mxGraphModel>

0 commit comments

Comments
 (0)