[{"data":1,"prerenderedAt":1947},["ShallowReactive",2],{"lib:\u002Fplot\u002Fstructure-plot":3,"lib-nav:en:\u002Fplot":1919},{"id":4,"title":5,"body":6,"description":1910,"extension":1911,"group":1912,"meta":1913,"navigation":357,"order":335,"path":1915,"seo":1916,"stem":1917,"__hash__":1918},"libs\u002Fplot\u002Fstructure-plot.md","StructurePlot",{"type":7,"value":8,"toc":1897},"minimark",[9,13,26,109,117,135,145,149,152,275,290,297,301,307,610,626,630,633,643,647,672,754,765,794,798,807,895,903,907,999,1142,1147,1153,1422,1426,1429,1480,1487,1546,1578,1582,1595,1840,1870,1876,1880,1893],[10,11,5],"h1",{"id":12},"structureplot",[14,15,16,19,20,25],"p",{},[17,18,5],"code",{}," draws a whole structure, fitted to the width of its box: members, hinges, supports, loads, reactions, the N, V and M diagrams and the deformed shape. Give it a solver, or the ",[21,22,24],"a",{"href":23},"\u002Fplot\u002Fmodel","plain model"," made from one, and say what to draw.",[27,28,33],"pre",{"className":29,"code":30,"language":31,"meta":32,"style":32},"language-vue shiki shiki-themes github-light github-dark","\u003CStructurePlot :solver=\"solver\" :layers=\"['members', 'supports', 'loads', 'reactions', 'M']\" \u002F>\n","vue","",[17,34,35],{"__ignoreMap":32},[36,37,40,44,47,50,54,57,61,63,65,67,70,72,74,77,80,83,86,88,91,93,96,98,101,104,106],"span",{"class":38,"line":39},"line",1,[36,41,43],{"class":42},"sVt8B","\u003C",[36,45,5],{"class":46},"s9eBZ",[36,48,49],{"class":42}," :",[36,51,53],{"class":52},"sScJk","solver",[36,55,56],{"class":42},"=",[36,58,60],{"class":59},"sZZnC","\"",[36,62,53],{"class":42},[36,64,60],{"class":59},[36,66,49],{"class":42},[36,68,69],{"class":52},"layers",[36,71,56],{"class":42},[36,73,60],{"class":59},[36,75,76],{"class":42},"[",[36,78,79],{"class":59},"'members'",[36,81,82],{"class":42},", ",[36,84,85],{"class":59},"'supports'",[36,87,82],{"class":42},[36,89,90],{"class":59},"'loads'",[36,92,82],{"class":42},[36,94,95],{"class":59},"'reactions'",[36,97,82],{"class":42},[36,99,100],{"class":59},"'M'",[36,102,103],{"class":42},"]",[36,105,60],{"class":59},[36,107,108],{"class":42}," \u002F>\n",[14,110,111,112,116],{},"Every prop, with its type and default, is in the ",[21,113,115],{"href":114},"\u002Fplot\u002Fcomponents#structureplot","Component API",".",[14,118,119,120,122,123,126,127,130,131,134],{},"This figure is a ",[17,121,5],{}," with ",[17,124,125],{},"nodeLabels"," and ",[17,128,129],{},"dimensions"," on, ",[17,132,133],{},"hover"," set, and this site's number format of four significant digits: switch between the results, and point at a member to read its values.",[136,137],"model-figure",{":loads":138,":members":139,":nodes":140,":results":141,":show":142,":supports":143,"caption":144},"[{\"member\":2,\"qz\":10},{\"node\":\"B\",\"fx\":15}]","[[\"A\",\"B\"],[\"B\",\"C\"],[\"C\",\"D\"]]","{\"A\":[0,0],\"B\":[0,-4],\"C\":[6,-4],\"D\":[6,0]}","[\"M\",\"V\",\"N\",\"w\"]","[\"nodeLabels\",\"dimensions\"]","{\"A\":\"pin\",\"D\":\"pin\"}","A portal frame: pinned feet, 10 kN\u002Fm on the beam, 15 kN at B",[146,147,148],"h2",{"id":69},"Layers",[14,150,151],{},"A plot is made of layers, painted in a fixed order whatever order you list them in:",[153,154,155,168],"table",{},[156,157,158],"thead",{},[159,160,161,165],"tr",{},[162,163,164],"th",{},"Layer",[162,166,167],{},"Draws",[169,170,171,182,192,202,221,231,240,249,265],"tbody",{},[159,172,173,179],{},[174,175,176],"td",{},[17,177,178],{},"members",[174,180,181],{},"the members, with hinges as small circles",[159,183,184,189],{},[174,185,186],{},[17,187,188],{},"supports",[174,190,191],{},"a symbol for every support, turned for inclined ones",[159,193,194,199],{},[174,195,196],{},[17,197,198],{},"loads",[174,200,201],{},"nodal and member loads, temperature and settlements, with their values",[159,203,204,209],{},[174,205,206],{},[17,207,208],{},"reactions",[174,210,211,212,215,216,220],{},"the reactions, as arrows and curved arrows with their values; or, with ",[17,213,214],{},"reactionLabels: 'names'",", as the ",[21,217,219],{"href":218},"#reactions-as-unknowns","named unknowns"," of an exercise",[159,222,223,228],{},[174,224,225],{},[17,226,227],{},"nodes",[174,229,230],{},"every node as a small circle",[159,232,233,237],{},[174,234,235],{},[17,236,125],{},[174,238,239],{},"the node labels",[159,241,242,246],{},[174,243,244],{},[17,245,129],{},[174,247,248],{},"chain dimensions, as an exercise sheet gives them: every span between nodes and point loads below the structure, every storey to its right, and the overall size on a second line",[159,250,251,262],{},[174,252,253,82,256,82,259],{},[17,254,255],{},"N",[17,257,258],{},"V",[17,260,261],{},"M",[174,263,264],{},"the normal force, shear force and bending moment diagrams",[159,266,267,272],{},[174,268,269],{},[17,270,271],{},"w",[174,273,274],{},"the deformed shape",[14,276,277,278,280,281,283,284,286,287,289],{},"Leave ",[17,279,69],{}," out and the plot draws members, supports, loads and reactions, plus one result chosen for the structure: ",[17,282,261],{}," for beams and frames, ",[17,285,255],{}," for a truss, and ",[17,288,271],{}," when nothing carries a force, as in a beam free to expand under a temperature load.",[14,291,292,293,296],{},"The diagrams follow the EduBeam app: N and V are hatched across the member, and M hangs on the tension side, so a sagging moment is below a beam. ",[17,294,295],{},":moment-on-tension-side=\"false\""," draws M on the compression side instead. A truss shows each bar's force once, along the bar, coloured by sign.",[146,298,300],{"id":299},"figures-that-build-up","Figures that build up",[14,302,303,306],{},[17,304,305],{},"reserve"," lists layers to make room for while they are hidden. The plot lays out every reserved layer from the start, so when one is switched on it fades in where it belongs and nothing else moves:",[27,308,310],{"className":29,"code":309,"language":31,"meta":32,"style":32},"\u003Cscript setup lang=\"ts\">\nimport type { PlotLayer } from '@edubeam\u002Fplot'\n\nconst stages: PlotLayer[][] = [\n  ['nodes', 'nodeLabels', 'dimensions'],\n  ['nodeLabels', 'members', 'supports'],\n  ['nodeLabels', 'members', 'supports', 'loads'],\n  ['members', 'supports', 'loads', 'reactions'],\n  ['members', 'supports', 'reactions', 'M'],\n]\nconst all = [...new Set(stages.flat())]\n\u002F\u002F `frame` is a solved solver and `step` the current stage: Slides and notes has the whole component\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CStructurePlot :solver=\"frame\" :layers=\"stages[step]\" :reserve=\"all\" \u002F>\n\u003C\u002Ftemplate>\n",[17,311,312,333,352,359,383,405,422,443,464,485,491,520,527,537,542,552,601],{"__ignoreMap":32},[36,313,314,316,319,322,325,327,330],{"class":38,"line":39},[36,315,43],{"class":42},[36,317,318],{"class":46},"script",[36,320,321],{"class":52}," setup",[36,323,324],{"class":52}," lang",[36,326,56],{"class":42},[36,328,329],{"class":59},"\"ts\"",[36,331,332],{"class":42},">\n",[36,334,336,340,343,346,349],{"class":38,"line":335},2,[36,337,339],{"class":338},"szBVR","import",[36,341,342],{"class":338}," type",[36,344,345],{"class":42}," { PlotLayer } ",[36,347,348],{"class":338},"from",[36,350,351],{"class":59}," '@edubeam\u002Fplot'\n",[36,353,355],{"class":38,"line":354},3,[36,356,358],{"emptyLinePlaceholder":357},true,"\n",[36,360,362,365,369,372,375,378,380],{"class":38,"line":361},4,[36,363,364],{"class":338},"const",[36,366,368],{"class":367},"sj4cs"," stages",[36,370,371],{"class":338},":",[36,373,374],{"class":52}," PlotLayer",[36,376,377],{"class":42},"[][] ",[36,379,56],{"class":338},[36,381,382],{"class":42}," [\n",[36,384,386,389,392,394,397,399,402],{"class":38,"line":385},5,[36,387,388],{"class":42},"  [",[36,390,391],{"class":59},"'nodes'",[36,393,82],{"class":42},[36,395,396],{"class":59},"'nodeLabels'",[36,398,82],{"class":42},[36,400,401],{"class":59},"'dimensions'",[36,403,404],{"class":42},"],\n",[36,406,408,410,412,414,416,418,420],{"class":38,"line":407},6,[36,409,388],{"class":42},[36,411,396],{"class":59},[36,413,82],{"class":42},[36,415,79],{"class":59},[36,417,82],{"class":42},[36,419,85],{"class":59},[36,421,404],{"class":42},[36,423,425,427,429,431,433,435,437,439,441],{"class":38,"line":424},7,[36,426,388],{"class":42},[36,428,396],{"class":59},[36,430,82],{"class":42},[36,432,79],{"class":59},[36,434,82],{"class":42},[36,436,85],{"class":59},[36,438,82],{"class":42},[36,440,90],{"class":59},[36,442,404],{"class":42},[36,444,446,448,450,452,454,456,458,460,462],{"class":38,"line":445},8,[36,447,388],{"class":42},[36,449,79],{"class":59},[36,451,82],{"class":42},[36,453,85],{"class":59},[36,455,82],{"class":42},[36,457,90],{"class":59},[36,459,82],{"class":42},[36,461,95],{"class":59},[36,463,404],{"class":42},[36,465,467,469,471,473,475,477,479,481,483],{"class":38,"line":466},9,[36,468,388],{"class":42},[36,470,79],{"class":59},[36,472,82],{"class":42},[36,474,85],{"class":59},[36,476,82],{"class":42},[36,478,95],{"class":59},[36,480,82],{"class":42},[36,482,100],{"class":59},[36,484,404],{"class":42},[36,486,488],{"class":38,"line":487},10,[36,489,490],{"class":42},"]\n",[36,492,494,496,499,502,505,508,511,514,517],{"class":38,"line":493},11,[36,495,364],{"class":338},[36,497,498],{"class":367}," all",[36,500,501],{"class":338}," =",[36,503,504],{"class":42}," [",[36,506,507],{"class":338},"...new",[36,509,510],{"class":52}," Set",[36,512,513],{"class":42},"(stages.",[36,515,516],{"class":52},"flat",[36,518,519],{"class":42},"())]\n",[36,521,523],{"class":38,"line":522},12,[36,524,526],{"class":525},"sJ8bj","\u002F\u002F `frame` is a solved solver and `step` the current stage: Slides and notes has the whole component\n",[36,528,530,533,535],{"class":38,"line":529},13,[36,531,532],{"class":42},"\u003C\u002F",[36,534,318],{"class":46},[36,536,332],{"class":42},[36,538,540],{"class":38,"line":539},14,[36,541,358],{"emptyLinePlaceholder":357},[36,543,545,547,550],{"class":38,"line":544},15,[36,546,43],{"class":42},[36,548,549],{"class":46},"template",[36,551,332],{"class":42},[36,553,555,558,560,562,564,566,568,571,573,575,577,579,581,584,586,588,590,592,594,597,599],{"class":38,"line":554},16,[36,556,557],{"class":42},"  \u003C",[36,559,5],{"class":46},[36,561,49],{"class":42},[36,563,53],{"class":52},[36,565,56],{"class":42},[36,567,60],{"class":59},[36,569,570],{"class":42},"frame",[36,572,60],{"class":59},[36,574,49],{"class":42},[36,576,69],{"class":52},[36,578,56],{"class":42},[36,580,60],{"class":59},[36,582,583],{"class":42},"stages[step]",[36,585,60],{"class":59},[36,587,49],{"class":42},[36,589,305],{"class":52},[36,591,56],{"class":42},[36,593,60],{"class":59},[36,595,596],{"class":42},"all",[36,598,60],{"class":59},[36,600,108],{"class":42},[36,602,604,606,608],{"class":38,"line":603},17,[36,605,532],{"class":42},[36,607,549],{"class":46},[36,609,332],{"class":42},[14,611,612,613,616,617,620,621,625],{},"With ",[17,614,615],{},"animate",", on by default, layers fade in and members draw themselves from end to end. Under ",[17,618,619],{},"prefers-reduced-motion"," nothing animates. ",[21,622,624],{"href":623},"\u002Fplot\u002Fslides","Slides and notes"," puts this figure in a slide deck.",[146,627,629],{"id":628},"diagram-values","Diagram values",[14,631,632],{},"Each value is written just beyond the tip of the ordinate it belongs to, as a textbook labels a diagram: every non-zero member end, the extremes in between, both values at a step, and a rigid corner once. Values are bare numbers in the display unit (kN for N and V, kNm for M), and so are the reactions, as in the EduBeam app; units are written only with what is given: loads, settlements and temperature changes. A label that would overlap another label, a member or an arrow tries other places at the same tip, and is left out if none is free, so two numbers never sit on top of each other. The values of loads and reactions are placed first, so a diagram's numbers never push them out. Truss bar forces are never left out: they slide along the bar, flip sides and, as a last resort, shrink.",[14,634,635,638,639,642],{},[17,636,637],{},"result-label-mode=\"axis\""," turns the values to run along their ordinates, as the EduBeam app writes them. If the reader can switch between the two, give ",[17,640,641],{},":reserve-label-modes=\"['horizontal', 'axis']\""," so the drawing does not move when they do.",[146,644,646],{"id":645},"reactions-as-unknowns","Reactions as unknowns",[14,648,649,650,653,654,82,662,82,667,671],{},"An exercise sheet asks for the reactions, so it should show them without their values. ",[17,651,652],{},"reaction-labels=\"names\""," draws an arrow for every direction a support holds, pointing the way it counts as positive: along the node's x (to the right unless the support is turned), upwards, and counter-clockwise for a fixing moment. Each is named after its node, ",[655,656,657,658],"em",{},"A",[659,660,661],"sub",{},"x",[655,663,657,664],{},[659,665,666],{},"z",[655,668,261,669],{},[659,670,657],{},", in italics with a real subscript. The sign of every answer is then defined on the drawing: a reaction that acts the other way is negative.",[27,673,675],{"className":29,"code":674,"language":31,"meta":32,"style":32},"\u003CStructurePlot\n  :model=\"model\"\n  :layers=\"['members', 'supports', 'loads', 'reactions', 'nodeLabels', 'dimensions']\"\n  reaction-labels=\"names\"\n\u002F>\n",[17,676,677,684,701,739,749],{"__ignoreMap":32},[36,678,679,681],{"class":38,"line":39},[36,680,43],{"class":42},[36,682,683],{"class":46},"StructurePlot\n",[36,685,686,689,692,694,696,698],{"class":38,"line":335},[36,687,688],{"class":42},"  :",[36,690,691],{"class":52},"model",[36,693,56],{"class":42},[36,695,60],{"class":59},[36,697,691],{"class":42},[36,699,700],{"class":59},"\"\n",[36,702,703,705,707,709,711,713,715,717,719,721,723,725,727,729,731,733,735,737],{"class":38,"line":354},[36,704,688],{"class":42},[36,706,69],{"class":52},[36,708,56],{"class":42},[36,710,60],{"class":59},[36,712,76],{"class":42},[36,714,79],{"class":59},[36,716,82],{"class":42},[36,718,85],{"class":59},[36,720,82],{"class":42},[36,722,90],{"class":59},[36,724,82],{"class":42},[36,726,95],{"class":59},[36,728,82],{"class":42},[36,730,396],{"class":59},[36,732,82],{"class":42},[36,734,401],{"class":59},[36,736,103],{"class":42},[36,738,700],{"class":59},[36,740,741,744,746],{"class":38,"line":361},[36,742,743],{"class":52},"  reaction-labels",[36,745,56],{"class":42},[36,747,748],{"class":59},"\"names\"\n",[36,750,751],{"class":38,"line":385},[36,752,753],{"class":42},"\u002F>\n",[14,755,756],{},[757,758],"img",{"alt":759,"className":760,"height":762,"src":763,"width":764},"Above, a propped cantilever as an exercise sheet: fixed at A, a roller at B, 40 kN at midspan, chain dimensions of 3 m and 3 m with 6 m overall, and the reactions drawn as named arrows A_x, A_z, M_A and B_z. Below, the same beam with the default reaction labels: 27.5 and 12.5 up, a fixing moment of 45, and the bending moment from −45 at the wall to 37.5 under the load",[761],"shot-lg",894,"\u002Fscreenshots\u002Fp4-plot-reaction-names.webp",1200,[14,766,767,768,771,772,775,776,779,780,784,785,788,789,793],{},"Names need no results, so a model that has not been solved can be drawn as a sheet. Leave ",[17,769,770],{},"reactionLabels"," at ",[17,773,774],{},"'values'"," for the key. The names and the values take different room (a horizontal reaction of zero has a name on the sheet but no arrow in the key), so a plot that switches between them should make room for both with ",[17,777,778],{},":reserve-reaction-labels=\"['names', 'values']\"",": the drawing then stays where it is and only the labels change. The exercise card in ",[21,781,783],{"href":782},"\u002Fplot\u002Fexercises#the-exercise-in-a-page","Exercises and tests"," switches between them with an ",[17,786,787],{},"answers"," prop, as this site's ",[21,790,792],{"href":791},"\u002Fpractice","practice problems"," do when the student asks for the solution.",[146,795,797],{"id":796},"thumbnails","Thumbnails",[14,799,800,803,804,116],{},[17,801,802],{},"compact"," draws for tiles of about 400 × 200 px: smaller symbols and 11.5 px text, at most two values per member, and line loads labelled by their magnitude alone, without ",[17,805,806],{},"q =",[27,808,810],{"className":29,"code":809,"language":31,"meta":32,"style":32},"\u003CStructurePlot v-for=\"t in tiles\" :key=\"t.title\" :solver=\"t.solver\" compact :height=\"200\" :title=\"t.title\" \u002F>\n",[17,811,812],{"__ignoreMap":32},[36,813,814,816,818,821,823,825,828,831,834,836,838,841,843,845,848,850,852,854,856,858,861,863,866,868,871,873,875,878,880,882,885,887,889,891,893],{"class":38,"line":39},[36,815,43],{"class":42},[36,817,5],{"class":46},[36,819,820],{"class":338}," v-for",[36,822,56],{"class":42},[36,824,60],{"class":59},[36,826,827],{"class":42},"t ",[36,829,830],{"class":338},"in",[36,832,833],{"class":42}," tiles",[36,835,60],{"class":59},[36,837,49],{"class":42},[36,839,840],{"class":52},"key",[36,842,56],{"class":42},[36,844,60],{"class":59},[36,846,847],{"class":42},"t.title",[36,849,60],{"class":59},[36,851,49],{"class":42},[36,853,53],{"class":52},[36,855,56],{"class":42},[36,857,60],{"class":59},[36,859,860],{"class":42},"t.solver",[36,862,60],{"class":59},[36,864,865],{"class":52}," compact",[36,867,49],{"class":42},[36,869,870],{"class":52},"height",[36,872,56],{"class":42},[36,874,60],{"class":59},[36,876,877],{"class":367},"200",[36,879,60],{"class":59},[36,881,49],{"class":42},[36,883,884],{"class":52},"title",[36,886,56],{"class":42},[36,888,60],{"class":59},[36,890,847],{"class":42},[36,892,60],{"class":59},[36,894,108],{"class":42},[14,896,897,898,902],{},"The ",[21,899,901],{"href":900},"\u002Fexamples\u002F","examples gallery"," of this site is drawn this way.",[146,904,906],{"id":905},"size","Size",[14,908,909,910,912,913,916,917,995,996,998],{},"The plot measures its box and lays out at that width, in real pixels. Without ",[17,911,870],{}," its height follows the drawing, up to ",[17,914,915],{},"maxHeight",", by default ",[36,918,921],{"className":919},[920],"katex",[36,922,926,976],{"className":923,"ariaHidden":925},[924],"katex-html","true",[36,927,930,935,940,945,950,955,960,964,968,973],{"className":928},[929],"katex-base",[36,931],{"className":932,"style":934},[933],"katex-strut","height:1em;vertical-align:-0.25em;",[36,936,939],{"className":937},[938],"mop","max",[36,941,944],{"className":942},[943],"mopen","(",[36,946,949],{"className":947},[948],"mord","320",[36,951,954],{"className":952},[953],"mpunct",",",[36,956],{"className":957,"style":959},[958],"mspace","margin-right:0.1667em;",[36,961,963],{"className":962},[948],"0.75",[36,965],{"className":966,"style":967},[958],"margin-right:0.2222em;",[36,969,972],{"className":970},[971],"mbin","×",[36,974],{"className":975,"style":967},[958],[36,977,979,982,990],{"className":978},[929],[36,980],{"className":981,"style":934},[933],[36,983,986],{"className":984},[948,985],"text",[36,987,989],{"className":988},[948],"width",[36,991,994],{"className":992},[993],"mclose",")",". Before it can measure, on the server for instance, it uses ",[17,997,989],{},", 640 px by default.",[153,1000,1001,1014],{},[156,1002,1003],{},[159,1004,1005,1008,1011],{},[162,1006,1007],{},"Prop",[162,1009,1010],{},"Default",[162,1012,1013],{},"Sets",[169,1015,1016,1028,1040,1090,1103,1116,1129],{},[159,1017,1018,1022,1025],{},[174,1019,1020],{},[17,1021,989],{},[174,1023,1024],{},"640, compact 400",[174,1026,1027],{},"the layout width until the box is measured, px",[159,1029,1030,1034,1037],{},[174,1031,1032],{},[17,1033,870],{},[174,1035,1036],{},"follows the drawing",[174,1038,1039],{},"a fixed height, px",[159,1041,1042,1046,1087],{},[174,1043,1044],{},[17,1045,915],{},[174,1047,1048,1086],{},[36,1049,1051],{"className":1050},[920],[36,1052,1054],{"className":1053,"ariaHidden":925},[924],[36,1055,1057,1060,1063,1066,1069,1072,1075,1078,1083],{"className":1056},[929],[36,1058],{"className":1059,"style":934},[933],[36,1061,939],{"className":1062},[938],[36,1064,944],{"className":1065},[943],[36,1067,949],{"className":1068},[948],[36,1070,954],{"className":1071},[953],[36,1073],{"className":1074,"style":959},[958],[36,1076,963],{"className":1077},[948],[36,1079,271],{"className":1080,"style":1082},[948,1081],"mathnormal","margin-right:0.0269em;",[36,1084,994],{"className":1085},[993],", compact none",[174,1088,1089],{},"the upper bound of the automatic height",[159,1091,1092,1097,1100],{},[174,1093,1094],{},[17,1095,1096],{},"padding",[174,1098,1099],{},"6",[174,1101,1102],{},"space around the drawing, px",[159,1104,1105,1110,1113],{},[174,1106,1107],{},[17,1108,1109],{},"fontSize",[174,1111,1112],{},"13, compact 11.5",[174,1114,1115],{},"text size, px",[159,1117,1118,1123,1126],{},[174,1119,1120],{},[17,1121,1122],{},"diagramSize",[174,1124,1125],{},"48, compact 26",[174,1127,1128],{},"the length of the largest ordinate, px",[159,1130,1131,1136,1139],{},[174,1132,1133],{},[17,1134,1135],{},"deformedSize",[174,1137,1138],{},"30, compact 18",[174,1140,1141],{},"the largest displacement of the deformed shape, px",[1143,1144,1146],"h3",{"id":1145},"several-plots-at-one-scale","Several plots at one scale",[14,1148,1149,1150,371],{},"Each plot scales its diagrams to its own largest value, so a 20 kNm moment looks as big as an 80 kNm one. To compare, fix the scale in pixels per SI unit with ",[17,1151,1152],{},"diagramScale",[27,1154,1156],{"className":29,"code":1155,"language":31,"meta":32,"style":32},"\u003Cscript setup lang=\"ts\">\nimport { StructurePlot } from '@edubeam\u002Fplot'\nimport { simpleBeam } from '.\u002Fbeams' \u002F\u002F from Getting started: (span m, q kN\u002Fm) => a solved solver\n\nconst spans = [4, 6, 8].map((L) => ({ L, solver: simpleBeam(L, 10) }))\n\u002F\u002F 0.5 px per kNm (0.5e-3 px per N·m): the 80 kNm of the 8 m span is drawn 40 px deep, the 20 kNm of the 4 m span 10 px\nconst scale = { M: 0.5e-3 }\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cfigure v-for=\"s in spans\" :key=\"s.L\">\n    \u003CStructurePlot :solver=\"s.solver\" :layers=\"['members', 'supports', 'M']\" :diagram-scale=\"scale\" \u002F>\n    \u003Cfigcaption>L = {{ s.L }} m\u003C\u002Ffigcaption>\n  \u003C\u002Ffigure>\n\u003C\u002Ftemplate>\n",[17,1157,1158,1174,1185,1200,1204,1264,1269,1287,1295,1299,1307,1331,1391,1405,1414],{"__ignoreMap":32},[36,1159,1160,1162,1164,1166,1168,1170,1172],{"class":38,"line":39},[36,1161,43],{"class":42},[36,1163,318],{"class":46},[36,1165,321],{"class":52},[36,1167,324],{"class":52},[36,1169,56],{"class":42},[36,1171,329],{"class":59},[36,1173,332],{"class":42},[36,1175,1176,1178,1181,1183],{"class":38,"line":335},[36,1177,339],{"class":338},[36,1179,1180],{"class":42}," { StructurePlot } ",[36,1182,348],{"class":338},[36,1184,351],{"class":59},[36,1186,1187,1189,1192,1194,1197],{"class":38,"line":354},[36,1188,339],{"class":338},[36,1190,1191],{"class":42}," { simpleBeam } ",[36,1193,348],{"class":338},[36,1195,1196],{"class":59}," '.\u002Fbeams'",[36,1198,1199],{"class":525}," \u002F\u002F from Getting started: (span m, q kN\u002Fm) => a solved solver\n",[36,1201,1202],{"class":38,"line":361},[36,1203,358],{"emptyLinePlaceholder":357},[36,1205,1206,1208,1211,1213,1215,1218,1220,1222,1224,1227,1230,1233,1236,1240,1243,1246,1249,1252,1254,1256,1258,1261],{"class":38,"line":385},[36,1207,364],{"class":338},[36,1209,1210],{"class":367}," spans",[36,1212,501],{"class":338},[36,1214,504],{"class":42},[36,1216,1217],{"class":367},"4",[36,1219,82],{"class":42},[36,1221,1099],{"class":367},[36,1223,82],{"class":42},[36,1225,1226],{"class":367},"8",[36,1228,1229],{"class":42},"].",[36,1231,1232],{"class":52},"map",[36,1234,1235],{"class":42},"((",[36,1237,1239],{"class":1238},"s4XuR","L",[36,1241,1242],{"class":42},") ",[36,1244,1245],{"class":338},"=>",[36,1247,1248],{"class":42}," ({ L, solver: ",[36,1250,1251],{"class":52},"simpleBeam",[36,1253,944],{"class":42},[36,1255,1239],{"class":367},[36,1257,82],{"class":42},[36,1259,1260],{"class":367},"10",[36,1262,1263],{"class":42},") }))\n",[36,1265,1266],{"class":38,"line":407},[36,1267,1268],{"class":525},"\u002F\u002F 0.5 px per kNm (0.5e-3 px per N·m): the 80 kNm of the 8 m span is drawn 40 px deep, the 20 kNm of the 4 m span 10 px\n",[36,1270,1271,1273,1276,1278,1281,1284],{"class":38,"line":424},[36,1272,364],{"class":338},[36,1274,1275],{"class":367}," scale",[36,1277,501],{"class":338},[36,1279,1280],{"class":42}," { M: ",[36,1282,1283],{"class":367},"0.5e-3",[36,1285,1286],{"class":42}," }\n",[36,1288,1289,1291,1293],{"class":38,"line":445},[36,1290,532],{"class":42},[36,1292,318],{"class":46},[36,1294,332],{"class":42},[36,1296,1297],{"class":38,"line":466},[36,1298,358],{"emptyLinePlaceholder":357},[36,1300,1301,1303,1305],{"class":38,"line":487},[36,1302,43],{"class":42},[36,1304,549],{"class":46},[36,1306,332],{"class":42},[36,1308,1309,1311,1314,1316,1318,1321,1324,1326,1329],{"class":38,"line":493},[36,1310,557],{"class":42},[36,1312,1313],{"class":46},"figure",[36,1315,820],{"class":52},[36,1317,56],{"class":42},[36,1319,1320],{"class":59},"\"s in spans\"",[36,1322,1323],{"class":52}," :key",[36,1325,56],{"class":42},[36,1327,1328],{"class":59},"\"s.L\"",[36,1330,332],{"class":42},[36,1332,1333,1336,1338,1340,1342,1344,1346,1349,1351,1353,1355,1357,1359,1361,1363,1365,1367,1369,1371,1373,1375,1377,1380,1382,1384,1387,1389],{"class":38,"line":522},[36,1334,1335],{"class":42},"    \u003C",[36,1337,5],{"class":46},[36,1339,49],{"class":42},[36,1341,53],{"class":52},[36,1343,56],{"class":42},[36,1345,60],{"class":59},[36,1347,1348],{"class":42},"s.solver",[36,1350,60],{"class":59},[36,1352,49],{"class":42},[36,1354,69],{"class":52},[36,1356,56],{"class":42},[36,1358,60],{"class":59},[36,1360,76],{"class":42},[36,1362,79],{"class":59},[36,1364,82],{"class":42},[36,1366,85],{"class":59},[36,1368,82],{"class":42},[36,1370,100],{"class":59},[36,1372,103],{"class":42},[36,1374,60],{"class":59},[36,1376,49],{"class":42},[36,1378,1379],{"class":52},"diagram-scale",[36,1381,56],{"class":42},[36,1383,60],{"class":59},[36,1385,1386],{"class":42},"scale",[36,1388,60],{"class":59},[36,1390,108],{"class":42},[36,1392,1393,1395,1398,1401,1403],{"class":38,"line":529},[36,1394,1335],{"class":42},[36,1396,1397],{"class":46},"figcaption",[36,1399,1400],{"class":42},">L = {{ s.L }} m\u003C\u002F",[36,1402,1397],{"class":46},[36,1404,332],{"class":42},[36,1406,1407,1410,1412],{"class":38,"line":539},[36,1408,1409],{"class":42},"  \u003C\u002F",[36,1411,1313],{"class":46},[36,1413,332],{"class":42},[36,1415,1416,1418,1420],{"class":38,"line":544},[36,1417,532],{"class":42},[36,1419,549],{"class":46},[36,1421,332],{"class":42},[146,1423,1425],{"id":1424},"units-and-numbers","Units and numbers",[14,1427,1428],{},"Values are SI inside and converted only for display: kN, kNm, kN\u002Fm, m, mm, mrad and K by default. Override any unit with a symbol and a scale, display value = SI value × scale:",[27,1430,1432],{"className":29,"code":1431,"language":31,"meta":32,"style":32},"\u003CStructurePlot :solver=\"solver\" :units=\"{ force: { symbol: 'N', scale: 1 } }\" \u002F>\n",[17,1433,1434],{"__ignoreMap":32},[36,1435,1436,1438,1440,1442,1444,1446,1448,1450,1452,1454,1457,1459,1461,1464,1467,1470,1473,1476,1478],{"class":38,"line":39},[36,1437,43],{"class":42},[36,1439,5],{"class":46},[36,1441,49],{"class":42},[36,1443,53],{"class":52},[36,1445,56],{"class":42},[36,1447,60],{"class":59},[36,1449,53],{"class":42},[36,1451,60],{"class":59},[36,1453,49],{"class":42},[36,1455,1456],{"class":52},"units",[36,1458,56],{"class":42},[36,1460,60],{"class":59},[36,1462,1463],{"class":42},"{ force: { symbol: ",[36,1465,1466],{"class":59},"'N'",[36,1468,1469],{"class":42},", scale: ",[36,1471,1472],{"class":367},"1",[36,1474,1475],{"class":42}," } }",[36,1477,60],{"class":59},[36,1479,108],{"class":42},[14,1481,1482,1483,1486],{},"Numbers go through an ",[17,1484,1485],{},"Intl.NumberFormat",", English with at most one decimal by default. Pass your own to match the page's language:",[27,1488,1490],{"className":29,"code":1489,"language":31,"meta":32,"style":32},"\u003CStructurePlot :solver=\"solver\" :number-format=\"new Intl.NumberFormat('cs', { maximumFractionDigits: 2 })\" \u002F>\n",[17,1491,1492],{"__ignoreMap":32},[36,1493,1494,1496,1498,1500,1502,1504,1506,1508,1510,1512,1515,1517,1519,1522,1525,1528,1530,1533,1536,1539,1542,1544],{"class":38,"line":39},[36,1495,43],{"class":42},[36,1497,5],{"class":46},[36,1499,49],{"class":42},[36,1501,53],{"class":52},[36,1503,56],{"class":42},[36,1505,60],{"class":59},[36,1507,53],{"class":42},[36,1509,60],{"class":59},[36,1511,49],{"class":42},[36,1513,1514],{"class":52},"number-format",[36,1516,56],{"class":42},[36,1518,60],{"class":59},[36,1520,1521],{"class":338},"new",[36,1523,1524],{"class":42}," Intl.",[36,1526,1527],{"class":52},"NumberFormat",[36,1529,944],{"class":42},[36,1531,1532],{"class":59},"'cs'",[36,1534,1535],{"class":42},", { maximumFractionDigits: ",[36,1537,1538],{"class":367},"2",[36,1540,1541],{"class":42}," })",[36,1543,60],{"class":59},[36,1545,108],{"class":42},[14,1547,1548,1549,82,1552,82,1555,82,1558,82,1561,82,1564,126,1567,1570,1571,126,1574,1577],{},"Minus signs are true minus signs (−), and a value that rounds to zero never shows as −0. The unit names are ",[17,1550,1551],{},"force",[17,1553,1554],{},"moment",[17,1556,1557],{},"distributed",[17,1559,1560],{},"length",[17,1562,1563],{},"displacement",[17,1565,1566],{},"rotation",[17,1568,1569],{},"temperature","; ",[17,1572,1573],{},"KN_UNITS",[17,1575,1576],{},"SI_UNITS"," are exported as starting points.",[146,1579,1581],{"id":1580},"reading-values","Reading values",[14,1583,612,1584,1586,1587,1590,1591,1594],{},[17,1585,133],{},", the plot reads the shown results at the member point under the pointer. It marks each value where it is drawn, with a dot at the tip of each shown diagram's ordinate (both tips across a step) or on the deformed shape, and lists them in a pill, such as ",[17,1588,1589],{},"M = 54 kNm",", or both sides of a step, ",[17,1592,1593],{},"V = 13.3 → −6.7 kN",". The pointer picks up a member from anywhere over its diagram, not only on the member. The plot also emits the values as data:",[27,1596,1598],{"className":29,"code":1597,"language":31,"meta":32,"style":32},"\u003Cscript setup lang=\"ts\">\nimport { ref } from 'vue'\nimport { StructurePlot, type Readout } from '@edubeam\u002Fplot'\nimport { portalFrame } from '.\u002Fframe' \u002F\u002F from Slides and notes: () => a solved solver\n\nconst frame = portalFrame()\nconst reading = ref\u003CReadout | null>(null)\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CStructurePlot :solver=\"frame\" :layers=\"['members', 'supports', 'M']\" hover @readout=\"reading = $event\" \u002F>\n  \u003Cp v-if=\"reading\">\n    Member {{ reading.member }}, {{ reading.x.toFixed(2) }} m from its start:\n    M = {{ (reading.values.M.left \u002F 1e3).toFixed(1) }} kNm\n  \u003C\u002Fp>\n\u003C\u002Ftemplate>\n",[17,1599,1600,1616,1628,1645,1660,1664,1679,1711,1719,1723,1731,1798,1814,1819,1824,1832],{"__ignoreMap":32},[36,1601,1602,1604,1606,1608,1610,1612,1614],{"class":38,"line":39},[36,1603,43],{"class":42},[36,1605,318],{"class":46},[36,1607,321],{"class":52},[36,1609,324],{"class":52},[36,1611,56],{"class":42},[36,1613,329],{"class":59},[36,1615,332],{"class":42},[36,1617,1618,1620,1623,1625],{"class":38,"line":335},[36,1619,339],{"class":338},[36,1621,1622],{"class":42}," { ref } ",[36,1624,348],{"class":338},[36,1626,1627],{"class":59}," 'vue'\n",[36,1629,1630,1632,1635,1638,1641,1643],{"class":38,"line":354},[36,1631,339],{"class":338},[36,1633,1634],{"class":42}," { StructurePlot, ",[36,1636,1637],{"class":338},"type",[36,1639,1640],{"class":42}," Readout } ",[36,1642,348],{"class":338},[36,1644,351],{"class":59},[36,1646,1647,1649,1652,1654,1657],{"class":38,"line":361},[36,1648,339],{"class":338},[36,1650,1651],{"class":42}," { portalFrame } ",[36,1653,348],{"class":338},[36,1655,1656],{"class":59}," '.\u002Fframe'",[36,1658,1659],{"class":525}," \u002F\u002F from Slides and notes: () => a solved solver\n",[36,1661,1662],{"class":38,"line":385},[36,1663,358],{"emptyLinePlaceholder":357},[36,1665,1666,1668,1671,1673,1676],{"class":38,"line":407},[36,1667,364],{"class":338},[36,1669,1670],{"class":367}," frame",[36,1672,501],{"class":338},[36,1674,1675],{"class":52}," portalFrame",[36,1677,1678],{"class":42},"()\n",[36,1680,1681,1683,1686,1688,1691,1693,1696,1699,1702,1705,1708],{"class":38,"line":424},[36,1682,364],{"class":338},[36,1684,1685],{"class":367}," reading",[36,1687,501],{"class":338},[36,1689,1690],{"class":52}," ref",[36,1692,43],{"class":42},[36,1694,1695],{"class":52},"Readout",[36,1697,1698],{"class":338}," |",[36,1700,1701],{"class":367}," null",[36,1703,1704],{"class":42},">(",[36,1706,1707],{"class":367},"null",[36,1709,1710],{"class":42},")\n",[36,1712,1713,1715,1717],{"class":38,"line":445},[36,1714,532],{"class":42},[36,1716,318],{"class":46},[36,1718,332],{"class":42},[36,1720,1721],{"class":38,"line":466},[36,1722,358],{"emptyLinePlaceholder":357},[36,1724,1725,1727,1729],{"class":38,"line":487},[36,1726,43],{"class":42},[36,1728,549],{"class":46},[36,1730,332],{"class":42},[36,1732,1733,1735,1737,1739,1741,1743,1745,1747,1749,1751,1753,1755,1757,1759,1761,1763,1765,1767,1769,1771,1773,1776,1779,1782,1784,1786,1789,1791,1794,1796],{"class":38,"line":493},[36,1734,557],{"class":42},[36,1736,5],{"class":46},[36,1738,49],{"class":42},[36,1740,53],{"class":52},[36,1742,56],{"class":42},[36,1744,60],{"class":59},[36,1746,570],{"class":42},[36,1748,60],{"class":59},[36,1750,49],{"class":42},[36,1752,69],{"class":52},[36,1754,56],{"class":42},[36,1756,60],{"class":59},[36,1758,76],{"class":42},[36,1760,79],{"class":59},[36,1762,82],{"class":42},[36,1764,85],{"class":59},[36,1766,82],{"class":42},[36,1768,100],{"class":59},[36,1770,103],{"class":42},[36,1772,60],{"class":59},[36,1774,1775],{"class":52}," hover",[36,1777,1778],{"class":42}," @",[36,1780,1781],{"class":52},"readout",[36,1783,56],{"class":42},[36,1785,60],{"class":59},[36,1787,1788],{"class":42},"reading ",[36,1790,56],{"class":338},[36,1792,1793],{"class":42}," $event",[36,1795,60],{"class":59},[36,1797,108],{"class":42},[36,1799,1800,1802,1804,1807,1809,1812],{"class":38,"line":522},[36,1801,557],{"class":42},[36,1803,14],{"class":46},[36,1805,1806],{"class":52}," v-if",[36,1808,56],{"class":42},[36,1810,1811],{"class":59},"\"reading\"",[36,1813,332],{"class":42},[36,1815,1816],{"class":38,"line":529},[36,1817,1818],{"class":42},"    Member {{ reading.member }}, {{ reading.x.toFixed(2) }} m from its start:\n",[36,1820,1821],{"class":38,"line":539},[36,1822,1823],{"class":42},"    M = {{ (reading.values.M.left \u002F 1e3).toFixed(1) }} kNm\n",[36,1825,1826,1828,1830],{"class":38,"line":544},[36,1827,1409],{"class":42},[36,1829,14],{"class":46},[36,1831,332],{"class":42},[36,1833,1834,1836,1838],{"class":38,"line":554},[36,1835,532],{"class":42},[36,1837,549],{"class":46},[36,1839,332],{"class":42},[14,1841,1842,1843,1846,1847,1850,1851,82,1853,82,1855,126,1857,1859,1860,1863,1864,1866,1867,1869],{},"A readout is ",[17,1844,1845],{},"{ member, x, px, py, values, u }",": the member, the position along it in metres, the point on screen in px, ",[17,1848,1849],{},"{ left, right }"," for each of ",[17,1852,255],{},[17,1854,258],{},[17,1856,261],{},[17,1858,271],{}," in SI units, and the axial displacement ",[17,1861,1862],{},"u",". It is ",[17,1865,1707],{}," when the pointer leaves. The live figures on this site use ",[17,1868,133],{},": point at one.",[14,1871,1872,1873,1875],{},"Without ",[17,1874,133],{},", a plot attaches no event listeners at all, so the page scrolls over it and a tap on a plot inside a link follows the link. With it, the plot listens to pointer events only and keeps vertical scrolling and pinch-zoom working on touch screens.",[146,1877,1879],{"id":1878},"accessibility","Accessibility",[14,1881,1882,1883,1886,1887,1889,1890,116],{},"Each plot is an ",[17,1884,1885],{},"\u003Csvg role=\"img\">"," named by its ",[17,1888,884],{}," prop, or by a description of what it shows, such as \"Structure with its loads, reactions, bending moment\". Hidden reserved layers are ",[17,1891,1892],{},"aria-hidden",[1894,1895,1896],"style",{},"html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .s9eBZ, html code.shiki .s9eBZ{--shiki-default:#22863A;--shiki-dark:#85E89D}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}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 .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}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}html pre.shiki code .s4XuR, html code.shiki .s4XuR{--shiki-default:#E36209;--shiki-dark:#FFAB70}",{"title":32,"searchDepth":335,"depth":354,"links":1898},[1899,1900,1901,1902,1903,1904,1907,1908,1909],{"id":69,"depth":335,"text":148},{"id":299,"depth":335,"text":300},{"id":628,"depth":335,"text":629},{"id":645,"depth":335,"text":646},{"id":796,"depth":335,"text":797},{"id":905,"depth":335,"text":906,"children":1905},[1906],{"id":1145,"depth":354,"text":1146},{"id":1424,"depth":335,"text":1425},{"id":1580,"depth":335,"text":1581},{"id":1878,"depth":335,"text":1879},"Draw a beam, frame or truss with StructurePlot: layers, figures that build up, named reactions for exercises, thumbnails, sizes, units and a readout.","md","Components",{"source":1914},"site","\u002Fplot\u002Fstructure-plot",{"title":5,"description":1910},"plot\u002Fstructure-plot","OVI5Mxe9LABpP_Kr0XOB8tn7zpqR3SSVLnRHNkI2gNk",[1920,1924,1925,1929,1932,1935,1936,1939,1942,1944],{"path":1921,"title":1922,"order":39,"group":1923},"\u002Fplot\u002Fgetting-started","Getting started","Introduction",{"path":1915,"title":5,"order":335,"group":1912},{"path":1926,"title":1927,"order":354,"group":1928},"\u002Fplot\u002Fdiagram-stack","DiagramStack",null,{"path":1930,"title":1931,"order":361,"group":1928},"\u002Fplot\u002Ftheming","Theming and colours",{"path":1933,"title":783,"order":385,"group":1934},"\u002Fplot\u002Fexercises","Use cases",{"path":623,"title":624,"order":407,"group":1928},{"path":1937,"title":1938,"order":424,"group":1928},"\u002Fplot\u002Fembedding","Embedding",{"path":1940,"title":115,"order":445,"group":1941},"\u002Fplot\u002Fcomponents","Reference",{"path":23,"title":1943,"order":466,"group":1928},"Plot model",{"path":1945,"title":1946,"order":487,"group":1928},"\u002Fplot\u002Ffunctions","Functions",1795108690540]