tong / three.hx Goto Github PK
View Code? Open in Web Editor NEWHaxe→Three.js type definitions
Haxe→Three.js type definitions
Currently I add var THREE = require('three');
at the top of the generated output to make it work on my bundled setup.
or in webpack:
plugins: [
new webpack.ProvidePlugin({
THREE: 'three'
})
],
Would be great to get this on haxelib. I know there is already a threejs version on there, but it's quite an old version
All Dynamic atm.
Add a tool to create custom three.js builds to silently allow replacing extern types with haxe implementations.
See: https://github.com/mrdoob/three.js/wiki/build.py,-or-how-to-generate-a-compressed-three.js-file
While technically not an bug, I've just noticed that the package structure is quite different between these externs and the ones at https://lib.haxe.org/p/threejs/ and threejs in general.
There are a few haxe libs out there that have a dependency on the other threejs externs, so it might be a good idea to follow the same package structure so they can be easily substituted these new externs.
simple example:
class MainTest {
static function main() {
trace("Hello, world!");
}
}
build.hxml
-lib three.hx
-cp src
-main MainTest
-js bin/include_debug.js
-dce full
-debug
-D threejs_include
--next
-lib three.hx
-cp src
-main MainTest
-js bin/include.js
-dce full
# -debug
-D threejs_include
does not embed three.js
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.