Skip to content

Commit

Permalink
add type for defaultProps in path outline layer (visgl#2521)
Browse files Browse the repository at this point in the history
  • Loading branch information
XiaokaiUber authored Jan 29, 2019
1 parent 6973a4f commit c86afee
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const FS_CODE = `\
`;

const defaultProps = {
getZLevel: object => object.zLevel | 0
getZLevel: {type: 'accessor', value: 0}
};

export default class PathOutlineLayer extends PathLayer {
Expand Down Expand Up @@ -136,7 +136,7 @@ export default class PathOutlineLayer extends PathLayer {
attribute.value = pathTesselator._updateAttribute({
target: attribute.value,
size: 1,
getValue: (object, index) => getZLevel(object, index) || 0
getValue: (object, index) => [getZLevel(object, index) || 0]
});
}
}
Expand Down

0 comments on commit c86afee

Please sign in to comment.