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 15:00:33 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
35c0c5bcf4dea2c9227a4d72acbb83b792c27a8a
35c0c5bc
1 parent
a9853e3e
added metadata on components
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
482 additions
and
8 deletions
components/animator.js
components/arucodetector.js
components/arviewer.js
components/console.js
components/downloaddata.js
components/filter.js
components/geolocator.js
components/gpsinertialpose.js
components/inertial.js
components/logger.js
components/markerlocator.js
components/objecttransform.js
components/objloader.js
components/orientationsensor.js
components/poseoffset.js
components/qrcodedetector.js
components/rest.js
components/reticle.js
components/storage.js
components/transformcomposer.js
components/uimapper.js
components/video.js
components/xrextensionmanager.js
components/xrimager.js
components/xrviewer.js
components/animator.js
View file @
35c0c5b
...
...
@@ -53,3 +53,20 @@ Animator = ARCS.Component.create(
*/
export
default
{
Animator
:
Animator
};
/*
ARCS.__lib_`
{
"components": {
"Animator": {
"description": "A component that request new frames for animation. This component is useful when you want to create animations in the context of a web browser.",
"keywords": [
"animation",
"frame",
"request"
],
}
}
}
`
*/
\ No newline at end of file
...
...
components/arucodetector.js
View file @
35c0c5b
...
...
@@ -53,3 +53,38 @@ ARUCODetector = ARCS.Component.create(
);
export
default
{
ARUCODetector
:
ARUCODetector
};
/*
ARCS.__lib__`
{
"components": {
"ARUCODetector": {
"description": "Component that detects ARUCO markers in images",
"keywords": [
"ARUCO",
"marker",
"detector"
],
}
},
"dependencies": [ "js-aruco"],
"recipes": [
{
"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',
"replace" : {
"module.exports = CV;": "export default CV;"
}
}
]
}
`;
*/
\ No newline at end of file
...
...
components/arviewer.js
View file @
35c0c5b
...
...
@@ -322,3 +322,22 @@ ARViewer = ARCS.Component.create(
export
default
{
ARViewer
:
ARViewer
};
/*
ARCS.__lib__`
{
"components": {
"ARViewer": {
"description": "Augmented Reality viewer",
"keywords": ["augmented reality", "3D", "video"]
}
},
"dependencies": ["three"],
"recipes": [
{
"from": "node_modules/three/build/three.module.js",
"to": "../deps/three.js/index.js"
}
]
}
`;
*/
...
...
components/console.js
View file @
35c0c5b
...
...
@@ -47,3 +47,21 @@ Console = ARCS.Component.create(
export
default
{
Console
:
Console
};
//export default {};
/*
ARCS.__lib__`
{
"components": {
"Console": {
"description": "Redirects console messages to a given HTML element in the page.",
"keywords": [
"console",
"log",
"error",
"warn"
]
}
}
}
`;
*/
\ No newline at end of file
...
...
components/downloaddata.js
View file @
35c0c5b
...
...
@@ -22,3 +22,20 @@ let DownloadData = ARCS.Component.create(
);
export
default
{
DownloadData
:
DownloadData
};
/*
ARCS.__lib__`
{
"components": {
"DownloadData": {
"description": "Downloads data to a file.",
"keywords": [
"download",
"file",
"data"
]
}
}
}
`;
*/
...
...
components/filter.js
View file @
35c0c5b
...
...
@@ -56,3 +56,20 @@ Filter = ARCS.Component.create(
export
default
{
Filter
:
Filter
};
/*
ARCS.__lib__`
{
"components": {
"Filter": {
"description": "Creates a filter in between a signal and a slot",
"keywords": [
"filter",
"slot",
"signal"
]
}
}
}
`;
*/
\ No newline at end of file
...
...
components/geolocator.js
View file @
35c0c5b
...
...
@@ -149,9 +149,20 @@ let GeoLocator = ARCS.Component.create(function() {
[
"sendPosition"
,
"sendCoordinates"
,
"geolocationDisabled"
]
// liste de signaux
);
export
default
{
GeoLocator
:
GeoLocator
};
/*
ARCS.__lib__`
{
"components": {
"GeoLocator": {
"description": "Uses the location provider of the browser to determine the geolocation of the device. This component relies on the Geolocation API.",
"keywords": [
"geolocation",
"location"
]
},
}
}
`;
*/
\ No newline at end of file
...
...
components/gpsinertialpose.js
View file @
35c0c5b
...
...
@@ -52,3 +52,16 @@ var GPSInertialPose = new ARCS.Component.create(
export
default
{
GPSInertialPose
:
GPSInertialPose
};
/*
ARCS.__lib__`
{
"components": {
"GPSInertialPose": {
"description": "Component that computes the pose of a marker from GPS and inertial data.",
"keywords": ["gps", "inertial", "pose"]
}
}
}
`;
*/
\ No newline at end of file
...
...
components/inertial.js
View file @
35c0c5b
...
...
@@ -50,3 +50,21 @@ let Inertial = ARCS.Component.create( function() {
export
default
{
Inertial
:
Inertial
};
/*
ARCS.__lib__`
{
"components": {
"Inertial": {
"description": "Provides inertial data from the device.",
"keywords": [
"inertial",
"device",
"motion",
"orientation"
]
}
}
}
`;
*/
...
...
components/logger.js
View file @
35c0c5b
...
...
@@ -243,3 +243,16 @@ Logger = ARCS.Component.create(
*/
export
default
{
Logger
:
Logger
};
/*
ARCS.__lib__`
{
"components": {
"Logger": {
"description": "Logger component",
"keywords": ["logger","log","database","websocket"]
}
}
}
`;
*/
\ No newline at end of file
...
...
components/markerlocator.js
View file @
35c0c5b
...
...
@@ -66,3 +66,20 @@ MarkerLocator = ARCS.Component.create(
export
default
{
MarkerLocator
:
MarkerLocator
};
/*
ARCS.__lib__`
{
"components": {
"MarkerLocator": {
"description": "Locates markers in an image.",
"keywords": [
"marker",
"locate",
"pose"
]
}
}
}
`;
*/
\ No newline at end of file
...
...
components/objecttransform.js
View file @
35c0c5b
...
...
@@ -119,3 +119,27 @@ ObjectTransform = ARCS.Component.create(
);
export
default
{
ObjectTransform
:
ObjectTransform
};
/*
ARCS.__lib__`
{
"components": {
"ObjectTransform": {
"description": "Apply transformations to objects",
"keywords": [
"object",
"transform",
"transformation"
]
}
}
"dependencies": ["three"],
"recipes": [
{
"from": "node_modules/three/build/three.module.js",
"to": "../deps/three.js/index.js"
}
]
}
`;
*/
\ No newline at end of file
...
...
components/objloader.js
View file @
35c0c5b
...
...
@@ -109,3 +109,37 @@ internalOBJLoader = ARCS.Component.create(
);
export
default
{
OBJLoader
:
internalOBJLoader
};
/*
ARCS.__lib__`
{
"components": {
"OBJLoader": {
"description": "Load an OBJ file",
"keywords": ["OBJ", "3D", "model"]
}
},
"dependencies": [ "three.js"],
"recipes": [
{
"from": "node_modules/three/build/three.module.js",
"to": "../deps/three.js/index.js"
},
{
"from": "node_modules/three/examples/jsm/loaders/OBJLoader.js",
"to": "../deps/objloader/index.js",
"replace" : {
'../../../build/three.module.js': '../three.js/index.js'
}
},
{
"from": "node_modules/three/examples/jsm/loaders/MTLLoader.js",
"to": "../deps/mtlloader/index.js",
"replace" : {
'../../../build/three.module.js': '../three.js/index.js'
}
}
]
}
`;
*/
...
...
components/orientationsensor.js
View file @
35c0c5b
...
...
@@ -153,3 +153,19 @@ let OrientationSensor = ARCS.Component.create(
* @param quat {number[]} a quaternion given as an array [x,y,z,w]
*/
export
default
{
OrientationSensor
:
OrientationSensor
};
/*
ARCS.__lib__`
{
"components": {
"OrientationSensor": {
"description": "Uses browser facility to recover absolute orientation.",
"keywords": [
"orientation",
"sensor"
]
}
}
}
`;
*/
\ No newline at end of file
...
...
components/poseoffset.js
View file @
35c0c5b
...
...
@@ -48,3 +48,25 @@ PoseOffset = ARCS.Component.create(
);
export
default
{
PoseOffset
:
PoseOffset
};
/*
ARCS.__lib__`
{
"components": {
"PoseOffset": {
"description": "Apply a pose offset to a matrix",
"keywords": [
"pose",
"offset",
"transformation"
]
}
}
"dependencies": ["three"],
"recipes": {
"from": "node_modules/three/build/three.module.js",
"to": "../deps/three.js/index.js"
}
}
`;
*/
\ No newline at end of file
...
...
components/qrcodedetector.js
View file @
35c0c5b
...
...
@@ -67,6 +67,24 @@ QRCodeDetector = ARCS.Component.create(
[
'onQRCode'
]
);
export
default
{
QRCodeDetector
:
QRCodeDetector
};
/*
ARCS.__lib__`
{
"components": {
"QRCodeDetector": {
"description": "Detect QR codes in an image",
"keywords": [
"qr",
"code",
"detector"
]
}
},
"dependencies": [ "jsqr"],
"recipes": [
{ "from": "node_modules/jsqr/dist/jsQR.js", "to": "../deps/jsqr/jsQR.js"}
]
}`;
*/
\ No newline at end of file
...
...
components/rest.js
View file @
35c0c5b
...
...
@@ -86,4 +86,19 @@ RestWrapper = ARCS.Component.create(
);
export
default
{
RestWrapper
};
\ No newline at end of file
export
default
{
RestWrapper
};
/*
ARCS.__lib__`
{
"components": {
"RestWrapper": {
"description": "A wrapper for REST requests",
"keywords": [
"REST",
"HTTP"
]
}
}
}`;
*/
\ No newline at end of file
...
...
components/reticle.js
View file @
35c0c5b
...
...
@@ -177,3 +177,25 @@ let StaticReticle = ARCS.Component.create(
export
default
{
Reticle
:
Reticle
,
StaticReticle
:
StaticReticle
};
/*
ARCS.__lib__`
{
"components": {
"Reticle": {
"description": "A reticle component",
"keywords": ["reticle", "cursor"]
},
"StaticReticle": {
"description": "A static reticle component",
"keywords": ["reticle", "cursor"]
}
},
"dependencies": [ "three" ],
"recipes": {
"from": "node_modules/three/build/three.module.js",
"to": "../deps/three.js/index.js"
}
}
`;
*/
\ No newline at end of file
...
...
components/storage.js
View file @
35c0c5b
...
...
@@ -37,3 +37,19 @@ Storage = ARCS.Component.create(
);
export
default
{
Storage
:
Storage
};
/*
ARCS.__lib__`
{
"components": {
"Storage": {
"description": "A component that stores data in memory",
"keywords": [
"storage",
"memory"
]
}
}
}
`;
*/
\ No newline at end of file
...
...
components/transformcomposer.js
View file @
35c0c5b
...
...
@@ -157,3 +157,21 @@ let TransformComposer = ARCS.Component.create(
);
export
default
{
TransformComposer
:
TransformComposer
};
/*
ARCS.__lib__`
{
"components": {
"TransformComposer": {
"description": "A component that computes a transform matrix from a set of poses and operations",
"keywords": ["transform", "matrix", "pose"]
}
},
"dependencies": [ "three" ],
"recipes": {
"from": "node_modules/three/build/three.module.js",
"to": "../deps/three.js/index.js"
}
}
`;
*/
...
...
components/uimapper.js
View file @
35c0c5b
...
...
@@ -101,3 +101,19 @@ UIMapper = ARCS.Component.create(
);
export
default
{
UIMapper
:
UIMapper
};
/*
ARCS.__bin__`
{
"components": {
"UIMapper": {
"description": "A component that maps slot input to an HTML element",
"keywords": [
"ui",
"mapper",
"html"
]
}
}
}`;
*/
...
...
components/video.js
View file @
35c0c5b
...
...
@@ -255,3 +255,19 @@ VideoSource = ARCS.Component.create(
export
default
{
LiveSource
:
LiveSource
,
VideoSource
:
VideoSource
};
/*
ARCS.__lib__`
{
"components": {
"LiveSource": {
"description": "Uses the camera of the device to process images.",
"keywords": ["camera", "video", "image"]
},
"VideoSource": {
"description": "Uses a video element from the browser to process images.",
"keywords": ["video", "image"]
}
}
}`;
*/
\ No newline at end of file
...
...
components/xrextensionmanager.js
View file @
35c0c5b
...
...
@@ -120,3 +120,25 @@ let XRExtensionManager = ARCS.Component.create(
*/
export
default
{
XRExtensionManager
:
XRExtensionManager
};
/*
ARCS.__lib__`
{
"components": {
"XRExtensionManager": {
"description": "WebXRExtension detector",
"keywords": [
"WebXR",
"extension",
"hit test",
"camera access",
"depth",
"light estimation",
"plane detection",
"anchors"
]
}
}
}
`;
*/
\ No newline at end of file
...
...
components/xrimager.js
View file @
35c0c5b
...
...
@@ -85,3 +85,15 @@ XRImager = ARCS.Component.create(
);
export
default
{
XRImager
:
XRImager
};
/*
ARCS.__lib__`
{
"components": {
"XRImager": {
"description": "A component that captures the camera image",
"keywords": ["camera", "image", "capture"]
}
}
}`;
*/
\ No newline at end of file
...
...
components/xrviewer.js
View file @
35c0c5b
...
...
@@ -206,3 +206,31 @@ XRViewer = ARCS.Component.create(
export
default
{
XRViewer
:
XRViewer
};
/*
ARCS.__lib__`
{
"components": {
"XRViewer": {
"description": "A component to display a scene in a WebXR session",
"keywords": ["xr","webxr","ar","vr","viewer"]
}
},
"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"
}
}
]
}
}
`;
*/
\ No newline at end of file
...
...
Please
register
or
login
to post a comment