Skip to content

AR.js with new ES6 standard and npm packageย #234

Closed
@kalwalt

Description

@kalwalt

๐Ÿง‘โ€๐Ÿญ ES6 feature under development

We (@MikiDi @nickw1 @nicolocarpignoli and other) are working to make this a reality see #116 . At this time it is possible to import AR.js into a React environment. You can check it in my example repo react-AR-experiments. I made a simple set up for the THREEx API in this folder react-threex-example. You need to install the dependencies with yarn follow the instructions
This is a simple example with a pattern HIRO marker,
This feaure is not yet ready, but if you want to test you are welcome.

๐Ÿšš Importing the package

At this moment we have not yet our npm repository you can import as a package in this way:
"@ar-js-org/ar.js": "https://github.com/AR-js-org/AR.js.git#<GIT_COMMIT_HASH>"
where the <GIT_COMMIT_HASH> is the latest git commit hash,

Install the package with NPM:

npm i @ar-js-org/ar.js

### โ— Note:
You need to change <GIT_COMMIT_HASH> every time we push changes in the ES6 branch.

๐Ÿ“ฆ NPM package

We will setup the npm package as soon as the code will be almost ready to be merged in the dev branch (we are working on this too...).
We have set up a NPM organization, so we will publish as a scoped package: @ar-js-org/ar.js

We have the first beta package at https://www.npmjs.com/package/@ar-js-org/ar.js.

๐ŸŽฎ Aframe version

I didn't yet made a working example with. I'm trying to do in react-arjs-example, but at the moment is not working properly. If you are an expert with AFRAME and React, a help is very welcome.
But @thauska made this project with Aframe-Vue https://github.com/thauska/peticov-ar if you want to test.
In addition @j-era and friends are developing react-three-arjs

๐Ÿ“น Live examples

There aren't Live examples yet, i will provide them soon...

Report here if you find some issues, but consider that not all the code was ported yet... and some bugs may arise. ๐Ÿ™‚

Metadata

Metadata

Assignees

Labels

ES6 moduleAR.js as a ES6 moduleenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions