Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,697 changes: 1,104 additions & 593 deletions dist/argon.js

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions dist/argon.min.js

Large diffs are not rendered by default.

21 changes: 19 additions & 2 deletions jspm.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ SystemJS.config({
},
"test": {
"map": {
"@argonjs/argon": "dist/argon.min.js"
"@argonjs/argon": "src/argon.ts!"
}
}
},
Expand Down Expand Up @@ -58,16 +58,22 @@ SystemJS.config({
"github:*/*.json"
],
map: {
"assert": "github:jspm/nodelibs-assert@0.2.0-alpha",
"aurelia-dependency-injection": "npm:aurelia-dependency-injection@1.0.0-beta.1.1.4",
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.1.1.2",
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.1.1.5",
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.1.1",
"aurelia-polyfills": "npm:aurelia-polyfills@1.0.0-beta.1.0.0",
"cesium": "github:aelatgt/cesium@referenceFrames",
"detectrtc": "npm:detectrtc@1.3.1",
"fs": "github:jspm/nodelibs-fs@0.2.0-alpha",
"mobile-detect": "npm:mobile-detect@1.3.2",
"os": "github:jspm/nodelibs-os@0.2.0-alpha",
"path": "github:jspm/nodelibs-path@0.2.0-alpha",
"process": "github:jspm/nodelibs-process@0.2.0-alpha",
"ts": "github:frankwallis/plugin-typescript@5.0.9",
"urijs": "github:medialize/URI.js@1.18.1"
"urijs": "github:medialize/URI.js@1.18.1",
"url": "github:jspm/nodelibs-url@0.2.0-alpha"
},
packages: {
"github:jspm/nodelibs-os@0.2.0-alpha": {
Expand All @@ -79,6 +85,17 @@ SystemJS.config({
"map": {
"typescript": "npm:typescript@2.0.0"
}
},
"github:jspm/nodelibs-url@0.2.0-alpha": {
"map": {
"url-browserify": "npm:url@0.11.0"
}
},
"npm:url@0.11.0": {
"map": {
"punycode": "npm:punycode@1.3.2",
"querystring": "npm:querystring@0.2.0"
}
}
}
});
296 changes: 148 additions & 148 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,148 +1,148 @@
{
"name": "@argonjs/argon",
"version": "1.1.0-beta",
"main": "dist/argon.js",
"typings": "index.d.ts",
"jspm": {
"format": "cjs",
"jspmPackage": true,
"dependencies": {
"cesium": "github:aelatgt/cesium@referenceFrames",
"aurelia-dependency-injection": "npm:aurelia-dependency-injection@^1.0.0-beta.1.1.4",
"aurelia-polyfills": "npm:aurelia-polyfills@^1.0.0-beta.1.0.0",
"mobile-detect": "npm:mobile-detect@^1.3.2",
"ts": "github:frankwallis/plugin-typescript@^5.0.9",
"urijs": "github:medialize/URI.js@^1.18.1"
},
"devDependencies": {
"chai": "npm:chai@^3.5.0",
"css": "github:systemjs/plugin-css@^0.1.19",
"mocha": "npm:mocha@^2.3.3"
},
"peerDependencies": {
"aurelia-logging": "npm:aurelia-logging@^1.0.0-beta.1.1.1",
"aurelia-metadata": "npm:aurelia-metadata@^1.0.0-beta.1.1.3",
"aurelia-pal": "npm:aurelia-pal@^1.0.0-beta.1.1.1",
"os": "github:jspm/nodelibs-os@^0.2.0-alpha"
},
"overrides": {
"npm:chai@3.5.0": {
"main": "index.js",
"format": "cjs",
"jspmPackage": true,
"meta": {
"*": {
"globals": {
"process": "process"
}
},
"*.json": {
"format": "json"
},
"chai.js": {
"cjsRequireDetection": false
}
},
"map": {
"./lib/chai/utils": "./lib/chai/utils/index.js",
"process": "@empty"
}
},
"npm:deep-eql@0.1.3": {
"main": "index.js",
"format": "cjs",
"meta": {
"*.json": {
"format": "json"
}
},
"map": {
"buffer": "@empty"
}
},
"npm:mobile-detect@1.3.2": {
"format": "cjs",
"jspmPackage": true,
"map": {}
},
"npm:mocha@2.4.5": {
"browser": "mocha",
"main": "mocha",
"meta": {
"mocha.js": {
"deps": [
"./mocha.css!"
],
"exports": "mocha"
}
},
"dependencies": {
"css": "*"
},
"registry": "jspm"
},
"github:aelatgt/cesium@referenceFrames": {
"registry": "github",
"dependencies": {},
"map": {
"./Source/DataSources/BillboardGraphics": "@empty",
"./Source/DataSources/BoxGraphics": "@empty",
"./Source/DataSources/CorridorGraphics": "@empty",
"./Source/DataSources/CylinderGraphics": "@empty",
"./Source/DataSources/EllipseGraphics": "@empty",
"./Source/DataSources/EllipsoidGraphics": "@empty",
"./Source/DataSources/LabelGraphics": "@empty",
"./Source/DataSources/ModelGraphics": "@empty",
"./Source/DataSources/PathGraphics": "@empty",
"./Source/DataSources/PointGraphics": "@empty",
"./Source/DataSources/PolygonGraphics": "@empty",
"./Source/DataSources/PolylineGraphics": "@empty",
"./Source/DataSources/PolylineVolumeGraphics": "@empty",
"./Source/DataSources/RectangleGraphics": "@empty",
"./Source/DataSources/WallGraphics": "@empty"
}
},
"npm:typescript@2.0.0": {
"browser": {},
"map": {
"crypto": "@empty",
"buffer": "@empty",
"child_process": "@empty",
"fs": "@empty",
"path": "@empty",
"process": "@empty",
"readline": "@empty"
}
}
}
},
"scripts": {
"format": "tsfmt -r",
"build:min": "jspm build src/argon.ts .tmp/argon-build.js --format umd --global-name Argon --skip-source-maps && derequire .tmp/argon-build.js > dist/argon.js",
"prebuild": "npm run build:min",
"build": "uglifyjs dist/argon.js -m -o dist/argon.min.js",
"browser-sync": "browser-sync start --server --directory --startPath \"index.html\" --files \"src/**\"",
"test": "npm run browser-sync",
"static": "static -p 3000",
"typedoc": "typedoc --tsconfig tsconfig.build.json --out docs --mode file --gaID UA-63191442-2 --name argon.js --readme src/README.md --target ES5 --module commonjs --experimentalDecorators --excludeNotExported --excludeExternals --ignoreCompilerErrors src",
"postinstall": "npm install types/cesium types/mobile-detect"
},
"dependencies": {
"@types/urijs": "^1.15.26",
"aurelia-dependency-injection": "^1.0.0"
},
"devDependencies": {
"@types/chai": "^3.4.29",
"@types/mocha": "^2.2.28",
"@types/systemjs": "^0.18.27",
"browser-sync": "^2.11.0",
"derequire": "^2.0.3",
"jspm": "^0.17.0-beta.22",
"node-static": "^0.7.7",
"tsconfig-glob": "^0.2.1",
"typedoc": "^0.4.5",
"typescript": "^2.0.0",
"typescript-formatter": "^2.3.0",
"uglify-js": "^2.7.3"
}
}
{
"name": "@argonjs/argon",
"version": "1.1.0-beta",
"main": "dist/argon.js",
"typings": "index.d.ts",
"jspm": {
"format": "cjs",
"jspmPackage": true,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this jspmPackage flag removed?

"dependencies": {
"cesium": "github:aelatgt/cesium@referenceFrames",
"aurelia-dependency-injection": "npm:aurelia-dependency-injection@^1.0.0-beta.1.1.4",
"aurelia-polyfills": "npm:aurelia-polyfills@^1.0.0-beta.1.0.0",
"mobile-detect": "npm:mobile-detect@^1.3.2",
"ts": "github:frankwallis/plugin-typescript@^5.0.9",
"urijs": "github:medialize/URI.js@^1.18.1"
},
"devDependencies": {
"chai": "npm:chai@^3.5.0",
"css": "github:systemjs/plugin-css@^0.1.19",
"mocha": "npm:mocha@^2.3.3"
},
"peerDependencies": {
"aurelia-logging": "npm:aurelia-logging@^1.0.0-beta.1.1.1",
"aurelia-metadata": "npm:aurelia-metadata@^1.0.0-beta.1.1.3",
"aurelia-pal": "npm:aurelia-pal@^1.0.0-beta.1.1.1",
"os": "github:jspm/nodelibs-os@^0.2.0-alpha"
},
"overrides": {
"npm:chai@3.5.0": {
"main": "index.js",
"format": "cjs",
"jspmPackage": true,
"meta": {
"*": {
"globals": {
"process": "process"
}
},
"*.json": {
"format": "json"
},
"chai.js": {
"cjsRequireDetection": false
}
},
"map": {
"./lib/chai/utils": "./lib/chai/utils/index.js",
"process": "@empty"
}
},
"npm:deep-eql@0.1.3": {
"main": "index.js",
"format": "cjs",
"meta": {
"*.json": {
"format": "json"
}
},
"map": {
"buffer": "@empty"
}
},
"npm:mobile-detect@1.3.2": {
"format": "cjs",
"jspmPackage": true,
"map": {}
},
"npm:mocha@2.4.5": {
"browser": "mocha",
"main": "mocha",
"meta": {
"mocha.js": {
"deps": [
"./mocha.css!"
],
"exports": "mocha"
}
},
"dependencies": {
"css": "*"
},
"registry": "jspm"
},
"github:aelatgt/cesium@referenceFrames": {
"registry": "github",
"dependencies": {},
"map": {
"./Source/DataSources/BillboardGraphics": "@empty",
"./Source/DataSources/BoxGraphics": "@empty",
"./Source/DataSources/CorridorGraphics": "@empty",
"./Source/DataSources/CylinderGraphics": "@empty",
"./Source/DataSources/EllipseGraphics": "@empty",
"./Source/DataSources/EllipsoidGraphics": "@empty",
"./Source/DataSources/LabelGraphics": "@empty",
"./Source/DataSources/ModelGraphics": "@empty",
"./Source/DataSources/PathGraphics": "@empty",
"./Source/DataSources/PointGraphics": "@empty",
"./Source/DataSources/PolygonGraphics": "@empty",
"./Source/DataSources/PolylineGraphics": "@empty",
"./Source/DataSources/PolylineVolumeGraphics": "@empty",
"./Source/DataSources/RectangleGraphics": "@empty",
"./Source/DataSources/WallGraphics": "@empty"
}
},
"npm:typescript@2.0.0": {
"browser": {},
"map": {
"crypto": "@empty",
"buffer": "@empty",
"child_process": "@empty",
"fs": "@empty",
"path": "@empty",
"process": "@empty",
"readline": "@empty"
}
}
}
},
"scripts": {
"format": "tsfmt -r",
"build:min": "jspm build src/argon.ts .tmp/argon-build.js --format umd --global-name Argon --skip-source-maps && derequire .tmp/argon-build.js > dist/argon.js",
"prebuild": "npm run build:min",
"build": "uglifyjs dist/argon.js -m -o dist/argon.min.js",
"browser-sync": "browser-sync start --server --directory --startPath \"index.html\" --files \"src/**\"",
"test": "npm run browser-sync",
"static": "static -p 3000",
"typedoc": "typedoc --tsconfig tsconfig.build.json --out docs --mode file --gaID UA-63191442-2 --name argon.js --readme src/README.md --target ES5 --module commonjs --experimentalDecorators --excludeNotExported --excludeExternals --ignoreCompilerErrors src",
"postinstall": "npm install types/cesium types/mobile-detect"
},
"dependencies": {
"@types/urijs": "^1.15.26",
"aurelia-dependency-injection": "^1.0.0"
},
"devDependencies": {
"@types/chai": "^3.4.29",
"@types/mocha": "^2.2.28",
"@types/systemjs": "^0.18.27",
"browser-sync": "^2.11.0",
"derequire": "^2.0.3",
"jspm": "^0.17.0-beta.22",
"node-static": "^0.7.7",
"tsconfig-glob": "^0.2.1",
"typedoc": "^0.4.5",
"typescript": "^2.0.0",
"typescript-formatter": "^2.3.0",
"uglify-js": "^2.7.3"
}
}
6 changes: 5 additions & 1 deletion src/argon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,11 @@ export class ArgonSystem {
container.get(DefaultUIService);
}

this.reality.setDefault(RealityViewer.EMPTY);
if (LiveVideoRealityLoader.isAvailable()) {
this.reality.setDefault(RealityView.LIVE_VIDEO);
} else {
this.reality.setDefault(RealityView.EMPTY);
}
}

// ensure the entire object graph is instantiated before connecting to the manager.
Expand Down
8 changes: 7 additions & 1 deletion src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,12 @@ export class RealityViewer {
providedReferenceFrames: ['FIXED']
}

static LIVE_VIDEO: RealityView = {
uri: 'reality:live-video',
title: 'Live Video Reality'
// No reference frames provided?
}

public uri: string;
public title?: string;
public providedReferenceFrames?: Array<string>;
Expand All @@ -283,4 +289,4 @@ export class RealityViewer {
}
return 'hosted';
}
}
}
Loading