Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ViewHelper: Make label text and style configurable. #28688

Merged
merged 6 commits into from
Jun 21, 2024
Prev Previous commit
Next Next commit
update
  • Loading branch information
puxiao committed Jun 19, 2024
commit 115085e4b5d9dd5a99219ccd627daa33ce38d117
2 changes: 1 addition & 1 deletion examples/jsm/helpers/ViewHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ class ViewHelper extends Object3D {

function getSpriteMaterial( color, text ) {

const { font = '24px Arial', labelColor = '#000000', radius = 14 } = options;
const { font = '24px Arial', color: labelColor = '#000000', radius = 14 } = options;

const canvas = document.createElement( 'canvas' );
canvas.width = 64;
Expand Down