kolibril13 / jupyter-tldraw

the very good free whiteboard tldraw in the jupyter output
MIT License
252 stars 19 forks source link

Migrate from tldraw-v1 to tldraw-v2 #9

Closed kolibril13 closed 1 year ago

kolibril13 commented 1 year ago

tldraw-v1 works perfectly fine, but tldraw-v2 does not find the required assets: image

So the question is: How can I make a file that layes in the same folder as the notebook, e.g. the file fonts/IBMPlexSerif-Medium.woff2 available from the url http://localhost:8888/fonts/IBMPlexSerif-Medium.woff2 ?

Code to reproduce:

%%react

import * as React from "react";
import { Tldraw } from "@tldraw/tldraw@alpha";

export default function App() {
  return (
    <div
      style={{
        position: "relative",
        width: "300px",
        height: "250px",
      }}
    >
      <Tldraw />
    </div>
  );
}
kolibril13 commented 1 year ago

this is fixed now. Transfer can happen any time.