chunk-DUEMJ5XS.js 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. import {
  2. m
  3. } from "./chunk-3LVSQLWJ.js";
  4. import {
  5. S
  6. } from "./chunk-CRGY2SDS.js";
  7. import {
  8. o,
  9. s
  10. } from "./chunk-HZRKBTHJ.js";
  11. import {
  12. o as o2
  13. } from "./chunk-6T6G6LCQ.js";
  14. import {
  15. r as r2
  16. } from "./chunk-PQFTYGF5.js";
  17. import {
  18. e,
  19. l3 as l,
  20. n5 as n,
  21. y3 as y2
  22. } from "./chunk-2Z2TG5CU.js";
  23. import {
  24. r,
  25. y
  26. } from "./chunk-YXWMMD76.js";
  27. // node_modules/@arcgis/core/symbols/support/FeatureExpressionInfo.js
  28. var i;
  29. var p = i = class extends l {
  30. constructor(r4) {
  31. super(r4);
  32. }
  33. async collectRequiredFields(r4, e3) {
  34. return S(r4, e3, this.expression);
  35. }
  36. clone() {
  37. return new i({ expression: this.expression, title: this.title });
  38. }
  39. equals(r4) {
  40. return this.expression === r4.expression && this.title === r4.title;
  41. }
  42. };
  43. e([y2({ type: String, json: { write: true } })], p.prototype, "expression", void 0), e([y2({ type: String, json: { write: true } })], p.prototype, "title", void 0), p = i = e([n("esri.layers.support.FeatureExpressionInfo")], p);
  44. var c = p;
  45. // node_modules/@arcgis/core/symbols/support/unitConversionUtils.js
  46. function r3(n2) {
  47. return 1 / (m[n2] || 1);
  48. }
  49. function e2() {
  50. const n2 = Object.keys(m);
  51. return n2.sort(), n2;
  52. }
  53. var o3 = e2();
  54. // node_modules/@arcgis/core/symbols/support/ElevationInfo.js
  55. var m2;
  56. var d = o()({ onTheGround: "on-the-ground", relativeToGround: "relative-to-ground", relativeToScene: "relative-to-scene", absoluteHeight: "absolute-height" });
  57. var c2 = new s({ foot: "feet", kilometer: "kilometers", meter: "meters", mile: "miles", "us-foot": "us-feet", yard: "yards" });
  58. var h = m2 = class extends l {
  59. constructor(e3) {
  60. super(e3), this.offset = null;
  61. }
  62. readFeatureExpressionInfo(e3, r4) {
  63. return null != e3 ? e3 : r4.featureExpression && 0 === r4.featureExpression.value ? { expression: "0" } : void 0;
  64. }
  65. writeFeatureExpressionInfo(e3, r4, o4, t) {
  66. r4[o4] = e3.write({}, t), "0" === e3.expression && (r4.featureExpression = { value: 0 });
  67. }
  68. get mode() {
  69. const { offset: e3, featureExpressionInfo: r4 } = this;
  70. return this._isOverridden("mode") ? this._get("mode") : r(e3) || r4 ? "relative-to-ground" : "on-the-ground";
  71. }
  72. set mode(e3) {
  73. this._override("mode", e3);
  74. }
  75. set unit(e3) {
  76. this._set("unit", e3);
  77. }
  78. write(e3, r4) {
  79. return this.offset || this.mode || this.featureExpressionInfo || this.unit ? super.write(e3, r4) : null;
  80. }
  81. clone() {
  82. return new m2({ mode: this.mode, offset: this.offset, featureExpressionInfo: this.featureExpressionInfo ? this.featureExpressionInfo.clone() : void 0, unit: this.unit });
  83. }
  84. equals(e3) {
  85. return this.mode === e3.mode && this.offset === e3.offset && this.unit === e3.unit && y(this.featureExpressionInfo, e3.featureExpressionInfo);
  86. }
  87. };
  88. e([y2({ type: c, json: { write: true } })], h.prototype, "featureExpressionInfo", void 0), e([o2("featureExpressionInfo", ["featureExpressionInfo", "featureExpression"])], h.prototype, "readFeatureExpressionInfo", null), e([r2("featureExpressionInfo", { featureExpressionInfo: { type: c }, "featureExpression.value": { type: [0] } })], h.prototype, "writeFeatureExpressionInfo", null), e([y2({ type: d.apiValues, nonNullable: true, json: { type: d.jsonValues, read: d.read, write: { writer: d.write, isRequired: true } } })], h.prototype, "mode", null), e([y2({ type: Number, json: { write: true } })], h.prototype, "offset", void 0), e([y2({ type: o3, json: { type: String, read: c2.read, write: c2.write } })], h.prototype, "unit", null), h = m2 = e([n("esri.layers.support.ElevationInfo")], h);
  89. var x = h;
  90. export {
  91. r3 as r,
  92. x
  93. };
  94. //# sourceMappingURL=chunk-DUEMJ5XS.js.map