From bb30ced7d86d5854ce8a38eaf8087eccaa2528af Mon Sep 17 00:00:00 2001 From: Zeno Zeng Date: Tue, 15 Jun 2021 01:53:31 +0800 Subject: [PATCH] bump version to 1.0.7 --- CHANGELOG.md | 5 +++++ README.md | 24 ++++++++++++------------ package.json | 2 +- 3 files changed, 18 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ae66525..7abfc38 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## v1.0.7 + +- feat: sync element's width and height to context (svgcanvas@2.0.3) +- test: add test for loadFont, fixes #147 + ## v1.0.6 - fix: use encodeURIComponent when saving svg, fixes #176 (save() bug) diff --git a/README.md b/README.md index 084ad8b..a5d3243 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ and manipulating existing SVG file without rasterization. ```html - + ``` Open your sketch.js and edit it: @@ -71,19 +71,8 @@ p5.RendererSVG is a class which extends p5.Renderer2D. A mocked \ element and a CanvasRenderingContext2D api are provided using [svgcanvas](https://github.com/zenozeng/svgcanvas), which is JavaScript Object that syncs proprieties and draws on \ element. -## Building dist - -To build dist files after cloning repo, you can run: - -```bash -npm install -npm run build -``` - ## Known issue -### blendMode is not implemented yet. - ### Too many child elements Since SVG is XML-based, every call of the draw function will insert elements into it, and these elements keep existing even if they are not visible. So, long-time running will result in too many child elements. We recommend calling clear() in your draw function, which will trigger internal context.__clearCanvas() to remove elements. @@ -97,6 +86,17 @@ function draw() { See https://github.com/zenozeng/p5.js-svg/issues/32 +### blendMode is not implemented yet. + +## Building dist + +To build dist files after cloning repo, you can run: + +```bash +npm install +npm run build +``` + ## Tests p5.SVG was driven by tests. diff --git a/package.json b/package.json index c782861..17583e8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "p5.js-svg", - "version": "1.0.6", + "version": "1.0.7", "main": "./src/index.js", "scripts": { "start": "python3 -m http.server 3000",