-
Notifications
You must be signed in to change notification settings - Fork 636
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
完善构建方案 & 容器 Bug 修复 #84
Conversation
Deploy preview for trusting-saha-7bb4e5 ready! Built with commit d941358 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are accessibility issues in these changes.
|
||
L7 自定义了一套较为灵活的渲染管线,在后处理效果方面提供了最大程度的扩展性。除了直接使用内置的常用效果(例如下图中 ColorHalftone、六边形像素化、噪声、Sepia),开发者还可以自定义任何后处理效果,在场景中完成注册即可应用到任意图层上。 | ||
|
||
![](./screenshots/multi-scene.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This image is missing a text alternative (alt
attribute). This is a problem for people using screen readers.
|
||
IoC(Inversion of Control) 控制反转这种设计模式将对象的创建销毁、依赖关系交给容器处理,是以上设计原则的一种经典实践。其中它的一种实现 DI(Dependency Injection) 即依赖注入在工程领域应用十分广泛(下图来自 [Dependency-Injection-in-practice-CodeCAMP.pdf](http://www.mono.hr/Pdf/Dependency-Injection-in-practice-CodeCAMP.pdf)),最著名的当属 Spring: | ||
|
||
![](./screenshots/di-containers.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This image is missing a text alternative (alt
attribute). This is a problem for people using screen readers.
|
||
下面我们以 [glfx.js](http://evanw.github.io/glfx.js/demo/) 中的 Dot Screen 效果(下图)为例,介绍如何在 PolygonLayer 中应用这种效果。完整 DEMO 代码[在此]()。 | ||
|
||
![](./screenshots/custom-effect.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This image is missing a text alternative (alt
attribute). This is a problem for people using screen readers.
* 便于测试。测试用例中替换渲染引擎服务为基于 headless-gl 的渲染服务。 | ||
|
||
下图清晰的展示了切换引擎和底图时均不会影响核心代码: | ||
![](./screenshots/packages.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This image is missing a text alternative (alt
attribute). This is a problem for people using screen readers.
试想如果我们只有一个全局容器,其中绑定的所有服务自然也都成了全局服务,在多场景下(页面中一个高德地图、一个 Mapbox)销毁高德地图的渲染服务,将影响到 Mapbox 的展示。 | ||
|
||
下图为 L7 的四个独立场景(两个高德、两个 Mapbox)DEMO 展示效果,它们应该是能互不干扰运行的: | ||
![](./screenshots/multi-scene.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This image is missing a text alternative (alt
attribute). This is a problem for people using screen readers.
|
||
最终效果如下: | ||
|
||
![](./screenshots/dotscreen.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This image is missing a text alternative (alt
attribute). This is a problem for people using screen readers.
This pull request introduces 5 alerts and fixes 40 when merging d941358 into 686a67b - view on LGTM.com new alerts:
fixed alerts:
|
* feat(core): support hierarchical containers * feat(multipassrenderer): support custom postprocessing pass * build(rollup): output CDN bundle to @antv/l7/dist * build(tsc): generate TS declaration files * chore(prerelease): prerelease beta.10
* feat(core): support hierarchical containers * feat(multipassrenderer): support custom postprocessing pass * build(rollup): output CDN bundle to @antv/l7/dist * build(tsc): generate TS declaration files * chore(prerelease): prerelease beta.10
* feat(core): support hierarchical containers * feat(multipassrenderer): support custom postprocessing pass * build(rollup): output CDN bundle to @antv/l7/dist * build(tsc): generate TS declaration files * chore(prerelease): prerelease beta.10
* feat(core): support hierarchical containers * feat(multipassrenderer): support custom postprocessing pass * build(rollup): output CDN bundle to @antv/l7/dist * build(tsc): generate TS declaration files * chore(prerelease): prerelease beta.10
Bugfix:
新增特性:
构建方案: