You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
an error occurs when three-dxf is imported: 'TextGeometry' (imported as 'THREE') was not found in 'three'
this is because indeed THREE does not contain TextGeometry.
I believe changing this in index.js resolves the issue:
on the imports:
+import { TextGeometry } from 'three/examples/jsm/geometries/TextGeometry';
On the body of the code:
-geometry = new THREE.TextGeometry(entity.text, { font: font, height: 0, size: entity.textHeight || 12 });
+geometry = new TextGeometry(entity.text, { font: font, height: 0, size: entity.textHeight || 12 });
The text was updated successfully, but these errors were encountered:
an error occurs when three-dxf is imported: 'TextGeometry' (imported as 'THREE') was not found in 'three'
this is because indeed THREE does not contain TextGeometry.
I believe changing this in index.js resolves the issue:
on the imports:
+import { TextGeometry } from 'three/examples/jsm/geometries/TextGeometry';
On the body of the code:
-geometry = new THREE.TextGeometry(entity.text, { font: font, height: 0, size: entity.textHeight || 12 });
+geometry = new TextGeometry(entity.text, { font: font, height: 0, size: entity.textHeight || 12 });
The text was updated successfully, but these errors were encountered: