-
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
[ts] QuadkeyLayer and GeoCellLayer translated to typescript. #6822
Conversation
d0190da
to
880d4b4
Compare
* | ||
* Note that both the outer polygon as well the outlines of any holes will be drawn. | ||
*/ | ||
stroked: boolean; |
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.
Re: duplication of doc
While learning what these mean i've automatically copied docs from markdown.
This is some kind of compromise, between wanting good UX in IDEs showing docs and duplication.
Please comment if this is desirable and/or if we should maybe make this doc more terse.
lineDashJustified: boolean; | ||
|
||
/** Called on each object in the data stream to retrieve its corresponding polygon. */ | ||
getPolygon: AccessorFunction<DataT, any>; |
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.
@Pessimistress Shall we define Polygon
analogous to Position
defined in #6803
@@ -18,7 +18,15 @@ export type AccessorContext<T> = { | |||
target: number[]; | |||
}; | |||
|
|||
export type Accessor<In, Out> = Out | ((object: In, objectInfo: AccessorContext<In>) => Out); | |||
export type AccessorFunction<In, Out> = (object: In, objectInfo: AccessorContext<In>) => Out; |
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.
In some cases, we support only dynamic
accessor (not sure if that's indended or not, that's helpful).
3f46103
to
8c67eef
Compare
d03c505
to
49a5075
Compare
49a5075
to
2af4f0a
Compare
2af4f0a
to
0108b0a
Compare
import SolidPolygonLayer from '../solid-polygon-layer/solid-polygon-layer'; | ||
import PathLayer from '../path-layer/path-layer'; | ||
import * as Polygon from '../solid-polygon-layer/polygon'; | ||
import {replaceInRange} from '../utils'; | ||
|
||
// TODO: not sure where this type belongs to |
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 should be defined by core's lighting
shader module. You can leave it as is for now.
For #5589
Change List: