[{"data":1,"prerenderedAt":955},["ShallowReactive",2],{"lib:\u002Fhi\u002Fplot\u002Ftheming":3,"lib-nav:hi:\u002Fplot":924},{"id":4,"title":5,"body":6,"description":915,"extension":916,"group":917,"meta":918,"navigation":336,"order":314,"path":920,"seo":921,"stem":922,"__hash__":923},"libs\u002Fhi\u002Fplot\u002Ftheming.md","थीम और रंग",{"type":7,"value":8,"toc":906},"minimark",[9,13,22,27,254,261,375,381,388,391,452,502,506,509,743,746,750,767,800,806,809,826,830,845,887,902],[10,11,5],"h1",{"id":12},"theming-and-colours",[14,15,16,17,21],"p",{},"प्लॉट अपने रंग पेज की CSS custom properties से लेता है, इसलिए साइट की light और dark थीम उस पर जैसी हैं वैसी ही लागू होती हैं। जहाँ पेज कोई property तय नहीं करता, वहाँ CSS system colours काम आते हैं, जो पेज के ",[18,19,20],"code",{},"color-scheme"," का पालन करते हैं। बिना कुछ बदले, light पेज में प्लॉट सफ़ेद पर काला होता है और dark पेज में गहरे पर हल्का।",[23,24,26],"h2",{"id":25},"custom-properties","Custom properties",[28,29,30,46],"table",{},[31,32,33],"thead",{},[34,35,36,40,43],"tr",{},[37,38,39],"th",{},"किसके लिए",[37,41,42],{},"Custom property",[37,44,45],{},"Fallback",[47,48,49,69,84,99,114,129,144,159,174,189,204,220,236],"tbody",{},[34,50,51,55,64],{},[52,53,54],"td",{},"सदस्य, सपोर्ट, पाठ",[52,56,57,60,61],{},[18,58,59],{},"--figure-ink",", फिर ",[18,62,63],{},"--ink",[52,65,66],{},[18,67,68],{},"CanvasText",[34,70,71,74,79],{},[52,72,73],{},"पृष्ठभूमि, लेबलों के halo",[52,75,76],{},[18,77,78],{},"--paper",[52,80,81],{},[18,82,83],{},"Canvas",[34,85,86,89,94],{},[52,87,88],{},"विमा रेखाएँ, अक्ष",[52,90,91],{},[18,92,93],{},"--muted",[52,95,96],{},[18,97,98],{},"GrayText",[34,100,101,104,109],{},[52,102,103],{},"नोड, खींचा जाने वाला भार",[52,105,106],{},[18,107,108],{},"--brand",[52,110,111],{},[18,112,113],{},"#4f46e5",[34,115,116,119,124],{},[52,117,118],{},"अक्षीय बल",[52,120,121],{},[18,122,123],{},"--color-normal",[52,125,126],{},[18,127,128],{},"#2222ff",[34,130,131,134,139],{},[52,132,133],{},"अपरूपण बल",[52,135,136],{},[18,137,138],{},"--color-shear",[52,140,141],{},[18,142,143],{},"#00af00",[34,145,146,149,154],{},[52,147,148],{},"बंकन आघूर्ण",[52,150,151],{},[18,152,153],{},"--color-moment",[52,155,156],{},[18,157,158],{},"#ff2222",[34,160,161,164,170],{},[52,162,163],{},"विरूपित आकार",[52,165,166,60,168],{},[18,167,59],{},[18,169,63],{},[52,171,172],{},[18,173,68],{},[34,175,176,179,184],{},[52,177,178],{},"भार",[52,180,181],{},[18,182,183],{},"--color-load",[52,185,186],{},[18,187,188],{},"#ff8700",[34,190,191,194,199],{},[52,192,193],{},"प्रतिक्रियाएँ",[52,195,196],{},[18,197,198],{},"--color-reaction",[52,200,201],{},[18,202,203],{},"#a020f0",[34,205,206,209,216],{},[52,207,208],{},"तनाव वाली ट्रस छड़ें",[52,210,211,60,214],{},[18,212,213],{},"--color-tension",[18,215,153],{},[52,217,218],{},[18,219,158],{},[34,221,222,225,232],{},[52,223,224],{},"संपीड़न वाली ट्रस छड़ें",[52,226,227,60,230],{},[18,228,229],{},"--color-compression",[18,231,123],{},[52,233,234],{},[18,235,128],{},[34,237,238,241,249],{},[52,239,240],{},"फ़ॉन्ट",[52,242,243,60,246],{},[18,244,245],{},"--ebp-font",[18,247,248],{},"--font-sans",[52,250,251],{},[18,252,253],{},"inherit",[14,255,256,257,260],{},"ये properties प्लॉट से ऊपर के किसी भी element पर तय करें; पूरी साइट के लिए ",[18,258,259],{},":root"," पर:",[262,263,268],"pre",{"className":264,"code":265,"language":266,"meta":267,"style":267},"language-css shiki shiki-themes github-light github-dark",":root {\n  --ink: #1b1b3a;\n  --paper: #ffffff;\n  --color-moment: #d7263d;\n}\n\n.dark {\n  --ink: #eeeeff;\n  --paper: #0b0d1f;\n}\n","css","",[18,269,270,282,299,312,325,331,338,346,358,370],{"__ignoreMap":267},[271,272,275,278],"span",{"class":273,"line":274},"line",1,[271,276,259],{"class":277},"sScJk",[271,279,281],{"class":280},"sVt8B"," {\n",[271,283,285,289,292,296],{"class":273,"line":284},2,[271,286,288],{"class":287},"s4XuR","  --ink",[271,290,291],{"class":280},": ",[271,293,295],{"class":294},"sj4cs","#1b1b3a",[271,297,298],{"class":280},";\n",[271,300,302,305,307,310],{"class":273,"line":301},3,[271,303,304],{"class":287},"  --paper",[271,306,291],{"class":280},[271,308,309],{"class":294},"#ffffff",[271,311,298],{"class":280},[271,313,315,318,320,323],{"class":273,"line":314},4,[271,316,317],{"class":287},"  --color-moment",[271,319,291],{"class":280},[271,321,322],{"class":294},"#d7263d",[271,324,298],{"class":280},[271,326,328],{"class":273,"line":327},5,[271,329,330],{"class":280},"}\n",[271,332,334],{"class":273,"line":333},6,[271,335,337],{"emptyLinePlaceholder":336},true,"\n",[271,339,341,344],{"class":273,"line":340},7,[271,342,343],{"class":277},".dark",[271,345,281],{"class":280},[271,347,349,351,353,356],{"class":273,"line":348},8,[271,350,288],{"class":287},[271,352,291],{"class":280},[271,354,355],{"class":294},"#eeeeff",[271,357,298],{"class":280},[271,359,361,363,365,368],{"class":273,"line":360},9,[271,362,304],{"class":287},[271,364,291],{"class":280},[271,366,367],{"class":294},"#0b0d1f",[271,369,298],{"class":280},[271,371,373],{"class":273,"line":372},10,[271,374,330],{"class":280},[14,376,377,378,380],{},"लेबलों के चारों ओर ",[18,379,78],{}," रंग का halo होता है, ताकि हैचिंग के ऊपर भी वे पढ़े जा सकें: इसे उस पृष्ठभूमि से मिलाएँ जिस पर प्लॉट रखा है।",[23,382,384,387],{"id":383},"the-colors-prop",[18,385,386],{},"colors"," prop",[14,389,390],{},"किसी एक प्लॉट के रंग बदलने के लिए किसी भी tone को उसके नाम से दें:",[262,392,396],{"className":393,"code":394,"language":395,"meta":267,"style":267},"language-vue shiki shiki-themes github-light github-dark","\u003CStructurePlot :solver=\"solver\" :colors=\"{ moment: '#c00', paper: 'transparent' }\" \u002F>\n","vue",[18,397,398],{"__ignoreMap":267},[271,399,400,403,407,410,413,416,420,422,424,426,428,430,432,435,438,441,444,447,449],{"class":273,"line":274},[271,401,402],{"class":280},"\u003C",[271,404,406],{"class":405},"s9eBZ","StructurePlot",[271,408,409],{"class":280}," :",[271,411,412],{"class":277},"solver",[271,414,415],{"class":280},"=",[271,417,419],{"class":418},"sZZnC","\"",[271,421,412],{"class":280},[271,423,419],{"class":418},[271,425,409],{"class":280},[271,427,386],{"class":277},[271,429,415],{"class":280},[271,431,419],{"class":418},[271,433,434],{"class":280},"{ moment: ",[271,436,437],{"class":418},"'#c00'",[271,439,440],{"class":280},", paper: ",[271,442,443],{"class":418},"'transparent'",[271,445,446],{"class":280}," }",[271,448,419],{"class":418},[271,450,451],{"class":280}," \u002F>\n",[14,453,454,455,458,459,458,462,458,465,458,468,458,471,458,474,458,477,458,480,458,483,458,486,489,490,493,494,497,498,501],{},"Tone ये हैं: ",[18,456,457],{},"ink",", ",[18,460,461],{},"paper",[18,463,464],{},"muted",[18,466,467],{},"brand",[18,469,470],{},"normal",[18,472,473],{},"shear",[18,475,476],{},"moment",[18,478,479],{},"deformed",[18,481,482],{},"load",[18,484,485],{},"reaction",[18,487,488],{},"tension"," और ",[18,491,492],{},"compression","। कोई भी CSS रंग चलता है, ",[18,495,496],{},"var(…)"," भी। ",[18,499,500],{},"DEFAULT_COLORS"," में हर tone का default मान है।",[23,503,505],{"id":504},"black-and-white","श्वेत-श्याम",[14,507,508],{},"फ़ोटोकॉपी किए जाने वाले प्रश्नपत्र या श्वेत-श्याम छपाई के लिए हर रंगीन tone को ink पर सेट करें:",[262,510,512],{"className":393,"code":511,"language":395,"meta":267,"style":267},"\u003Cscript setup lang=\"ts\">\nimport type { PlotColors } from '@edubeam\u002Fplot'\n\nconst print: Partial\u003CPlotColors> = {\n  ink: '#000', paper: '#fff', muted: '#555', brand: '#000',\n  normal: '#000', shear: '#000', moment: '#000', deformed: '#000',\n  load: '#000', reaction: '#000', tension: '#000', compression: '#000',\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CStructurePlot :solver=\"solver\" :colors=\"print\" :animate=\"false\" \u002F>\n\u003C\u002Ftemplate>\n",[18,513,514,535,553,557,583,610,634,658,662,671,675,685,734],{"__ignoreMap":267},[271,515,516,518,521,524,527,529,532],{"class":273,"line":274},[271,517,402],{"class":280},[271,519,520],{"class":405},"script",[271,522,523],{"class":277}," setup",[271,525,526],{"class":277}," lang",[271,528,415],{"class":280},[271,530,531],{"class":418},"\"ts\"",[271,533,534],{"class":280},">\n",[271,536,537,541,544,547,550],{"class":273,"line":284},[271,538,540],{"class":539},"szBVR","import",[271,542,543],{"class":539}," type",[271,545,546],{"class":280}," { PlotColors } ",[271,548,549],{"class":539},"from",[271,551,552],{"class":418}," '@edubeam\u002Fplot'\n",[271,554,555],{"class":273,"line":301},[271,556,337],{"emptyLinePlaceholder":336},[271,558,559,562,565,568,571,573,576,579,581],{"class":273,"line":314},[271,560,561],{"class":539},"const",[271,563,564],{"class":294}," print",[271,566,567],{"class":539},":",[271,569,570],{"class":277}," Partial",[271,572,402],{"class":280},[271,574,575],{"class":277},"PlotColors",[271,577,578],{"class":280},"> ",[271,580,415],{"class":539},[271,582,281],{"class":280},[271,584,585,588,591,593,596,599,602,605,607],{"class":273,"line":327},[271,586,587],{"class":280},"  ink: ",[271,589,590],{"class":418},"'#000'",[271,592,440],{"class":280},[271,594,595],{"class":418},"'#fff'",[271,597,598],{"class":280},", muted: ",[271,600,601],{"class":418},"'#555'",[271,603,604],{"class":280},", brand: ",[271,606,590],{"class":418},[271,608,609],{"class":280},",\n",[271,611,612,615,617,620,622,625,627,630,632],{"class":273,"line":333},[271,613,614],{"class":280},"  normal: ",[271,616,590],{"class":418},[271,618,619],{"class":280},", shear: ",[271,621,590],{"class":418},[271,623,624],{"class":280},", moment: ",[271,626,590],{"class":418},[271,628,629],{"class":280},", deformed: ",[271,631,590],{"class":418},[271,633,609],{"class":280},[271,635,636,639,641,644,646,649,651,654,656],{"class":273,"line":340},[271,637,638],{"class":280},"  load: ",[271,640,590],{"class":418},[271,642,643],{"class":280},", reaction: ",[271,645,590],{"class":418},[271,647,648],{"class":280},", tension: ",[271,650,590],{"class":418},[271,652,653],{"class":280},", compression: ",[271,655,590],{"class":418},[271,657,609],{"class":280},[271,659,660],{"class":273,"line":348},[271,661,330],{"class":280},[271,663,664,667,669],{"class":273,"line":360},[271,665,666],{"class":280},"\u003C\u002F",[271,668,520],{"class":405},[271,670,534],{"class":280},[271,672,673],{"class":273,"line":372},[271,674,337],{"emptyLinePlaceholder":336},[271,676,678,680,683],{"class":273,"line":677},11,[271,679,402],{"class":280},[271,681,682],{"class":405},"template",[271,684,534],{"class":280},[271,686,688,691,693,695,697,699,701,703,705,707,709,711,713,716,718,720,723,725,727,730,732],{"class":273,"line":687},12,[271,689,690],{"class":280},"  \u003C",[271,692,406],{"class":405},[271,694,409],{"class":280},[271,696,412],{"class":277},[271,698,415],{"class":280},[271,700,419],{"class":418},[271,702,412],{"class":280},[271,704,419],{"class":418},[271,706,409],{"class":280},[271,708,386],{"class":277},[271,710,415],{"class":280},[271,712,419],{"class":418},[271,714,715],{"class":280},"print",[271,717,419],{"class":418},[271,719,409],{"class":280},[271,721,722],{"class":277},"animate",[271,724,415],{"class":280},[271,726,419],{"class":418},[271,728,729],{"class":294},"false",[271,731,419],{"class":418},[271,733,451],{"class":280},[271,735,737,739,741],{"class":273,"line":736},13,[271,738,666],{"class":280},[271,740,682],{"class":405},[271,742,534],{"class":280},[14,744,745],{},"आरेख बिना रंग के भी पढ़े जा सकते हैं: वे हैच होते हैं, और आघूर्ण तनाव की ओर बनता है।",[23,747,749],{"id":748},"colours-in-an-svg-file","SVG फ़ाइल में रंग",[14,751,752,759,760,763,764,766],{},[753,754,756],"a",{"href":755},"\u002Fhi\u002Fplot\u002Ffunctions#a-standalone-svg-file",[18,757,758],{},"structureSvg"," की लिखी फ़ाइल के चारों ओर कोई पेज नहीं होता, इसलिए वह साधारण रंगों का उपयोग करती है: ",[18,761,762],{},"PRINT_COLORS",", यानी सफ़ेद पर EduBeam ऐप के रंग। उसका ",[18,765,386],{}," विकल्प prop वाले ही tone लेता है, इसलिए ऊपर का श्वेत-श्याम set वहाँ भी काम करता है:",[262,768,772],{"className":769,"code":770,"language":771,"meta":267,"style":267},"language-ts shiki shiki-themes github-light github-dark","structureSvg(model, { colors: print }) \u002F\u002F सफ़ेद पर काला\nstructureSvg(model, { background: false }) \u002F\u002F बिना पृष्ठभूमि, रंगीन स्लाइड के लिए\n","ts",[18,773,774,785],{"__ignoreMap":267},[271,775,776,778,781],{"class":273,"line":274},[271,777,758],{"class":277},[271,779,780],{"class":280},"(model, { colors: print }) ",[271,782,784],{"class":783},"sJ8bj","\u002F\u002F सफ़ेद पर काला\n",[271,786,787,789,792,794,797],{"class":273,"line":284},[271,788,758],{"class":277},[271,790,791],{"class":280},"(model, { background: ",[271,793,729],{"class":294},[271,795,796],{"class":280}," }) ",[271,798,799],{"class":783},"\u002F\u002F बिना पृष्ठभूमि, रंगीन स्लाइड के लिए\n",[14,801,802,803,805],{},"केवल साधारण रंग: Word या Inkscape के लिए ",[18,804,496],{}," का कोई अर्थ नहीं है।",[23,807,240],{"id":808},"fonts",[14,810,811,812,814,815,817,818,821,822,825],{},"पाठ पेज का फ़ॉन्ट लेता है, ",[18,813,245],{}," या ",[18,816,248],{}," से, और अंक tabular figures में होते हैं। ",[18,819,820],{},"DiagramStack"," में V(x) जैसे पंक्तियों के नाम KaTeX के फ़ॉन्ट में लिखे जाते हैं, अगर पेज उन्हें load करता है, नहीं तो किसी serif फ़ॉन्ट में। SVG फ़ाइल अपने ",[18,823,824],{},"fontFamily"," विकल्प का उपयोग करती है, default रूप से Helvetica या Arial, क्योंकि वह पेज का फ़ॉन्ट नहीं जान सकती।",[23,827,829],{"id":828},"restyling-the-animation","Animation बदलना",[14,831,832,833,836,837,840,841,844],{},"प्लॉट को जो थोड़े-से CSS नियम चाहिए, वे हर SVG के अंदर ही लिखे होते हैं, इसलिए उसे किसी stylesheet की ज़रूरत नहीं। हर class का prefix ",[18,834,835],{},"ebp-"," है, और पेज उन्हें override कर सकता है। हर लेयर एक ",[18,838,839],{},"\u003Cg class=\"ebp-layer ebp-layer-{name}\">"," है, जिसे दिखाए जाने पर ",[18,842,843],{},"ebp-on"," मिलता है:",[262,846,848],{"className":264,"code":847,"language":266,"meta":267,"style":267},"\u002F* धीमे fade, व्याख्यान कक्ष के लिए *\u002F\n.slides .ebp-animate .ebp-layer {\n  transition-duration: 1s;\n}\n",[18,849,850,855,868,883],{"__ignoreMap":267},[271,851,852],{"class":273,"line":274},[271,853,854],{"class":783},"\u002F* धीमे fade, व्याख्यान कक्ष के लिए *\u002F\n",[271,856,857,860,863,866],{"class":273,"line":284},[271,858,859],{"class":277},".slides",[271,861,862],{"class":277}," .ebp-animate",[271,864,865],{"class":277}," .ebp-layer",[271,867,281],{"class":280},[271,869,870,873,875,878,881],{"class":273,"line":301},[271,871,872],{"class":294},"  transition-duration",[271,874,291],{"class":280},[271,876,877],{"class":294},"1",[271,879,880],{"class":539},"s",[271,882,298],{"class":280},[271,884,885],{"class":273,"line":314},[271,886,330],{"class":280},[14,888,889,892,893,896,897,901],{},[18,890,891],{},"PLOT_CSS"," में ये अंदर लिखे नियम मिलते हैं, और ",[18,894,895],{},"toneVars(colors)"," से वे custom properties जो प्लॉट अपने root element पर सेट करता है; इनसे आप ",[753,898,900],{"href":899},"\u002Fhi\u002Fplot\u002Ffunctions#drawing","ड्रॉइंग फ़ंक्शनों"," के साथ अपने चित्र बना सकते हैं।",[903,904,905],"style",{},"html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .s4XuR, html code.shiki .s4XuR{--shiki-default:#E36209;--shiki-dark:#FFAB70}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html .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 .s9eBZ, html code.shiki .s9eBZ{--shiki-default:#22863A;--shiki-dark:#85E89D}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}",{"title":267,"searchDepth":284,"depth":301,"links":907},[908,909,911,912,913,914],{"id":25,"depth":284,"text":26},{"id":383,"depth":284,"text":910},"colors prop",{"id":504,"depth":284,"text":505},{"id":748,"depth":284,"text":749},{"id":808,"depth":284,"text":240},{"id":828,"depth":284,"text":829},"@edubeam\u002Fplot के चित्रों के रंग CSS custom properties या colors prop से बदलें: light और dark थीम, श्वेत-श्याम छपाई, SVG में रंग, फ़ॉन्ट और animation।","md",null,{"source":919},"site","\u002Fhi\u002Fplot\u002Ftheming",{"title":5,"description":915},"hi\u002Fplot\u002Ftheming","ip6t0XVbvvQobfXH9C6oBqaWl-dB4_YPrAi0Z8OtJSE",[925,929,932,934,935,939,942,945,949,952],{"path":926,"title":927,"order":274,"group":928},"\u002Fhi\u002Fplot\u002Fgetting-started","शुरुआत","परिचय",{"path":930,"title":406,"order":284,"group":931},"\u002Fhi\u002Fplot\u002Fstructure-plot","कंपोनेंट",{"path":933,"title":820,"order":301,"group":917},"\u002Fhi\u002Fplot\u002Fdiagram-stack",{"path":920,"title":5,"order":314,"group":917},{"path":936,"title":937,"order":327,"group":938},"\u002Fhi\u002Fplot\u002Fexercises","अभ्यास और प्रश्नपत्र","उपयोग",{"path":940,"title":941,"order":333,"group":917},"\u002Fhi\u002Fplot\u002Fslides","स्लाइड और नोट्स",{"path":943,"title":944,"order":340,"group":917},"\u002Fhi\u002Fplot\u002Fembedding","एम्बेड करना",{"path":946,"title":947,"order":348,"group":948},"\u002Fhi\u002Fplot\u002Fcomponents","कंपोनेंट API","API संदर्भ",{"path":950,"title":951,"order":360,"group":917},"\u002Fhi\u002Fplot\u002Fmodel","प्लॉट मॉडल",{"path":953,"title":954,"order":372,"group":917},"\u002Fhi\u002Fplot\u002Ffunctions","फ़ंक्शन",1795108701294]