From b2dff581d83ac4a3166eb93ef8383302d4f11bd0 Mon Sep 17 00:00:00 2001 From: Lee EC Date: Thu, 18 Jul 2019 14:33:05 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=A0=E9=99=A4=E5=B1=82=E7=BA=A7?= =?UTF-8?q?=E5=86=85=E8=81=94=E6=A0=B7=E5=BC=8F=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/index.html | 4 ++-- dist/index_demo.html | 4 ++-- info.json | 6 +++--- src/js/particles_emission.js | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dist/index.html b/dist/index.html index 4ec9941..e0a6b36 100644 --- a/dist/index.html +++ b/dist/index.html @@ -6,7 +6,7 @@ demo - +
@@ -14,5 +14,5 @@
- + diff --git a/dist/index_demo.html b/dist/index_demo.html index c410986..cc9e797 100644 --- a/dist/index_demo.html +++ b/dist/index_demo.html @@ -8,7 +8,7 @@ - +
@@ -18,5 +18,5 @@ - + diff --git a/info.json b/info.json index 910f796..c35906c 100755 --- a/info.json +++ b/info.json @@ -5,9 +5,9 @@ "title": "particles_emission", "ambName": "粒子呼吸", "github": "https://github.com/o2team-ambient/particles_emission", - "demoSnippet": "\n
\n \n
\n ", - "controlUrl": "//storage.jd.com/ambient/control-particles_emission.js?t=1553691016000", - "configUrl": "//storage.jd.com/ambient/config-particles_emission.js?t=1553691016000", + "demoSnippet": "\n
\n \n
\n ", + "controlUrl": "//storage.jd.com/ambient/control-particles_emission.js?t=1563431559000", + "configUrl": "//storage.jd.com/ambient/config-particles_emission.js?t=1563431559000", "placeholderImg": "//storage.jd.com/ambient/particles_emission_placeholder.png?t=1554259855000", "spriteImg": "//storage.jd.com/ambient/particles_emission_sprite.png?t=1554259855000" } diff --git a/src/js/particles_emission.js b/src/js/particles_emission.js index 2ab5b6f..02c3268 100644 --- a/src/js/particles_emission.js +++ b/src/js/particles_emission.js @@ -49,7 +49,7 @@ class ParticlesEmmision { setup(p) { const { width, height, options } = this this.myCanvas = p.createCanvas(width, height) - this.myCanvas.canvas.style = `pointer-events: none; position:fixed; top:0; left:50%; transform: translateX(-50%); width: ${width}px; height: ${height}px; z-index: -1` + this.myCanvas.canvas.style = `pointer-events: none; position: fixed; top:0; left:50%; transform: translateX(-50%); width: ${width}px; height: ${height}px;` } draw(p) {