Skip to content

Commit

Permalink
Docs: Fix Subclassed Layers example (#9107)
Browse files Browse the repository at this point in the history
  • Loading branch information
millarcalder authored and Pessimistress committed Aug 30, 2024
1 parent a7b4376 commit 492dd12
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/developer-guide/custom-layers/subclassed-layers.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ good technique to add it.
```js
// Example to add per-segment color to PathLayer
import {PathLayer} from '@deck.gl/layers';
import GL from '@luma.gl/constants';

// Allow accessor: `getColor` (Function, optional)
// Returns an color (array of numbers, RGBA) or array of colors (array of arrays).
Expand All @@ -22,7 +21,7 @@ export default class MultiColorPathLayer extends PathLayer {
this.getAttributeManager().addInstanced({
instanceColors: {
size: 4,
type: GL.UNSIGNED_BYTE,
type: "unorm8",
normalized: true,
update: this.calculateColors
}
Expand Down

0 comments on commit 492dd12

Please sign in to comment.