Repository navigation
fix(layers): type column geometry attributes - #10508
Conversation
c361550 to
9591fb6
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 9591fb6. Configure here.
9591fb6 to
5433415
Compare
5433415 to
ea01dc3
Compare
| const {indices, attributes} = tesselateColumn(props); | ||
| super({ | ||
| ...props, | ||
| topology: 'line-list', |
There was a problem hiding this comment.
removing the existing suppression also revealed the required topology field
| }; | ||
|
|
||
| export default class ColumnGeometry extends Geometry { | ||
| declare readonly attributes: ColumnGeometryAttributes; |
There was a problem hiding this comment.
I wonder why declare needed here? It is very rarely used in our code base.
There was a problem hiding this comment.
Hmm, I think the LLM was being overly cautious. I changed it to readonly attributes!: ColumnGeometryAttributes; which I see examples of elsewhere.
modules/aggregation-layers/src/grid-layer/grid-cell-layer.ts has
state!: ColumnLayer['state'] & {
colorTexture: Texture;
};
to narrow the type in a similar way
ea01dc3 to
d0f8a92
Compare
# Conflicts: # modules/layers/src/column-layer/column-layer.ts

Summary
Test plan
Note
Low Risk
Typing and explicit topology metadata only; no changes to tessellation math or draw logic beyond documenting wireframe topology on the geometry object.
Overview
ColumnGeometry now declares POSITION and NORMAL as required
GeometryAttributefields via aColumnGeometryAttributestype and a class-levelattributesoverride, replacing the looseRecord<string, BinaryAttribute>tessellation return type.The constructor passes
topology: 'line-list'into the baseGeometry(aligned with wireframe rendering), andColumnLayer._updateGeometrycan read those attributes without non-null assertions,@ts-expect-error, or ESLint suppressions.A spec assertion checks that
topologyisline-list.Reviewed by Cursor Bugbot for commit 8e05928. Bugbot is set up for automated code reviews on this repo. Configure here.