Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法设置模糊 #2301

Open
WutangNailao opened this issue Feb 21, 2024 · 4 comments
Open

无法设置模糊 #2301

WutangNailao opened this issue Feb 21, 2024 · 4 comments
Assignees
Labels

Comments

@WutangNailao
Copy link

WutangNailao commented Feb 21, 2024

问题描述

按照官网的文档,无法给linelayer设置模糊

重现链接

No response

重现步骤

const drawWall = async (scene: Scene) => {
const JsonData = await (await fetch("/map/china-margin.json")).json();
const layer = new LineLayer({
autoFit: true
})
.shape("line")
.source(JsonData)
.size(1.2)
.color("#59C9D7")
.style({
blur: [1, 1, 1]
});
// .animate(true);
scene.addLayer(layer);
};

预期行为

No response

平台

  • 操作系统: Linux nailao-PC 6.5.0-15-generic #15~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Jan 12 18:54:30 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
  • 网页浏览器: Chrome 121.0.6167.184 (Official Build) (64-bit)

屏幕截图或视频(可选)

image

补充说明(可选)

No response

Copy link
Contributor

hi @WutangNailao, welcome!

@github-actions github-actions bot added 🌟 star good first issue Good for newcomers labels Feb 21, 2024
Copy link
Contributor

Hi @WutangNailao, Please star this repo if you find it useful! Thanks ⭐!
你好 @WutangNailao。如果该仓库对你有用,可以 star 一下,感谢你的 ⭐!

@lzxue
Copy link
Contributor

lzxue commented Feb 21, 2024

这个配置blur: [1, 1, 1]哪里看到的?

@lzxue
Copy link
Contributor

lzxue commented Feb 21, 2024

  fetch(
    'https://gw.alipayobjects.com/os/bmw-prod/55304d8d-4cb0-49e0-9d95-9eeacbe1c80a.json',
  )
    .then((res) => res.json())
    .then((data) => {
      const blurLine = new LineLayer()
        .source(data)
        .size(5)
        .style({
          opacity: 0.8,
          sourceColor: '#f00',
          targetColor: '#ff0',
          linearDir: 'horizontal',
        });
      scene.addLayer(blurLine);
    });

20240221105905

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants