[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"github-stars":3,"guide-nav":5,"doc-\u002Fdocs\u002Fguide\u002Ftransforms":129},{"stars":4},6044,[6,11,15,19,23,27,31,35,39,43,47,51,55,59,63,67,72,76,80,84,88,93,97,101,105,109,113,117,121,125],{"path":7,"title":8,"description":9,"category":10},"\u002Fdocs\u002Fguide","Getting started","Shaders is a library of GPU effect components for Vue, React, Svelte, Solid, JavaScript and Framer, with a design editor for building with them.","code",{"path":12,"title":13,"description":14,"category":10},"\u002Fdocs\u002Fguide\u002Fquickstart","Quickstart","Install Shaders, render your first effect, and drive a prop from state.",{"path":16,"title":17,"description":18,"category":10},"\u002Fdocs\u002Fguide\u002Fcomposing-effects","Composing effects","Stack components as layers and nest them to control which layers an effect touches.",{"path":20,"title":21,"description":22,"category":10},"\u002Fdocs\u002Fguide\u002Fblending-masking","Blending and masking","Control how a layer mixes with the layers below it, and reveal one layer through another.",{"path":24,"title":25,"description":26,"category":10},"\u002Fdocs\u002Fguide\u002Fprops-reactivity","Props and reactivity","Bind props to your framework's state so effects update when it changes, and animate props with an animation library.",{"path":28,"title":29,"description":30,"category":10},"\u002Fdocs\u002Fguide\u002Fdynamic-props","Dynamic props","Drive any numeric or position prop from time, the cursor, or another layer, without writing animation code.",{"path":32,"title":33,"description":34,"category":10},"\u002Fdocs\u002Fguide\u002Flayout-positioning","Layout and positioning","Size and place a shader in your page with CSS, as a background, a fill, or an inline block.",{"path":36,"title":37,"description":38,"category":10},"\u002Fdocs\u002Fguide\u002Fsizing-and-units","Sizing and units","Size and place layers in CSS units (px, %, vw, rem, and canvas units) that stay correct as the canvas and window resize.",{"path":40,"title":41,"description":42,"category":10},"\u002Fdocs\u002Fguide\u002Ftransforms","Transforms","Position, size, and rotate any layer inside the canvas with a bounding box, in any CSS unit.",{"path":44,"title":45,"description":46,"category":10},"\u002Fdocs\u002Fguide\u002Fshape-effects","Shape effects","Pick the 2D, 3D or custom SVG shape that Glass, Neon, Emboss and other shape effects draw inside.",{"path":48,"title":49,"description":50,"category":10},"\u002Fdocs\u002Fguide\u002Fcolor-space","Color space","Match colors to your design tool with the output color space, and keep bright layers from clipping with tone mapping.",{"path":52,"title":53,"description":54,"category":10},"\u002Fdocs\u002Fguide\u002Fhooks-events","Hooks and events","Run code when an effect is ready to show, and show a fallback when the GPU can't run it.",{"path":56,"title":57,"description":58,"category":10},"\u002Fdocs\u002Fguide\u002Fperformance","Performance","Learn what makes an effect expensive on the GPU and how to keep it inside the frame budget.",{"path":60,"title":61,"description":62,"category":10},"\u002Fdocs\u002Fguide\u002Fcustom-shaders","Custom components","Write your own component in TypeScript, use it like any component in the library, and write WGSL by hand when you need to.",{"path":64,"title":65,"description":66,"category":10},"\u002Fdocs\u002Fguide\u002Ftelemetry","Telemetry","The `\u003CShader>` component occasionally sends an anonymous performance report to help us improve the engine over time.",{"path":68,"title":69,"description":70,"category":71},"\u002Fdocs\u002Fguide\u002Fmcp","Shaders MCP","Connect your AI coding agent to Shaders so it can find, install and edit effects in your codebase.","workflows",{"path":73,"title":74,"description":75,"category":71},"\u002Fdocs\u002Fguide\u002Fcli","Shaders CLI","Install your own shaders and Pro shaders into your codebase as component files, and keep them in sync with the design editor.",{"path":77,"title":78,"description":79,"category":71},"\u002Fdocs\u002Fguide\u002Fagent-skill","Agent skill","Give your coding agent a skill that teaches it to build with Shaders components, the CLI and Pro shaders.",{"path":81,"title":82,"description":83,"category":10},"\u002Fdocs\u002Fguide\u002Fvideo-rendering","Rendering to video","Turn a shader effect into a video file, from the design editor or from a frame-by-frame pipeline such as Remotion, Hyperframes or Puppeteer.",{"path":85,"title":86,"description":87,"category":10},"\u002Fdocs\u002Fguide\u002Fssr","Server rendering","Render Shaders in Next.js, Nuxt, SvelteKit, SolidStart and other SSR apps by keeping each shader on the client.",{"path":89,"title":90,"description":91,"category":92},"\u002Fdocs\u002Fguide\u002Fquick-tour-of-the-design-editor","Quick tour of the design editor","A short walkthrough of the full Shaders workflow, from designing on the infinite canvas to exporting code.","editor",{"path":94,"title":95,"description":96,"category":92},"\u002Fdocs\u002Fguide\u002Fintro-to-the-interface","Intro to the interface","A tour of the design editor interface: the canvas, layers, the Properties panel, and the ways to share and export.",{"path":98,"title":99,"description":100,"category":92},"\u002Fdocs\u002Fguide\u002Fcomposing-your-first-shader-effect","Composing your first shader effect","Building a first shader effect in the design editor by stacking and nesting components as layers.",{"path":102,"title":103,"description":104,"category":92},"\u002Fdocs\u002Fguide\u002Fmasking-and-blending","Masking and blending","How blend modes and masks combine components in the design editor.",{"path":106,"title":107,"description":108,"category":92},"\u002Fdocs\u002Fguide\u002Fdynamic-prop-mapping","Dynamic prop mapping","Turning static props into dynamic ones in the design editor: mapping one layer's output into another's prop, following the cursor, or animating automatically.",{"path":110,"title":111,"description":112,"category":92},"\u002Fdocs\u002Fguide\u002Fcustom-media-and-transformations","Custom media and transformations","Uploading images, videos, and SVG files to the media gallery, adding them to a composition, and placing them with transformations.",{"path":114,"title":115,"description":116,"category":92},"\u002Fdocs\u002Fguide\u002Finstalling-a-shader-via-mcp","Installing a shader via MCP","Installing a shader from the design editor into a hero section with the Shaders MCP.",{"path":118,"title":119,"description":120,"category":92},"\u002Fdocs\u002Fguide\u002Fexploring-shape-effects","Exploring shape effects","Applying shape effects such as liquid glass, liquid metal, and glowing edges to built-in shapes and your own SVG.",{"path":122,"title":123,"description":124,"category":92},"\u002Fdocs\u002Fguide\u002Fglass-component-spotlight","Component spotlight: Glass","A short look at the Glass component and the liquid-glass look it creates.",{"path":126,"title":127,"description":128,"category":92},"\u002Fdocs\u002Fguide\u002Fdigital-looks-component-spotlight","Component spotlight: Digital looks","A look at the digital stylization components for glitchy, futuristic, or technical effects.",{"id":130,"title":41,"body":131,"category":10,"description":42,"extension":1909,"icon":1910,"meta":1911,"navigation":205,"path":40,"seo":1912,"stem":1913,"__hash__":1914},"guide\u002Fdocs\u002Fguide\u002F08.transforms.md",{"type":132,"value":133,"toc":1898},"minimark",[134,138,141,149,152,252,261,267,454,474,478,481,530,533,553,581,584,599,607,634,691,694,731,735,754,775,779,782,813,816,820,823,1165,1169,1174,1861,1868,1872,1894],[135,136,41],"h1",{"id":137},"transforms",[139,140,42],"p",{},[139,142,143,144,148],{},"A ",[145,146,147],"strong",{},"bounding box"," is a rectangular frame for one layer, like a layer's frame in Figma. You move, resize, and rotate the frame, and the layer is drawn to fit it.",[139,150,151],{},"A CSS transform moves the whole canvas element in the page. A bounding box moves one layer inside the canvas and leaves the DOM alone. The two side by side:",[153,154,159],"pre",{"className":155,"code":156,"language":157,"meta":158,"style":158},"language-vue-html shiki shiki-themes github-dark","\u003C!-- CSS transform: moves the whole canvas element in the page -->\n\u003CShader class=\"-translate-x-4\">...\u003C\u002FShader>\n\n\u003C!-- Bounding box: frames one layer inside the canvas -->\n\u003CShader>\n  \u003CLinearGradient :bounding-box=\"{ x: '25%', y: '25%', width: '50%', height: '50%' }\" \u002F>\n\u003C\u002FShader>\n","vue-html","",[10,160,161,170,200,207,213,222,242],{"__ignoreMap":158},[162,163,166],"span",{"class":164,"line":165},"line",1,[162,167,169],{"class":168},"sAwPA","\u003C!-- CSS transform: moves the whole canvas element in the page -->\n",[162,171,173,177,181,185,188,192,195,197],{"class":164,"line":172},2,[162,174,176],{"class":175},"s95oV","\u003C",[162,178,180],{"class":179},"s4JwU","Shader",[162,182,184],{"class":183},"svObZ"," class",[162,186,187],{"class":175},"=",[162,189,191],{"class":190},"sU2Wk","\"-translate-x-4\"",[162,193,194],{"class":175},">...\u003C\u002F",[162,196,180],{"class":179},[162,198,199],{"class":175},">\n",[162,201,203],{"class":164,"line":202},3,[162,204,206],{"emptyLinePlaceholder":205},true,"\n",[162,208,210],{"class":164,"line":209},4,[162,211,212],{"class":168},"\u003C!-- Bounding box: frames one layer inside the canvas -->\n",[162,214,216,218,220],{"class":164,"line":215},5,[162,217,176],{"class":175},[162,219,180],{"class":179},[162,221,199],{"class":175},[162,223,225,228,231,234,236,239],{"class":164,"line":224},6,[162,226,227],{"class":175},"  \u003C",[162,229,230],{"class":179},"LinearGradient",[162,232,233],{"class":183}," :bounding-box",[162,235,187],{"class":175},[162,237,238],{"class":190},"\"{ x: '25%', y: '25%', width: '50%', height: '50%' }\"",[162,240,241],{"class":175}," \u002F>\n",[162,243,245,248,250],{"class":164,"line":244},7,[162,246,247],{"class":175},"\u003C\u002F",[162,249,180],{"class":179},[162,251,199],{"class":175},[253,254,256,257,260],"h2",{"id":255},"setting-the-boundingbox-prop","Setting the ",[10,258,259],{},"boundingBox"," prop",[139,262,263,264,266],{},"Every renderable component accepts a ",[10,265,259],{}," object. Without one, the layer fills the whole canvas. Its fields:",[268,269,270,289],"table",{},[271,272,273],"thead",{},[274,275,276,280,283,286],"tr",{},[277,278,279],"th",{},"Field",[277,281,282],{},"Type",[277,284,285],{},"Default",[277,287,288],{},"Description",[290,291,292,315,333,350,366,396,416,434],"tbody",{},[274,293,294,300,303,308],{},[295,296,297],"td",{},[10,298,299],{},"x",[295,301,302],{},"length",[295,304,305],{},[10,306,307],{},"0%",[295,309,310,311,314],{},"Horizontal position of the box's anchor corner, measured from the ",[10,312,313],{},"origin",".",[274,316,317,322,324,328],{},[295,318,319],{},[10,320,321],{},"y",[295,323,302],{},[295,325,326],{},[10,327,307],{},[295,329,330,331,314],{},"Vertical position of the box's anchor corner, measured from the ",[10,332,313],{},[274,334,335,340,342,347],{},[295,336,337],{},[10,338,339],{},"width",[295,341,302],{},[295,343,344],{},[10,345,346],{},"100%",[295,348,349],{},"Box width.",[274,351,352,357,359,363],{},[295,353,354],{},[10,355,356],{},"height",[295,358,302],{},[295,360,361],{},[10,362,346],{},[295,364,365],{},"Box height.",[274,367,368,372,377,382],{},[295,369,370],{},[10,371,313],{},[295,373,374],{},[10,375,376],{},"string",[295,378,379],{},[10,380,381],{},"'top-left'",[295,383,384,385,387,388,390,391,314],{},"Which reference point ",[10,386,299],{}," and ",[10,389,321],{}," are measured from. See ",[392,393,395],"a",{"href":394},"#anchoring-to-an-edge-or-corner","Anchoring to an edge or corner",[274,397,398,403,408,413],{},[295,399,400],{},[10,401,402],{},"rotation",[295,404,405],{},[10,406,407],{},"number",[295,409,410],{},[10,411,412],{},"0",[295,414,415],{},"Rotation in degrees, around the box's center.",[274,417,418,423,425,428],{},[295,419,420],{},[10,421,422],{},"cornerRadius",[295,424,302],{},[295,426,427],{},"none",[295,429,430,431,314],{},"Rounds the corners of the clipped region. Filter layers only. Doesn't accept ",[10,432,433],{},"%",[274,435,436,441,446,451],{},[295,437,438],{},[10,439,440],{},"lockAspect",[295,442,443],{},[10,444,445],{},"boolean",[295,447,448],{},[10,449,450],{},"false",[295,452,453],{},"Design editor hint that locks the resize handles to the box's aspect ratio. The renderer ignores it.",[139,455,143,456,458,459,462,463,466,467,470,471,473],{},[145,457,302],{}," is a number with a unit, such as ",[10,460,461],{},"'50%'",", ",[10,464,465],{},"'24px'",", or ",[10,468,469],{},"'10vw'",". A bare number means pixels. ",[392,472,37],{"href":36}," covers every unit and what it measures against. Fields you leave out take the defaults, which together cover the full canvas.",[253,475,477],{"id":476},"mixing-units-in-one-box","Mixing units in one box",[139,479,480],{},"Each field takes its own unit. A relative box and a fixed one:",[153,482,484],{"className":155,"code":483,"language":157,"meta":158,"style":158},"\u003C!-- Relative box: always a centered quarter of the canvas, at any size -->\n\u003CGlass :bounding-box=\"{ x: '25%', y: '25%', width: '50%', height: '50%' }\" \u002F>\n\n\u003C!-- Fixed box: a 200×200px square, 24px from the top-left, at any canvas size -->\n\u003CGlass :bounding-box=\"{ x: 24, y: 24, width: 200, height: 200 }\" \u002F>\n",[10,485,486,491,506,510,515],{"__ignoreMap":158},[162,487,488],{"class":164,"line":165},[162,489,490],{"class":168},"\u003C!-- Relative box: always a centered quarter of the canvas, at any size -->\n",[162,492,493,495,498,500,502,504],{"class":164,"line":172},[162,494,176],{"class":175},[162,496,497],{"class":179},"Glass",[162,499,233],{"class":183},[162,501,187],{"class":175},[162,503,238],{"class":190},[162,505,241],{"class":175},[162,507,508],{"class":164,"line":202},[162,509,206],{"emptyLinePlaceholder":205},[162,511,512],{"class":164,"line":209},[162,513,514],{"class":168},"\u003C!-- Fixed box: a 200×200px square, 24px from the top-left, at any canvas size -->\n",[162,516,517,519,521,523,525,528],{"class":164,"line":215},[162,518,176],{"class":175},[162,520,497],{"class":179},[162,522,233],{"class":183},[162,524,187],{"class":175},[162,526,527],{"class":190},"\"{ x: 24, y: 24, width: 200, height: 200 }\"",[162,529,241],{"class":175},[139,531,532],{},"Units can differ within one box. This bar is always 80px tall and spans the full width:",[153,534,536],{"className":155,"code":535,"language":157,"meta":158,"style":158},"\u003CLinearGradient :bounding-box=\"{ width: '100%', height: 80 }\" \u002F>\n",[10,537,538],{"__ignoreMap":158},[162,539,540,542,544,546,548,551],{"class":164,"line":165},[162,541,176],{"class":175},[162,543,230],{"class":179},[162,545,233],{"class":183},[162,547,187],{"class":175},[162,549,550],{"class":190},"\"{ width: '100%', height: 80 }\"",[162,552,241],{"class":175},[139,554,555,556,559,560,563,564,567,568,570,571,574,575,578,579,314],{},"A field can also be an object with a ",[10,557,558],{},"value"," and a ",[10,561,562],{},"unit",". You'll also see the ",[10,565,566],{},"uv"," unit, a fraction of the canvas from ",[10,569,412],{}," to ",[10,572,573],{},"1",": ",[10,576,577],{},"{ value: 0.5, unit: 'uv' }"," is the same as ",[10,580,461],{},[253,582,395],{"id":583},"anchoring-to-an-edge-or-corner",[139,585,586,587,589,590,387,592,594,595,598],{},"The ",[145,588,313],{}," is the reference point ",[10,591,299],{},[10,593,321],{}," are measured from. It picks both the canvas edge you measure from and the corner of the box that sits at that distance, the way CSS ",[10,596,597],{},"right: 24px"," measures from the right edge to the element's right edge. There are nine origins, in a 3×3 grid:",[153,600,605],{"className":601,"code":603,"language":604,"meta":158},[602],"language-text","top-left      top-center      top-right\ncenter-left   center          center-right\nbottom-left   bottom-center   bottom-right\n","text",[10,606,603],{"__ignoreMap":158},[139,608,609,610,613,614,617,618,621,622,462,625,466,628,630,631,633],{},"The two axes are independent. The horizontal part sets the X reference: ",[10,611,612],{},"left"," measures from the left edge, ",[10,615,616],{},"right"," from the right edge, and ",[10,619,620],{},"center"," gives a signed offset from the horizontal center. The vertical part does the same for Y with ",[10,623,624],{},"top",[10,626,627],{},"bottom",[10,629,620],{},". The bare value ",[10,632,620],{}," centers both axes.",[635,636,637,652,664,676],"ul",{},[638,639,640,645,646,648,649,651],"li",{},[145,641,642],{},[10,643,644],{},"top-left"," (default): ",[10,647,299],{}," is measured rightward from the left edge, ",[10,650,321],{}," downward from the top.",[638,653,654,574,659,661,662,651],{},[145,655,656],{},[10,657,658],{},"top-right",[10,660,299],{}," is measured leftward from the right edge, ",[10,663,321],{},[638,665,666,574,671,661,673,675],{},[145,667,668],{},[10,669,670],{},"bottom-right",[10,672,299],{},[10,674,321],{}," upward from the bottom.",[638,677,678,574,682,387,684,686,687,690],{},[145,679,680],{},[10,681,620],{},[10,683,299],{},[10,685,321],{}," are signed offsets from the canvas center. ",[10,688,689],{},"0, 0"," centers the box.",[139,692,693],{},"Combined with px units, an origin keeps a layer pinned to a corner at any canvas size. This badge stays 24px in from the top-right corner:",[153,695,697],{"className":155,"code":696,"language":157,"meta":158,"style":158},"\u003CImageTexture\n  url=\"\u002Fbadge.svg\"\n  :bounding-box=\"{ x: 24, y: 24, width: 96, height: 96, origin: 'top-right' }\"\n\u002F>\n",[10,698,699,706,716,726],{"__ignoreMap":158},[162,700,701,703],{"class":164,"line":165},[162,702,176],{"class":175},[162,704,705],{"class":179},"ImageTexture\n",[162,707,708,711,713],{"class":164,"line":172},[162,709,710],{"class":183},"  url",[162,712,187],{"class":175},[162,714,715],{"class":190},"\"\u002Fbadge.svg\"\n",[162,717,718,721,723],{"class":164,"line":202},[162,719,720],{"class":183},"  :bounding-box",[162,722,187],{"class":175},[162,724,725],{"class":190},"\"{ x: 24, y: 24, width: 96, height: 96, origin: 'top-right' }\"\n",[162,727,728],{"class":164,"line":209},[162,729,730],{"class":175},"\u002F>\n",[253,732,734],{"id":733},"rotating-a-layer","Rotating a layer",[139,736,737,739,740,742,743,462,746,748,749,387,751,753],{},[10,738,402],{}," turns the box and its content around the box's center, in degrees. Positive values rotate clockwise. The pivot is always the center, whatever the ",[10,741,313],{},": unlike CSS ",[10,744,745],{},"transform-origin",[10,747,313],{}," only sets where ",[10,750,299],{},[10,752,321],{}," are measured from. A 30° turn:",[153,755,757],{"className":155,"code":756,"language":157,"meta":158,"style":158},"\u003CStripes :bounding-box=\"{ x: '20%', y: '20%', width: '60%', height: '60%', rotation: 30 }\" \u002F>\n",[10,758,759],{"__ignoreMap":158},[162,760,761,763,766,768,770,773],{"class":164,"line":165},[162,762,176],{"class":175},[162,764,765],{"class":179},"Stripes",[162,767,233],{"class":183},[162,769,187],{"class":175},[162,771,772],{"class":190},"\"{ x: '20%', y: '20%', width: '60%', height: '60%', rotation: 30 }\"",[162,774,241],{"class":175},[253,776,778],{"id":777},"knowing-how-each-layer-fills-the-box","Knowing how each layer fills the box",[139,780,781],{},"How a layer fills its box depends on the kind of layer:",[635,783,784,794,800],{},[638,785,786,789,790,793],{},[145,787,788],{},"Generators"," (gradients, noise, patterns, textures): ",[145,791,792],{},"re-fit"," into the box. The effect lays itself out as if the canvas had been resized to the box, undistorted, then confined to the box. A few screen-anchored patterns are confined to the box without re-fitting.",[638,795,796,799],{},[145,797,798],{},"Shapes"," (Circle, Star, Blob, and shape effects such as Glass and Crystal): take their own position, size, and rotation from the box, so the shape itself moves and scales with it.",[638,801,802,805,806,809,810,812],{},[145,803,804],{},"Filters and distortions"," (Blur, Glitch, distortions): ",[145,807,808],{},"clip"," to the box. The effect stays inside the rectangle, and the unaffected layer beneath shows through outside it. ",[10,811,422],{}," rounds this clipped region.",[139,814,815],{},"In every case the box is a rotated rectangle, so rotation and corner rounding behave the same way.",[253,817,819],{"id":818},"setting-a-box-in-each-framework","Setting a box in each framework",[139,821,822],{},"The same rotated box in every framework:",[824,825,827,870,944,1005,1063],"code-group",{":tabs":826},"[\"Vue\", \"React\", \"Svelte\", \"Solid\", \"JS\"]",[153,828,830],{"className":155,"code":829,"language":157,"meta":158,"style":158},"\u003CShader class=\"w-full h-64\">\n  \u003CLinearGradient :bounding-box=\"{ x: '10%', y: '10%', width: '80%', height: '80%', rotation: 15 }\" \u002F>\n\u003C\u002FShader>\n",[10,831,832,847,862],{"__ignoreMap":158},[162,833,834,836,838,840,842,845],{"class":164,"line":165},[162,835,176],{"class":175},[162,837,180],{"class":179},[162,839,184],{"class":183},[162,841,187],{"class":175},[162,843,844],{"class":190},"\"w-full h-64\"",[162,846,199],{"class":175},[162,848,849,851,853,855,857,860],{"class":164,"line":172},[162,850,227],{"class":175},[162,852,230],{"class":179},[162,854,233],{"class":183},[162,856,187],{"class":175},[162,858,859],{"class":190},"\"{ x: '10%', y: '10%', width: '80%', height: '80%', rotation: 15 }\"",[162,861,241],{"class":175},[162,863,864,866,868],{"class":164,"line":202},[162,865,247],{"class":175},[162,867,180],{"class":179},[162,869,199],{"class":175},[153,871,875],{"className":872,"code":873,"language":874,"meta":158,"style":158},"language-jsx shiki shiki-themes github-dark","\u003CShader className=\"w-full h-64\">\n  \u003CLinearGradient boundingBox={{ x: '10%', y: '10%', width: '80%', height: '80%', rotation: 15 }} \u002F>\n\u003C\u002FShader>\n","jsx",[10,876,877,894,936],{"__ignoreMap":158},[162,878,879,881,884,887,890,892],{"class":164,"line":165},[162,880,176],{"class":175},[162,882,180],{"class":883},"sDLfK",[162,885,886],{"class":183}," className",[162,888,187],{"class":889},"snl16",[162,891,844],{"class":190},[162,893,199],{"class":175},[162,895,896,898,900,903,905,908,911,914,916,919,922,925,927,930,933],{"class":164,"line":172},[162,897,227],{"class":175},[162,899,230],{"class":883},[162,901,902],{"class":183}," boundingBox",[162,904,187],{"class":889},[162,906,907],{"class":175},"{{ x: ",[162,909,910],{"class":190},"'10%'",[162,912,913],{"class":175},", y: ",[162,915,910],{"class":190},[162,917,918],{"class":175},", width: ",[162,920,921],{"class":190},"'80%'",[162,923,924],{"class":175},", height: ",[162,926,921],{"class":190},[162,928,929],{"class":175},", rotation: ",[162,931,932],{"class":883},"15",[162,934,935],{"class":175}," }} \u002F>\n",[162,937,938,940,942],{"class":164,"line":202},[162,939,247],{"class":175},[162,941,180],{"class":883},[162,943,199],{"class":175},[153,945,949],{"className":946,"code":947,"language":948,"meta":158,"style":158},"language-tsx shiki shiki-themes github-dark","\u003CShader class=\"w-full h-64\">\n  \u003CLinearGradient boundingBox={{ x: '10%', y: '10%', width: '80%', height: '80%', rotation: 15 }} \u002F>\n\u003C\u002FShader>\n","tsx",[10,950,951,965,997],{"__ignoreMap":158},[162,952,953,955,957,959,961,963],{"class":164,"line":165},[162,954,176],{"class":175},[162,956,180],{"class":883},[162,958,184],{"class":183},[162,960,187],{"class":889},[162,962,844],{"class":190},[162,964,199],{"class":175},[162,966,967,969,971,973,975,977,979,981,983,985,987,989,991,993,995],{"class":164,"line":172},[162,968,227],{"class":175},[162,970,230],{"class":883},[162,972,902],{"class":183},[162,974,187],{"class":889},[162,976,907],{"class":175},[162,978,910],{"class":190},[162,980,913],{"class":175},[162,982,910],{"class":190},[162,984,918],{"class":175},[162,986,921],{"class":190},[162,988,924],{"class":175},[162,990,921],{"class":190},[162,992,929],{"class":175},[162,994,932],{"class":883},[162,996,935],{"class":175},[162,998,999,1001,1003],{"class":164,"line":202},[162,1000,247],{"class":175},[162,1002,180],{"class":883},[162,1004,199],{"class":175},[153,1006,1007],{"className":946,"code":947,"language":948,"meta":158,"style":158},[10,1008,1009,1023,1055],{"__ignoreMap":158},[162,1010,1011,1013,1015,1017,1019,1021],{"class":164,"line":165},[162,1012,176],{"class":175},[162,1014,180],{"class":883},[162,1016,184],{"class":183},[162,1018,187],{"class":889},[162,1020,844],{"class":190},[162,1022,199],{"class":175},[162,1024,1025,1027,1029,1031,1033,1035,1037,1039,1041,1043,1045,1047,1049,1051,1053],{"class":164,"line":172},[162,1026,227],{"class":175},[162,1028,230],{"class":883},[162,1030,902],{"class":183},[162,1032,187],{"class":889},[162,1034,907],{"class":175},[162,1036,910],{"class":190},[162,1038,913],{"class":175},[162,1040,910],{"class":190},[162,1042,918],{"class":175},[162,1044,921],{"class":190},[162,1046,924],{"class":175},[162,1048,921],{"class":190},[162,1050,929],{"class":175},[162,1052,932],{"class":883},[162,1054,935],{"class":175},[162,1056,1057,1059,1061],{"class":164,"line":202},[162,1058,247],{"class":175},[162,1060,180],{"class":883},[162,1062,199],{"class":175},[153,1064,1068],{"className":1065,"code":1066,"language":1067,"meta":158,"style":158},"language-javascript shiki shiki-themes github-dark","const shader = await createShader(canvas, {\n  components: [\n    {\n      type: 'LinearGradient',\n      props: {\n        boundingBox: { x: '10%', y: '10%', width: '80%', height: '80%', rotation: 15 }\n      }\n    }\n  ]\n})\n","javascript",[10,1069,1070,1090,1095,1100,1111,1116,1142,1147,1153,1159],{"__ignoreMap":158},[162,1071,1072,1075,1078,1081,1084,1087],{"class":164,"line":165},[162,1073,1074],{"class":889},"const",[162,1076,1077],{"class":883}," shader",[162,1079,1080],{"class":889}," =",[162,1082,1083],{"class":889}," await",[162,1085,1086],{"class":183}," createShader",[162,1088,1089],{"class":175},"(canvas, {\n",[162,1091,1092],{"class":164,"line":172},[162,1093,1094],{"class":175},"  components: [\n",[162,1096,1097],{"class":164,"line":202},[162,1098,1099],{"class":175},"    {\n",[162,1101,1102,1105,1108],{"class":164,"line":209},[162,1103,1104],{"class":175},"      type: ",[162,1106,1107],{"class":190},"'LinearGradient'",[162,1109,1110],{"class":175},",\n",[162,1112,1113],{"class":164,"line":215},[162,1114,1115],{"class":175},"      props: {\n",[162,1117,1118,1121,1123,1125,1127,1129,1131,1133,1135,1137,1139],{"class":164,"line":224},[162,1119,1120],{"class":175},"        boundingBox: { x: ",[162,1122,910],{"class":190},[162,1124,913],{"class":175},[162,1126,910],{"class":190},[162,1128,918],{"class":175},[162,1130,921],{"class":190},[162,1132,924],{"class":175},[162,1134,921],{"class":190},[162,1136,929],{"class":175},[162,1138,932],{"class":883},[162,1140,1141],{"class":175}," }\n",[162,1143,1144],{"class":164,"line":244},[162,1145,1146],{"class":175},"      }\n",[162,1148,1150],{"class":164,"line":1149},8,[162,1151,1152],{"class":175},"    }\n",[162,1154,1156],{"class":164,"line":1155},9,[162,1157,1158],{"class":175},"  ]\n",[162,1160,1162],{"class":164,"line":1161},10,[162,1163,1164],{"class":175},"})\n",[253,1166,1168],{"id":1167},"animating-a-bounding-box","Animating a bounding box",[139,1170,1171,1173],{},[10,1172,259],{}," is reactive. Bind any field to state and the box updates on the next frame without recompiling, as long as it doesn't switch to or from covering the full canvas. Crossing that boundary recompiles, because a full-canvas box is treated as no box at all. This box spins half a degree per frame:",[824,1175,1177,1426,1687],{":tabs":1176},"[\"Vue\", \"React\", \"JS\"]",[153,1178,1180],{"className":155,"code":1179,"language":157,"meta":158,"style":158},"\u003Cscript setup>\nimport { ref, onMounted, onUnmounted } from 'vue'\n\nconst rotation = ref(0)\nlet frame\n\nonMounted(() => {\n  const animate = () => {\n    rotation.value = (rotation.value + 0.5) % 360\n    frame = requestAnimationFrame(animate)\n  }\n  frame = requestAnimationFrame(animate)\n})\nonUnmounted(() => cancelAnimationFrame(frame))\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CShader class=\"w-full h-64\">\n    \u003CStripes :bounding-box=\"{ x: '20%', y: '20%', width: '60%', height: '60%', rotation }\" \u002F>\n  \u003C\u002FShader>\n\u003C\u002Ftemplate>\n",[10,1181,1182,1194,1208,1212,1232,1240,1244,1258,1275,1299,1312,1318,1330,1335,1351,1360,1365,1375,1390,1407,1417],{"__ignoreMap":158},[162,1183,1184,1186,1189,1192],{"class":164,"line":165},[162,1185,176],{"class":175},[162,1187,1188],{"class":179},"script",[162,1190,1191],{"class":183}," setup",[162,1193,199],{"class":175},[162,1195,1196,1199,1202,1205],{"class":164,"line":172},[162,1197,1198],{"class":889},"import",[162,1200,1201],{"class":175}," { ref, onMounted, onUnmounted } ",[162,1203,1204],{"class":889},"from",[162,1206,1207],{"class":190}," 'vue'\n",[162,1209,1210],{"class":164,"line":202},[162,1211,206],{"emptyLinePlaceholder":205},[162,1213,1214,1216,1219,1221,1224,1227,1229],{"class":164,"line":209},[162,1215,1074],{"class":889},[162,1217,1218],{"class":883}," rotation",[162,1220,1080],{"class":889},[162,1222,1223],{"class":183}," ref",[162,1225,1226],{"class":175},"(",[162,1228,412],{"class":883},[162,1230,1231],{"class":175},")\n",[162,1233,1234,1237],{"class":164,"line":215},[162,1235,1236],{"class":889},"let",[162,1238,1239],{"class":175}," frame\n",[162,1241,1242],{"class":164,"line":224},[162,1243,206],{"emptyLinePlaceholder":205},[162,1245,1246,1249,1252,1255],{"class":164,"line":244},[162,1247,1248],{"class":183},"onMounted",[162,1250,1251],{"class":175},"(() ",[162,1253,1254],{"class":889},"=>",[162,1256,1257],{"class":175}," {\n",[162,1259,1260,1263,1266,1268,1271,1273],{"class":164,"line":1149},[162,1261,1262],{"class":889},"  const",[162,1264,1265],{"class":183}," animate",[162,1267,1080],{"class":889},[162,1269,1270],{"class":175}," () ",[162,1272,1254],{"class":889},[162,1274,1257],{"class":175},[162,1276,1277,1280,1282,1285,1288,1291,1294,1296],{"class":164,"line":1155},[162,1278,1279],{"class":175},"    rotation.value ",[162,1281,187],{"class":889},[162,1283,1284],{"class":175}," (rotation.value ",[162,1286,1287],{"class":889},"+",[162,1289,1290],{"class":883}," 0.5",[162,1292,1293],{"class":175},") ",[162,1295,433],{"class":889},[162,1297,1298],{"class":883}," 360\n",[162,1300,1301,1304,1306,1309],{"class":164,"line":1161},[162,1302,1303],{"class":175},"    frame ",[162,1305,187],{"class":889},[162,1307,1308],{"class":183}," requestAnimationFrame",[162,1310,1311],{"class":175},"(animate)\n",[162,1313,1315],{"class":164,"line":1314},11,[162,1316,1317],{"class":175},"  }\n",[162,1319,1321,1324,1326,1328],{"class":164,"line":1320},12,[162,1322,1323],{"class":175},"  frame ",[162,1325,187],{"class":889},[162,1327,1308],{"class":183},[162,1329,1311],{"class":175},[162,1331,1333],{"class":164,"line":1332},13,[162,1334,1164],{"class":175},[162,1336,1338,1341,1343,1345,1348],{"class":164,"line":1337},14,[162,1339,1340],{"class":183},"onUnmounted",[162,1342,1251],{"class":175},[162,1344,1254],{"class":889},[162,1346,1347],{"class":183}," cancelAnimationFrame",[162,1349,1350],{"class":175},"(frame))\n",[162,1352,1354,1356,1358],{"class":164,"line":1353},15,[162,1355,247],{"class":175},[162,1357,1188],{"class":179},[162,1359,199],{"class":175},[162,1361,1363],{"class":164,"line":1362},16,[162,1364,206],{"emptyLinePlaceholder":205},[162,1366,1368,1370,1373],{"class":164,"line":1367},17,[162,1369,176],{"class":175},[162,1371,1372],{"class":179},"template",[162,1374,199],{"class":175},[162,1376,1378,1380,1382,1384,1386,1388],{"class":164,"line":1377},18,[162,1379,227],{"class":175},[162,1381,180],{"class":179},[162,1383,184],{"class":183},[162,1385,187],{"class":175},[162,1387,844],{"class":190},[162,1389,199],{"class":175},[162,1391,1393,1396,1398,1400,1402,1405],{"class":164,"line":1392},19,[162,1394,1395],{"class":175},"    \u003C",[162,1397,765],{"class":179},[162,1399,233],{"class":183},[162,1401,187],{"class":175},[162,1403,1404],{"class":190},"\"{ x: '20%', y: '20%', width: '60%', height: '60%', rotation }\"",[162,1406,241],{"class":175},[162,1408,1410,1413,1415],{"class":164,"line":1409},20,[162,1411,1412],{"class":175},"  \u003C\u002F",[162,1414,180],{"class":179},[162,1416,199],{"class":175},[162,1418,1420,1422,1424],{"class":164,"line":1419},21,[162,1421,247],{"class":175},[162,1423,1372],{"class":179},[162,1425,199],{"class":175},[153,1427,1429],{"className":872,"code":1428,"language":874,"meta":158,"style":158},"import { useState, useEffect, useRef } from 'react'\n\nfunction SpinningBox() {\n  const [rotation, setRotation] = useState(0)\n  const frameRef = useRef(null)\n\n  useEffect(() => {\n    const animate = () => {\n      setRotation(r => (r + 0.5) % 360)\n      frameRef.current = requestAnimationFrame(animate)\n    }\n    frameRef.current = requestAnimationFrame(animate)\n    return () => cancelAnimationFrame(frameRef.current)\n  }, [])\n\n  return (\n    \u003CShader className=\"w-full h-64\">\n      \u003CStripes boundingBox={{ x: '20%', y: '20%', width: '60%', height: '60%', rotation }} \u002F>\n    \u003C\u002FShader>\n  )\n}\n",[10,1430,1431,1443,1447,1458,1486,1505,1509,1520,1535,1565,1576,1580,1591,1605,1610,1614,1622,1636,1668,1677,1682],{"__ignoreMap":158},[162,1432,1433,1435,1438,1440],{"class":164,"line":165},[162,1434,1198],{"class":889},[162,1436,1437],{"class":175}," { useState, useEffect, useRef } ",[162,1439,1204],{"class":889},[162,1441,1442],{"class":190}," 'react'\n",[162,1444,1445],{"class":164,"line":172},[162,1446,206],{"emptyLinePlaceholder":205},[162,1448,1449,1452,1455],{"class":164,"line":202},[162,1450,1451],{"class":889},"function",[162,1453,1454],{"class":183}," SpinningBox",[162,1456,1457],{"class":175},"() {\n",[162,1459,1460,1462,1465,1467,1469,1472,1475,1477,1480,1482,1484],{"class":164,"line":209},[162,1461,1262],{"class":889},[162,1463,1464],{"class":175}," [",[162,1466,402],{"class":883},[162,1468,462],{"class":175},[162,1470,1471],{"class":883},"setRotation",[162,1473,1474],{"class":175},"] ",[162,1476,187],{"class":889},[162,1478,1479],{"class":183}," useState",[162,1481,1226],{"class":175},[162,1483,412],{"class":883},[162,1485,1231],{"class":175},[162,1487,1488,1490,1493,1495,1498,1500,1503],{"class":164,"line":215},[162,1489,1262],{"class":889},[162,1491,1492],{"class":883}," frameRef",[162,1494,1080],{"class":889},[162,1496,1497],{"class":183}," useRef",[162,1499,1226],{"class":175},[162,1501,1502],{"class":883},"null",[162,1504,1231],{"class":175},[162,1506,1507],{"class":164,"line":224},[162,1508,206],{"emptyLinePlaceholder":205},[162,1510,1511,1514,1516,1518],{"class":164,"line":244},[162,1512,1513],{"class":183},"  useEffect",[162,1515,1251],{"class":175},[162,1517,1254],{"class":889},[162,1519,1257],{"class":175},[162,1521,1522,1525,1527,1529,1531,1533],{"class":164,"line":1149},[162,1523,1524],{"class":889},"    const",[162,1526,1265],{"class":183},[162,1528,1080],{"class":889},[162,1530,1270],{"class":175},[162,1532,1254],{"class":889},[162,1534,1257],{"class":175},[162,1536,1537,1540,1542,1546,1549,1552,1554,1556,1558,1560,1563],{"class":164,"line":1155},[162,1538,1539],{"class":183},"      setRotation",[162,1541,1226],{"class":175},[162,1543,1545],{"class":1544},"s9osk","r",[162,1547,1548],{"class":889}," =>",[162,1550,1551],{"class":175}," (r ",[162,1553,1287],{"class":889},[162,1555,1290],{"class":883},[162,1557,1293],{"class":175},[162,1559,433],{"class":889},[162,1561,1562],{"class":883}," 360",[162,1564,1231],{"class":175},[162,1566,1567,1570,1572,1574],{"class":164,"line":1161},[162,1568,1569],{"class":175},"      frameRef.current ",[162,1571,187],{"class":889},[162,1573,1308],{"class":183},[162,1575,1311],{"class":175},[162,1577,1578],{"class":164,"line":1314},[162,1579,1152],{"class":175},[162,1581,1582,1585,1587,1589],{"class":164,"line":1320},[162,1583,1584],{"class":175},"    frameRef.current ",[162,1586,187],{"class":889},[162,1588,1308],{"class":183},[162,1590,1311],{"class":175},[162,1592,1593,1596,1598,1600,1602],{"class":164,"line":1332},[162,1594,1595],{"class":889},"    return",[162,1597,1270],{"class":175},[162,1599,1254],{"class":889},[162,1601,1347],{"class":183},[162,1603,1604],{"class":175},"(frameRef.current)\n",[162,1606,1607],{"class":164,"line":1337},[162,1608,1609],{"class":175},"  }, [])\n",[162,1611,1612],{"class":164,"line":1353},[162,1613,206],{"emptyLinePlaceholder":205},[162,1615,1616,1619],{"class":164,"line":1362},[162,1617,1618],{"class":889},"  return",[162,1620,1621],{"class":175}," (\n",[162,1623,1624,1626,1628,1630,1632,1634],{"class":164,"line":1367},[162,1625,1395],{"class":175},[162,1627,180],{"class":883},[162,1629,886],{"class":183},[162,1631,187],{"class":889},[162,1633,844],{"class":190},[162,1635,199],{"class":175},[162,1637,1638,1641,1643,1645,1647,1649,1652,1654,1656,1658,1661,1663,1665],{"class":164,"line":1377},[162,1639,1640],{"class":175},"      \u003C",[162,1642,765],{"class":883},[162,1644,902],{"class":183},[162,1646,187],{"class":889},[162,1648,907],{"class":175},[162,1650,1651],{"class":190},"'20%'",[162,1653,913],{"class":175},[162,1655,1651],{"class":190},[162,1657,918],{"class":175},[162,1659,1660],{"class":190},"'60%'",[162,1662,924],{"class":175},[162,1664,1660],{"class":190},[162,1666,1667],{"class":175},", rotation }} \u002F>\n",[162,1669,1670,1673,1675],{"class":164,"line":1392},[162,1671,1672],{"class":175},"    \u003C\u002F",[162,1674,180],{"class":883},[162,1676,199],{"class":175},[162,1678,1679],{"class":164,"line":1409},[162,1680,1681],{"class":175},"  )\n",[162,1683,1684],{"class":164,"line":1419},[162,1685,1686],{"class":175},"}\n",[153,1688,1690],{"className":1065,"code":1689,"language":1067,"meta":158,"style":158},"import { createShader } from 'shaders\u002Fjs'\n\nconst shader = await createShader(canvas, {\n  components: [\n    { type: 'Stripes', id: 'bars', props: {} }\n  ]\n})\n\nlet rotation = 0\nconst animate = () => {\n  rotation = (rotation + 0.5) % 360\n  shader.update('bars', {\n    boundingBox: { x: '20%', y: '20%', width: '60%', height: '60%', rotation }\n  })\n  requestAnimationFrame(animate)\n}\nrequestAnimationFrame(animate)\n",[10,1691,1692,1704,1708,1722,1726,1743,1747,1751,1755,1767,1781,1801,1816,1838,1843,1850,1854],{"__ignoreMap":158},[162,1693,1694,1696,1699,1701],{"class":164,"line":165},[162,1695,1198],{"class":889},[162,1697,1698],{"class":175}," { createShader } ",[162,1700,1204],{"class":889},[162,1702,1703],{"class":190}," 'shaders\u002Fjs'\n",[162,1705,1706],{"class":164,"line":172},[162,1707,206],{"emptyLinePlaceholder":205},[162,1709,1710,1712,1714,1716,1718,1720],{"class":164,"line":202},[162,1711,1074],{"class":889},[162,1713,1077],{"class":883},[162,1715,1080],{"class":889},[162,1717,1083],{"class":889},[162,1719,1086],{"class":183},[162,1721,1089],{"class":175},[162,1723,1724],{"class":164,"line":209},[162,1725,1094],{"class":175},[162,1727,1728,1731,1734,1737,1740],{"class":164,"line":215},[162,1729,1730],{"class":175},"    { type: ",[162,1732,1733],{"class":190},"'Stripes'",[162,1735,1736],{"class":175},", id: ",[162,1738,1739],{"class":190},"'bars'",[162,1741,1742],{"class":175},", props: {} }\n",[162,1744,1745],{"class":164,"line":224},[162,1746,1158],{"class":175},[162,1748,1749],{"class":164,"line":244},[162,1750,1164],{"class":175},[162,1752,1753],{"class":164,"line":1149},[162,1754,206],{"emptyLinePlaceholder":205},[162,1756,1757,1759,1762,1764],{"class":164,"line":1155},[162,1758,1236],{"class":889},[162,1760,1761],{"class":175}," rotation ",[162,1763,187],{"class":889},[162,1765,1766],{"class":883}," 0\n",[162,1768,1769,1771,1773,1775,1777,1779],{"class":164,"line":1161},[162,1770,1074],{"class":889},[162,1772,1265],{"class":183},[162,1774,1080],{"class":889},[162,1776,1270],{"class":175},[162,1778,1254],{"class":889},[162,1780,1257],{"class":175},[162,1782,1783,1786,1788,1791,1793,1795,1797,1799],{"class":164,"line":1314},[162,1784,1785],{"class":175},"  rotation ",[162,1787,187],{"class":889},[162,1789,1790],{"class":175}," (rotation ",[162,1792,1287],{"class":889},[162,1794,1290],{"class":883},[162,1796,1293],{"class":175},[162,1798,433],{"class":889},[162,1800,1298],{"class":883},[162,1802,1803,1806,1809,1811,1813],{"class":164,"line":1320},[162,1804,1805],{"class":175},"  shader.",[162,1807,1808],{"class":183},"update",[162,1810,1226],{"class":175},[162,1812,1739],{"class":190},[162,1814,1815],{"class":175},", {\n",[162,1817,1818,1821,1823,1825,1827,1829,1831,1833,1835],{"class":164,"line":1332},[162,1819,1820],{"class":175},"    boundingBox: { x: ",[162,1822,1651],{"class":190},[162,1824,913],{"class":175},[162,1826,1651],{"class":190},[162,1828,918],{"class":175},[162,1830,1660],{"class":190},[162,1832,924],{"class":175},[162,1834,1660],{"class":190},[162,1836,1837],{"class":175},", rotation }\n",[162,1839,1840],{"class":164,"line":1337},[162,1841,1842],{"class":175},"  })\n",[162,1844,1845,1848],{"class":164,"line":1353},[162,1846,1847],{"class":183},"  requestAnimationFrame",[162,1849,1311],{"class":175},[162,1851,1852],{"class":164,"line":1362},[162,1853,1686],{"class":175},[162,1855,1856,1859],{"class":164,"line":1367},[162,1857,1858],{"class":183},"requestAnimationFrame",[162,1860,1311],{"class":175},[139,1862,1863,1864,1867],{},"For continuous motion, a ",[392,1865,1866],{"href":28},"dynamic prop"," on the layer's own props can replace the animation loop.",[253,1869,1871],{"id":1870},"next-steps","Next steps",[635,1873,1874,1879,1884,1889],{},[638,1875,1876,1878],{},[392,1877,37],{"href":36},": every unit a length can use, and what each measures against.",[638,1880,1881,1883],{},[392,1882,29],{"href":28},": animate props or drive them from the cursor without animation code.",[638,1885,1886,1888],{},[392,1887,45],{"href":44},": place Glass, Neon and other effects inside 2D and 3D shapes.",[638,1890,1891,1893],{},[392,1892,33],{"href":32},": size and place the canvas itself in your page.",[1895,1896,1897],"style",{},"html pre.shiki code .sAwPA, html code.shiki .sAwPA{--shiki-default:#6A737D}html pre.shiki code .s95oV, html code.shiki .s95oV{--shiki-default:#E1E4E8}html pre.shiki code .s4JwU, html code.shiki .s4JwU{--shiki-default:#85E89D}html pre.shiki code .svObZ, html code.shiki .svObZ{--shiki-default:#B392F0}html pre.shiki code .sU2Wk, html code.shiki .sU2Wk{--shiki-default:#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 pre.shiki code .sDLfK, html code.shiki .sDLfK{--shiki-default:#79B8FF}html pre.shiki code .snl16, html code.shiki .snl16{--shiki-default:#F97583}html pre.shiki code .s9osk, html code.shiki .s9osk{--shiki-default:#FFAB70}",{"title":158,"searchDepth":172,"depth":172,"links":1899},[1900,1902,1903,1904,1905,1906,1907,1908],{"id":255,"depth":172,"text":1901},"Setting the boundingBox prop",{"id":476,"depth":172,"text":477},{"id":583,"depth":172,"text":395},{"id":733,"depth":172,"text":734},{"id":777,"depth":172,"text":778},{"id":818,"depth":172,"text":819},{"id":1167,"depth":172,"text":1168},{"id":1870,"depth":172,"text":1871},"md","arrows-to-circle",{},{"title":41,"description":42},"docs\u002Fguide\u002F08.transforms","0OhFEJNuKCugp3bgSE6j4moTWaw1VRhfz9oJGmq9MUY"]