Skip to content

Commit

Permalink
remove comment and update type in jsdoc (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
chippieTV authored Aug 29, 2021
1 parent 5f75b61 commit 6a8559e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/style/style_layer/custom_style_layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import type Map from '../../ui/map';
import assert from 'assert';
import {mat4} from 'gl-matrix';

// careful of this change from matrix from Array<number> to mat4 as custom layer can be 2D or 3D
// this may or may not be an issue, investigate
type CustomRenderMethod = (gl: WebGLRenderingContext, matrix: mat4) => void;

/**
Expand Down Expand Up @@ -110,7 +108,7 @@ type CustomRenderMethod = (gl: WebGLRenderingContext, matrix: mat4) => void;
* @instance
* @name prerender
* @param {WebGLRenderingContext} gl The map's gl context.
* @param {Array<number>} matrix The map's camera matrix. It projects spherical mercator
* @param {mat4} matrix The map's camera matrix. It projects spherical mercator
* coordinates to gl coordinates. The mercator coordinate `[0, 0]` represents the
* top left corner of the mercator world and `[1, 1]` represents the bottom right corner. When
* the `renderingMode` is `"3d"`, the z coordinate is conformal. A box with identical x, y, and z
Expand Down

0 comments on commit 6a8559e

Please sign in to comment.