mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-24 06:14:01 +08:00
* Expand static three.js workflows and host integration * Preserve JavaScript class state in static three.js workflows * Preserve inferred JavaScript behavior across static workflows * Preserve inferred callables and native compatibility boundaries * Retain annotated JavaScript factory exports and bootstrap-safe call spreads * Preserve Buffer and child callback identities in static packages * Clarify JavaScript symbol spread support
8 lines
364 B
JavaScript
8 lines
364 B
JavaScript
import { Vector3, Quaternion } from 'three';
|
|
import * as THREE from 'three';
|
|
const point = new Vector3(1, 2, 3);
|
|
console.log('named', point.x, point.y, point.z);
|
|
console.log('namespace', new THREE.Vector3(4, 5, 6).lengthSq());
|
|
console.log('identity', THREE.Vector3 === Vector3, THREE.Quaternion === Quaternion);
|
|
console.log('static', THREE.Object3D.DEFAULT_UP.y);
|