12345678910111213141516171819202122232425262728293031323334 |
- this.setGizmoMode = function (mode) {
- if (this.gizmo) {
- this.gizmo.properties.mode = mode
- }
- }
- this.showCloseGizmo = function () {
- let gizmoNode =
- {
- "extends": "http://vwf.example.com/aframe/gizmoComponent.vwf",
- "type": "component",
- "properties":
- {
- "mode": "translate"
- }
- }
- if (this.properties.edit) {
- this.children.create("gizmo", gizmoNode);
- } else {
- if (this.gizmo) {
- this.children.delete(this.gizmo)
- }
- }
- }
- this.updateSrc = function(srcID){
- if (srcID) {
- debugger;
- this.src = "";
- this.src = srcID;
- }
-
- }
|