Toggle navigation
Toggle navigation
This project
Loading...
Sign in
arcs
/
arcs.js-components
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Jean-Yves Didier
2023-04-23 18:17:34 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
92d72fdb45f2a370584db6152581fd85e3dec4ef
92d72fdb
1 parent
35c0c5bc
fixing descriptions for install process
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
63 additions
and
35 deletions
README.md
components/arucodetector.js
components/arviewer.js
components/geolocator.js
components/objecttransform.js
components/objloader.js
components/poseoffset.js
components/qrcodedetector.js
components/reticle.js
components/transformcomposer.js
components/xrviewer.js
README.md
View file @
92d72fd
...
...
@@ -29,3 +29,33 @@ the last one being executed in the local sources repository:
In order to build or rebuild the engine, you will have to call webpack. If
you prefer, it is included as a command in file
*package.json*
.
To generate documentation and prepare components, type
`npm run setup`
Creating an application
-----------------------
The first thing is to create a directory, then start a repository using npm and
install arcs.
`mkdir myapp`
`npm init -y`
`npm install arcsjs`
To install components on a per need basis, you should a component repository
that is setup. You can do it locally by running:
`npx arcsrepos -d path_to_components`
Then you set a repository environment variable or specify it on command line
each time you install a component:
`export ARCS_REPOSITORY=/path/to/components/repository.json`
`npx arcsm -i library_or_component_name`
Or you can do it like this:
`npx arcsm -i library_or_component_name -r /path/to/components/repository.json`
...
...
components/arucodetector.js
View file @
92d72fd
...
...
@@ -64,22 +64,22 @@ ARCS.__lib__`
"ARUCO",
"marker",
"detector"
]
,
]
}
},
"dependencies": [ "js-aruco"],
"recipes": [
{
"from":
'node_modules/js-aruco/src/aruco.js'
,
"to":
'../deps/aruco/index.js'
,
"from":
"node_modules/js-aruco/src/aruco.js"
,
"to":
"deps/aruco/index.js"
,
"replace" : {
"var CV = require('./cv');": "import CV from '../cv/index.js';",
"module.exports = AR;": "export default AR;"
}
},
{
"from":
'node_modules/js-aruco/src/cv.js'
,
to: '../deps/cv/index.js'
,
"from":
"node_modules/js-aruco/src/cv.js"
,
"to": "../deps/cv/index.js"
,
"replace" : {
"module.exports = CV;": "export default CV;"
}
...
...
components/arviewer.js
View file @
92d72fd
...
...
@@ -335,7 +335,7 @@ ARCS.__lib__`
"recipes": [
{
"from": "node_modules/three/build/three.module.js",
"to": "
../
deps/three.js/index.js"
"to": "deps/three.js/index.js"
}
]
}
...
...
components/geolocator.js
View file @
92d72fd
...
...
@@ -161,7 +161,7 @@ ARCS.__lib__`
"geolocation",
"location"
]
}
,
}
}
}
`;
...
...
components/objecttransform.js
View file @
92d72fd
...
...
@@ -132,12 +132,12 @@ ARCS.__lib__`
"transformation"
]
}
}
}
,
"dependencies": ["three"],
"recipes": [
{
"from": "node_modules/three/build/three.module.js",
"to": "
../
deps/three.js/index.js"
"to": "deps/three.js/index.js"
}
]
}
...
...
components/objloader.js
View file @
92d72fd
...
...
@@ -119,24 +119,24 @@ ARCS.__lib__`
"keywords": ["OBJ", "3D", "model"]
}
},
"dependencies": [ "three
.js
"],
"dependencies": [ "three"],
"recipes": [
{
"from": "node_modules/three/build/three.module.js",
"to": "
../
deps/three.js/index.js"
"to": "deps/three.js/index.js"
},
{
"from": "node_modules/three/examples/jsm/loaders/OBJLoader.js",
"to": "
../
deps/objloader/index.js",
"to": "deps/objloader/index.js",
"replace" : {
'../../../build/three.module.js': '../three.js/index.js'
"../../../build/three.module.js": "../three.js/index.js"
}
},
{
"from": "node_modules/three/examples/jsm/loaders/MTLLoader.js",
"to": "
../
deps/mtlloader/index.js",
"to": "deps/mtlloader/index.js",
"replace" : {
'../../../build/three.module.js': '../three.js/index.js'
"../../../build/three.module.js": "../three.js/index.js"
}
}
]
...
...
components/poseoffset.js
View file @
92d72fd
...
...
@@ -61,11 +61,11 @@ ARCS.__lib__`
"transformation"
]
}
}
}
,
"dependencies": ["three"],
"recipes": {
"from": "node_modules/three/
build/
three.module.js",
"to": "
../
deps/three.js/index.js"
"from": "node_modules/three/three.module.js",
"to": "deps/three.js/index.js"
}
}
`;
...
...
components/qrcodedetector.js
View file @
92d72fd
...
...
@@ -84,7 +84,7 @@ ARCS.__lib__`
},
"dependencies": [ "jsqr"],
"recipes": [
{ "from": "node_modules/jsqr/dist/jsQR.js", "to": "
../
deps/jsqr/jsQR.js"}
{ "from": "node_modules/jsqr/dist/jsQR.js", "to": "deps/jsqr/jsQR.js"}
]
}`;
*/
\ No newline at end of file
...
...
components/reticle.js
View file @
92d72fd
...
...
@@ -194,7 +194,7 @@ ARCS.__lib__`
"dependencies": [ "three" ],
"recipes": {
"from": "node_modules/three/build/three.module.js",
"to": "
../
deps/three.js/index.js"
"to": "deps/three.js/index.js"
}
}
`;
...
...
components/transformcomposer.js
View file @
92d72fd
...
...
@@ -170,7 +170,7 @@ ARCS.__lib__`
"dependencies": [ "three" ],
"recipes": {
"from": "node_modules/three/build/three.module.js",
"to": "
../
deps/three.js/index.js"
"to": "deps/three.js/index.js"
}
}
`;
...
...
components/xrviewer.js
View file @
92d72fd
...
...
@@ -216,21 +216,19 @@ ARCS.__lib__`
}
},
"dependencies": ["three"],
"recipes": {
"recipes": [
{
"from": "node_modules/three/build/three.module.js",
"to": "../deps/three.js/index.js"
},
{
"from": "node_modules/three/examples/jsm/webxr/ARButton.js",
"to": "../deps/three.js/ARButton.js",
"replace": {
"../../../build/three.module.js": "./index.js"
}
"recipes": [
{
"from": "node_modules/three/build/three.module.js",
"to": "deps/three.js/index.js"
},
{
"from": "node_modules/three/examples/jsm/webxr/ARButton.js",
"to": "deps/three.js/ARButton.js",
"replace": {
"../../../build/three.module.js": "./index.js"
}
]
}
}
]
}
`;
*/
\ No newline at end of file
...
...
Please
register
or
login
to post a comment