-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
add type for defaultProps in path outline layer #2521
Conversation
modules/experimental-layers/src/path-outline-layer/path-outline-layer.js
Outdated
Show resolved
Hide resolved
45e1498
to
4f135d5
Compare
modules/experimental-layers/src/path-outline-layer/path-outline-layer.js
Outdated
Show resolved
Hide resolved
Test your change in the layer browser. |
8c908fb
to
abb1fc8
Compare
abb1fc8
to
d4ac548
Compare
Did you test this layer with |
Yes. If |
modules/experimental-layers/src/path-outline-layer/path-outline-layer.js
Outdated
Show resolved
Hide resolved
d4ac548
to
2450c14
Compare
@@ -2,6 +2,7 @@ import {PathLayer} from '@deck.gl/layers'; | |||
import GL from '@luma.gl/constants'; | |||
import {Framebuffer, Texture2D} from 'luma.gl'; | |||
import outline from '../shaderlib/outline/outline'; | |||
import assert from '../../../core/src/utils/assert'; |
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.
You cannot import something from another module. This is not going to be the directory structure when the module is published.
getValue: (object, index) => getZLevel(object, index) || 0 | ||
getValue: (object, index) => { | ||
const zLevel = getZLevel(object, index); | ||
assert(!isNaN(zLevel), '`getZLevel` does not return a number!'); |
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.
Just keep the old behavior before your change.
For #2477
Background
In path outline layer, the defaultProps don't have types specified. We need to specify type for those props.
Change List
note: tested with render test and layer-browser. compared the rendering result with that in 6.3-release