EMED7UWAGESRTWJJWVXRL27O4XMBGZDDAU4LNVF3MQAYKFKRDNXQC
T6RGFAV3VFISSGKMFKK544MGGXCURAO4ARG22R5O75UBUKPHFM5AC
HXHNGFB2VCXB6YXDND35HJI22GBJC3QTSUR2TK3M3LXGJHVNXVHAC
YNOQHSPKQHAODMORMW4GKQZK5SCC2LYAFLJHH3GEMZTDM7N52JAAC
VGU4VI6EMYILKHN3TFRCEGU7LL6NM6PW6RHRC726YUKO6RBORBQQC
ZHOSSPNKGFIKSFPDXCGLMSYMMX2J433VU2BUUWBKUH7TOLQUBSPQC
JG36CDUKVUWJT25PJVMWKWI4KFRHM24PFBKPXXRY3D2XVDKUVI7QC
5BA7VZ3D36S2TC7NZ64R3O364TGXPY5BJUJTGCFZHWZ6JWAXJMUQC
OYNCMT7YDCHK7TFRZDVCMODYMYXRQKK3AU7EOZU7KRA76QGKI3EQC
X77LI6U3MBQUEVD6KZ5GTHOCQU2OSUXAMQ52TJKOBFVKAPUENBLAC
4TYJCGT4MTCAH7GSJJWFQPPHZNAUQZDEIZYT365EYTMXS7D2MTNAC
XF75MWE3S7HPZXDNR5A5BCRAYO3AYCPUQ4KS6JAAH5DWJRYBKJTQC
AAKN4XJLZ2GARZMUFYX3CJZKYHTRRZDYNTFRLMY7VPAY7K6W4N3QC
26RDNOXGRCW2E2AOUTKMARJZEGCTVB5K27YXFQFGIAFJ3PP4LWDAC
2I5NFECQIW2DLWYSDEY7P5NVDZXMBAWRUTD7UNUHUAJPLTG4QHTQC
THNMNMVRZQVPZTEXHIK6WGYN3QDEFPKFOVOCB5HTWCYC5BOBYQ5AC
YJ3YEICSBUHMDVJB6W3ZOOVWLTAXRDCIKOGNN6HRP6N3HWQTDGVAC
.layout {
position:fixed;
right:0;
left:auto;
height:100%;
width:30%;
top:0;
flex:1 0 auto;
overflow-y:auto;
flex-direction: column;
background-color: rgba(30,30,30,.30)
}
import React, { useState } from "react";
import "./NodeDetail.css";
const a = [1, 2, 3, 4, 5, 6];
export function NodeDetail({ focusedNode }: { focusedNode: any }) {
console.log(focusedNode);
return (
<>
<div className="layout">
<h1>{focusedNode.chunk?.id}</h1>
{a.map((z) => (
<div>{z}</div>
))}
</div>
</>
);
}
<button onClick={() => { }}>draw circle</button>
<button onClick={() => {
container.current!.removeChild(application.app.view);
// application = new Application({ originalWindowWidth: window.innerHeight * .75, originalWindowHeight: window.innerHeight * .75 });
application = new Application({ originalWindowWidth: window.innerWidth, originalWindowHeight: window.innerHeight});
container.current!.appendChild(application.app.view);
application.drawStart();
}}>[DEBUG] reset and rerender</button>
<button onClick={() => {}}>draw circle</button>
<button
onClick={() => {
container.current!.removeChild(application.app.view);
// application = new Application({ originalWindowWidth: window.innerHeight * .75, originalWindowHeight: window.innerHeight * .75 });
application = new Application({
originalWindowWidth: window.innerWidth,
originalWindowHeight: window.innerHeight,
});
container.current!.appendChild(application.app.view);
application.drawStart();
}}
>
[DEBUG] reset and rerender
</button>
chunksContainer.addChild((new RenderedChunk(new Chunk(this.randomSeed, new Vector2(i, j)), this.app.ticker)).container);
chunksContainer.addChild(
new RenderedChunk(
new Chunk(this.randomSeed, new Vector2(i, j)),
this.app.ticker,
this.config.onFocusedNodeChange
).container
);