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

[ts] QuadkeyLayer and GeoCellLayer translated to typescript. #6822

Merged
merged 5 commits into from
May 17, 2022

Conversation

zbigg
Copy link
Collaborator

@zbigg zbigg commented Apr 14, 2022

For #5589

Change List:

  • Convert PolygonLayer to Typescript (as dependency of GeoCellLayer)
  • Convert GeoCellLayer to ts (as dependency of QuadkeyLayer)
  • Convert QuadkeyLayer to Typescript

@zbigg zbigg force-pushed the zbigg/typescript-quadkey-layer branch 5 times, most recently from d0190da to 880d4b4 Compare April 14, 2022 15:46
@zbigg zbigg marked this pull request as ready for review April 14, 2022 16:02
*
* Note that both the outer polygon as well the outlines of any holes will be drawn.
*/
stroked: boolean;
Copy link
Collaborator Author

@zbigg zbigg Apr 14, 2022

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>;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -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;
Copy link
Collaborator Author

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).

@coveralls
Copy link

coveralls commented Apr 14, 2022

Coverage Status

Coverage increased (+0.02%) to 81.991% when pulling 83bc6ae on zbigg/typescript-quadkey-layer into bfdede5 on master.

@zbigg zbigg force-pushed the zbigg/typescript-quadkey-layer branch 3 times, most recently from 3f46103 to 8c67eef Compare April 20, 2022 15:44
@zbigg zbigg marked this pull request as draft April 21, 2022 07:42
@zbigg zbigg force-pushed the zbigg/typescript-quadkey-layer branch 3 times, most recently from d03c505 to 49a5075 Compare May 5, 2022 17:56
@zbigg zbigg marked this pull request as ready for review May 5, 2022 18:17
@zbigg zbigg force-pushed the zbigg/typescript-quadkey-layer branch from 49a5075 to 2af4f0a Compare May 17, 2022 10:41
@zbigg zbigg force-pushed the zbigg/typescript-quadkey-layer branch from 2af4f0a to 0108b0a Compare May 17, 2022 10:43
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
Copy link
Collaborator

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.

modules/layers/src/polygon-layer/polygon-layer.ts Outdated Show resolved Hide resolved
@zbigg zbigg requested a review from Pessimistress May 17, 2022 17:25
@zbigg zbigg merged commit 5d99d49 into master May 17, 2022
@zbigg zbigg deleted the zbigg/typescript-quadkey-layer branch May 17, 2022 17:56
amuramoto pushed a commit to amuramoto/deck.gl that referenced this pull request May 20, 2022
)

* GeoCellLayer & QuadkeyLayer translated to typescript.
* PolygonLayer converted to typescript.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants