@avs/go 0.13.71764 → 0.13.71874

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,7 +14,7 @@
14
14
 
15
15
  /**
16
16
  * @license
17
- * Copyright 2010-2025 Three.js Authors
17
+ * Copyright 2010-2026 Three.js Authors
18
18
  * SPDX-License-Identifier: MIT
19
19
  */
20
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avs/go",
3
- "version": "0.13.71764",
3
+ "version": "0.13.71874",
4
4
  "description": "AVS Go",
5
5
  "keywords": [
6
6
  "polymer",
@@ -30,6 +30,6 @@
30
30
  "dependencies": {
31
31
  "@polymer/iron-resizable-behavior": "^3.0.1",
32
32
  "@polymer/polymer": "^3.5.2",
33
- "three": "0.180.0"
33
+ "three": "0.183.2"
34
34
  }
35
35
  }
@@ -610,7 +610,7 @@ export class AvsGoDataViz extends AvsDataSourceMixin(AvsStreamMixin(AvsHttpMixin
610
610
  * Assemble the model from our properties to send to the server.
611
611
  */
612
612
  _assembleModel(fullReset) {
613
- if (this.sceneName === undefined) {
613
+ if (!this.sceneName) {
614
614
  this._logError( JSON.stringify( {"GoType":1, "error":"\'scene-name\' property must be set to the name of the scene registered in the library map on the server."} ) );
615
615
  return undefined;
616
616
  }
@@ -619,29 +619,29 @@ export class AvsGoDataViz extends AvsDataSourceMixin(AvsStreamMixin(AvsHttpMixin
619
619
 
620
620
  // Scene Properties
621
621
  var sceneProperties = {name:this.sceneName};
622
- if (this.sceneUserProperties !== undefined) {
622
+ if (this.sceneUserProperties) {
623
623
  sceneProperties.userProperties = this.sceneUserProperties;
624
624
  }
625
625
  model.sceneProperties = sceneProperties;
626
626
 
627
627
  // Renderer Properties
628
628
  var rendererProperties = {width:this.width, height:this.height, name:this.rendererName, type:this.renderer};
629
- if (this.rendererUserProperties !== undefined) {
629
+ if (this.rendererUserProperties) {
630
630
  rendererProperties.userProperties = this.rendererUserProperties;
631
631
  }
632
632
  model.rendererProperties = rendererProperties;
633
633
 
634
634
  // Transform Properties
635
- if (this.transformInteractor !== undefined) {
635
+ if (this.transformInteractor) {
636
636
  // Update the local transform matrix from the transform interactor, we may have transformed since the last request
637
637
  this.transformMatrix = this.transformInteractor.object.matrix.elements.slice();
638
638
  this.transformClientOnly = this.transformInteractor.clientOnly;
639
639
  }
640
- if (this.transformMatrix !== undefined && !this.transformClientOnly) {
640
+ if (this.transformMatrix && !this.transformClientOnly) {
641
641
  rendererProperties.transformMatrix = this.transformMatrix;
642
642
  }
643
- if (fullReset !== undefined) {
644
- if (this.transformClientOnly && this.transformInteractor !== undefined) {
643
+ if (fullReset) {
644
+ if (this.transformClientOnly && this.transformInteractor) {
645
645
  this.transformInteractor.fullReset = fullReset;
646
646
  }
647
647
  else {
@@ -688,7 +688,6 @@ export class AvsGoDataViz extends AvsDataSourceMixin(AvsStreamMixin(AvsHttpMixin
688
688
  "scenePointColor": "--avs-scene-point-color",
689
689
  "sceneLineColor": "--avs-scene-line-color",
690
690
  "sceneLineWidth": "--avs-scene-line-width",
691
- "sceneLineOpacity": "--avs-scene-line-opacity",
692
691
  "sceneTextColor": "--avs-scene-text-color",
693
692
  "sceneTextRotation": "--avs-scene-text-rotation",
694
693
  "sceneFontFamily": "--avs-scene-font-family",
@@ -716,7 +715,6 @@ export class AvsGoDataViz extends AvsDataSourceMixin(AvsStreamMixin(AvsHttpMixin
716
715
  "chartLineColor": "--avs-chart-line-color",
717
716
  "chartLineWidth": "--avs-chart-line-width",
718
717
  "chartLinePattern": "--avs-chart-line-pattern",
719
- "chartLineOpacity": "--avs-chart-line-opacity",
720
718
  "chartTextColor": "--avs-chart-text-color",
721
719
  "chartTextRotation": "--avs-chart-text-rotation",
722
720
  "chartFontFamily": "--avs-chart-font-family",
@@ -733,7 +731,6 @@ export class AvsGoDataViz extends AvsDataSourceMixin(AvsStreamMixin(AvsHttpMixin
733
731
  // Axis
734
732
  "axisLineColor": "--avs-axis-line-color",
735
733
  "axisLineWidth": "--avs-axis-line-width",
736
- "axisLineOpacity": "--avs-axis-line-opacity",
737
734
  "axisTextColor": "--avs-axis-text-color",
738
735
  "axisTextRotation": "--avs-axis-text-rotation",
739
736
  "axisFontFamily": "--avs-axis-font-family",
@@ -743,13 +740,27 @@ export class AvsGoDataViz extends AvsDataSourceMixin(AvsStreamMixin(AvsHttpMixin
743
740
  // Axis axle
744
741
  "axisAxleColor": "--avs-axis-axle-color",
745
742
  "axisAxleWidth": "--avs-axis-axle-width",
746
- // Axis tick mark
747
- "axisTickMarkColor": "--avs-axis-tick-mark-color",
748
- "axisTickMarkWidth": "--avs-axis-tick-mark-width",
749
- // Axis tick line
750
- "axisTickLineColor": "--avs-axis-tick-line-color",
751
- "axisTickLineWidth": "--avs-axis-tick-line-width",
752
- "axisTickLineStyle": "--avs-axis-tick-line-style",
743
+ // Axis major tick marks
744
+ "axisMajorTickMarkColor": "--avs-axis-major-tick-mark-color",
745
+ "axisMajorTickMarkWidth": "--avs-axis-major-tick-mark-width",
746
+ // Axis major tick lines
747
+ "axisMajorTickLineColor": "--avs-axis-major-tick-line-color",
748
+ "axisMajorTickLineWidth": "--avs-axis-major-tick-line-width",
749
+ "axisMajorTickLineStyle": "--avs-axis-major-tick-line-style",
750
+ // Axis major unlabeled tick marks
751
+ "axisMajorUnlabeledTickMarkColor": "--avs-axis-major-unlabeled-tick-mark-color",
752
+ "axisMajorUnlabeledTickMarkWidth": "--avs-axis-major-unlabeled-tick-mark-width",
753
+ // Axis major unlabeled tick lines
754
+ "axisMajorUnlabeledTickLineColor": "--avs-axis-major-unlabeled-tick-line-color",
755
+ "axisMajorUnlabeledTickLineWidth": "--avs-axis-major-unlabeled-tick-line-width",
756
+ "axisMajorUnlabeledTickLineStyle": "--avs-axis-major-unlabeled-tick-line-style",
757
+ // Axis minor tick marks
758
+ "axisMinorTickMarkColor": "--avs-axis-minor-tick-mark-color",
759
+ "axisMinorTickMarkWidth": "--avs-axis-minor-tick-mark-width",
760
+ // Axis minor tick lines
761
+ "axisMinorTickLineColor": "--avs-axis-minor-tick-line-color",
762
+ "axisMinorTickLineWidth": "--avs-axis-minor-tick-line-width",
763
+ "axisMinorTickLineStyle": "--avs-axis-minor-tick-line-style",
753
764
  // Axis title
754
765
  "axisTitleTextColor": "--avs-axis-title-text-color",
755
766
  "axisTitleTextRotation": "--avs-axis-title-text-rotation",
@@ -928,9 +939,9 @@ export class AvsGoDataViz extends AvsDataSourceMixin(AvsStreamMixin(AvsHttpMixin
928
939
  this._httpRequest(this.url, this._handleHttpResponse.bind(this), undefined, this._handleHttpError.bind(this));
929
940
  }
930
941
  else {
931
- var model = this._assembleModel(fullReset);
932
- if (model !== undefined) {
933
- this._httpRequest(this.url, this._handleHttpResponse.bind(this), undefined, this._handleHttpError.bind(this), model);
942
+ this.model = this._assembleModel(fullReset);
943
+ if (this.model) {
944
+ this._httpRequest(this.url, this._handleHttpResponse.bind(this), undefined, this._handleHttpError.bind(this), this.model);
934
945
  }
935
946
  }
936
947
  }
@@ -1044,14 +1055,27 @@ export class AvsGoDataViz extends AvsDataSourceMixin(AvsStreamMixin(AvsHttpMixin
1044
1055
  this.sceneImageMap.innerHTML = "";
1045
1056
  this.imageMapData = undefined;
1046
1057
  }
1047
-
1058
+
1059
+ if (!this.urlLoadJsonFile) {
1060
+ this._dispatchSceneData(json);
1061
+ }
1062
+
1048
1063
  this._handleLoadComplete();
1049
1064
  }
1050
1065
  else if (json.svg) {
1051
1066
  this.svgDiv.innerHTML = decodeURIComponent(json.svg.replace(/\+/g, '%20'));
1067
+
1068
+ if (!this.urlLoadJsonFile) {
1069
+ this._dispatchSceneData(json);
1070
+ }
1071
+
1052
1072
  this._handleLoadComplete();
1053
1073
  }
1054
1074
  else if (json.threejs) {
1075
+ if (!this.urlLoadJsonFile) {
1076
+ this._dispatchSceneData(json);
1077
+ }
1078
+
1055
1079
  if (json.threejs.chunkId) {
1056
1080
  this.threeViewer.loadGeometryAsEvents(json.threejs, this._handleLoadComplete.bind(this));
1057
1081
 
@@ -1065,11 +1089,8 @@ export class AvsGoDataViz extends AvsDataSourceMixin(AvsStreamMixin(AvsHttpMixin
1065
1089
  }
1066
1090
  else {
1067
1091
  // Get the next chunk from the server
1068
- var model = this._assembleModel();
1069
- if (model) {
1070
- model.rendererProperties.streamProperties.chunkId = json.threejs.chunkId;
1071
- this._httpRequest(this.url, this._handleHttpResponse.bind(this), undefined, this._handleHttpError.bind(this), model);
1072
- }
1092
+ this.model.rendererProperties.streamProperties.chunkId = json.threejs.chunkId;
1093
+ this._httpRequest(this.url, this._handleHttpResponse.bind(this), undefined, this._handleHttpError.bind(this), this.model);
1073
1094
  }
1074
1095
  }
1075
1096
  }
@@ -1123,6 +1144,19 @@ export class AvsGoDataViz extends AvsDataSourceMixin(AvsStreamMixin(AvsHttpMixin
1123
1144
  this.dispatchEvent(new CustomEvent('avs-load-complete'));
1124
1145
  }
1125
1146
 
1147
+ /**
1148
+ *
1149
+ */
1150
+ _dispatchSceneData(data) {
1151
+ const event = { detail: data };
1152
+
1153
+ /**
1154
+ * Scene data from server.
1155
+ * @event avs-scene-data
1156
+ */
1157
+ this.dispatchEvent(new CustomEvent('avs-scene-data', event));
1158
+ }
1159
+
1126
1160
  /**
1127
1161
  * @param e
1128
1162
  */
@@ -1404,14 +1438,14 @@ export class AvsGoDataViz extends AvsDataSourceMixin(AvsStreamMixin(AvsHttpMixin
1404
1438
  // Server side pick processing
1405
1439
 
1406
1440
  this.showSpinner();
1407
- if (this.url !== undefined && this.url !== null) {
1441
+ if (this.url) {
1408
1442
  this.startSpinner();
1409
1443
 
1410
1444
  // Use avs-http-mixin to send the model to the server
1411
- var model = this._assembleModel();
1412
- if (model !== undefined) {
1413
- model.rendererProperties.pickProperties = pickProperties;
1414
- this._httpRequest(this.url, this._handleHttpResponse.bind(this), undefined, this._handleHttpError.bind(this), model);
1445
+ this.model = this._assembleModel();
1446
+ if (this.model) {
1447
+ this.model.rendererProperties.pickProperties = pickProperties;
1448
+ this._httpRequest(this.url, this._handleHttpResponse.bind(this), undefined, this._handleHttpError.bind(this), this.model);
1415
1449
  }
1416
1450
  }
1417
1451
  }
package/src/constants.js CHANGED
@@ -18,4 +18,4 @@
18
18
  * Advanced Visual Systems Inc. (http://www.avs.com)
19
19
  */
20
20
 
21
- export var VERSION = '0.13.71764';
21
+ export var VERSION = '0.13.71874';