Skip to content

Commit

Permalink
docs: examples/vite
Browse files Browse the repository at this point in the history
  • Loading branch information
zenozeng committed Jun 3, 2023
1 parent f253bd4 commit e7e8869
Show file tree
Hide file tree
Showing 16 changed files with 426 additions and 453 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## v1.5.1

- docs: examples/vite
- refactor: p5svg -> p5SVG

## v1.5.0

- feat: TypeScript type declarations
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ manipulating existing SVG file without rasterization.
Add this line in your projects index.html :

```html
<script src="https://unpkg.com/p5.js-svg@1.4.0"></script>
<script src="https://unpkg.com/p5.js-svg@1.5.0"></script>
```

(p5.js-svg v1.4.x is compatible with p5.js v1.6.x)
(p5.js-svg v1.5.x is compatible with p5.js v1.6.x)

Open your sketch.js and edit it:

Expand All @@ -39,6 +39,7 @@ Then you can open your html file, and view the result. It's \<svg\>!

- https://zenozeng.github.io/p5.js-svg/examples/
- https://zenozeng.github.io/p5.js-svg/test/
- [Vite + TypeScript](https://github.com/zenozeng/p5.js-svg/tree/main/examples/vite)

## SVG Renderer vs Canvas2D Renderer

Expand Down
15 changes: 0 additions & 15 deletions examples/vite/favicon.svg

This file was deleted.

24 changes: 13 additions & 11 deletions examples/vite/index.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite App</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/main.js"></script>
</body>
</html>

<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + TS</title>
</head>

<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>

</html>
24 changes: 0 additions & 24 deletions examples/vite/main.js

This file was deleted.

Loading

0 comments on commit e7e8869

Please sign in to comment.