[{"data":1,"prerenderedAt":2110},["ShallowReactive",2],{"lib:\u002Fja\u002Fplot\u002Ffunctions":3,"lib-nav:ja:\u002Fplot":2082},{"id":4,"title":5,"body":6,"description":2072,"extension":2073,"group":2074,"meta":2075,"navigation":113,"order":2077,"path":2078,"seo":2079,"stem":2080,"__hash__":2081},"libs\u002Fja\u002Fplot\u002Ffunctions.md","関数",{"type":7,"value":8,"toc":2062},"minimark",[9,12,21,24,29,48,186,197,440,489,492,547,554,558,614,618,645,870,891,895,1003,1047,1089,1093,1190,1226,1230,1237,1393,1407,1420,1424,1579,1583,1607,1951,1981,2058],[10,11,5],"h1",{"id":5},[13,14,15,16,20],"p",{},"コンポーネントが描くものは、すべて Vue を含まない純粋関数から作られています。これらの関数を使えば、図を SVG ファイルに書き出したり、結果を厳密に読んだり、データを前もって用意したり、独自の図を作ったりできます。名前付きインポートを使えば、バンドルは小さく保てます。",[17,18,19],"code",{},"modelFromSolver"," だけをインポートするページには、コンポーネントのコードは一切含まれません。",[13,22,23],{},"値は、単位を明記したもの以外はすべて SI 単位です。部材に沿った位置は、始端節点からの距離（m）です。",[25,26,28],"h2",{"id":27},"a-standalone-svg-file","単体の SVG ファイル",[13,30,31,32,35,36,39,40,43,44,47],{},"ページ内の図は色をページの CSS カスタムプロパティから取るので、そこからコピーした ",[17,33,34],{},"\u003Csvg>"," には色が付いていません。そこで ",[17,37,38],{},"structureSvg"," は、図を単体の ",[17,41,42],{},".svg"," ファイルのテキストとして書き出します。色は固定で、スタイルシートもスクリプトもなく、レイアウトは ",[17,45,46],{},"StructurePlot"," と同じ処理で行います。Word、PowerPoint、Inkscape、CairoSVG、LaTeX のツールチェーンでも、ページと同じように表示されます。",[49,50,56],"pre",{"className":51,"code":52,"filename":53,"language":54,"meta":55,"style":55},"language-ts shiki shiki-themes github-light github-dark","import { writeFileSync } from 'node:fs'\nimport { modelFromSolver, structureSvg } from '@edubeam\u002Fplot'\nimport { portalFrame } from '.\u002Fframe.ts' \u002F\u002F () => 解析済みの LinearStaticSolver（「スライドと講義資料」のページと同じ）\n\nconst frame = modelFromSolver(portalFrame())\nwriteFileSync('frame.svg', structureSvg(frame, { layers: ['members', 'supports', 'loads', 'reactions', 'M'] }))\n","to-svg.ts","ts","",[17,57,58,78,91,108,115,141],{"__ignoreMap":55},[59,60,63,67,71,74],"span",{"class":61,"line":62},"line",1,[59,64,66],{"class":65},"szBVR","import",[59,68,70],{"class":69},"sVt8B"," { writeFileSync } ",[59,72,73],{"class":65},"from",[59,75,77],{"class":76},"sZZnC"," 'node:fs'\n",[59,79,81,83,86,88],{"class":61,"line":80},2,[59,82,66],{"class":65},[59,84,85],{"class":69}," { modelFromSolver, structureSvg } ",[59,87,73],{"class":65},[59,89,90],{"class":76}," '@edubeam\u002Fplot'\n",[59,92,94,96,99,101,104],{"class":61,"line":93},3,[59,95,66],{"class":65},[59,97,98],{"class":69}," { portalFrame } ",[59,100,73],{"class":65},[59,102,103],{"class":76}," '.\u002Fframe.ts'",[59,105,107],{"class":106},"sJ8bj"," \u002F\u002F () => 解析済みの LinearStaticSolver（「スライドと講義資料」のページと同じ）\n",[59,109,111],{"class":61,"line":110},4,[59,112,114],{"emptyLinePlaceholder":113},true,"\n",[59,116,118,121,125,128,132,135,138],{"class":61,"line":117},5,[59,119,120],{"class":65},"const",[59,122,124],{"class":123},"sj4cs"," frame",[59,126,127],{"class":65}," =",[59,129,131],{"class":130},"sScJk"," modelFromSolver",[59,133,134],{"class":69},"(",[59,136,137],{"class":130},"portalFrame",[59,139,140],{"class":69},"())\n",[59,142,144,147,149,152,155,157,160,163,165,168,170,173,175,178,180,183],{"class":61,"line":143},6,[59,145,146],{"class":130},"writeFileSync",[59,148,134],{"class":69},[59,150,151],{"class":76},"'frame.svg'",[59,153,154],{"class":69},", ",[59,156,38],{"class":130},[59,158,159],{"class":69},"(frame, { layers: [",[59,161,162],{"class":76},"'members'",[59,164,154],{"class":69},[59,166,167],{"class":76},"'supports'",[59,169,154],{"class":69},[59,171,172],{"class":76},"'loads'",[59,174,154],{"class":69},[59,176,177],{"class":76},"'reactions'",[59,179,154],{"class":69},[59,181,182],{"class":76},"'M'",[59,184,185],{"class":69},"] }))\n",[13,187,188],{},[189,190],"img",{"alt":191,"className":192,"height":194,"src":195,"width":196},"CairoSVG で描画した、単体の SVG ファイルとしての門形ラーメン：荷重、反力（上向きに 20 と 40、水平に 2.3 と 12.7）、曲げモーメントは C の −50.7 から梁の 29.3 まで",[193],"shot-lg",908,"\u002Fscreenshots\u002Fja\u002Fp2p-plot-frame-svg.webp",1280,[198,199,200,216],"table",{},[201,202,203],"thead",{},[204,205,206,210,213],"tr",{},[207,208,209],"th",{},"オプション",[207,211,212],{},"既定値",[207,214,215],{},"内容",[217,218,219,236,251,264,277,292,311,326,341,364,381,404],"tbody",{},[204,220,221,227,233],{},[222,223,224],"td",{},[17,225,226],{},"layers",[222,228,229,230,232],{},"members, supports, loads, reactions and the result ",[17,231,46],{}," would pick",[222,234,235],{},"描くもの",[204,237,238,243,248],{},[222,239,240],{},[17,241,242],{},"width",[222,244,245],{},[17,246,247],{},"640",[222,249,250],{},"幅、px（SVG のユーザー単位）",[204,252,253,258,261],{},[222,254,255],{},[17,256,257],{},"height",[222,259,260],{},"follows the drawing",[222,262,263],{},"固定の高さ、px",[204,265,266,271,274],{},[222,267,268],{},[17,269,270],{},"maxHeight",[222,272,273],{},"max(320, 0.75 × width)",[222,275,276],{},"自動で決まる高さの上限",[204,278,279,284,289],{},[222,280,281],{},[17,282,283],{},"padding",[222,285,286],{},[17,287,288],{},"6",[222,290,291],{},"図の周囲の余白、px",[204,293,294,299,308],{},[222,295,296],{},[17,297,298],{},"fontSize",[222,300,301,304,305],{},[17,302,303],{},"13",", compact ",[17,306,307],{},"11.5",[222,309,310],{},"文字サイズ、px",[204,312,313,318,323],{},[222,314,315],{},[17,316,317],{},"fontFamily",[222,319,320],{},[17,321,322],{},"Helvetica, Arial, sans-serif",[222,324,325],{},"ファイルを開くプログラムにあるフォントの指定（フォントスタック）",[204,327,328,333,338],{},[222,329,330],{},[17,331,332],{},"colors",[222,334,335],{},[17,336,337],{},"PRINT_COLORS",[222,339,340],{},"任意のトーンを固定色で指定",[204,342,343,348,353],{},[222,344,345],{},[17,346,347],{},"background",[222,349,350],{},[17,351,352],{},"true",[222,354,355,356,359,360,363],{},"背景を ",[17,357,358],{},"paper"," の色で塗る。",[17,361,362],{},"false"," で透明",[204,365,366,371,374],{},[222,367,368],{},[17,369,370],{},"title",[222,372,373],{},"none",[222,375,376,377,380],{},"SVG の ",[17,378,379],{},"\u003Ctitle>"," として書き込む",[204,382,383,394,396],{},[222,384,385,154,388,154,391],{},[17,386,387],{},"reserve",[17,389,390],{},"reserveLabelModes",[17,392,393],{},"reserveReactionLabels",[222,395,373],{},[222,397,398,399],{},"描くもの以外に場所を確保するレイヤー、ラベルの種類、反力ラベルの種類。段階表示用のファイルの位置が揃う：",[400,401,403],"a",{"href":402},"\u002Fja\u002Fplot\u002Fslides#a-build-up-in-beamer","Beamer での段階表示",[204,405,406,432,437],{},[222,407,408,154,411,154,414,154,417,154,420,154,423,154,426,154,429],{},[17,409,410],{},"units",[17,412,413],{},"numberFormat",[17,415,416],{},"compact",[17,418,419],{},"diagramSize",[17,421,422],{},"deformedSize",[17,424,425],{},"momentOnTensionSide",[17,427,428],{},"resultLabelMode",[17,430,431],{},"reactionLabels",[222,433,434,435],{},"as ",[17,436,46],{},[222,438,439],{},"コンポーネントの同名のプロパティと同じ意味",[13,441,442,444,445,448,449,452,453,456,457,460,461,464,465,468,469,472,473,481,482,485,486,488],{},[17,443,337],{}," は、白地に EduBeam アプリの色を使います。線と文字は ",[17,446,447],{},"#16182b","、軸力は ",[17,450,451],{},"#2222ff","、せん断力は ",[17,454,455],{},"#00af00","、曲げモーメントは ",[17,458,459],{},"#ff2222","、荷重は ",[17,462,463],{},"#ff8700","、反力は ",[17,466,467],{},"#a020f0"," です。",[17,470,471],{},"paint-order"," を解釈しない SVG ソフトもあるので、ラベルはすべて 2 回書き込みます。下に背景色の縁取り（ハロー）、その上に文字です。また、反力の記号 ",[474,475,476,477],"em",{},"A",[478,479,480],"sub",{},"x"," のような下付き文字は、Word や Inkscape が読める単純な数値を持つ ",[17,483,484],{},"tspan"," で書きます。",[17,487,387],{}," を指定しない場合、ファイルは描くレイヤーに合わせた大きさになります。",[13,490,491],{},"ファイルの使い方は次のとおりです。",[493,494,495,507,536],"ul",{},[496,497,498,502,503,506],"li",{},[499,500,501],"strong",{},"Word と PowerPoint","（2019 と Microsoft 365）：",[474,504,505],{},"挿入 › 画像","。",[496,508,509,512,513,519,520,523,524,527,528,531,532,535],{},[499,510,511],{},"LaTeX","：",[400,514,518],{"href":515,"rel":516},"https:\u002F\u002Fcairosvg.org",[517],"nofollow","CairoSVG","（",[17,521,522],{},"cairosvg frame.svg -o frame.pdf","）か Inkscape で PDF に変換し、",[17,525,526],{},"\\includegraphics"," で取り込みます。または、Inkscape を自動で呼び出す ",[17,529,530],{},"svg"," パッケージの ",[17,533,534],{},"\\includesvg"," を使います。幅 640 単位の図を 16 cm の本文幅に合わせると、ラベルは 9 pt になります。",[496,537,538,541,542,546],{},[499,539,540],{},"Vue を使わない Web ページ","：テキストを HTML に貼り付けます。",[400,543,545],{"href":544},"\u002Fja\u002Fplot\u002Fembedding#plain-html-from-node","Vue を使わない場合","を参照してください。",[13,548,549,553],{},[400,550,552],{"href":551},"\u002Fja\u002Fplot\u002Fexercises#figures-for-latex-and-word","演習問題と試験","では、学生ごとの問題と解答をそれぞれファイルに書き出しています。",[25,555,557],{"id":556},"from-a-solver","ソルバーから",[198,559,560,573],{},[201,561,562],{},[204,563,564,567,570],{},[207,565,566],{},"エクスポート",[207,568,569],{},"シグネチャ",[207,571,572],{},"機能",[217,574,575,594],{},[204,576,577,581,586],{},[222,578,579],{},[17,580,19],{},[222,582,583],{},[17,584,585],{},"(solver: Solver, options?: FromSolverOptions) => PlotModel",[222,587,588,589,593],{},"ソルバーをプレーンな",[400,590,592],{"href":591},"\u002Fja\u002Fplot\u002Fmodel","描画モデル","に読み出す。結果は解析済みの荷重ケースのみ",[204,595,596,601,604],{},[222,597,598],{},[17,599,600],{},"FromSolverOptions",[222,602,603],{},"type",[222,605,606,609,610,613],{},[17,607,608],{},"{ loadCase?: number }","、",[17,611,612],{},"solver.loadCases"," のインデックス",[25,615,617],{"id":616},"piecewise-polynomials","区分多項式",[13,619,620,621,624,625,628,629,632,633,636,637,640,641,644],{},"部材の結果は ",[17,622,623],{},"Piecewise"," 型の値、つまり ",[17,626,627],{},"{ x0, x1, c }"," という区間のリストです。詳しくは",[400,630,592],{"href":631},"\u002Fja\u002Fplot\u002Fmodel#piecewise-polynomials","で説明しています。",[17,634,635],{},"side"," は、2 つの区間がつながる点の直前（",[17,638,639],{},"'left'","）と直後（",[17,642,643],{},"'right'","、既定）のどちらの値を取るかを選びます。",[198,646,647,657],{},[201,648,649],{},[204,650,651,653,655],{},[207,652,566],{},[207,654,569],{},[207,656,572],{},[217,658,659,676,690,708,723,738,753,768,782,797,815,833,851],{},[204,660,661,666,671],{},[222,662,663],{},[17,664,665],{},"valueAt",[222,667,668],{},[17,669,670],{},"(pw, x, side?) => number",[222,672,673,675],{},[17,674,480],{}," での値。両端より外では、近いほうの端の値",[204,677,678,683,687],{},[222,679,680],{},[17,681,682],{},"slopeAt",[222,684,685],{},[17,686,670],{},[222,688,689],{},"導関数。単位は「値の単位\u002Fm」",[204,691,692,697,702],{},[222,693,694],{},[17,695,696],{},"extremes",[222,698,699],{},[17,700,701],{},"(pw) => { max: Extreme; min: Extreme } | null",[222,703,704,705],{},"最大値と最小値（厳密）。それぞれ ",[17,706,707],{},"{ x, value, side }",[204,709,710,715,720],{},[222,711,712],{},[17,713,714],{},"maxAbs",[222,716,717],{},[17,718,719],{},"(pw) => number",[222,721,722],{},"絶対値の最大",[204,724,725,730,735],{},[222,726,727],{},[17,728,729],{},"innerBreaks",[222,731,732],{},[17,733,734],{},"(pw) => number[]",[222,736,737],{},"区間のつなぎ目（両端を除く）",[204,739,740,745,750],{},[222,741,742],{},[17,743,744],{},"isZero",[222,746,747],{},[17,748,749],{},"(pw) => boolean",[222,751,752],{},"全長にわたってゼロかどうか",[204,754,755,760,765],{},[222,756,757],{},[17,758,759],{},"evalPiece",[222,761,762],{},[17,763,764],{},"(piece, x) => number",[222,766,767],{},"1 つの区間の値",[204,769,770,775,779],{},[222,771,772],{},[17,773,774],{},"evalPieceSlope",[222,776,777],{},[17,778,764],{},[222,780,781],{},"1 つの区間の勾配",[204,783,784,789,794],{},[222,785,786],{},[17,787,788],{},"pieceExtrema",[222,790,791],{},[17,792,793],{},"(piece) => number[]",[222,795,796],{},"区間の勾配がゼロになる位置、m",[204,798,799,804,809],{},[222,800,801],{},[17,802,803],{},"pieceDegree",[222,805,806],{},[17,807,808],{},"(piece) => number | null",[222,810,811,812],{},"区間の次数。ゼロのときは ",[17,813,814],{},"null",[204,816,817,822,827],{},[222,818,819],{},[17,820,821],{},"cleanPiecewise",[222,823,824],{},[17,825,826],{},"(pw, tolerance) => Piecewise",[222,828,829,832],{},[17,830,831],{},"tolerance"," 未満の係数（解析済みモデルの丸め誤差）を捨てる",[204,834,835,840,845],{},[222,836,837],{},[17,838,839],{},"fitPiece",[222,841,842],{},[17,843,844],{},"(f, x0, x1, degree) => Piece",[222,846,847,850],{},[17,848,849],{},"(x0, x1)"," 上の関数を通る、指定した次数の多項式",[204,852,853,858,863],{},[222,854,855],{},[17,856,857],{},"pieceToBeziers",[222,859,860],{},[17,861,862],{},"(piece, segments?) => CubicSegment[]",[222,864,865,866,869],{},"区間を (x, 値) 平面の 3 次ベジェ曲線で表す。3 次以下なら厳密、それ以外は ",[17,867,868],{},"segments"," 個（既定 4）で近似",[13,871,872,873,609,876,609,878,519,881,884,885,609,888,506],{},"型：",[17,874,875],{},"Piece",[17,877,623],{},[17,879,880],{},"Side",[17,882,883],{},"'left' \\| 'right'","）、",[17,886,887],{},"Extreme",[17,889,890],{},"CubicSegment",[25,892,894],{"id":893},"units-and-numbers","単位と数値",[198,896,897,907],{},[201,898,899],{},[204,900,901,903,905],{},[207,902,566],{},[207,904,569],{},[207,906,572],{},[217,908,909,924,938,955,970,985],{},[204,910,911,916,921],{},[222,912,913],{},[17,914,915],{},"KN_UNITS",[222,917,918],{},[17,919,920],{},"Units",[222,922,923],{},"kN、kNm、kN\u002Fm、m、mm、mrad、K：既定値",[204,925,926,931,935],{},[222,927,928],{},[17,929,930],{},"SI_UNITS",[222,932,933],{},[17,934,920],{},[222,936,937],{},"N、N·m、N\u002Fm、m、m、rad、K",[204,939,940,945,950],{},[222,941,942],{},[17,943,944],{},"resolveUnits",[222,946,947],{},[17,948,949],{},"(units?: Partial\u003CUnits>) => Units",[222,951,952,954],{},[17,953,915],{}," に指定した上書きを適用したもの",[204,956,957,962,967],{},[222,958,959],{},[17,960,961],{},"DEFAULT_NUMBER_FORMAT",[222,963,964],{},[17,965,966],{},"Intl.NumberFormat",[222,968,969],{},"英語の書式、小数点以下最大 1 桁",[204,971,972,977,982],{},[222,973,974],{},[17,975,976],{},"formatNumber",[222,978,979],{},[17,980,981],{},"(value, format?) => string",[222,983,984],{},"正式なマイナス記号（−）を使った数値。−0 にはならない",[204,986,987,992,997],{},[222,988,989],{},[17,990,991],{},"formatQuantity",[222,993,994],{},[17,995,996],{},"(si, unit, format?) => string",[222,998,999,1002],{},[17,1000,1001],{},"\"36 kN\"","：SI の値を指定の単位で、幅の狭いノーブレークスペースを挟んで書く",[13,1004,1005,1008,1009,1012,1013,468,1016,1018,1019,519,1022,609,1025,609,1028,609,1031,609,1034,609,1037,609,1040,1043,1044,1046],{},[17,1006,1007],{},"Unit"," は ",[17,1010,1011],{},"{ symbol, scale }"," で、表示値 = SI 値 × ",[17,1014,1015],{},"scale",[17,1017,920],{}," は、",[17,1020,1021],{},"UnitKind",[17,1023,1024],{},"force",[17,1026,1027],{},"moment",[17,1029,1030],{},"distributed",[17,1032,1033],{},"length",[17,1035,1036],{},"displacement",[17,1038,1039],{},"rotation",[17,1041,1042],{},"temperature","）ごとに 1 つずつ ",[17,1045,1007],{}," を持ちます。",[49,1048,1050],{"className":51,"code":1049,"language":54,"meta":55,"style":55},"import { formatQuantity, KN_UNITS } from '@edubeam\u002Fplot'\n\nformatQuantity(-37500, KN_UNITS.moment) \u002F\u002F \"−37.5 kNm\"\n",[17,1051,1052,1063,1067],{"__ignoreMap":55},[59,1053,1054,1056,1059,1061],{"class":61,"line":62},[59,1055,66],{"class":65},[59,1057,1058],{"class":69}," { formatQuantity, KN_UNITS } ",[59,1060,73],{"class":65},[59,1062,90],{"class":76},[59,1064,1065],{"class":61,"line":80},[59,1066,114],{"emptyLinePlaceholder":113},[59,1068,1069,1071,1073,1076,1079,1081,1083,1086],{"class":61,"line":93},[59,1070,991],{"class":130},[59,1072,134],{"class":69},[59,1074,1075],{"class":65},"-",[59,1077,1078],{"class":123},"37500",[59,1080,154],{"class":69},[59,1082,915],{"class":123},[59,1084,1085],{"class":69},".moment) ",[59,1087,1088],{"class":106},"\u002F\u002F \"−37.5 kNm\"\n",[25,1090,1092],{"id":1091},"reading-values","値の読み取り",[198,1094,1095,1105],{},[201,1096,1097],{},[204,1098,1099,1101,1103],{},[207,1100,566],{},[207,1102,569],{},[207,1104,572],{},[217,1106,1107,1135,1154,1169],{},[204,1108,1109,1114,1119],{},[222,1110,1111],{},[17,1112,1113],{},"readMember",[222,1115,1116],{},[17,1117,1118],{},"(results: MemberResults, x, snap?) => { x, u, values }",[222,1120,1121,1123,1124,1127,1128,506,1131,1134],{},[17,1122,480],{}," での N、V、M、w（それぞれ ",[17,1125,1126],{},"{ left, right }","）と軸方向変位 ",[17,1129,1130],{},"u",[17,1132,1133],{},"snap"," m 以内の段差にはスナップする",[204,1136,1137,1142,1147],{},[222,1138,1139],{},[17,1140,1141],{},"readoutAt",[222,1143,1144],{},[17,1145,1146],{},"(model, transform, px, py, reach) => Readout | null",[222,1148,1149,1150,1153],{},"画面上の点から ",[17,1151,1152],{},"reach"," px 以内で最も近い部材と、その点での結果",[204,1155,1156,1161,1166],{},[222,1157,1158],{},[17,1159,1160],{},"readoutMarks",[222,1162,1163],{},[17,1164,1165],{},"(model, transform, readout, shown, k, side) => ReadoutMark[]",[222,1167,1168],{},"読み取った値を描く位置。表示中の各断面力図の縦距の先端（段差では両方）と、変位図上の点",[204,1170,1171,1176,1181],{},[222,1172,1173],{},[17,1174,1175],{},"formatReadout",[222,1177,1178],{},[17,1179,1180],{},"(readout, quantity, units, format?) => string",[222,1182,1183,1186,1187],{},[17,1184,1185],{},"\"M = 54 kNm\"","、段差では ",[17,1188,1189],{},"\"V = 13.3 → −6.7 kN\"",[13,1191,1192,1195,1196,1198,1199,1202,1203,1206,1207,609,1210,1213,1214,884,1217,519,1220,884,1223,506],{},[17,1193,1194],{},"k"," は結果ごとの SI 単位あたりの px、",[17,1197,635],{}," は各断面力図を描く側で、下の ",[17,1200,1201],{},"diagramScales"," と ",[17,1204,1205],{},"diagramSide"," から得られます。型：",[17,1208,1209],{},"Readout",[17,1211,1212],{},"ReadoutMark","（px 単位の ",[17,1215,1216],{},"{ tone, from, to }",[17,1218,1219],{},"ReadoutQuantity",[17,1221,1222],{},"'N' \\| 'V' \\| 'M' \\| 'w'",[17,1224,1225],{},"SidedValue",[25,1227,1229],{"id":1228},"beam-lines","梁の線",[13,1231,1232,1236],{},[400,1233,1235],{"href":1234},"\u002Fja\u002Fplot\u002Fdiagram-stack","DiagramStack"," を構成する部品です。断面力図を並べた独自の図を作るときに使います。",[198,1238,1239,1249],{},[201,1240,1241],{},[204,1242,1243,1245,1247],{},[207,1244,566],{},[207,1246,569],{},[207,1248,572],{},[217,1250,1251,1266,1281,1296,1311,1325,1340,1359,1374],{},[204,1252,1253,1258,1263],{},[222,1254,1255],{},[17,1256,1257],{},"beamLine",[222,1259,1260],{},[17,1261,1262],{},"(model, ids?) => BeamLine",[222,1264,1265],{},"部材を左から右への 1 本の水平な線にまとめる。それ以外の形ではエラーを投げる",[204,1267,1268,1273,1278],{},[222,1269,1270],{},[17,1271,1272],{},"lineDiagram",[222,1274,1275],{},[17,1276,1277],{},"(model, line, row) => Piecewise",[222,1279,1280],{},"線全体に沿った 1 つの結果（線の x 座標で）",[204,1282,1283,1288,1293],{},[222,1284,1285],{},[17,1286,1287],{},"rowRange",[222,1289,1290],{},[17,1291,1292],{},"(pw) => [number, number]",[222,1294,1295],{},"段の縮尺の基準になる範囲。常にゼロを含む",[204,1297,1298,1303,1308],{},[222,1299,1300],{},[17,1301,1302],{},"rowPeaks",[222,1304,1305],{},[17,1306,1307],{},"(pw) => RowPeak[]",[222,1309,1310],{},"段に書き込むべき極値",[204,1312,1313,1318,1322],{},[222,1314,1315],{},[17,1316,1317],{},"rowBreaks",[222,1319,1320],{},[17,1321,734],{},[222,1323,1324],{},"結果が折れたり跳んだりする位置：支点、部材の接合点、集中荷重",[204,1326,1327,1332,1337],{},[222,1328,1329],{},[17,1330,1331],{},"rowOutline",[222,1333,1334],{},[17,1335,1336],{},"(pw, sx, sy, close) => string",[222,1338,1339],{},"段の輪郭の SVG パスデータ。m と値から px への写像を与える",[204,1341,1342,1347,1352],{},[222,1343,1344],{},[17,1345,1346],{},"rowOrdinates",[222,1348,1349],{},[17,1350,1351],{},"(pw, sx, sy, spacing) => string",[222,1353,1354,1355,1358],{},"ハッチングの縦距の SVG パスデータ。間隔は ",[17,1356,1357],{},"spacing"," px",[204,1360,1361,1366,1371],{},[222,1362,1363],{},[17,1364,1365],{},"lineModel",[222,1367,1368],{},[17,1369,1370],{},"(model, line, omit?) => PlotModel",[222,1372,1373],{},"線の部分だけに切り詰めたモデル。荷重を 1 つ除くこともできる",[204,1375,1376,1381,1386],{},[222,1377,1378],{},[17,1379,1380],{},"pointLoadAt",[222,1382,1383],{},[17,1384,1385],{},"(model, line, at) => PlotLoad | undefined",[222,1387,1388,1389,1392],{},"線上の位置 ",[17,1390,1391],{},"at"," にある集中荷重",[13,1394,872,1395,609,1398,609,1401,609,1404,506],{},[17,1396,1397],{},"BeamLine",[17,1399,1400],{},"LineMember",[17,1402,1403],{},"RowPeak",[17,1405,1406],{},"StackRow",[13,1408,1409,1412,1413,609,1415,609,1417,1419],{},[400,1410,1235],{"href":1411},"\u002Fja\u002Fplot\u002Fdiagram-stack#a-load-the-reader-can-drag"," のページでは、",[17,1414,1257],{},[17,1416,1272],{},[17,1418,1287],{}," を使って、移動荷重のどの位置でも各段の縮尺を一定に保っています。",[25,1421,1423],{"id":1422},"geometry-and-supports","形状と支点",[198,1425,1426,1436],{},[201,1427,1428],{},[204,1429,1430,1432,1434],{},[207,1431,566],{},[207,1433,569],{},[207,1435,572],{},[217,1437,1438,1453,1468,1483,1501,1534,1549,1564],{},[204,1439,1440,1445,1450],{},[222,1441,1442],{},[17,1443,1444],{},"nodeMap",[222,1446,1447],{},[17,1448,1449],{},"(model) => ReadonlyMap\u003Cstring, PlotNode>",[222,1451,1452],{},"id ごとの節点",[204,1454,1455,1460,1465],{},[222,1456,1457],{},[17,1458,1459],{},"memberFrame",[222,1461,1462],{},[17,1463,1464],{},"(model, member, nodes?) => MemberFrame",[222,1466,1467],{},"部材の始点、単位接線ベクトル、ローカル z 方向の単位ベクトル、長さ",[204,1469,1470,1475,1480],{},[222,1471,1472],{},[17,1473,1474],{},"memberFrames",[222,1476,1477],{},[17,1478,1479],{},"(model) => Map\u003Cstring, MemberFrame>",[222,1481,1482],{},"全部材について同じものを id ごとに",[204,1484,1485,1490,1495],{},[222,1486,1487],{},[17,1488,1489],{},"pointAlong",[222,1491,1492],{},[17,1493,1494],{},"(frame, at) => { x, z }",[222,1496,1497,1498,1500],{},"部材に沿って ",[17,1499,1391],{}," m の点",[204,1502,1503,1508,1513],{},[222,1504,1505],{},[17,1506,1507],{},"supportKind",[222,1509,1510],{},[17,1511,1512],{},"(fixity) => SupportKind",[222,1514,1515,609,1518,609,1521,609,1524,609,1527,609,1530,1533],{},[17,1516,1517],{},"'fixed'",[17,1519,1520],{},"'pin'",[17,1522,1523],{},"'roller'",[17,1525,1526],{},"'slider'",[17,1528,1529],{},"'rotation'",[17,1531,1532],{},"'none'"," のいずれか",[204,1535,1536,1541,1546],{},[222,1537,1538],{},[17,1539,1540],{},"supportPlacement",[222,1542,1543],{},[17,1544,1545],{},"(model, node) => SupportPlacement",[222,1547,1548],{},"節点の支点記号と、その時計回りの回転角（度）",[204,1550,1551,1556,1561],{},[222,1552,1553],{},[17,1554,1555],{},"supportGlyph",[222,1557,1558],{},[17,1559,1560],{},"(kind) => readonly GlyphPart[]",[222,1562,1563],{},"記号を構成する線、px",[204,1565,1566,1571,1576],{},[222,1567,1568],{},[17,1569,1570],{},"glyphReach",[222,1572,1573],{},[17,1574,1575],{},"(kind, rotation, x, z) => number",[222,1577,1578],{},"回転した記号がある方向にどこまで届くか、px",[25,1580,1582],{"id":1581},"drawing","描画",[13,1584,1585,1586,1589,1590,1593,1594,1597,1598,1018,1601,1603,1604,1606],{},"描画は 3 段階で行います。",[17,1587,1588],{},"buildStructureScene"," は、モデルをシーン要素（画面上のピクセル単位のオフセットを持つ、モデル上の点）に変えます。",[17,1591,1592],{},"fitScene"," は、それらを枠に収める縮尺とオフセットを求めます。",[17,1595,1596],{},"resolveScene"," は、それらを SVG のパスデータ、円、そして配置できたラベルに変換します。",[17,1599,1600],{},"layoutStructure",[17,1602,46],{}," や ",[17,1605,38],{}," と同じように 3 段階をすべて実行するので、独自の図もそれらと同じようにレイアウトできます。",[198,1608,1609,1619],{},[201,1610,1611],{},[204,1612,1613,1615,1617],{},[207,1614,566],{},[207,1616,569],{},[207,1618,572],{},[217,1620,1621,1639,1660,1674,1692,1710,1725,1740,1755,1770,1785,1799,1813,1828,1843,1858,1873,1888,1907,1921,1936],{},[204,1622,1623,1627,1632],{},[222,1624,1625],{},[17,1626,1600],{},[222,1628,1629],{},[17,1630,1631],{},"(model, options, box, shown?, labelModes?) => StructureLayout",[222,1633,1634,1635,1638],{},"レイアウト全体：全ラベル込みで収め、混み合ったラベルを省き、もう一度収める。",[17,1636,1637],{},"{ fit, items, resolved }"," を返す",[204,1640,1641,1645,1650],{},[222,1642,1643],{},[17,1644,38],{},[222,1646,1647],{},[17,1648,1649],{},"(model, options?) => string",[222,1651,1652,1653,1655,1656],{},"単体の ",[17,1654,42],{}," ファイル：",[400,1657,1659],{"href":1658},"#a-standalone-svg-file","上記",[204,1661,1662,1666,1671],{},[222,1663,1664],{},[17,1665,1588],{},[222,1667,1668],{},[17,1669,1670],{},"(model, options: StructureSceneOptions) => SceneItem[]",[222,1672,1673],{},"選んだレイヤーを、指定した縮尺（px\u002Fm）で描いたもの",[204,1675,1676,1680,1685],{},[222,1677,1678],{},[17,1679,1592],{},[222,1681,1682],{},[17,1683,1684],{},"(items, box: FitBox) => Fit",[222,1686,1687,1688,1691],{},"枠 ",[17,1689,1690],{},"{ width, height?, maxHeight?, padding, fontSize }"," に収める縮尺とオフセット",[204,1693,1694,1698,1703],{},[222,1695,1696],{},[17,1697,1596],{},[222,1699,1700],{},[17,1701,1702],{},"(items, transform, options: ResolveOptions) => ResolvedScene",[222,1704,1705,1706,1709],{},"px 単位の ",[17,1707,1708],{},"{ paths, circles, texts }","。収まるラベルのみ",[204,1711,1712,1717,1722],{},[222,1713,1714],{},[17,1715,1716],{},"placeLabels",[222,1718,1719],{},[17,1720,1721],{},"(items, transform, options: ResolveOptions) => Map\u003CSceneText, SceneText>",[222,1723,1724],{},"残すラベルとその位置",[204,1726,1727,1732,1737],{},[222,1728,1729],{},[17,1730,1731],{},"alternativeResultGroups",[222,1733,1734],{},[17,1735,1736],{},"(shown) => ReadonlySet\u003Cstring>",[222,1738,1739],{},"一度に 1 つずつ表示される結果レイヤー。そのラベルはほかのラベルには場所を譲るが、互いには譲らない",[204,1741,1742,1747,1752],{},[222,1743,1744],{},[17,1745,1746],{},"sceneBounds",[222,1748,1749],{},[17,1750,1751],{},"(items, scale, fontSize) => Bounds",[222,1753,1754],{},"シーンの範囲、px",[204,1756,1757,1762,1767],{},[222,1758,1759],{},[17,1760,1761],{},"project",[222,1763,1764],{},[17,1765,1766],{},"(transform, anchor) => [number, number]",[222,1768,1769],{},"シーン上の点の画面座標、px",[204,1771,1772,1777,1782],{},[222,1773,1774],{},[17,1775,1776],{},"defaultResultLayer",[222,1778,1779],{},[17,1780,1781],{},"(model) => ResultLayer | null",[222,1783,1784],{},"指定がないときに図が表示する結果",[204,1786,1787,1791,1796],{},[222,1788,1789],{},[17,1790,1201],{},[222,1792,1793],{},[17,1794,1795],{},"(model, options) => Record\u003CResultLayer, number>",[222,1797,1798],{},"結果ごとの SI 単位あたりの px",[204,1800,1801,1805,1810],{},[222,1802,1803],{},[17,1804,1205],{},[222,1806,1807],{},[17,1808,1809],{},"(q, momentOnTensionSide) => 1 | -1",[222,1811,1812],{},"正の値を部材のどちら側に描くか",[204,1814,1815,1820,1825],{},[222,1816,1817],{},[17,1818,1819],{},"isBarStructure",[222,1821,1822],{},[17,1823,1824],{},"(model, memberResults) => boolean",[222,1826,1827],{},"N を断面力図ではなく、部材に沿った数値で書くかどうか（トラス）",[204,1829,1830,1835,1840],{},[222,1831,1832],{},[17,1833,1834],{},"tipPlacements",[222,1836,1837],{},[17,1838,1839],{},"(tip, out, mode, gaps?) => TextPlacement[]",[222,1841,1842],{},"縦距の先端の外側で、値を置ける位置",[204,1844,1845,1850,1855],{},[222,1846,1847],{},[17,1848,1849],{},"PLOT_LAYERS",[222,1851,1852],{},[17,1853,1854],{},"readonly PlotLayer[]",[222,1856,1857],{},"全レイヤー（描画順）",[204,1859,1860,1865,1870],{},[222,1861,1862],{},[17,1863,1864],{},"RESULT_LAYERS",[222,1866,1867],{},[17,1868,1869],{},"['N', 'V', 'M', 'w']",[222,1871,1872],{},"結果レイヤー",[204,1874,1875,1880,1885],{},[222,1876,1877],{},[17,1878,1879],{},"HATCH_SPACING_PX",[222,1881,1882],{},[17,1883,1884],{},"7",[222,1886,1887],{},"断面力図の縦距の間隔、px",[204,1889,1890,1895,1900],{},[222,1891,1892],{},[17,1893,1894],{},"DEFAULT_COLORS",[222,1896,1897],{},[17,1898,1899],{},"PlotColors",[222,1901,1902,1903],{},"各トーンの既定の色（CSS）：",[400,1904,1906],{"href":1905},"\u002Fja\u002Fplot\u002Ftheming","テーマと色",[204,1908,1909,1913,1918],{},[222,1910,1911],{},[17,1912,337],{},[222,1914,1915],{},[17,1916,1917],{},"Record\u003CTone | 'paper', string>",[222,1919,1920],{},"ファイル用の固定色。白地にアプリの色",[204,1922,1923,1928,1933],{},[222,1924,1925],{},[17,1926,1927],{},"toneVars",[222,1929,1930],{},[17,1931,1932],{},"(colors?) => Record\u003Cstring, string>",[222,1934,1935],{},"図がルート要素に設定するカスタムプロパティ",[204,1937,1938,1943,1948],{},[222,1939,1940],{},[17,1941,1942],{},"PLOT_CSS",[222,1944,1945],{},[17,1946,1947],{},"string",[222,1949,1950],{},"各図にインラインで埋め込まれる CSS ルール",[13,1952,1953,1008,1956,468,1959,1962,1963,1965,1966,1969,1970,1972,1973,1976,1977,1980],{},[17,1954,1955],{},"ResolveOptions",[17,1957,1958],{},"{ fontSize, viewport?, exclude?, alternativeGroups?, shields? }",[17,1960,1961],{},"shields"," は、その線がラベルを寄せ付けないグループ（表示中の断面力図）で、省略するとすべてのグループが対象になります。",[17,1964,1600],{}," では、",[17,1967,1968],{},"options.layers"," がレイアウトするレイヤー（",[17,1971,387],{}," と同じく、表示されうるものすべて）、",[17,1974,1975],{},"shown"," が表示中のレイヤー、",[17,1978,1979],{},"labelModes"," が場所を確保するラベルの書き方です。",[13,1982,872,1983,609,1986,609,1989,609,1992,609,1995,609,1998,609,2001,609,2004,609,2007,609,2010,609,2013,609,2015,609,2018,609,2021,609,2024,609,2027,609,2030,609,2033,609,2036,609,2039,609,2042,609,2045,609,2048,609,2051,2054,2055,2057],{},[17,1984,1985],{},"StructureSceneOptions",[17,1987,1988],{},"StructureLayout",[17,1990,1991],{},"StructureSvgOptions",[17,1993,1994],{},"SceneItem",[17,1996,1997],{},"SceneText",[17,1999,2000],{},"TextPlacement",[17,2002,2003],{},"ResolvedScene",[17,2005,2006],{},"ResolvedPath",[17,2008,2009],{},"ResolvedText",[17,2011,2012],{},"ResolvedCircle",[17,2014,1955],{},[17,2016,2017],{},"Bounds",[17,2019,2020],{},"Anchor",[17,2022,2023],{},"Transform",[17,2025,2026],{},"Fit",[17,2028,2029],{},"FitBox",[17,2031,2032],{},"Tone",[17,2034,2035],{},"PlotLayer",[17,2037,2038],{},"ResultLayer",[17,2040,2041],{},"ResultLabelMode",[17,2043,2044],{},"ReactionLabels",[17,2046,2047],{},"SupportKind",[17,2049,2050],{},"SupportPlacement",[17,2052,2053],{},"GlyphPart","、および",[400,2056,592],{"href":591},"のモデル型。",[2059,2060,2061],"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 pre.shiki code .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}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);}",{"title":55,"searchDepth":80,"depth":93,"links":2063},[2064,2065,2066,2067,2068,2069,2070,2071],{"id":27,"depth":80,"text":28},{"id":556,"depth":80,"text":557},{"id":616,"depth":80,"text":617},{"id":893,"depth":80,"text":894},{"id":1091,"depth":80,"text":1092},{"id":1228,"depth":80,"text":1229},{"id":1422,"depth":80,"text":1423},{"id":1581,"depth":80,"text":1582},"@edubeam\u002Fplot 0.2.0 がコンポーネント以外にエクスポートする関数、定数、型。単体の SVG ファイルを書き出す structureSvg、結果の厳密な読み取り、単位、梁の線、独自の図のレイアウト。","md",null,{"source":2076},"site",10,"\u002Fja\u002Fplot\u002Ffunctions",{"title":5,"description":2072},"ja\u002Fplot\u002Ffunctions","cyuxDoUsVk7tOua1YAqVbTalj00dVJsrQdNdwUfxuJE",[2083,2087,2090,2091,2092,2095,2098,2102,2107,2109],{"path":2084,"title":2085,"order":62,"group":2086},"\u002Fja\u002Fplot\u002Fgetting-started","クイックスタート","入門",{"path":2088,"title":46,"order":80,"group":2089},"\u002Fja\u002Fplot\u002Fstructure-plot","コンポーネント",{"path":1234,"title":1235,"order":93,"group":2074},{"path":1905,"title":1906,"order":110,"group":2074},{"path":2093,"title":552,"order":117,"group":2094},"\u002Fja\u002Fplot\u002Fexercises","活用例",{"path":2096,"title":2097,"order":143,"group":2074},"\u002Fja\u002Fplot\u002Fslides","スライドと講義資料",{"path":2099,"title":2100,"order":2101,"group":2074},"\u002Fja\u002Fplot\u002Fembedding","埋め込み",7,{"path":2103,"title":2104,"order":2105,"group":2106},"\u002Fja\u002Fplot\u002Fcomponents","コンポーネント API",8,"API リファレンス",{"path":591,"title":592,"order":2108,"group":2074},9,{"path":2078,"title":5,"order":2077,"group":2074},1795108684780]