|
@@ -8,7 +8,7 @@ this.clientWatch = function () {
|
|
|
|
|
|
if (this.children.length !== 0) {
|
|
|
|
|
|
- var clients = this.find("doc('http://vwf.example.com/clients.vwf')")[0];
|
|
|
+ var clients = this.find("doc('proxy/clients.vwf')")[0];
|
|
|
|
|
|
if (clients !== undefined) {
|
|
|
//console.log(clients.children);
|
|
@@ -66,7 +66,7 @@ this.clientWatch = function () {
|
|
|
this.sphereProto = function () {
|
|
|
|
|
|
let node = {
|
|
|
- "extends": "http://vwf.example.com/aframe/asphere.vwf",
|
|
|
+ "extends": "proxy/aframe/asphere.vwf",
|
|
|
"properties": {
|
|
|
"displayName": "sphere",
|
|
|
"radius": 1,
|
|
@@ -74,7 +74,7 @@ this.sphereProto = function () {
|
|
|
},
|
|
|
children: {
|
|
|
"material": {
|
|
|
- "extends": "http://vwf.example.com/aframe/aMaterialComponent.vwf",
|
|
|
+ "extends": "proxy/aframe/aMaterialComponent.vwf",
|
|
|
"type": "component",
|
|
|
"properties":{
|
|
|
"color": "white"
|
|
@@ -82,14 +82,14 @@ this.sphereProto = function () {
|
|
|
},
|
|
|
"interpolation":
|
|
|
{
|
|
|
- "extends": "http://vwf.example.com/aframe/interpolation-component.vwf",
|
|
|
+ "extends": "proxy/aframe/interpolation-component.vwf",
|
|
|
"type": "component",
|
|
|
"properties": {
|
|
|
"enabled": true
|
|
|
}
|
|
|
},
|
|
|
"cursor-listener": {
|
|
|
- "extends": "http://vwf.example.com/aframe/app-cursor-listener-component.vwf",
|
|
|
+ "extends": "proxy/aframe/app-cursor-listener-component.vwf",
|
|
|
"type": "component"
|
|
|
}
|
|
|
},
|
|
@@ -106,7 +106,7 @@ this.sphereProto = function () {
|
|
|
this.cylinderProto = function () {
|
|
|
|
|
|
let node = {
|
|
|
- "extends": "http://vwf.example.com/aframe/acylinder.vwf",
|
|
|
+ "extends": "proxy/aframe/acylinder.vwf",
|
|
|
"properties": {
|
|
|
"displayName": "cylinder",
|
|
|
"radius": 1,
|
|
@@ -115,7 +115,7 @@ this.cylinderProto = function () {
|
|
|
},
|
|
|
children: {
|
|
|
"material": {
|
|
|
- "extends": "http://vwf.example.com/aframe/aMaterialComponent.vwf",
|
|
|
+ "extends": "proxy/aframe/aMaterialComponent.vwf",
|
|
|
"type": "component",
|
|
|
"properties":{
|
|
|
"color": "white"
|
|
@@ -123,14 +123,14 @@ this.cylinderProto = function () {
|
|
|
},
|
|
|
"interpolation":
|
|
|
{
|
|
|
- "extends": "http://vwf.example.com/aframe/interpolation-component.vwf",
|
|
|
+ "extends": "proxy/aframe/interpolation-component.vwf",
|
|
|
"type": "component",
|
|
|
"properties": {
|
|
|
"enabled": true
|
|
|
}
|
|
|
},
|
|
|
"cursor-listener": {
|
|
|
- "extends": "http://vwf.example.com/aframe/app-cursor-listener-component.vwf",
|
|
|
+ "extends": "proxy/aframe/app-cursor-listener-component.vwf",
|
|
|
"type": "component"
|
|
|
}
|
|
|
},
|
|
@@ -147,7 +147,7 @@ this.cylinderProto = function () {
|
|
|
this.coneProto = function () {
|
|
|
|
|
|
let node = {
|
|
|
- "extends": "http://vwf.example.com/aframe/acone.vwf",
|
|
|
+ "extends": "proxy/aframe/acone.vwf",
|
|
|
"properties": {
|
|
|
"displayName": "cone",
|
|
|
"radius-bottom": 1,
|
|
@@ -157,7 +157,7 @@ this.coneProto = function () {
|
|
|
},
|
|
|
children: {
|
|
|
"material": {
|
|
|
- "extends": "http://vwf.example.com/aframe/aMaterialComponent.vwf",
|
|
|
+ "extends": "proxy/aframe/aMaterialComponent.vwf",
|
|
|
"type": "component",
|
|
|
"properties":{
|
|
|
"color": "white"
|
|
@@ -165,14 +165,14 @@ this.coneProto = function () {
|
|
|
},
|
|
|
"interpolation":
|
|
|
{
|
|
|
- "extends": "http://vwf.example.com/aframe/interpolation-component.vwf",
|
|
|
+ "extends": "proxy/aframe/interpolation-component.vwf",
|
|
|
"type": "component",
|
|
|
"properties": {
|
|
|
"enabled": true
|
|
|
}
|
|
|
},
|
|
|
"cursor-listener": {
|
|
|
- "extends": "http://vwf.example.com/aframe/app-cursor-listener-component.vwf",
|
|
|
+ "extends": "proxy/aframe/app-cursor-listener-component.vwf",
|
|
|
"type": "component"
|
|
|
}
|
|
|
},
|
|
@@ -191,7 +191,7 @@ this.textProto = function (textValue) {
|
|
|
let value = textValue ? textValue: "Text";
|
|
|
|
|
|
let node = {
|
|
|
- "extends": "http://vwf.example.com/aframe/atext.vwf",
|
|
|
+ "extends": "proxy/aframe/atext.vwf",
|
|
|
"properties": {
|
|
|
"displayName": "text",
|
|
|
"color": "white",
|
|
@@ -204,14 +204,14 @@ this.textProto = function (textValue) {
|
|
|
children: {
|
|
|
"interpolation":
|
|
|
{
|
|
|
- "extends": "http://vwf.example.com/aframe/interpolation-component.vwf",
|
|
|
+ "extends": "proxy/aframe/interpolation-component.vwf",
|
|
|
"type": "component",
|
|
|
"properties": {
|
|
|
"enabled": true
|
|
|
}
|
|
|
},
|
|
|
"cursor-listener": {
|
|
|
- "extends": "http://vwf.example.com/aframe/app-cursor-listener-component.vwf",
|
|
|
+ "extends": "proxy/aframe/app-cursor-listener-component.vwf",
|
|
|
"type": "component"
|
|
|
}
|
|
|
},
|
|
@@ -228,7 +228,7 @@ this.textProto = function (textValue) {
|
|
|
this.cubeProto = function () {
|
|
|
|
|
|
let node = {
|
|
|
- "extends": "http://vwf.example.com/aframe/abox.vwf",
|
|
|
+ "extends": "proxy/aframe/abox.vwf",
|
|
|
"properties": {
|
|
|
"displayName": "cube",
|
|
|
"height": 1,
|
|
@@ -239,18 +239,18 @@ this.cubeProto = function () {
|
|
|
children: {
|
|
|
"interpolation":
|
|
|
{
|
|
|
- "extends": "http://vwf.example.com/aframe/interpolation-component.vwf",
|
|
|
+ "extends": "proxy/aframe/interpolation-component.vwf",
|
|
|
"type": "component",
|
|
|
"properties": {
|
|
|
"enabled": true
|
|
|
}
|
|
|
},
|
|
|
"cursor-listener": {
|
|
|
- "extends": "http://vwf.example.com/aframe/app-cursor-listener-component.vwf",
|
|
|
+ "extends": "proxy/aframe/app-cursor-listener-component.vwf",
|
|
|
"type": "component"
|
|
|
},
|
|
|
"material": {
|
|
|
- "extends": "http://vwf.example.com/aframe/aMaterialComponent.vwf",
|
|
|
+ "extends": "proxy/aframe/aMaterialComponent.vwf",
|
|
|
"type": "component",
|
|
|
"properties":{
|
|
|
"color": "white"
|
|
@@ -276,7 +276,7 @@ this.lightProto = function (lightType) {
|
|
|
}
|
|
|
|
|
|
let node = {
|
|
|
- "extends": "http://vwf.example.com/aframe/alight.vwf",
|
|
|
+ "extends": "proxy/aframe/alight.vwf",
|
|
|
"properties": {
|
|
|
"displayName": newLightType,
|
|
|
"type": newLightType,
|
|
@@ -285,14 +285,14 @@ this.lightProto = function (lightType) {
|
|
|
children: {
|
|
|
"interpolation":
|
|
|
{
|
|
|
- "extends": "http://vwf.example.com/aframe/interpolation-component.vwf",
|
|
|
+ "extends": "proxy/aframe/interpolation-component.vwf",
|
|
|
"type": "component",
|
|
|
"properties": {
|
|
|
"enabled": true
|
|
|
}
|
|
|
},
|
|
|
"cursor-listener": {
|
|
|
- "extends": "http://vwf.example.com/aframe/app-cursor-listener-component.vwf",
|
|
|
+ "extends": "proxy/aframe/app-cursor-listener-component.vwf",
|
|
|
"type": "component"
|
|
|
}
|
|
|
},
|
|
@@ -315,7 +315,7 @@ this.mirrorProto = function () {
|
|
|
newNode.children.material.properties.color = "white";
|
|
|
|
|
|
newNode.children.mirrorComponent = {
|
|
|
- "extends": "http://vwf.example.com/aframe/a-mirror-component.vwf",
|
|
|
+ "extends": "proxy/aframe/a-mirror-component.vwf",
|
|
|
"type": "component",
|
|
|
"properties": {
|
|
|
"camera": "avatarControl"
|
|
@@ -335,7 +335,7 @@ this.cameraProto = function () {
|
|
|
newNode.children.material.properties.color = "red";
|
|
|
|
|
|
newNode.children.camera = {
|
|
|
- "extends": "http://vwf.example.com/aframe/acamera.vwf",
|
|
|
+ "extends": "proxy/aframe/acamera.vwf",
|
|
|
"properties": {
|
|
|
"look-controls-enabled": false,
|
|
|
"wasd-controls-enabled": false,
|
|
@@ -356,7 +356,7 @@ this.cameraProtoWithOffset = function () {
|
|
|
newNode.children.material.properties.color = "red";
|
|
|
|
|
|
newNode.children.camera = {
|
|
|
- "extends": "http://vwf.example.com/aframe/acamera.vwf",
|
|
|
+ "extends": "proxy/aframe/acamera.vwf",
|
|
|
"properties": {
|
|
|
"look-controls-enabled": false,
|
|
|
"wasd-controls-enabled": false,
|
|
@@ -364,7 +364,7 @@ this.cameraProtoWithOffset = function () {
|
|
|
},
|
|
|
children: {
|
|
|
viewoffset: {
|
|
|
- extends: "http://vwf.example.com/aframe/viewOffsetCamera-component.vwf",
|
|
|
+ extends: "proxy/aframe/viewOffsetCamera-component.vwf",
|
|
|
properties: {
|
|
|
}
|
|
|
}
|
|
@@ -378,7 +378,7 @@ this.cameraProtoWithOffset = function () {
|
|
|
this.planeProto = function () {
|
|
|
|
|
|
let node = {
|
|
|
- "extends": "http://vwf.example.com/aframe/aplane.vwf",
|
|
|
+ "extends": "proxy/aframe/aplane.vwf",
|
|
|
"properties": {
|
|
|
"displayName": "plane",
|
|
|
"height": 1,
|
|
@@ -387,7 +387,7 @@ this.planeProto = function () {
|
|
|
},
|
|
|
children: {
|
|
|
"material": {
|
|
|
- "extends": "http://vwf.example.com/aframe/aMaterialComponent.vwf",
|
|
|
+ "extends": "proxy/aframe/aMaterialComponent.vwf",
|
|
|
"type": "component",
|
|
|
"properties": {
|
|
|
"side": "double",
|
|
@@ -396,14 +396,14 @@ this.planeProto = function () {
|
|
|
},
|
|
|
"interpolation":
|
|
|
{
|
|
|
- "extends": "http://vwf.example.com/aframe/interpolation-component.vwf",
|
|
|
+ "extends": "proxy/aframe/interpolation-component.vwf",
|
|
|
"type": "component",
|
|
|
"properties": {
|
|
|
"enabled": true
|
|
|
}
|
|
|
},
|
|
|
"cursor-listener": {
|
|
|
- "extends": "http://vwf.example.com/aframe/app-cursor-listener-component.vwf",
|
|
|
+ "extends": "proxy/aframe/app-cursor-listener-component.vwf",
|
|
|
"type": "component"
|
|
|
}
|
|
|
},
|
|
@@ -440,7 +440,7 @@ this.createModelObj = function (mtlSrc, objSrc, name, avatar) {
|
|
|
}
|
|
|
|
|
|
let modelNode = {
|
|
|
- "extends": "http://vwf.example.com/aframe/aobjmodel.vwf",
|
|
|
+ "extends": "proxy/aframe/aobjmodel.vwf",
|
|
|
"properties": {
|
|
|
"src": '#' + objSrc,
|
|
|
"mtl": '#' + mtlSrc,
|
|
@@ -449,7 +449,7 @@ this.createModelObj = function (mtlSrc, objSrc, name, avatar) {
|
|
|
children:{
|
|
|
"interpolation":
|
|
|
{
|
|
|
- "extends": "http://vwf.example.com/aframe/interpolation-component.vwf",
|
|
|
+ "extends": "proxy/aframe/interpolation-component.vwf",
|
|
|
"type": "component",
|
|
|
"properties": {
|
|
|
"enabled": true
|
|
@@ -474,7 +474,7 @@ this.createModel = function (modelType, modelSrc, avatar) {
|
|
|
|
|
|
let tagName = modelType + '-ASSET-'+ this.GUID();
|
|
|
let tagNode = {
|
|
|
- "extends": "http://vwf.example.com/aframe/a-asset-item.vwf",
|
|
|
+ "extends": "proxy/aframe/a-asset-item.vwf",
|
|
|
"properties": {
|
|
|
"itemID": tagName,
|
|
|
"itemSrc": modelSrc
|
|
@@ -498,9 +498,9 @@ this.createModel = function (modelType, modelSrc, avatar) {
|
|
|
}
|
|
|
|
|
|
const protos = {
|
|
|
- DAE: "http://vwf.example.com/aframe/acolladamodel.vwf",
|
|
|
- OBJ: "http://vwf.example.com/aframe/aobjmodel.vwf",
|
|
|
- GLTF: "http://vwf.example.com/aframe/agltfmodel.vwf"
|
|
|
+ DAE: "proxy/aframe/acolladamodel.vwf",
|
|
|
+ OBJ: "proxy/aframe/aobjmodel.vwf",
|
|
|
+ GLTF: "proxy/aframe/agltfmodel.vwf"
|
|
|
}
|
|
|
|
|
|
|
|
@@ -515,7 +515,7 @@ this.createModel = function (modelType, modelSrc, avatar) {
|
|
|
children:{
|
|
|
"interpolation":
|
|
|
{
|
|
|
- "extends": "http://vwf.example.com/aframe/interpolation-component.vwf",
|
|
|
+ "extends": "proxy/aframe/interpolation-component.vwf",
|
|
|
"type": "component",
|
|
|
"properties": {
|
|
|
"enabled": true
|
|
@@ -537,10 +537,10 @@ this.createAssetResource = function(resType, resSrc){
|
|
|
var self = this;
|
|
|
|
|
|
const protos = {
|
|
|
- IMG: "http://vwf.example.com/aframe/a-asset-image-item.vwf",
|
|
|
- AUDIO: "http://vwf.example.com/aframe/a-asset-audio-item.vwf",
|
|
|
- VIDEO: "http://vwf.example.com/aframe/a-asset-video-item.vwf",
|
|
|
- ITEM: "http://vwf.example.com/aframe/a-asset-item.vwf"
|
|
|
+ IMG: "proxy/aframe/a-asset-image-item.vwf",
|
|
|
+ AUDIO: "proxy/aframe/a-asset-audio-item.vwf",
|
|
|
+ VIDEO: "proxy/aframe/a-asset-video-item.vwf",
|
|
|
+ ITEM: "proxy/aframe/a-asset-item.vwf"
|
|
|
};
|
|
|
|
|
|
let extendsName = Object.entries(protos).filter(el => el[0] == resType)[0];
|
|
@@ -560,13 +560,13 @@ this.createAssetResource = function(resType, resSrc){
|
|
|
|
|
|
this.createDrawNode = function(node, name, color, width, pos) {
|
|
|
let newNode = {
|
|
|
- extends: "http://vwf.example.com/aframe/aentity.vwf",
|
|
|
+ extends: "proxy/aframe/aentity.vwf",
|
|
|
properties: {
|
|
|
position: pos
|
|
|
},
|
|
|
children: {
|
|
|
linepath: {
|
|
|
- extends: "http://vwf.example.com/aframe/linepath.vwf",
|
|
|
+ extends: "proxy/aframe/linepath.vwf",
|
|
|
properties: {
|
|
|
color: color,
|
|
|
path: [],
|
|
@@ -788,7 +788,7 @@ this.createImage = function (imgSrc, name, node, avatar) {
|
|
|
|
|
|
let tagName = 'IMG-ASSET-'+ this.GUID();
|
|
|
let tagNode = {
|
|
|
- "extends": "http://vwf.example.com/aframe/a-asset-image-item.vwf",
|
|
|
+ "extends": "proxy/aframe/a-asset-image-item.vwf",
|
|
|
"properties": {
|
|
|
"itemID": tagName,
|
|
|
"itemSrc": imgSrc
|
|
@@ -881,7 +881,7 @@ this.createVideo = function (vidSrc, name, node, avatar) {
|
|
|
|
|
|
let tagName = 'VIDEO-ASSET-'+ this.GUID();
|
|
|
let tagNode = {
|
|
|
- "extends": "http://vwf.example.com/aframe/a-asset-video-item.vwf",
|
|
|
+ "extends": "proxy/aframe/a-asset-video-item.vwf",
|
|
|
"properties": {
|
|
|
"itemID": tagName,
|
|
|
"itemSrc": vidSrc
|
|
@@ -970,7 +970,7 @@ this.createAudio = function (itemSrc, name, node, avatar) {
|
|
|
|
|
|
let tagName = 'AUDIO-ASSET-'+ this.GUID();
|
|
|
let tagNode = {
|
|
|
- "extends": "http://vwf.example.com/aframe/a-asset-audio-item.vwf",
|
|
|
+ "extends": "proxy/aframe/a-asset-audio-item.vwf",
|
|
|
"properties": {
|
|
|
"itemID": tagName,
|
|
|
"itemSrc": itemSrc
|
|
@@ -1012,7 +1012,7 @@ this.createAudio = function (itemSrc, name, node, avatar) {
|
|
|
|
|
|
newNode.children.sound = {
|
|
|
|
|
|
- "extends": "http://vwf.example.com/aframe/a-sound-component.vwf",
|
|
|
+ "extends": "proxy/aframe/a-sound-component.vwf",
|
|
|
"type": "component",
|
|
|
"properties": {
|
|
|
"autoplay": false,
|
|
@@ -1075,7 +1075,7 @@ this.loadGooglePolyAsset = function( params ) {
|
|
|
|
|
|
let mtlName = 'MTL-ASSET-'+ self.GUID();
|
|
|
let mtlNode = {
|
|
|
- "extends": "http://vwf.example.com/aframe/a-asset-item.vwf",
|
|
|
+ "extends": "proxy/aframe/a-asset-item.vwf",
|
|
|
"properties": {
|
|
|
"itemID": mtlName,
|
|
|
"itemSrc": mtl.url
|
|
@@ -1086,7 +1086,7 @@ this.loadGooglePolyAsset = function( params ) {
|
|
|
|
|
|
let objName = 'OBJ-ASSET-'+ self.GUID();
|
|
|
let objNode = {
|
|
|
- "extends": "http://vwf.example.com/aframe/a-asset-item.vwf",
|
|
|
+ "extends": "proxy/aframe/a-asset-item.vwf",
|
|
|
"properties": {
|
|
|
"itemID": objName,
|
|
|
"itemSrc": obj.url
|
|
@@ -1131,7 +1131,7 @@ this.smallRandomId = function() {
|
|
|
this.assetImgProto = function () {
|
|
|
|
|
|
let node = {
|
|
|
- "extends": "http://vwf.example.com/aframe/a-asset-image-item.vwf",
|
|
|
+ "extends": "proxy/aframe/a-asset-image-item.vwf",
|
|
|
"properties": {
|
|
|
},
|
|
|
}
|
|
@@ -1146,7 +1146,7 @@ this.createAssetItemImg = function(){
|
|
|
|
|
|
let nodeName = "asset-item-img-" + this.smallRandomId();
|
|
|
let newNode = {
|
|
|
- "extends": "http://vwf.example.com/aframe/a-asset-image-item.vwf",
|
|
|
+ "extends": "proxy/aframe/a-asset-image-item.vwf",
|
|
|
"properties": {
|
|
|
itemID: nodeName,
|
|
|
itemSrc: ""
|
|
@@ -1185,7 +1185,7 @@ this.getAllChildsByName = function (name) {
|
|
|
this.getDefaultXRCostume = function(){
|
|
|
|
|
|
let defaultXRCostume = {
|
|
|
- "extends": "http://vwf.example.com/aframe/abox.vwf",
|
|
|
+ "extends": "proxy/aframe/abox.vwf",
|
|
|
"properties": {
|
|
|
displayName: "defaultXRCostume",
|
|
|
"position": "0 0 0",
|
|
@@ -1209,14 +1209,14 @@ this.getDefaultXRCostume = function(){
|
|
|
},
|
|
|
children: {
|
|
|
"material": {
|
|
|
- "extends": "http://vwf.example.com/aframe/aMaterialComponent.vwf",
|
|
|
+ "extends": "proxy/aframe/aMaterialComponent.vwf",
|
|
|
"type": "component",
|
|
|
"properties":{
|
|
|
"color": "white"
|
|
|
}
|
|
|
},
|
|
|
"pointer": {
|
|
|
- "extends": "http://vwf.example.com/aframe/abox.vwf",
|
|
|
+ "extends": "proxy/aframe/abox.vwf",
|
|
|
"properties": {
|
|
|
"position": "0 0 -0.7",
|
|
|
"height": 0.1,
|
|
@@ -1225,7 +1225,7 @@ this.getDefaultXRCostume = function(){
|
|
|
},
|
|
|
children: {
|
|
|
"material": {
|
|
|
- "extends": "http://vwf.example.com/aframe/aMaterialComponent.vwf",
|
|
|
+ "extends": "proxy/aframe/aMaterialComponent.vwf",
|
|
|
"type": "component",
|
|
|
"properties":{
|
|
|
"color": "green"
|