bruce-cesium 7.3.5 → 7.3.6
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.
- package/dist/bruce-cesium.es5.js +22 -4
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +31 -14
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/widgets/widget-cursorbar.js +20 -2
- package/dist/lib/widgets/widget-cursorbar.js.map +1 -1
- package/dist/types/bruce-cesium.d.ts +1 -1
- package/dist/types/widgets/widget-cursorbar.d.ts +5 -2
- package/package.json +2 -2
package/dist/bruce-cesium.umd.js
CHANGED
|
@@ -33467,12 +33467,11 @@
|
|
|
33467
33467
|
}
|
|
33468
33468
|
}
|
|
33469
33469
|
|
|
33470
|
-
var ECursor;
|
|
33471
33470
|
(function (ECursor) {
|
|
33472
33471
|
ECursor["Select"] = "select";
|
|
33473
33472
|
ECursor["Pan"] = "pan";
|
|
33474
33473
|
ECursor["Measure"] = "measure";
|
|
33475
|
-
})(ECursor || (ECursor = {}));
|
|
33474
|
+
})(exports.ECursor || (exports.ECursor = {}));
|
|
33476
33475
|
var ESecondaryCursor;
|
|
33477
33476
|
(function (ESecondaryCursor) {
|
|
33478
33477
|
ESecondaryCursor["None"] = "none";
|
|
@@ -33486,15 +33485,33 @@
|
|
|
33486
33485
|
constructor(params) {
|
|
33487
33486
|
super(params);
|
|
33488
33487
|
this.STYLESHEET_ID = "nextspace-cursorbar-stylesheet";
|
|
33489
|
-
this._selectedCursor = ECursor.Select;
|
|
33488
|
+
this._selectedCursor = exports.ECursor.Select;
|
|
33490
33489
|
this._selectedSecondaryCursor = ESecondaryCursor.None;
|
|
33491
33490
|
this.OnCursorChange = new BModels.BruceEvent();
|
|
33492
33491
|
this._generateStyles();
|
|
33493
33492
|
this._generateElement();
|
|
33494
|
-
if (this._selectedCursor == ECursor.Select || this._selectedSecondaryCursor == ESecondaryCursor.Select) {
|
|
33493
|
+
if (this._selectedCursor == exports.ECursor.Select || this._selectedSecondaryCursor == ESecondaryCursor.Select) {
|
|
33495
33494
|
this._listenSelection();
|
|
33496
33495
|
}
|
|
33497
33496
|
}
|
|
33497
|
+
/**
|
|
33498
|
+
* @param cursor
|
|
33499
|
+
*/
|
|
33500
|
+
SetCursor(cursor) {
|
|
33501
|
+
if (cursor == this._selectedCursor) {
|
|
33502
|
+
return;
|
|
33503
|
+
}
|
|
33504
|
+
this._disposeMeasureTool();
|
|
33505
|
+
this._disposeCesiumEvent();
|
|
33506
|
+
this._selectedCursor = cursor;
|
|
33507
|
+
this._selectedSecondaryCursor = ESecondaryCursor.None;
|
|
33508
|
+
this._secondary.style.display = "none";
|
|
33509
|
+
if (cursor == exports.ECursor.Select) {
|
|
33510
|
+
this._listenSelection();
|
|
33511
|
+
}
|
|
33512
|
+
this._updateControls();
|
|
33513
|
+
this.OnCursorChange.Trigger(cursor);
|
|
33514
|
+
}
|
|
33498
33515
|
Dispose() {
|
|
33499
33516
|
var _a, _b;
|
|
33500
33517
|
super.Dispose();
|
|
@@ -33745,8 +33762,8 @@
|
|
|
33745
33762
|
<path d="M11.0706 25L9 7L23 17.8592L15.3135 18.3375L11.0706 25Z" fill="white" stroke="white" strokeLinejoin="round"/>
|
|
33746
33763
|
</svg>
|
|
33747
33764
|
`;
|
|
33748
|
-
this._generateControl("Select", ECursor.Select, () => {
|
|
33749
|
-
this._selectedCursor = ECursor.Select;
|
|
33765
|
+
this._generateControl("Select", exports.ECursor.Select, () => {
|
|
33766
|
+
this._selectedCursor = exports.ECursor.Select;
|
|
33750
33767
|
this._secondary.style.display = "none";
|
|
33751
33768
|
this._listenSelection();
|
|
33752
33769
|
this.OnCursorChange.Trigger(this._selectedCursor);
|
|
@@ -33758,10 +33775,10 @@
|
|
|
33758
33775
|
<path d="M15.5652 6C14.9172 6 14.3913 6.51692 14.3913 7.15385V14.4615H13.6087V8.69231C13.6087 8.05538 13.0828 7.53846 12.4348 7.53846C11.7868 7.53846 11.2609 8.05538 11.2609 8.69231V14.4615V16.7692V19.6734C11.2609 19.6734 9.0069 18.2402 7.87211 17.7548C7.55594 17.6194 7.22575 17.5385 6.89079 17.5385C5.1401 17.5385 5 19.0769 5 19.0769L8.13043 21.3846L10.6357 24.3398C11.5279 25.3922 12.85 26 14.243 26H19.8696C21.5983 26 23 24.6223 23 22.9231V14.4615V11C23 10.3631 22.4741 9.84615 21.8261 9.84615C21.1781 9.84615 20.6522 10.3631 20.6522 11V14.4615H19.8696V8.69231C19.8696 8.05538 19.3437 7.53846 18.6957 7.53846C18.0477 7.53846 17.5217 8.05538 17.5217 8.69231V14.4615H16.7391V7.15385C16.7391 6.51692 16.2132 6 15.5652 6Z" fill="white"/>
|
|
33759
33776
|
</svg>
|
|
33760
33777
|
`;
|
|
33761
|
-
this._generateControl("Pan", ECursor.Pan, () => {
|
|
33762
|
-
this._selectedCursor = this._selectedCursor == ECursor.Pan ? ECursor.Select : ECursor.Pan;
|
|
33778
|
+
this._generateControl("Pan", exports.ECursor.Pan, () => {
|
|
33779
|
+
this._selectedCursor = this._selectedCursor == exports.ECursor.Pan ? exports.ECursor.Select : exports.ECursor.Pan;
|
|
33763
33780
|
this._secondary.style.display = "none";
|
|
33764
|
-
if (this._selectedCursor == ECursor.Select) {
|
|
33781
|
+
if (this._selectedCursor == exports.ECursor.Select) {
|
|
33765
33782
|
this._listenSelection();
|
|
33766
33783
|
}
|
|
33767
33784
|
this.OnCursorChange.Trigger(this._selectedCursor);
|
|
@@ -33773,17 +33790,17 @@
|
|
|
33773
33790
|
<path d="M26.5044 8.88032C26.1735 8.54947 23.4505 5.8265 23.1197 5.49564C22.4588 4.83479 21.3876 4.83479 20.7267 5.49564C20.6878 5.53457 20.4449 5.77742 20.0557 6.16666L21.6753 7.78623C22.0061 8.11708 22.0061 8.65186 21.6753 8.98271C21.5103 9.14771 21.2936 9.23064 21.077 9.23064C20.8604 9.23064 20.6438 9.14771 20.4788 8.98271L18.8592 7.36314C18.4581 7.76423 18.0063 8.21608 17.5172 8.70517L18.2906 9.47857C18.6214 9.80942 18.6214 10.3442 18.2906 10.6751C18.1256 10.8401 17.909 10.923 17.6923 10.923C17.4757 10.923 17.2591 10.8401 17.0941 10.6751L16.3207 9.90165C15.8875 10.3349 15.4381 10.7842 14.9787 11.2437L16.5982 12.8632C16.9291 13.1941 16.9291 13.7289 16.5982 14.0597C16.4332 14.2247 16.2166 14.3077 16 14.3077C15.7834 14.3077 15.5668 14.2247 15.4018 14.0597L13.7822 12.4402C13.3363 12.8861 12.8869 13.3354 12.4402 13.7822L13.2136 14.5556C13.5444 14.8864 13.5444 15.4212 13.2136 15.7521C13.0486 15.9171 12.8319 16 12.6153 16C12.3987 16 12.1821 15.9171 12.0171 15.7521L11.2437 14.9787C10.7842 15.4381 10.3349 15.8875 9.90165 16.3207L11.5212 17.9403C11.8521 18.2711 11.8521 18.8059 11.5212 19.1368C11.3562 19.3018 11.1396 19.3847 10.923 19.3847C10.7064 19.3847 10.4897 19.3018 10.3247 19.1368L8.70517 17.5172C8.21608 18.0063 7.76423 18.4581 7.36314 18.8592L8.13654 19.6326C8.46739 19.9635 8.46739 20.4982 8.13654 20.8291C7.97154 20.9941 7.75492 21.077 7.5383 21.077C7.32168 21.077 7.10506 20.9941 6.94006 20.8291L6.16666 20.0557C5.77742 20.4449 5.53457 20.6878 5.49564 20.7267C4.83479 21.3876 4.83479 22.4588 5.49564 23.1197C5.8265 23.4505 8.54947 26.1735 8.88032 26.5044C9.54118 27.1652 10.6124 27.1652 11.2733 26.5044C11.6041 26.1735 26.1735 11.6041 26.5044 11.2733C27.1652 10.6124 27.1652 9.54118 26.5044 8.88032Z" fill="white"/>
|
|
33774
33791
|
</svg>
|
|
33775
33792
|
`;
|
|
33776
|
-
this._generateControl("Measure", ECursor.Measure, () => {
|
|
33793
|
+
this._generateControl("Measure", exports.ECursor.Measure, () => {
|
|
33777
33794
|
this._selectedSecondaryCursor = ESecondaryCursor.Pan;
|
|
33778
|
-
this._selectedCursor = this._selectedCursor == ECursor.Measure ? ECursor.Select : ECursor.Measure;
|
|
33779
|
-
if (this._selectedCursor == ECursor.Measure) {
|
|
33795
|
+
this._selectedCursor = this._selectedCursor == exports.ECursor.Measure ? exports.ECursor.Select : exports.ECursor.Measure;
|
|
33796
|
+
if (this._selectedCursor == exports.ECursor.Measure) {
|
|
33780
33797
|
this._generateMeasureSecondary();
|
|
33781
33798
|
this._updateSecondary();
|
|
33782
33799
|
}
|
|
33783
33800
|
else {
|
|
33784
33801
|
this._secondary.style.display = "none";
|
|
33785
33802
|
}
|
|
33786
|
-
if (this._selectedCursor == ECursor.Select) {
|
|
33803
|
+
if (this._selectedCursor == exports.ECursor.Select) {
|
|
33787
33804
|
this._listenSelection();
|
|
33788
33805
|
}
|
|
33789
33806
|
this.OnCursorChange.Trigger(this._selectedCursor);
|
|
@@ -47376,7 +47393,7 @@ void main() {
|
|
|
47376
47393
|
StyleUtils.ApplyTypeStyle = ApplyTypeStyle;
|
|
47377
47394
|
})(exports.StyleUtils || (exports.StyleUtils = {}));
|
|
47378
47395
|
|
|
47379
|
-
const VERSION = "7.3.
|
|
47396
|
+
const VERSION = "7.3.6";
|
|
47380
47397
|
/**
|
|
47381
47398
|
* Updates the environment instance used by bruce-cesium to one specified.
|
|
47382
47399
|
* This can be used to ensure that the instance a parent is referencing is shared between bruce-cesium, bruce-models, and the parent app.
|