[{"data":1,"prerenderedAt":1444},["ShallowReactive",2],{"lib:\u002Fplot\u002Fdiagram-stack":3,"lib-nav:en:\u002Fplot":1412},{"id":4,"title":5,"body":6,"description":1403,"extension":1404,"group":1405,"meta":1406,"navigation":383,"order":348,"path":1408,"seo":1409,"stem":1410,"__hash__":1411},"libs\u002Fplot\u002Fdiagram-stack.md","DiagramStack",{"type":7,"value":8,"toc":1397},"minimark",[9,13,20,62,73,82,87,195,198,202,212,271,290,294,305,1205,1300,1356,1366,1378,1382,1393],[10,11,5],"h1",{"id":12},"diagramstack",[14,15,16,19],"p",{},[17,18,5],"code",{}," draws the figure of every statics textbook: a straight beam with its supports, loads and reactions, and beneath it, on the same x axis, its shear force V(x), bending moment M(x) and deflection w(x). A cursor reads every row at once, and an optional point load can be dragged along the beam.",[21,22,27],"pre",{"className":23,"code":24,"language":25,"meta":26,"style":26},"language-vue shiki shiki-themes github-light github-dark","\u003CDiagramStack :solver=\"solver\" \u002F>\n","vue","",[17,28,29],{"__ignoreMap":26},[30,31,34,38,41,44,48,51,55,57,59],"span",{"class":32,"line":33},"line",1,[30,35,37],{"class":36},"sVt8B","\u003C",[30,39,5],{"class":40},"s9eBZ",[30,42,43],{"class":36}," :",[30,45,47],{"class":46},"sScJk","solver",[30,49,50],{"class":36},"=",[30,52,54],{"class":53},"sZZnC","\"",[30,56,47],{"class":36},[30,58,54],{"class":53},[30,60,61],{"class":36}," \u002F>\n",[14,63,64],{},[65,66],"img",{"alt":67,"className":68,"height":70,"src":71,"width":72},"DiagramStack: a 6 m simply supported beam with a 20 kN load the reader can drag, here 4.3 m from the left support; reactions of 5.7 kN and 14.3 kN, the shear force stepping from 5.7 kN to −14.3 kN under the load, the bending moment peaking at 24.4 kNm there, and the deflection with its largest value of 17 mm",[69],"shot-lg",1276,"\u002Fscreenshots\u002Fp2p-plot-diagram-stack.webp",1504,[14,74,75,76,81],{},"The members must form one horizontal line, drawn left to right. Anything else, an inclined or broken line or a member drawn right to left, is refused with an error rather than drawn wrongly, because the figure's x axis is the beam's. Every prop is in the ",[77,78,80],"a",{"href":79},"\u002Fplot\u002Fcomponents#diagramstack","Component API",".",[83,84,86],"h2",{"id":85},"rows","Rows",[88,89,90,106],"table",{},[91,92,93],"thead",{},[94,95,96,100,103],"tr",{},[97,98,99],"th",{},"Prop",[97,101,102],{},"Default",[97,104,105],{},"Sets",[107,108,109,128,143,156,169,182],"tbody",{},[94,110,111,116,121],{},[112,113,114],"td",{},[17,115,85],{},[112,117,118],{},[17,119,120],{},"['V', 'M', 'w']",[112,122,123,124,127],{},"the diagrams, top to bottom; ",[17,125,126],{},"'N'"," is available too",[94,129,130,135,140],{},[112,131,132],{},[17,133,134],{},"loadRow",[112,136,137],{},[17,138,139],{},"true",[112,141,142],{},"the beam with its supports, loads and reactions above the rows",[94,144,145,150,153],{},[112,146,147],{},[17,148,149],{},"members",[112,151,152],{},"all members",[112,154,155],{},"the members of the beam line, when the model has others",[94,157,158,163,166],{},[112,159,160],{},[17,161,162],{},"rowHeights",[112,164,165],{},"N 100, V 116, M 128, w 76 px",[112,167,168],{},"row heights; a little smaller below 560 px of width",[94,170,171,176,179],{},[112,172,173],{},[17,174,175],{},"maxHeight",[112,177,178],{},"none",[112,180,181],{},"rows shrink, to 60 % at most, so the figure fits; text keeps its size",[94,183,184,189,192],{},[112,185,186],{},[17,187,188],{},"ranges",[112,190,191],{},"each row's own",[112,193,194],{},"fixed value ranges per row, in SI units",[14,196,197],{},"V and N are drawn positive upward, M and w positive downward, as most textbooks draw them: a sagging moment and a downward deflection hang below the axis. Each row writes its extreme values.",[83,199,201],{"id":200},"the-reading-cursor","The reading cursor",[14,203,204,207,208,211],{},[17,205,206],{},"hover"," is on by default. Moving the pointer over the figure shows a vertical cursor across every row, with each row's value in a pill. Within 8 px of a step, at a point load or a support, the cursor snaps to it, and V shows both sides, as in ",[17,209,210],{},"5.7 → −14.3 kN"," under the load above. The values are also emitted:",[21,213,215],{"className":23,"code":214,"language":25,"meta":26,"style":26},"\u003CDiagramStack :solver=\"solver\" @readout=\"(r) => (reading = r)\" \u002F>\n",[17,216,217],{"__ignoreMap":26},[30,218,219,221,223,225,227,229,231,233,235,238,241,243,245,248,252,255,259,262,264,267,269],{"class":32,"line":33},[30,220,37],{"class":36},[30,222,5],{"class":40},[30,224,43],{"class":36},[30,226,47],{"class":46},[30,228,50],{"class":36},[30,230,54],{"class":53},[30,232,47],{"class":36},[30,234,54],{"class":53},[30,236,237],{"class":36}," @",[30,239,240],{"class":46},"readout",[30,242,50],{"class":36},[30,244,54],{"class":53},[30,246,247],{"class":36},"(",[30,249,251],{"class":250},"s4XuR","r",[30,253,254],{"class":36},") ",[30,256,258],{"class":257},"szBVR","=>",[30,260,261],{"class":36}," (reading ",[30,263,50],{"class":257},[30,265,266],{"class":36}," r)",[30,268,54],{"class":53},[30,270,61],{"class":36},[14,272,273,274,277,278,281,282,285,286,289],{},"A readout is ",[17,275,276],{},"{ x, values }",": ",[17,279,280],{},"x"," in metres along the beam, and ",[17,283,284],{},"{ left, right }"," per row in SI units; ",[17,287,288],{},"null"," when the pointer leaves.",[83,291,293],{"id":292},"a-load-the-reader-can-drag","A load the reader can drag",[14,295,296,297,300,301,304],{},"Give ",[17,298,299],{},"v-model:load-at"," the position of a point load and it gets a grip: the reader drags it with the pointer, or focuses it and uses the arrow keys. The component only reports the new position. Solve the beam again with the load there and pass the new solver back, as ",[17,302,303],{},"MovingLoad.vue"," does:",[21,306,308],{"className":23,"code":307,"filename":303,"language":25,"meta":26,"style":26},"\u003Cscript setup lang=\"ts\">\nimport { computed, ref } from 'vue'\nimport { DofID, LinearStaticSolver } from '@edubeam\u002Ffem'\nimport { beamLine, DiagramStack, lineDiagram, modelFromSolver, rowRange, type StackRow } from '@edubeam\u002Fplot'\n\nconst L = 6 \u002F\u002F m\nconst P = 20e3 \u002F\u002F N\n\n\u002F** The beam with the point load `at` metres from A, solved. *\u002F\nconst solveWithLoadAt = (at: number): LinearStaticSolver => {\n  const solver = new LinearStaticSolver()\n  const { domain } = solver\n  domain.createMaterial(1, { e: 210e9, g: 81e9 })\n  domain.createCrossSection(1, { a: 28.5e-4, iy: 1943e-8, h: 0.2, k: 1e32 })\n  domain.createNode('A', [0, 0, 0], [DofID.Dx, DofID.Dz])\n  domain.createNode('B', [L, 0, 0], [DofID.Dz])\n  domain.createBeam2D(1, ['A', 'B'], 1, 1)\n  solver.loadCases[0].createBeamConcentratedLoad(1, [0, P, 0, at], true)\n  solver.solve()\n  return solver\n}\n\n\u002F** Each row's range over every load position, so the diagrams grow and shrink instead of rescaling. *\u002F\nconst rows: StackRow[] = ['V', 'M', 'w']\nconst envelope = (() => {\n  const ranges: Partial\u003CRecord\u003CStackRow, [number, number]>> = {}\n  for (let at = 0.25; at \u003C L; at += 0.25) {\n    const model = modelFromSolver(solveWithLoadAt(at))\n    const line = beamLine(model)\n    for (const row of rows) {\n      const [lo, hi] = rowRange(lineDiagram(model, line, row))\n      const [min, max] = ranges[row] ?? [0, 0]\n      ranges[row] = [Math.min(min, lo), Math.max(max, hi)]\n    }\n  }\n  return ranges\n})()\n\nconst at = ref(2)\nconst solver = computed(() => solveWithLoadAt(at.value))\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CDiagramStack v-model:load-at=\"at\" :solver=\"solver\" :rows=\"rows\" :ranges=\"envelope\" load-label=\"P = 20 kN\" \u002F>\n  \u003Cp>The load is {{ at.toFixed(2) }} m from A.\u003C\u002Fp>\n\u003C\u002Ftemplate>\n",[17,309,310,331,346,359,378,385,405,421,426,432,468,487,506,535,573,604,632,664,702,713,721,727,732,738,775,792,832,868,890,906,925,957,992,1013,1019,1025,1033,1039,1044,1064,1086,1096,1101,1111,1182,1196],{"__ignoreMap":26},[30,311,312,314,317,320,323,325,328],{"class":32,"line":33},[30,313,37],{"class":36},[30,315,316],{"class":40},"script",[30,318,319],{"class":46}," setup",[30,321,322],{"class":46}," lang",[30,324,50],{"class":36},[30,326,327],{"class":53},"\"ts\"",[30,329,330],{"class":36},">\n",[30,332,334,337,340,343],{"class":32,"line":333},2,[30,335,336],{"class":257},"import",[30,338,339],{"class":36}," { computed, ref } ",[30,341,342],{"class":257},"from",[30,344,345],{"class":53}," 'vue'\n",[30,347,349,351,354,356],{"class":32,"line":348},3,[30,350,336],{"class":257},[30,352,353],{"class":36}," { DofID, LinearStaticSolver } ",[30,355,342],{"class":257},[30,357,358],{"class":53}," '@edubeam\u002Ffem'\n",[30,360,362,364,367,370,373,375],{"class":32,"line":361},4,[30,363,336],{"class":257},[30,365,366],{"class":36}," { beamLine, DiagramStack, lineDiagram, modelFromSolver, rowRange, ",[30,368,369],{"class":257},"type",[30,371,372],{"class":36}," StackRow } ",[30,374,342],{"class":257},[30,376,377],{"class":53}," '@edubeam\u002Fplot'\n",[30,379,381],{"class":32,"line":380},5,[30,382,384],{"emptyLinePlaceholder":383},true,"\n",[30,386,388,391,395,398,401],{"class":32,"line":387},6,[30,389,390],{"class":257},"const",[30,392,394],{"class":393},"sj4cs"," L",[30,396,397],{"class":257}," =",[30,399,400],{"class":393}," 6",[30,402,404],{"class":403},"sJ8bj"," \u002F\u002F m\n",[30,406,408,410,413,415,418],{"class":32,"line":407},7,[30,409,390],{"class":257},[30,411,412],{"class":393}," P",[30,414,397],{"class":257},[30,416,417],{"class":393}," 20e3",[30,419,420],{"class":403}," \u002F\u002F N\n",[30,422,424],{"class":32,"line":423},8,[30,425,384],{"emptyLinePlaceholder":383},[30,427,429],{"class":32,"line":428},9,[30,430,431],{"class":403},"\u002F** The beam with the point load `at` metres from A, solved. *\u002F\n",[30,433,435,437,440,442,445,448,451,454,457,459,462,465],{"class":32,"line":434},10,[30,436,390],{"class":257},[30,438,439],{"class":46}," solveWithLoadAt",[30,441,397],{"class":257},[30,443,444],{"class":36}," (",[30,446,447],{"class":250},"at",[30,449,450],{"class":257},":",[30,452,453],{"class":393}," number",[30,455,456],{"class":36},")",[30,458,450],{"class":257},[30,460,461],{"class":46}," LinearStaticSolver",[30,463,464],{"class":257}," =>",[30,466,467],{"class":36}," {\n",[30,469,471,474,477,479,482,484],{"class":32,"line":470},11,[30,472,473],{"class":257},"  const",[30,475,476],{"class":393}," solver",[30,478,397],{"class":257},[30,480,481],{"class":257}," new",[30,483,461],{"class":46},[30,485,486],{"class":36},"()\n",[30,488,490,492,495,498,501,503],{"class":32,"line":489},12,[30,491,473],{"class":257},[30,493,494],{"class":36}," { ",[30,496,497],{"class":393},"domain",[30,499,500],{"class":36}," } ",[30,502,50],{"class":257},[30,504,505],{"class":36}," solver\n",[30,507,509,512,515,517,520,523,526,529,532],{"class":32,"line":508},13,[30,510,511],{"class":36},"  domain.",[30,513,514],{"class":46},"createMaterial",[30,516,247],{"class":36},[30,518,519],{"class":393},"1",[30,521,522],{"class":36},", { e: ",[30,524,525],{"class":393},"210e9",[30,527,528],{"class":36},", g: ",[30,530,531],{"class":393},"81e9",[30,533,534],{"class":36}," })\n",[30,536,538,540,543,545,547,550,553,556,559,562,565,568,571],{"class":32,"line":537},14,[30,539,511],{"class":36},[30,541,542],{"class":46},"createCrossSection",[30,544,247],{"class":36},[30,546,519],{"class":393},[30,548,549],{"class":36},", { a: ",[30,551,552],{"class":393},"28.5e-4",[30,554,555],{"class":36},", iy: ",[30,557,558],{"class":393},"1943e-8",[30,560,561],{"class":36},", h: ",[30,563,564],{"class":393},"0.2",[30,566,567],{"class":36},", k: ",[30,569,570],{"class":393},"1e32",[30,572,534],{"class":36},[30,574,576,578,581,583,586,589,592,595,597,599,601],{"class":32,"line":575},15,[30,577,511],{"class":36},[30,579,580],{"class":46},"createNode",[30,582,247],{"class":36},[30,584,585],{"class":53},"'A'",[30,587,588],{"class":36},", [",[30,590,591],{"class":393},"0",[30,593,594],{"class":36},", ",[30,596,591],{"class":393},[30,598,594],{"class":36},[30,600,591],{"class":393},[30,602,603],{"class":36},"], [DofID.Dx, DofID.Dz])\n",[30,605,607,609,611,613,616,618,621,623,625,627,629],{"class":32,"line":606},16,[30,608,511],{"class":36},[30,610,580],{"class":46},[30,612,247],{"class":36},[30,614,615],{"class":53},"'B'",[30,617,588],{"class":36},[30,619,620],{"class":393},"L",[30,622,594],{"class":36},[30,624,591],{"class":393},[30,626,594],{"class":36},[30,628,591],{"class":393},[30,630,631],{"class":36},"], [DofID.Dz])\n",[30,633,635,637,640,642,644,646,648,650,652,655,657,659,661],{"class":32,"line":634},17,[30,636,511],{"class":36},[30,638,639],{"class":46},"createBeam2D",[30,641,247],{"class":36},[30,643,519],{"class":393},[30,645,588],{"class":36},[30,647,585],{"class":53},[30,649,594],{"class":36},[30,651,615],{"class":53},[30,653,654],{"class":36},"], ",[30,656,519],{"class":393},[30,658,594],{"class":36},[30,660,519],{"class":393},[30,662,663],{"class":36},")\n",[30,665,667,670,672,675,678,680,682,684,686,688,691,693,695,698,700],{"class":32,"line":666},18,[30,668,669],{"class":36},"  solver.loadCases[",[30,671,591],{"class":393},[30,673,674],{"class":36},"].",[30,676,677],{"class":46},"createBeamConcentratedLoad",[30,679,247],{"class":36},[30,681,519],{"class":393},[30,683,588],{"class":36},[30,685,591],{"class":393},[30,687,594],{"class":36},[30,689,690],{"class":393},"P",[30,692,594],{"class":36},[30,694,591],{"class":393},[30,696,697],{"class":36},", at], ",[30,699,139],{"class":393},[30,701,663],{"class":36},[30,703,705,708,711],{"class":32,"line":704},19,[30,706,707],{"class":36},"  solver.",[30,709,710],{"class":46},"solve",[30,712,486],{"class":36},[30,714,716,719],{"class":32,"line":715},20,[30,717,718],{"class":257},"  return",[30,720,505],{"class":36},[30,722,724],{"class":32,"line":723},21,[30,725,726],{"class":36},"}\n",[30,728,730],{"class":32,"line":729},22,[30,731,384],{"emptyLinePlaceholder":383},[30,733,735],{"class":32,"line":734},23,[30,736,737],{"class":403},"\u002F** Each row's range over every load position, so the diagrams grow and shrink instead of rescaling. *\u002F\n",[30,739,741,743,746,748,751,754,756,759,762,764,767,769,772],{"class":32,"line":740},24,[30,742,390],{"class":257},[30,744,745],{"class":393}," rows",[30,747,450],{"class":257},[30,749,750],{"class":46}," StackRow",[30,752,753],{"class":36},"[] ",[30,755,50],{"class":257},[30,757,758],{"class":36}," [",[30,760,761],{"class":53},"'V'",[30,763,594],{"class":36},[30,765,766],{"class":53},"'M'",[30,768,594],{"class":36},[30,770,771],{"class":53},"'w'",[30,773,774],{"class":36},"]\n",[30,776,778,780,783,785,788,790],{"class":32,"line":777},25,[30,779,390],{"class":257},[30,781,782],{"class":393}," envelope",[30,784,397],{"class":257},[30,786,787],{"class":36}," (() ",[30,789,258],{"class":257},[30,791,467],{"class":36},[30,793,795,797,800,802,805,807,810,812,815,817,820,822,824,827,829],{"class":32,"line":794},26,[30,796,473],{"class":257},[30,798,799],{"class":393}," ranges",[30,801,450],{"class":257},[30,803,804],{"class":46}," Partial",[30,806,37],{"class":36},[30,808,809],{"class":46},"Record",[30,811,37],{"class":36},[30,813,814],{"class":46},"StackRow",[30,816,588],{"class":36},[30,818,819],{"class":393},"number",[30,821,594],{"class":36},[30,823,819],{"class":393},[30,825,826],{"class":36},"]>> ",[30,828,50],{"class":257},[30,830,831],{"class":36}," {}\n",[30,833,835,838,840,843,846,848,851,854,856,858,860,863,865],{"class":32,"line":834},27,[30,836,837],{"class":257},"  for",[30,839,444],{"class":36},[30,841,842],{"class":257},"let",[30,844,845],{"class":36}," at ",[30,847,50],{"class":257},[30,849,850],{"class":393}," 0.25",[30,852,853],{"class":36},"; at ",[30,855,37],{"class":257},[30,857,394],{"class":393},[30,859,853],{"class":36},[30,861,862],{"class":257},"+=",[30,864,850],{"class":393},[30,866,867],{"class":36},") {\n",[30,869,871,874,877,879,882,884,887],{"class":32,"line":870},28,[30,872,873],{"class":257},"    const",[30,875,876],{"class":393}," model",[30,878,397],{"class":257},[30,880,881],{"class":46}," modelFromSolver",[30,883,247],{"class":36},[30,885,886],{"class":46},"solveWithLoadAt",[30,888,889],{"class":36},"(at))\n",[30,891,893,895,898,900,903],{"class":32,"line":892},29,[30,894,873],{"class":257},[30,896,897],{"class":393}," line",[30,899,397],{"class":257},[30,901,902],{"class":46}," beamLine",[30,904,905],{"class":36},"(model)\n",[30,907,909,912,914,916,919,922],{"class":32,"line":908},30,[30,910,911],{"class":257},"    for",[30,913,444],{"class":36},[30,915,390],{"class":257},[30,917,918],{"class":393}," row",[30,920,921],{"class":257}," of",[30,923,924],{"class":36}," rows) {\n",[30,926,928,931,933,936,938,941,944,946,949,951,954],{"class":32,"line":927},31,[30,929,930],{"class":257},"      const",[30,932,758],{"class":36},[30,934,935],{"class":393},"lo",[30,937,594],{"class":36},[30,939,940],{"class":393},"hi",[30,942,943],{"class":36},"] ",[30,945,50],{"class":257},[30,947,948],{"class":46}," rowRange",[30,950,247],{"class":36},[30,952,953],{"class":46},"lineDiagram",[30,955,956],{"class":36},"(model, line, row))\n",[30,958,960,962,964,967,969,972,974,976,979,982,984,986,988,990],{"class":32,"line":959},32,[30,961,930],{"class":257},[30,963,758],{"class":36},[30,965,966],{"class":393},"min",[30,968,594],{"class":36},[30,970,971],{"class":393},"max",[30,973,943],{"class":36},[30,975,50],{"class":257},[30,977,978],{"class":36}," ranges[row] ",[30,980,981],{"class":257},"??",[30,983,758],{"class":36},[30,985,591],{"class":393},[30,987,594],{"class":36},[30,989,591],{"class":393},[30,991,774],{"class":36},[30,993,995,998,1000,1003,1005,1008,1010],{"class":32,"line":994},33,[30,996,997],{"class":36},"      ranges[row] ",[30,999,50],{"class":257},[30,1001,1002],{"class":36}," [Math.",[30,1004,966],{"class":46},[30,1006,1007],{"class":36},"(min, lo), Math.",[30,1009,971],{"class":46},[30,1011,1012],{"class":36},"(max, hi)]\n",[30,1014,1016],{"class":32,"line":1015},34,[30,1017,1018],{"class":36},"    }\n",[30,1020,1022],{"class":32,"line":1021},35,[30,1023,1024],{"class":36},"  }\n",[30,1026,1028,1030],{"class":32,"line":1027},36,[30,1029,718],{"class":257},[30,1031,1032],{"class":36}," ranges\n",[30,1034,1036],{"class":32,"line":1035},37,[30,1037,1038],{"class":36},"})()\n",[30,1040,1042],{"class":32,"line":1041},38,[30,1043,384],{"emptyLinePlaceholder":383},[30,1045,1047,1049,1052,1054,1057,1059,1062],{"class":32,"line":1046},39,[30,1048,390],{"class":257},[30,1050,1051],{"class":393}," at",[30,1053,397],{"class":257},[30,1055,1056],{"class":46}," ref",[30,1058,247],{"class":36},[30,1060,1061],{"class":393},"2",[30,1063,663],{"class":36},[30,1065,1067,1069,1071,1073,1076,1079,1081,1083],{"class":32,"line":1066},40,[30,1068,390],{"class":257},[30,1070,476],{"class":393},[30,1072,397],{"class":257},[30,1074,1075],{"class":46}," computed",[30,1077,1078],{"class":36},"(() ",[30,1080,258],{"class":257},[30,1082,439],{"class":46},[30,1084,1085],{"class":36},"(at.value))\n",[30,1087,1089,1092,1094],{"class":32,"line":1088},41,[30,1090,1091],{"class":36},"\u003C\u002F",[30,1093,316],{"class":40},[30,1095,330],{"class":36},[30,1097,1099],{"class":32,"line":1098},42,[30,1100,384],{"emptyLinePlaceholder":383},[30,1102,1104,1106,1109],{"class":32,"line":1103},43,[30,1105,37],{"class":36},[30,1107,1108],{"class":40},"template",[30,1110,330],{"class":36},[30,1112,1114,1117,1119,1122,1124,1127,1129,1131,1133,1135,1137,1139,1141,1143,1145,1147,1149,1151,1153,1155,1157,1159,1161,1163,1165,1167,1170,1172,1175,1177,1180],{"class":32,"line":1113},44,[30,1115,1116],{"class":36},"  \u003C",[30,1118,5],{"class":40},[30,1120,1121],{"class":46}," v-model",[30,1123,450],{"class":36},[30,1125,1126],{"class":46},"load-at",[30,1128,50],{"class":36},[30,1130,54],{"class":53},[30,1132,447],{"class":36},[30,1134,54],{"class":53},[30,1136,43],{"class":36},[30,1138,47],{"class":46},[30,1140,50],{"class":36},[30,1142,54],{"class":53},[30,1144,47],{"class":36},[30,1146,54],{"class":53},[30,1148,43],{"class":36},[30,1150,85],{"class":46},[30,1152,50],{"class":36},[30,1154,54],{"class":53},[30,1156,85],{"class":36},[30,1158,54],{"class":53},[30,1160,43],{"class":36},[30,1162,188],{"class":46},[30,1164,50],{"class":36},[30,1166,54],{"class":53},[30,1168,1169],{"class":36},"envelope",[30,1171,54],{"class":53},[30,1173,1174],{"class":46}," load-label",[30,1176,50],{"class":36},[30,1178,1179],{"class":53},"\"P = 20 kN\"",[30,1181,61],{"class":36},[30,1183,1185,1187,1189,1192,1194],{"class":32,"line":1184},45,[30,1186,1116],{"class":36},[30,1188,14],{"class":40},[30,1190,1191],{"class":36},">The load is {{ at.toFixed(2) }} m from A.\u003C\u002F",[30,1193,14],{"class":40},[30,1195,330],{"class":36},[30,1197,1199,1201,1203],{"class":32,"line":1198},46,[30,1200,1091],{"class":36},[30,1202,1108],{"class":40},[30,1204,330],{"class":36},[14,1206,1207,1208,1296,1297,1299],{},"With the load at 4.3 m, the figure shows the reactions 5.7 kN and 14.3 kN, the shear step from 5.7 to −14.3 kN under the load, and ",[30,1209,1212],{"className":1210},[1211],"katex",[30,1213,1216,1244,1267,1286],{"className":1214,"ariaHidden":139},[1215],"katex-html",[30,1217,1220,1225,1232,1237,1241],{"className":1218},[1219],"katex-base",[30,1221],{"className":1222,"style":1224},[1223],"katex-strut","height:0.6833em;",[30,1226,1231],{"className":1227,"style":1230},[1228,1229],"mord","mathnormal","margin-right:0.109em;","M",[30,1233],{"className":1234,"style":1236},[1235],"mspace","margin-right:0.2778em;",[30,1238,50],{"className":1239},[1240],"mrel",[30,1242],{"className":1243,"style":1236},[1235],[30,1245,1247,1251,1255,1259,1264],{"className":1246},[1219],[30,1248],{"className":1249,"style":1250},[1223],"height:0.6444em;",[30,1252,1254],{"className":1253},[1228],"5.67",[30,1256],{"className":1257,"style":1258},[1235],"margin-right:0.2222em;",[30,1260,1263],{"className":1261},[1262],"mbin","⋅",[30,1265],{"className":1266,"style":1258},[1235],[30,1268,1270,1273,1277,1280,1283],{"className":1269},[1219],[30,1271],{"className":1272,"style":1250},[1223],[30,1274,1276],{"className":1275},[1228],"4.3",[30,1278],{"className":1279,"style":1236},[1235],[30,1281,50],{"className":1282},[1240],[30,1284],{"className":1285,"style":1236},[1235],[30,1287,1289,1292],{"className":1288},[1219],[30,1290],{"className":1291,"style":1250},[1223],[30,1293,1295],{"className":1294},[1228],"24.4"," kNm there. Without ",[17,1298,188],{},", every row rescales to its own extremes as the load moves, and the diagrams would seem not to change at all.",[88,1301,1302,1312],{},[91,1303,1304],{},[94,1305,1306,1308,1310],{},[97,1307,99],{},[97,1309,102],{},[97,1311,105],{},[107,1313,1314,1328,1343],{},[94,1315,1316,1321,1323],{},[112,1317,1318],{},[17,1319,1320],{},"loadAt",[112,1322,178],{},[112,1324,1325,1326],{},"the load's position, m from the start of the line; with ",[17,1327,299],{},[94,1329,1330,1335,1340],{},[112,1331,1332],{},[17,1333,1334],{},"loadLabel",[112,1336,1337],{},[17,1338,1339],{},"P = …",[112,1341,1342],{},"the text beside the grip",[94,1344,1345,1350,1353],{},[112,1346,1347],{},[17,1348,1349],{},"loadStep",[112,1351,1352],{},"0.05",[112,1354,1355],{},"the drag rounds to this step, m; the arrow keys move by it",[14,1357,1358,1359,1362,1363,1365],{},"The grip is a focusable ",[17,1360,1361],{},"role=\"slider\""," with its range and position for screen readers. The arrow keys move it by ",[17,1364,1349],{},", Page Up and Page Down by 1 m, and Home and End to the ends of the beam. A finger can drag it on a touch screen, and vertical scrolling still works over the figure.",[14,1367,1368,1369,1371,1372,1374,1375,1377],{},"The grip stands in for the point force the solved model has at ",[17,1370,1320],{},": that force is drawn as the grip, labelled with its magnitude unless you give ",[17,1373,1334],{},". Put the load in the model at the same position, as ",[17,1376,886],{}," does.",[83,1379,1381],{"id":1380},"size-and-server-rendering","Size and server rendering",[14,1383,1384,1385,1388,1389,1392],{},"The figure measures its box and lays out at that width, at least 320 px. Before it can measure, it uses ",[17,1386,1387],{},"width",", 720 px by default. Text is 12.5 px (",[17,1390,1391],{},"fontSize",") and never scales down with the figure.",[1394,1395,1396],"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 .s4XuR, html code.shiki .s4XuR{--shiki-default:#E36209;--shiki-dark:#FFAB70}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}",{"title":26,"searchDepth":333,"depth":348,"links":1398},[1399,1400,1401,1402],{"id":85,"depth":333,"text":86},{"id":200,"depth":333,"text":201},{"id":292,"depth":333,"text":293},{"id":1380,"depth":333,"text":1381},"Draw a beam above its V(x), M(x) and w(x) diagrams on one axis with DiagramStack, read the rows with a cursor, and let the reader drag a point load.","md",null,{"source":1407},"site","\u002Fplot\u002Fdiagram-stack",{"title":5,"description":1403},"plot\u002Fdiagram-stack","9Zg_-oYnR19aEURpl5EP_0vvFIhb2orMBHQMNA91TOY",[1413,1417,1421,1422,1425,1429,1432,1435,1438,1441],{"path":1414,"title":1415,"order":33,"group":1416},"\u002Fplot\u002Fgetting-started","Getting started","Introduction",{"path":1418,"title":1419,"order":333,"group":1420},"\u002Fplot\u002Fstructure-plot","StructurePlot","Components",{"path":1408,"title":5,"order":348,"group":1405},{"path":1423,"title":1424,"order":361,"group":1405},"\u002Fplot\u002Ftheming","Theming and colours",{"path":1426,"title":1427,"order":380,"group":1428},"\u002Fplot\u002Fexercises","Exercises and tests","Use cases",{"path":1430,"title":1431,"order":387,"group":1405},"\u002Fplot\u002Fslides","Slides and notes",{"path":1433,"title":1434,"order":407,"group":1405},"\u002Fplot\u002Fembedding","Embedding",{"path":1436,"title":80,"order":423,"group":1437},"\u002Fplot\u002Fcomponents","Reference",{"path":1439,"title":1440,"order":428,"group":1405},"\u002Fplot\u002Fmodel","Plot model",{"path":1442,"title":1443,"order":434,"group":1405},"\u002Fplot\u002Ffunctions","Functions",1795108690556]