From c32bca08f539b19efd02c7f6c832839f33b8a819 Mon Sep 17 00:00:00 2001 From: Cheng Peng <30697592+VirusPC@users.noreply.github.com> Date: Thu, 21 Sep 2023 10:15:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20`site/docs/../inter?= =?UTF-8?q?valThreed.zh.md`=20=E4=B8=AD=E5=85=83=E7=B4=A0=E5=85=A8?= =?UTF-8?q?=E9=83=A8=E4=B8=BA=E9=BB=91=E7=9A=84=E9=97=AE=E9=A2=98=20(#5573?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(site/../intervalThreed.zh.md): fix import error * feat(site/../intervalThreed.zh.md): beautify demo * feat(site/../intervalThreed.zh.md): beautify demo --- site/docs/spec/threed/intervalThreed.zh.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/site/docs/spec/threed/intervalThreed.zh.md b/site/docs/spec/threed/intervalThreed.zh.md index caaa42c711..ac80d116ca 100644 --- a/site/docs/spec/threed/intervalThreed.zh.md +++ b/site/docs/spec/threed/intervalThreed.zh.md @@ -61,17 +61,18 @@ order: 3 .legend(false) .axis('x', { gridLineWidth: 2 }) .axis('y', { gridLineWidth: 2, titleBillboardRotation: -Math.PI / 2 }) - .axis('z', { gridLineWidth: 2 }); + .axis('z', { gridLineWidth: 2 }) + .style('opacity', 0.7); chart.render().then(() => { const { canvas } = chart.getContext(); const camera = canvas.getCamera(); - camera.setPerspective(0.1, 5000, 80, 1280 / 960); - camera.setType(CameraType.ORBITING); + camera.setPerspective(0.1, 5000, 50, 1280 / 960); + camera.setType(g.CameraType.ORBITING); camera.rotate(-20, -20, 0); // Add a directional light into scene. - const light = new DirectionalLight({ + const light = new gPlugin3d.DirectionalLight({ style: { intensity: 2.5, fill: 'white',