[{"data":1,"prerenderedAt":1766},["ShallowReactive",2],{"lib:\u002Fplot\u002Fcomponents":3,"lib-nav:en:\u002Fplot":1741},{"id":4,"title":5,"body":6,"description":1732,"extension":1733,"group":1734,"meta":1735,"navigation":1486,"order":875,"path":1737,"seo":1738,"stem":1739,"__hash__":1740},"libs\u002Fplot\u002Fcomponents.md","Component API",{"type":7,"value":8,"toc":1720},"minimark",[9,13,17,22,52,60,65,665,686,690,729,921,925,941,947,950,1321,1324,1371,1462,1466,1502,1505,1509,1512,1581,1705,1716],[10,11,5],"h1",{"id":12},"component-api",[14,15,16],"p",{},"The props and events of the two components, as declared in @edubeam\u002Fplot 0.2.0. Neither has slots. Values in SI units are marked as such; sizes are CSS pixels.",[18,19,21],"h2",{"id":20},"structureplot","StructurePlot",[23,24,29],"pre",{"className":25,"code":26,"language":27,"meta":28,"style":28},"language-ts shiki shiki-themes github-light github-dark","import { StructurePlot } from '@edubeam\u002Fplot'\n","ts","",[30,31,32],"code",{"__ignoreMap":28},[33,34,37,41,45,48],"span",{"class":35,"line":36},"line",1,[33,38,40],{"class":39},"szBVR","import",[33,42,44],{"class":43},"sVt8B"," { StructurePlot } ",[33,46,47],{"class":39},"from",[33,49,51],{"class":50},"sZZnC"," '@edubeam\u002Fplot'\n",[14,53,54,55,59],{},"Draws a plane structure and its results. Guide: ",[56,57,21],"a",{"href":58},"\u002Fplot\u002Fstructure-plot",".",[61,62,64],"h3",{"id":63},"props","Props",[66,67,68,87],"table",{},[69,70,71],"thead",{},[72,73,74,78,81,84],"tr",{},[75,76,77],"th",{},"Prop",[75,79,80],{},"Type",[75,82,83],{},"Default",[75,85,86],{},"Description",[88,89,90,109,135,158,176,228,246,266,286,304,325,348,364,384,403,425,447,469,491,513,533,571,588,608,629,647],"tbody",{},[72,91,92,98,103,106],{},[93,94,95],"td",{},[30,96,97],{},"solver",[93,99,100],{},[30,101,102],{},"Solver",[93,104,105],{},"–",[93,107,108],{},"A @edubeam\u002Ffem solver. Results are drawn once its load case is solved.",[72,110,111,116,121,123],{},[93,112,113],{},[30,114,115],{},"model",[93,117,118],{},[30,119,120],{},"PlotModel",[93,122,105],{},[93,124,125,126,132,133,59],{},"Or the plain data ",[56,127,129],{"href":128},"\u002Fplot\u002Fmodel",[30,130,131],{},"modelFromSolver"," makes. Takes precedence over ",[30,134,97],{},[72,136,137,142,147,152],{},[93,138,139],{},[30,140,141],{},"loadCase",[93,143,144],{},[30,145,146],{},"number",[93,148,149],{},[30,150,151],{},"0",[93,153,154,155],{},"Index into ",[30,156,157],{},"solver.loadCases",[72,159,160,165,169,173],{},[93,161,162],{},[30,163,164],{},"revision",[93,166,167],{},[30,168,146],{},[93,170,171],{},[30,172,151],{},[93,174,175],{},"Change it to redraw a solver changed in place",[72,177,178,183,188,191],{},[93,179,180],{},[30,181,182],{},"layers",[93,184,185],{},[30,186,187],{},"readonly PlotLayer[]",[93,189,190],{},"members, supports, loads, reactions and one result",[93,192,193,194,197,198,197,201,197,204,197,207,197,210,197,213,197,216,197,219,197,222,197,225],{},"What to draw: ",[30,195,196],{},"'nodes'",", ",[30,199,200],{},"'nodeLabels'",[30,202,203],{},"'dimensions'",[30,205,206],{},"'members'",[30,208,209],{},"'supports'",[30,211,212],{},"'loads'",[30,214,215],{},"'reactions'",[30,217,218],{},"'N'",[30,220,221],{},"'V'",[30,223,224],{},"'M'",[30,226,227],{},"'w'",[72,229,230,235,239,243],{},[93,231,232],{},[30,233,234],{},"reserve",[93,236,237],{},[30,238,187],{},[93,240,241],{},[30,242,182],{},[93,244,245],{},"Layers to make room for while hidden",[72,247,248,253,258,263],{},[93,249,250],{},[30,251,252],{},"compact",[93,254,255],{},[30,256,257],{},"boolean",[93,259,260],{},[30,261,262],{},"false",[93,264,265],{},"Thumbnail drawing: smaller symbols, two values per member at most",[72,267,268,273,278,283],{},[93,269,270],{},[30,271,272],{},"units",[93,274,275],{},[30,276,277],{},"Partial\u003CUnits>",[93,279,280],{},[30,281,282],{},"KN_UNITS",[93,284,285],{},"Display units",[72,287,288,293,298,301],{},[93,289,290],{},[30,291,292],{},"numberFormat",[93,294,295],{},[30,296,297],{},"Intl.NumberFormat",[93,299,300],{},"English, at most 1 decimal",[93,302,303],{},"Formats every number",[72,305,306,311,316,318],{},[93,307,308],{},[30,309,310],{},"colors",[93,312,313],{},[30,314,315],{},"Partial\u003CPlotColors>",[93,317,105],{},[93,319,320,321],{},"Colour overrides by tone: ",[56,322,324],{"href":323},"\u002Fplot\u002Ftheming#the-colors-prop","Theming",[72,326,327,332,336,345],{},[93,328,329],{},[30,330,331],{},"width",[93,333,334],{},[30,335,146],{},[93,337,338,341,342],{},[30,339,340],{},"640",", compact ",[30,343,344],{},"400",[93,346,347],{},"Width before the box is measured, as on the server",[72,349,350,355,359,361],{},[93,351,352],{},[30,353,354],{},"height",[93,356,357],{},[30,358,146],{},[93,360,105],{},[93,362,363],{},"Fixed height. Without it, the height follows the drawing.",[72,365,366,371,375,381],{},[93,367,368],{},[30,369,370],{},"maxHeight",[93,372,373],{},[30,374,146],{},[93,376,377,380],{},[30,378,379],{},"max(320, 0.75 × width)",", compact none",[93,382,383],{},"Upper bound of the automatic height",[72,385,386,391,395,400],{},[93,387,388],{},[30,389,390],{},"padding",[93,392,393],{},[30,394,146],{},[93,396,397],{},[30,398,399],{},"6",[93,401,402],{},"Space around the drawing",[72,404,405,410,414,422],{},[93,406,407],{},[30,408,409],{},"fontSize",[93,411,412],{},[30,413,146],{},[93,415,416,341,419],{},[30,417,418],{},"13",[30,420,421],{},"11.5",[93,423,424],{},"Text size",[72,426,427,432,436,444],{},[93,428,429],{},[30,430,431],{},"diagramSize",[93,433,434],{},[30,435,146],{},[93,437,438,341,441],{},[30,439,440],{},"48",[30,442,443],{},"26",[93,445,446],{},"Length of the largest diagram ordinate",[72,448,449,454,458,466],{},[93,450,451],{},[30,452,453],{},"deformedSize",[93,455,456],{},[30,457,146],{},[93,459,460,341,463],{},[30,461,462],{},"30",[30,464,465],{},"18",[93,467,468],{},"Largest displacement on the deformed shape",[72,470,471,476,481,483],{},[93,472,473],{},[30,474,475],{},"diagramScale",[93,477,478],{},[30,479,480],{},"Partial\u003CRecord\u003CResultLayer, number>>",[93,482,105],{},[93,484,485,486,488,489],{},"Fixed px per SI unit for a result, overriding ",[30,487,431],{}," or ",[30,490,453],{},[72,492,493,498,502,507],{},[93,494,495],{},[30,496,497],{},"momentOnTensionSide",[93,499,500],{},[30,501,257],{},[93,503,504],{},[30,505,506],{},"true",[93,508,509,510,512],{},"M on the tension side; ",[30,511,262],{}," for the compression side",[72,514,515,520,525,530],{},[93,516,517],{},[30,518,519],{},"resultLabelMode",[93,521,522],{},[30,523,524],{},"'horizontal' | 'axis'",[93,526,527],{},[30,528,529],{},"'horizontal'",[93,531,532],{},"Values upright, or turned along their ordinate",[72,534,535,540,545,550],{},[93,536,537],{},[30,538,539],{},"reactionLabels",[93,541,542],{},[30,543,544],{},"'values' | 'names'",[93,546,547],{},[30,548,549],{},"'values'",[93,551,552,553,197,561,566,567],{},"Reactions as they act, with their size; or, for an exercise, every restrained direction named (",[554,555,556,557],"em",{},"A",[558,559,560],"sub",{},"x",[554,562,563,564],{},"M",[558,565,556],{},") and pointing the way it counts as positive. Names need no results: ",[56,568,570],{"href":569},"\u002Fplot\u002Fstructure-plot#reactions-as-unknowns","Reactions as unknowns",[72,572,573,578,583,585],{},[93,574,575],{},[30,576,577],{},"reserveLabelModes",[93,579,580],{},[30,581,582],{},"readonly ResultLabelMode[]",[93,584,105],{},[93,586,587],{},"Label modes to make room for besides the current one",[72,589,590,595,600,602],{},[93,591,592],{},[30,593,594],{},"reserveReactionLabels",[93,596,597],{},[30,598,599],{},"readonly ReactionLabels[]",[93,601,105],{},[93,603,604,605,607],{},"Reaction label styles to make room for besides ",[30,606,539],{},", so an exercise that turns into its solution keeps its drawing still",[72,609,610,615,619,623],{},[93,611,612],{},[30,613,614],{},"animate",[93,616,617],{},[30,618,257],{},[93,620,621],{},[30,622,506],{},[93,624,625,626,59],{},"Fade layers in and draw members on. Always off under ",[30,627,628],{},"prefers-reduced-motion",[72,630,631,636,640,644],{},[93,632,633],{},[30,634,635],{},"hover",[93,637,638],{},[30,639,257],{},[93,641,642],{},[30,643,262],{},[93,645,646],{},"Read values under the pointer, marked at each diagram's ordinate tip. Off, the plot takes no pointer input at all.",[72,648,649,654,659,662],{},[93,650,651],{},[30,652,653],{},"title",[93,655,656],{},[30,657,658],{},"string",[93,660,661],{},"a description of what is shown",[93,663,664],{},"Accessible name of the figure",[14,666,667,668,670,671,673,674,677,678,681,682,685],{},"Without ",[30,669,182],{},", the result is ",[30,672,563],{}," for beams and frames, ",[30,675,676],{},"N"," for a truss, and ",[30,679,680],{},"w"," when nothing carries a force (",[30,683,684],{},"defaultResultLayer",").",[61,687,689],{"id":688},"events","Events",[66,691,692,705],{},[69,693,694],{},[72,695,696,699,702],{},[75,697,698],{},"Event",[75,700,701],{},"Payload",[75,703,704],{},"When",[88,706,707],{},[72,708,709,714,719],{},[93,710,711],{},[30,712,713],{},"readout",[93,715,716],{},[30,717,718],{},"Readout | null",[93,720,721,722,724,725,728],{},"With ",[30,723,635],{},": the member point under the pointer and its results; ",[30,726,727],{},"null"," when it leaves",[23,730,732],{"className":25,"code":731,"language":27,"meta":28,"style":28},"interface Readout {\n  readonly member: string\n  readonly x: number \u002F\u002F m from the member's start node\n  readonly px: number \u002F\u002F the point on screen, px\n  readonly py: number\n  readonly values: Readonly\u003CRecord\u003C'N' | 'V' | 'M' | 'w', SidedValue>> \u002F\u002F SI units\n  readonly u: number \u002F\u002F displacement along the member's local x, m\n}\ninterface SidedValue {\n  readonly left: number\n  readonly right: number \u002F\u002F equal to left where the result is continuous\n}\n",[30,733,734,746,763,780,795,808,858,873,879,889,901,916],{"__ignoreMap":28},[33,735,736,739,743],{"class":35,"line":36},[33,737,738],{"class":39},"interface",[33,740,742],{"class":741},"sScJk"," Readout",[33,744,745],{"class":43}," {\n",[33,747,749,752,756,759],{"class":35,"line":748},2,[33,750,751],{"class":39},"  readonly",[33,753,755],{"class":754},"s4XuR"," member",[33,757,758],{"class":39},":",[33,760,762],{"class":761},"sj4cs"," string\n",[33,764,766,768,771,773,776],{"class":35,"line":765},3,[33,767,751],{"class":39},[33,769,770],{"class":754}," x",[33,772,758],{"class":39},[33,774,775],{"class":761}," number",[33,777,779],{"class":778},"sJ8bj"," \u002F\u002F m from the member's start node\n",[33,781,783,785,788,790,792],{"class":35,"line":782},4,[33,784,751],{"class":39},[33,786,787],{"class":754}," px",[33,789,758],{"class":39},[33,791,775],{"class":761},[33,793,794],{"class":778}," \u002F\u002F the point on screen, px\n",[33,796,798,800,803,805],{"class":35,"line":797},5,[33,799,751],{"class":39},[33,801,802],{"class":754}," py",[33,804,758],{"class":39},[33,806,807],{"class":761}," number\n",[33,809,811,813,816,818,821,824,827,829,831,834,837,839,842,844,847,849,852,855],{"class":35,"line":810},6,[33,812,751],{"class":39},[33,814,815],{"class":754}," values",[33,817,758],{"class":39},[33,819,820],{"class":741}," Readonly",[33,822,823],{"class":43},"\u003C",[33,825,826],{"class":741},"Record",[33,828,823],{"class":43},[33,830,218],{"class":50},[33,832,833],{"class":39}," |",[33,835,836],{"class":50}," 'V'",[33,838,833],{"class":39},[33,840,841],{"class":50}," 'M'",[33,843,833],{"class":39},[33,845,846],{"class":50}," 'w'",[33,848,197],{"class":43},[33,850,851],{"class":741},"SidedValue",[33,853,854],{"class":43},">> ",[33,856,857],{"class":778},"\u002F\u002F SI units\n",[33,859,861,863,866,868,870],{"class":35,"line":860},7,[33,862,751],{"class":39},[33,864,865],{"class":754}," u",[33,867,758],{"class":39},[33,869,775],{"class":761},[33,871,872],{"class":778}," \u002F\u002F displacement along the member's local x, m\n",[33,874,876],{"class":35,"line":875},8,[33,877,878],{"class":43},"}\n",[33,880,882,884,887],{"class":35,"line":881},9,[33,883,738],{"class":39},[33,885,886],{"class":741}," SidedValue",[33,888,745],{"class":43},[33,890,892,894,897,899],{"class":35,"line":891},10,[33,893,751],{"class":39},[33,895,896],{"class":754}," left",[33,898,758],{"class":39},[33,900,807],{"class":761},[33,902,904,906,909,911,913],{"class":35,"line":903},11,[33,905,751],{"class":39},[33,907,908],{"class":754}," right",[33,910,758],{"class":39},[33,912,775],{"class":761},[33,914,915],{"class":778}," \u002F\u002F equal to left where the result is continuous\n",[33,917,919],{"class":35,"line":918},12,[33,920,878],{"class":43},[18,922,924],{"id":923},"diagramstack","DiagramStack",[23,926,928],{"className":25,"code":927,"language":27,"meta":28,"style":28},"import { DiagramStack } from '@edubeam\u002Fplot'\n",[30,929,930],{"__ignoreMap":28},[33,931,932,934,937,939],{"class":35,"line":36},[33,933,40],{"class":39},[33,935,936],{"class":43}," { DiagramStack } ",[33,938,47],{"class":39},[33,940,51],{"class":50},[14,942,943,944,59],{},"Draws a straight beam over its diagrams on one x axis. The members must form one horizontal line, drawn left to right; anything else throws. Guide: ",[56,945,924],{"href":946},"\u002Fplot\u002Fdiagram-stack",[61,948,64],{"id":949},"props-1",[66,951,952,964],{},[69,953,954],{},[72,955,956,958,960,962],{},[75,957,77],{},[75,959,80],{},[75,961,83],{},[75,963,86],{},[88,965,966,981,999,1017,1033,1051,1079,1097,1115,1136,1151,1167,1181,1196,1214,1231,1248,1267,1287,1306],{},[72,967,968,972,976,978],{},[93,969,970],{},[30,971,97],{},[93,973,974],{},[30,975,102],{},[93,977,105],{},[93,979,980],{},"The solved beam",[72,982,983,987,991,993],{},[93,984,985],{},[30,986,115],{},[93,988,989],{},[30,990,120],{},[93,992,105],{},[93,994,995,996,998],{},"Or plain data from ",[30,997,131],{},"; takes precedence",[72,1000,1001,1005,1009,1013],{},[93,1002,1003],{},[30,1004,141],{},[93,1006,1007],{},[30,1008,146],{},[93,1010,1011],{},[30,1012,151],{},[93,1014,154,1015],{},[30,1016,157],{},[72,1018,1019,1023,1027,1031],{},[93,1020,1021],{},[30,1022,164],{},[93,1024,1025],{},[30,1026,146],{},[93,1028,1029],{},[30,1030,151],{},[93,1032,175],{},[72,1034,1035,1040,1045,1048],{},[93,1036,1037],{},[30,1038,1039],{},"members",[93,1041,1042],{},[30,1043,1044],{},"readonly string[]",[93,1046,1047],{},"all members",[93,1049,1050],{},"The members of the beam line",[72,1052,1053,1058,1063,1068],{},[93,1054,1055],{},[30,1056,1057],{},"rows",[93,1059,1060],{},[30,1061,1062],{},"readonly StackRow[]",[93,1064,1065],{},[30,1066,1067],{},"['V', 'M', 'w']",[93,1069,1070,1071,197,1073,197,1075,197,1077],{},"Diagram rows, top to bottom, of ",[30,1072,218],{},[30,1074,221],{},[30,1076,224],{},[30,1078,227],{},[72,1080,1081,1086,1090,1094],{},[93,1082,1083],{},[30,1084,1085],{},"loadRow",[93,1087,1088],{},[30,1089,257],{},[93,1091,1092],{},[30,1093,506],{},[93,1095,1096],{},"The beam with its supports, loads and reactions above the rows",[72,1098,1099,1104,1109,1112],{},[93,1100,1101],{},[30,1102,1103],{},"ranges",[93,1105,1106],{},[30,1107,1108],{},"Partial\u003CRecord\u003CStackRow, readonly [number, number]>>",[93,1110,1111],{},"each row's own",[93,1113,1114],{},"Value range per row, SI units",[72,1116,1117,1122,1127,1130],{},[93,1118,1119],{},[30,1120,1121],{},"rowHeights",[93,1123,1124],{},[30,1125,1126],{},"Partial\u003CRecord\u003CStackRow, number>>",[93,1128,1129],{},"N 100, V 116, M 128, w 76; below 560 px wide 88, 96, 104, 64",[93,1131,1132,1133,1135],{},"Row heights before ",[30,1134,370],{}," scales them",[72,1137,1138,1142,1146,1148],{},[93,1139,1140],{},[30,1141,370],{},[93,1143,1144],{},[30,1145,146],{},[93,1147,105],{},[93,1149,1150],{},"Rows shrink, to 60 % at most, so the figure fits. Text keeps its size.",[72,1152,1153,1157,1161,1165],{},[93,1154,1155],{},[30,1156,272],{},[93,1158,1159],{},[30,1160,277],{},[93,1162,1163],{},[30,1164,282],{},[93,1166,285],{},[72,1168,1169,1173,1177,1179],{},[93,1170,1171],{},[30,1172,292],{},[93,1174,1175],{},[30,1176,297],{},[93,1178,300],{},[93,1180,303],{},[72,1182,1183,1187,1191,1193],{},[93,1184,1185],{},[30,1186,310],{},[93,1188,1189],{},[30,1190,315],{},[93,1192,105],{},[93,1194,1195],{},"Colour overrides",[72,1197,1198,1202,1206,1211],{},[93,1199,1200],{},[30,1201,331],{},[93,1203,1204],{},[30,1205,146],{},[93,1207,1208],{},[30,1209,1210],{},"720",[93,1212,1213],{},"Width before the box is measured; at least 320 is used",[72,1215,1216,1220,1224,1229],{},[93,1217,1218],{},[30,1219,409],{},[93,1221,1222],{},[30,1223,146],{},[93,1225,1226],{},[30,1227,1228],{},"12.5",[93,1230,424],{},[72,1232,1233,1237,1241,1245],{},[93,1234,1235],{},[30,1236,635],{},[93,1238,1239],{},[30,1240,257],{},[93,1242,1243],{},[30,1244,506],{},[93,1246,1247],{},"The reading cursor. Off, the figure takes no pointer input.",[72,1249,1250,1255,1259,1261],{},[93,1251,1252],{},[30,1253,1254],{},"loadAt",[93,1256,1257],{},[30,1258,146],{},[93,1260,105],{},[93,1262,1263,1264],{},"Position (m along the line) of a point load the reader may drag; use with ",[30,1265,1266],{},"v-model:load-at",[72,1268,1269,1274,1278,1284],{},[93,1270,1271],{},[30,1272,1273],{},"loadLabel",[93,1275,1276],{},[30,1277,658],{},[93,1279,1280,1283],{},[30,1281,1282],{},"P = …"," with the load's magnitude",[93,1285,1286],{},"Text beside the draggable load",[72,1288,1289,1294,1298,1303],{},[93,1290,1291],{},[30,1292,1293],{},"loadStep",[93,1295,1296],{},[30,1297,146],{},[93,1299,1300],{},[30,1301,1302],{},"0.05",[93,1304,1305],{},"The drag rounds to this step, m; the arrow keys move by it",[72,1307,1308,1312,1316,1319],{},[93,1309,1310],{},[30,1311,653],{},[93,1313,1314],{},[30,1315,658],{},[93,1317,1318],{},"a description of the rows",[93,1320,664],{},[61,1322,689],{"id":1323},"events-1",[66,1325,1326,1336],{},[69,1327,1328],{},[72,1329,1330,1332,1334],{},[75,1331,698],{},[75,1333,701],{},[75,1335,704],{},[88,1337,1338,1354],{},[72,1339,1340,1345,1349],{},[93,1341,1342],{},[30,1343,1344],{},"update:loadAt",[93,1346,1347],{},[30,1348,146],{},[93,1350,1351,1352,59],{},"The reader moved the load: its new position, m. Drives ",[30,1353,1266],{},[72,1355,1356,1360,1365],{},[93,1357,1358],{},[30,1359,713],{},[93,1361,1362],{},[30,1363,1364],{},"StackReadout | null",[93,1366,1367,1368,1370],{},"The cursor's values across the rows; ",[30,1369,727],{}," when the pointer leaves",[23,1372,1374],{"className":25,"code":1373,"language":27,"meta":28,"style":28},"interface StackReadout {\n  readonly x: number \u002F\u002F m along the beam line\n  readonly values: Partial\u003CRecord\u003C'N' | 'V' | 'M' | 'w', { readonly left: number; readonly right: number }>> \u002F\u002F SI\n}\n",[30,1375,1376,1385,1398,1458],{"__ignoreMap":28},[33,1377,1378,1380,1383],{"class":35,"line":36},[33,1379,738],{"class":39},[33,1381,1382],{"class":741}," StackReadout",[33,1384,745],{"class":43},[33,1386,1387,1389,1391,1393,1395],{"class":35,"line":748},[33,1388,751],{"class":39},[33,1390,770],{"class":754},[33,1392,758],{"class":39},[33,1394,775],{"class":761},[33,1396,1397],{"class":778}," \u002F\u002F m along the beam line\n",[33,1399,1400,1402,1404,1406,1409,1411,1413,1415,1417,1419,1421,1423,1425,1427,1429,1432,1435,1437,1439,1441,1444,1446,1448,1450,1452,1455],{"class":35,"line":765},[33,1401,751],{"class":39},[33,1403,815],{"class":754},[33,1405,758],{"class":39},[33,1407,1408],{"class":741}," Partial",[33,1410,823],{"class":43},[33,1412,826],{"class":741},[33,1414,823],{"class":43},[33,1416,218],{"class":50},[33,1418,833],{"class":39},[33,1420,836],{"class":50},[33,1422,833],{"class":39},[33,1424,841],{"class":50},[33,1426,833],{"class":39},[33,1428,846],{"class":50},[33,1430,1431],{"class":43},", { ",[33,1433,1434],{"class":39},"readonly",[33,1436,896],{"class":754},[33,1438,758],{"class":39},[33,1440,775],{"class":761},[33,1442,1443],{"class":43},"; ",[33,1445,1434],{"class":39},[33,1447,908],{"class":754},[33,1449,758],{"class":39},[33,1451,775],{"class":761},[33,1453,1454],{"class":43}," }>> ",[33,1456,1457],{"class":778},"\u002F\u002F SI\n",[33,1459,1460],{"class":35,"line":782},[33,1461,878],{"class":43},[18,1463,1465],{"id":1464},"the-plugin","The plugin",[23,1467,1469],{"className":25,"code":1468,"language":27,"meta":28,"style":28},"import { EduBeamPlot } from '@edubeam\u002Fplot'\n\napp.use(EduBeamPlot) \u002F\u002F registers \u003CStructurePlot> and \u003CDiagramStack> globally\n",[30,1470,1471,1482,1488],{"__ignoreMap":28},[33,1472,1473,1475,1478,1480],{"class":35,"line":36},[33,1474,40],{"class":39},[33,1476,1477],{"class":43}," { EduBeamPlot } ",[33,1479,47],{"class":39},[33,1481,51],{"class":50},[33,1483,1484],{"class":35,"line":748},[33,1485,1487],{"emptyLinePlaceholder":1486},true,"\n",[33,1489,1490,1493,1496,1499],{"class":35,"line":765},[33,1491,1492],{"class":43},"app.",[33,1494,1495],{"class":741},"use",[33,1497,1498],{"class":43},"(EduBeamPlot) ",[33,1500,1501],{"class":778},"\u002F\u002F registers \u003CStructurePlot> and \u003CDiagramStack> globally\n",[14,1503,1504],{},"It is optional: importing the components by name is lighter, and a bundler drops the plugin from a build that does not use it.",[18,1506,1508],{"id":1507},"types","Types",[14,1510,1511],{},"For typed wrappers around the components, the package exports their props and events:",[23,1513,1515],{"className":25,"code":1514,"language":27,"meta":28,"style":28},"import type { PlotLayer, StructurePlotProps } from '@edubeam\u002Fplot'\n\nconst figure: StructurePlotProps = { layers: ['members', 'supports', 'M'] satisfies PlotLayer[], compact: true }\n",[30,1516,1517,1531,1535],{"__ignoreMap":28},[33,1518,1519,1521,1524,1527,1529],{"class":35,"line":36},[33,1520,40],{"class":39},[33,1522,1523],{"class":39}," type",[33,1525,1526],{"class":43}," { PlotLayer, StructurePlotProps } ",[33,1528,47],{"class":39},[33,1530,51],{"class":50},[33,1532,1533],{"class":35,"line":748},[33,1534,1487],{"emptyLinePlaceholder":1486},[33,1536,1537,1540,1543,1545,1548,1551,1554,1556,1558,1560,1562,1564,1567,1570,1573,1576,1578],{"class":35,"line":765},[33,1538,1539],{"class":39},"const",[33,1541,1542],{"class":761}," figure",[33,1544,758],{"class":39},[33,1546,1547],{"class":741}," StructurePlotProps",[33,1549,1550],{"class":39}," =",[33,1552,1553],{"class":43}," { layers: [",[33,1555,206],{"class":50},[33,1557,197],{"class":43},[33,1559,209],{"class":50},[33,1561,197],{"class":43},[33,1563,224],{"class":50},[33,1565,1566],{"class":43},"] ",[33,1568,1569],{"class":39},"satisfies",[33,1571,1572],{"class":741}," PlotLayer",[33,1574,1575],{"class":43},"[], compact: ",[33,1577,506],{"class":761},[33,1579,1580],{"class":43}," }\n",[66,1582,1583,1592],{},[69,1584,1585],{},[72,1586,1587,1589],{},[75,1588,80],{},[75,1590,1591],{},"Is",[88,1593,1594,1609,1623,1641,1663,1683,1693],{},[72,1595,1596,1604],{},[93,1597,1598,197,1601],{},[30,1599,1600],{},"StructurePlotProps",[30,1602,1603],{},"StructurePlotEmits",[93,1605,1606,1607],{},"The props and events of ",[30,1608,21],{},[72,1610,1611,1619],{},[93,1612,1613,197,1616],{},[30,1614,1615],{},"DiagramStackProps",[30,1617,1618],{},"DiagramStackEmits",[93,1620,1606,1621],{},[30,1622,924],{},[72,1624,1625,1638],{},[93,1626,1627,197,1630,197,1633,197,1635],{},[30,1628,1629],{},"Readout",[30,1631,1632],{},"ReadoutQuantity",[30,1634,851],{},[30,1636,1637],{},"StackReadout",[93,1639,1640],{},"Event payloads",[72,1642,1643,1660],{},[93,1644,1645,197,1648,197,1651,197,1654,197,1657],{},[30,1646,1647],{},"PlotLayer",[30,1649,1650],{},"ResultLayer",[30,1652,1653],{},"ResultLabelMode",[30,1655,1656],{},"ReactionLabels",[30,1658,1659],{},"StackRow",[93,1661,1662],{},"Layer, result, label mode, reaction label and row names",[72,1664,1665,1676],{},[93,1666,1667,197,1670,197,1673],{},[30,1668,1669],{},"Units",[30,1671,1672],{},"Unit",[30,1674,1675],{},"UnitKind",[93,1677,1678,1679,1682],{},"Display units: ",[30,1680,1681],{},"{ symbol, scale }"," per kind",[72,1684,1685,1690],{},[93,1686,1687],{},[30,1688,1689],{},"PlotColors",[93,1691,1692],{},"Colours by tone",[72,1694,1695,1699],{},[93,1696,1697],{},[30,1698,120],{},[93,1700,1701,1702],{},"The plain model: ",[56,1703,1704],{"href":128},"Plot model",[14,1706,1707,1708,1711,1712,59],{},"The remaining exports, ",[30,1709,1710],{},"structureSvg"," for SVG files and the functions behind the drawing among them, are in ",[56,1713,1715],{"href":1714},"\u002Fplot\u002Ffunctions","Functions",[1717,1718,1719],"style",{},"html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .s4XuR, html code.shiki .s4XuR{--shiki-default:#E36209;--shiki-dark:#FFAB70}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}",{"title":28,"searchDepth":748,"depth":765,"links":1721},[1722,1726,1730,1731],{"id":20,"depth":748,"text":21,"children":1723},[1724,1725],{"id":63,"depth":765,"text":64},{"id":688,"depth":765,"text":689},{"id":923,"depth":748,"text":924,"children":1727},[1728,1729],{"id":949,"depth":765,"text":64},{"id":1323,"depth":765,"text":689},{"id":1464,"depth":748,"text":1465},{"id":1507,"depth":748,"text":1508},"Every prop and event of StructurePlot and DiagramStack in @edubeam\u002Fplot 0.2.0, with types and defaults, the EduBeamPlot plugin and the exported prop types.","md","Reference",{"source":1736},"site","\u002Fplot\u002Fcomponents",{"title":5,"description":1732},"plot\u002Fcomponents","YwbSgByA6nh3I41IcuCtrdYYpeYcMuJV76jMsnYN-Ps",[1742,1746,1748,1750,1753,1757,1760,1763,1764,1765],{"path":1743,"title":1744,"order":36,"group":1745},"\u002Fplot\u002Fgetting-started","Getting started","Introduction",{"path":58,"title":21,"order":748,"group":1747},"Components",{"path":946,"title":924,"order":765,"group":1749},null,{"path":1751,"title":1752,"order":782,"group":1749},"\u002Fplot\u002Ftheming","Theming and colours",{"path":1754,"title":1755,"order":797,"group":1756},"\u002Fplot\u002Fexercises","Exercises and tests","Use cases",{"path":1758,"title":1759,"order":810,"group":1749},"\u002Fplot\u002Fslides","Slides and notes",{"path":1761,"title":1762,"order":860,"group":1749},"\u002Fplot\u002Fembedding","Embedding",{"path":1737,"title":5,"order":875,"group":1734},{"path":128,"title":1704,"order":881,"group":1749},{"path":1714,"title":1715,"order":891,"group":1749},1795108676376]