PageSourceSearch

https://www.3blue1brown.com/assets/Hilbert-DP6Qk1CF.js

js 3blue1brown.com collected 2026-09-24 08:48:18 UTC 1,627 bytes, 1 lines download raw bytes

1import{a as e,n as t,t as n}from"./jsx-runtime-n5LQ9ujS.js";import{t as r}from"./gsap-Bi_c5vh2.js";import{t as i}from"./clamp-BY-Egy9C.js";import{t as a}from"./Canvas-BWblIXOu.js";import{t as o}from"./pairs-uEXZv7Jx.js";import"./src-DGpGFWyX.js";import{t as s}from"./vector-Db3-ctnJ.js";import{nn as c}from"./Tooltip-Gu44_Ncx.js";var l=e(t(),1),u=n(),d=e=>i(.002*e,.35,.65),f=4,p=120,m=10;function h({color:e=``,depth:t=5,angle:n=90,breaks:i=4,className:o=``}){let[{segments:s=[]}={},f]=(0,l.useState)();return(0,l.useEffect)(()=>{let e=r.context(()=>f(g(t,n,i)));return()=>e.revert()},[t,n,i]),(0,u.jsx)(a,{className:c(`absolute inset-0 -z-10 size-full`,o),render:(t,{width:n,height:r})=>{if(!v)return;let i=Math.max(n,r)/2;t.lineWidth=d(i);for(let{from:n,to:r,alpha:a,hue:o}of s)t.strokeStyle=e||`oklch(75% 0.1 ${o})`,t.globalAlpha=a,t.beginPath(),t.moveTo(...v(n,i)),t.lineTo(...v(r,i)),t.stroke()}})}var g=(e=5,t=90,n=4)=>{let i=new s(0,0),a=new s(0,1),c=[new s],l=()=>{i=i.add(a),c.push(i)},u=(e,t)=>{e<=0||(a=a.rotate(t),u(e-1,-t),l(),a=a.rotate(-t),u(e-1,t),l(),u(e-1,t),a=a.rotate(-t),l(),u(e-1,-t),a=a.rotate(t))};u(e,t),c=s.fit(c);let d=o(c).map(([e,t],n)=>({from:e,to:t,alpha:1,hue:360*(n/c.length),brightness:0,index:n}));for(let e of d){if(!n)break;let t=-(2**(n-1))*m*(e.index/d.length);r.timeline({repeat:-1,delay:t,defaults:{ease:`expo.inOut`}}).to(e,{alpha:0,duration:m/3,delay:m/3}).to(e,{alpha:1,duration:m/3})}return{segments:d}},_={x:-65,y:0,z:45};r.timeline({repeat:-1}).to(_,{z:_.z+360,duration:p,ease:`linear`});var v=(e,t)=>
1e.rotateZ(_.z).rotateX(_.x).perspective(f).scale(t).toArray(2);export{h as t};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.