Skip to content

Commit

Permalink
sample index.html: reset script sources
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Nölle committed May 26, 2022
1 parent b240424 commit 2598de3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ <h1>Canvas Zoom demo app</h1>
// Here we use the latest published version from npmjs via unpkg"
// For local development replace the url by "./bundle.js" and run `npm run start`.
// This will start a webpack dev server that generates the file bundle.js from src/canvas2d-zoom.ts
import { Canvas2dZoom } from /* "https://unpkg.com/canvas2d-zoom@latest/dist/canvas2d-zoom.js" */ "./bundle.js";
import { Canvas2dZoom } from "https://unpkg.com/canvas2d-zoom@latest/dist/canvas2d-zoom.js" /*"./bundle.js"*/;
// Here we use the latest published version from npmjs via unpkg"
// For local development replace the url by "./lineUtils.js" and run `npm run start`
// This will start a webpack dev server that generates the file lineUtils.js from src/LineUtils.ts
import { LineUtils } from /* "https://unpkg.com/canvas2d-zoom@latest/dist/LineUtils.js" */ "./lineUtils.js";
import { LineUtils } from "https://unpkg.com/canvas2d-zoom@latest/dist/LineUtils.js" /* "./lineUtils.js"*/;
Canvas2dZoom.register();
const canvas = document.querySelector("canvas2d-zoom");
// canvas.addEventListener("zoom", ev => console.log("ev", ev));
Expand Down

0 comments on commit 2598de3

Please sign in to comment.