Skip to content

Commit 9313bc8

Browse files
committed
re-adding system example
1 parent a2151b1 commit 9313bc8

21 files changed

Lines changed: 6569 additions & 115 deletions

File tree

examples/position_logger_component/dist/index.d.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

examples/position_logger_component/dist/index.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/position_logger_component/dist/src/aframe_wrapper.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export declare abstract class ComponentWrapper<SCHEMA = {}, SYSTEM extends AFram
4747
}
4848
export declare abstract class SystemWrapper<SCHEMA extends {
4949
[key: string]: any;
50-
}> implements AFrame.System {
50+
} = {}> implements AFrame.System {
5151
data: SCHEMA;
5252
schema: AFrame.Schema<SCHEMA>;
5353
name: string;

examples/position_logger_component/dist/vendor.bundle.js

Lines changed: 0 additions & 101 deletions
This file was deleted.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Sphere Registry A-Frame System
2+
3+
This is a complete example of a how to create an A-Frame system using `SystemWrapper`. You can see it in action by simply opening `index.html` in a browser. Spheres that have been aded to the screen are being tracked by the `sphere-regsitry` system. The latter records sphere entities registered with it onto a textbox visible on the left side of the screen.
4+
5+
You can click the link at the top of the page to add more spheres; watch the sphere registry text change as you add more spheres.
6+
7+
# Building the example
8+
9+
1. `yarn install` to install the dependencies.
10+
11+
2. `yarn build` to create CDN publishable artifacts in the `dist-umd` folder.
12+
13+
# Making the component globally useable
14+
15+
Exposing `dist-umd` via a CDN such as rawgit or jsdelivr will make it easy for 3rd party developers to use systems such as the sphere registry.

0 commit comments

Comments
 (0)