browserify / browserify/static-eval

Would it be possible to use this with THREE.Vector3?

Open
#9 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
177
Forks
27
PR merge metrics
No merged PRs in 30d

Description

Sorry if I'm being daft, but would this work with passing a three.vector in as a variable, and allowing the code to call methods on that? I want to allow declarative animations in @scenevr.

```
var src = 'v.multiplyScalar(t)';
var ast = parse(src).body[0].expression;

console.log(evaluate(ast, {
v: new THREE.Vector3,
t : new Date().valueOf()
}));
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.