Skip to content

Commit

Permalink
fix: 修复 site/docs/../intervalThreed.zh.md 中元素全部为黑的问题 (#5573)
Browse files Browse the repository at this point in the history
* fix(site/../intervalThreed.zh.md): fix import error

* feat(site/../intervalThreed.zh.md): beautify demo

* feat(site/../intervalThreed.zh.md): beautify demo
  • Loading branch information
VirusPC authored Sep 21, 2023
1 parent cac4fbc commit c32bca0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions site/docs/spec/threed/intervalThreed.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit c32bca0

Please sign in to comment.