Skip to content

Commit adfc305

Browse files
committed
declare ax and ay as valType: number for annotation3d
- as they can only be set in pixels.
1 parent 21c8cc6 commit adfc305

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/annotations3d/attributes.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,17 @@ module.exports = {
3737
].join(' ')
3838
},
3939
ax: {
40-
valType: 'any',
40+
valType: 'number',
4141
role: 'info',
4242
description: [
43-
'Sets the x component of the arrow tail about the arrow head.'
43+
'Sets the x component of the arrow tail about the arrow head (in pixels).'
4444
].join(' ')
4545
},
4646
ay: {
47-
valType: 'any',
47+
valType: 'number',
4848
role: 'info',
4949
description: [
50-
'Sets the y component of the arrow tail about the arrow head.'
50+
'Sets the y component of the arrow tail about the arrow head (in pixels).'
5151
].join(' ')
5252
},
5353

0 commit comments

Comments
 (0)