chunk-ZOO4I2U4.js 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384
  1. import {
  2. p as p2
  3. } from "./chunk-HZ2WKB3G.js";
  4. import {
  5. v
  6. } from "./chunk-Y74D3LKQ.js";
  7. import {
  8. a,
  9. e as e2,
  10. i,
  11. t
  12. } from "./chunk-PK4W65H4.js";
  13. import {
  14. m,
  15. p
  16. } from "./chunk-FNA5GLRW.js";
  17. import {
  18. o as o2
  19. } from "./chunk-UVVU4UUO.js";
  20. import {
  21. s as s3
  22. } from "./chunk-HZRKBTHJ.js";
  23. import {
  24. o
  25. } from "./chunk-6T6G6LCQ.js";
  26. import {
  27. s as s4
  28. } from "./chunk-YEJL5NEF.js";
  29. import {
  30. r
  31. } from "./chunk-PQFTYGF5.js";
  32. import {
  33. e,
  34. l3 as l,
  35. n5 as n,
  36. y3 as y2
  37. } from "./chunk-2Z2TG5CU.js";
  38. import {
  39. T,
  40. u
  41. } from "./chunk-SQOPWYIT.js";
  42. import {
  43. s2 as s,
  44. s3 as s2
  45. } from "./chunk-E5O6P5I2.js";
  46. import {
  47. y
  48. } from "./chunk-SPWQ3AWG.js";
  49. // node_modules/@arcgis/core/renderers/support/AuthoringInfoClassBreakInfo.js
  50. var t2;
  51. var p3 = t2 = class extends l {
  52. constructor(r2) {
  53. super(r2), this.minValue = 0, this.maxValue = 0;
  54. }
  55. clone() {
  56. return new t2({ minValue: this.minValue, maxValue: this.maxValue });
  57. }
  58. };
  59. e([y2({ type: Number, json: { write: true } })], p3.prototype, "minValue", void 0), e([y2({ type: Number, json: { write: true } })], p3.prototype, "maxValue", void 0), p3 = t2 = e([n("esri.renderer.support.AuthoringInfoClassBreakInfo")], p3);
  60. // node_modules/@arcgis/core/renderers/support/AuthoringInfoFieldInfo.js
  61. var n2;
  62. var p4 = n2 = class extends l {
  63. constructor(o3) {
  64. super(o3), this.field = "", this.normalizationField = "", this.label = "", this.classBreakInfos = [];
  65. }
  66. clone() {
  67. return new n2({ field: this.field, normalizationField: this.normalizationField, label: this.label, classBreakInfos: y(this.classBreakInfos) });
  68. }
  69. };
  70. e([y2({ type: String, json: { write: true } })], p4.prototype, "field", void 0), e([y2({ type: String, json: { write: true } })], p4.prototype, "normalizationField", void 0), e([y2({ type: String, json: { write: true } })], p4.prototype, "label", void 0), e([y2({ type: [p3], json: { write: true } })], p4.prototype, "classBreakInfos", void 0), p4 = n2 = e([n("esri.renderers.support.AuthoringInfoFieldInfo")], p4);
  71. // node_modules/@arcgis/core/renderers/support/AuthoringInfoVisualVariable.js
  72. var n3;
  73. var l2 = new s3({ percentTotal: "percent-of-total", ratio: "ratio", percent: "percent" });
  74. var p5 = new s3({ sizeInfo: "size", colorInfo: "color", transparencyInfo: "opacity", rotationInfo: "rotation" });
  75. var a2 = { key: (e3) => "number" == typeof e3 ? "number" : "string", typeMap: { number: Number, string: String }, base: null };
  76. var u2 = ["high-to-low", "above-and-below", "centered-on", "extremes"];
  77. var m2 = [.../* @__PURE__ */ new Set([...["high-to-low", "above-and-below", "centered-on", "extremes", "90-10", "above", "below"], ...["high-to-low", "above-and-below", "90-10", "above", "below"]])];
  78. var y3 = ["seconds", "minutes", "hours", "days", "months", "years"];
  79. var d = n3 = class extends l {
  80. constructor(e3) {
  81. super(e3), this.endTime = null, this.field = null, this.maxSliderValue = null, this.minSliderValue = null, this.startTime = null, this.type = null, this.units = null;
  82. }
  83. castEndTime(e3) {
  84. return "string" == typeof e3 || "number" == typeof e3 ? e3 : null;
  85. }
  86. castStartTime(e3) {
  87. return "string" == typeof e3 || "number" == typeof e3 ? e3 : null;
  88. }
  89. get style() {
  90. return "color" === this.type ? this._get("style") : null;
  91. }
  92. set style(e3) {
  93. this._set("style", e3);
  94. }
  95. get theme() {
  96. return "color" === this.type || "size" === this.type ? this._get("theme") || "high-to-low" : null;
  97. }
  98. set theme(e3) {
  99. this._set("theme", e3);
  100. }
  101. clone() {
  102. return new n3({ endTime: this.endTime, field: this.field, maxSliderValue: this.maxSliderValue, minSliderValue: this.minSliderValue, startTime: this.startTime, style: this.style, theme: this.theme, type: this.type, units: this.units });
  103. }
  104. };
  105. e([y2({ types: a2, json: { write: true } })], d.prototype, "endTime", void 0), e([s4("endTime")], d.prototype, "castEndTime", null), e([y2({ type: String, json: { write: true } })], d.prototype, "field", void 0), e([y2({ type: Number, json: { write: true } })], d.prototype, "maxSliderValue", void 0), e([y2({ type: Number, json: { write: true } })], d.prototype, "minSliderValue", void 0), e([y2({ types: a2, json: { write: true } })], d.prototype, "startTime", void 0), e([s4("startTime")], d.prototype, "castStartTime", null), e([y2({ type: l2.apiValues, value: null, json: { type: l2.jsonValues, read: l2.read, write: l2.write } })], d.prototype, "style", null), e([y2({ type: m2, value: null, json: { type: m2, origins: { "web-scene": { type: u2, write: { writer: (e3, t5) => {
  106. u2.includes(e3) && (t5.theme = e3);
  107. } } } }, write: true } })], d.prototype, "theme", null), e([y2({ type: p5.apiValues, json: { type: p5.jsonValues, read: p5.read, write: p5.write } })], d.prototype, "type", void 0), e([y2({ type: y3, json: { type: y3, write: true } })], d.prototype, "units", void 0), d = n3 = e([n("esri.renderers.support.AuthoringInfoVisualVariable")], d);
  108. var c = d;
  109. // node_modules/@arcgis/core/renderers/support/AuthoringInfo.js
  110. var c2;
  111. var h = new s3({ esriClassifyDefinedInterval: "defined-interval", esriClassifyEqualInterval: "equal-interval", esriClassifyManual: "manual", esriClassifyNaturalBreaks: "natural-breaks", esriClassifyQuantile: "quantile", esriClassifyStandardDeviation: "standard-deviation" });
  112. var y4 = new s3({ pieChart: "pie-chart", classedSize: "class-breaks-size", classedColor: "class-breaks-color", univariateColorSize: "univariate-color-size", relationship: "relationship", predominance: "predominance", dotDensity: "dot-density", flow: "flow" });
  113. var m3 = new s3({ classedSize: "class-breaks-size", classedColor: "class-breaks-color", univariateColorSize: "univariate-color-size", relationship: "relationship", predominance: "predominance", dotDensity: "dot-density" });
  114. var f = ["inches", "feet", "yards", "miles", "nautical-miles", "millimeters", "centimeters", "decimeters", "meters", "kilometers", "decimal-degrees"];
  115. var v2 = ["high-to-low", "above-and-below", "above", "below", "90-10"];
  116. var w = ["flow-line", "wave-front"];
  117. var b = ["caret", "circle-caret", "arrow", "circle-arrow", "plus-minus", "circle-plus-minus", "square", "circle", "triangle", "happy-sad", "thumb", "custom"];
  118. var g = c2 = class extends l {
  119. constructor(e3) {
  120. super(e3), this.colorRamp = null, this.fadeRatio = null, this.isAutoGenerated = false, this.lengthUnit = null, this.maxSliderValue = null, this.minSliderValue = null, this.visualVariables = null;
  121. }
  122. get classificationMethod() {
  123. const e3 = this._get("classificationMethod"), t5 = this.type;
  124. return t5 && "relationship" !== t5 ? "class-breaks-size" === t5 || "class-breaks-color" === t5 ? e3 || "manual" : null : e3;
  125. }
  126. set classificationMethod(e3) {
  127. this._set("classificationMethod", e3);
  128. }
  129. readColorRamp(e3) {
  130. return e3 ? p(e3) : void 0;
  131. }
  132. get fields() {
  133. return this.type && "predominance" !== this.type ? null : this._get("fields");
  134. }
  135. set fields(e3) {
  136. this._set("fields", e3);
  137. }
  138. get field1() {
  139. return this.type && "relationship" !== this.type ? null : this._get("field1");
  140. }
  141. set field1(e3) {
  142. this._set("field1", e3);
  143. }
  144. get field2() {
  145. return this.type && "relationship" !== this.type ? null : this._get("field2");
  146. }
  147. set field2(e3) {
  148. this._set("field2", e3);
  149. }
  150. get flowTheme() {
  151. return "flow" === this.type ? this._get("flowTheme") : null;
  152. }
  153. set flowTheme(e3) {
  154. this._set("flowTheme", e3);
  155. }
  156. get focus() {
  157. return this.type && "relationship" !== this.type ? null : this._get("focus");
  158. }
  159. set focus(e3) {
  160. this._set("focus", e3);
  161. }
  162. get numClasses() {
  163. return this.type && "relationship" !== this.type ? null : this._get("numClasses");
  164. }
  165. set numClasses(e3) {
  166. this._set("numClasses", e3);
  167. }
  168. get statistics() {
  169. return "univariate-color-size" === this.type && "above-and-below" === this.univariateTheme ? this._get("statistics") : null;
  170. }
  171. set statistics(e3) {
  172. this._set("statistics", e3);
  173. }
  174. get standardDeviationInterval() {
  175. const e3 = this.type;
  176. return e3 && "relationship" !== e3 && "class-breaks-size" !== e3 && "class-breaks-color" !== e3 || this.classificationMethod && "standard-deviation" !== this.classificationMethod ? null : this._get("standardDeviationInterval");
  177. }
  178. set standardDeviationInterval(e3) {
  179. this._set("standardDeviationInterval", e3);
  180. }
  181. get type() {
  182. return this._get("type");
  183. }
  184. set type(e3) {
  185. let t5 = e3;
  186. "classed-size" === e3 ? t5 = "class-breaks-size" : "classed-color" === e3 && (t5 = "class-breaks-color"), this._set("type", t5);
  187. }
  188. get univariateSymbolStyle() {
  189. return "univariate-color-size" === this.type && "above-and-below" === this.univariateTheme ? this._get("univariateSymbolStyle") : null;
  190. }
  191. set univariateSymbolStyle(e3) {
  192. this._set("univariateSymbolStyle", e3);
  193. }
  194. get univariateTheme() {
  195. return "univariate-color-size" === this.type ? this._get("univariateTheme") : null;
  196. }
  197. set univariateTheme(e3) {
  198. this._set("univariateTheme", e3);
  199. }
  200. clone() {
  201. return new c2({ classificationMethod: this.classificationMethod, colorRamp: y(this.colorRamp), fadeRatio: y(this.fadeRatio), fields: this.fields && this.fields.slice(0), field1: y(this.field1), field2: y(this.field2), isAutoGenerated: this.isAutoGenerated, focus: this.focus, numClasses: this.numClasses, maxSliderValue: this.maxSliderValue, minSliderValue: this.minSliderValue, lengthUnit: this.lengthUnit, statistics: this.statistics, standardDeviationInterval: this.standardDeviationInterval, type: this.type, visualVariables: this.visualVariables && this.visualVariables.map((e3) => e3.clone()), univariateSymbolStyle: this.univariateSymbolStyle, univariateTheme: this.univariateTheme, flowTheme: this.flowTheme });
  202. }
  203. };
  204. e([y2({ type: h.apiValues, value: null, json: { type: h.jsonValues, read: h.read, write: h.write, origins: { "web-document": { default: "manual", type: h.jsonValues, read: h.read, write: h.write } } } })], g.prototype, "classificationMethod", null), e([y2({ types: m, json: { write: true } })], g.prototype, "colorRamp", void 0), e([o("colorRamp")], g.prototype, "readColorRamp", null), e([y2({ json: { write: true, origins: { "web-scene": { write: false, read: false } } } })], g.prototype, "fadeRatio", void 0), e([y2({ type: [String], value: null, json: { write: true } })], g.prototype, "fields", null), e([y2({ type: p4, value: null, json: { write: true } })], g.prototype, "field1", null), e([y2({ type: p4, value: null, json: { write: true } })], g.prototype, "field2", null), e([y2({ type: w, value: null, json: { write: true, origins: { "web-scene": { write: false } } } })], g.prototype, "flowTheme", null), e([y2({ type: ["HH", "HL", "LH", "LL"], value: null, json: { write: true } })], g.prototype, "focus", null), e([y2({ type: Boolean, json: { write: true, default: false, origins: { "web-scene": { write: false } } } })], g.prototype, "isAutoGenerated", void 0), e([y2({ type: Number, value: null, json: { type: T, write: true } })], g.prototype, "numClasses", null), e([y2({ type: f, json: { type: f, read: false, write: false, origins: { "web-scene": { read: true, write: true } } } })], g.prototype, "lengthUnit", void 0), e([y2({ type: Number, json: { write: true, origins: { "web-scene": { write: false, read: false } } } })], g.prototype, "maxSliderValue", void 0), e([y2({ type: Number, json: { write: true, origins: { "web-scene": { write: false, read: false } } } })], g.prototype, "minSliderValue", void 0), e([y2({ type: Object, value: null, json: { write: true, origins: { "web-scene": { write: false, read: false } } } })], g.prototype, "statistics", null), e([y2({ type: [0.25, 0.33, 0.5, 1], value: null, json: { type: [0.25, 0.33, 0.5, 1], write: true } })], g.prototype, "standardDeviationInterval", null), e([y2({ type: y4.apiValues, value: null, json: { type: y4.jsonValues, read: y4.read, write: y4.write, origins: { "web-scene": { type: m3.jsonValues, write: { writer: m3.write, overridePolicy: (e3) => ({ enabled: "flow" !== e3 }) } } } } })], g.prototype, "type", null), e([y2({ type: [c], json: { write: true } })], g.prototype, "visualVariables", void 0), e([y2({ type: b, value: null, json: { write: true, origins: { "web-scene": { write: false } } } })], g.prototype, "univariateSymbolStyle", null), e([y2({ type: v2, value: null, json: { write: true, origins: { "web-scene": { write: false } } } })], g.prototype, "univariateTheme", null), g = c2 = e([n("esri.renderers.support.AuthoringInfo")], g);
  205. var j = g;
  206. // node_modules/@arcgis/core/renderers/visualVariables/support/SizeStop.js
  207. var p6;
  208. var i2 = p6 = class extends l {
  209. constructor(r2) {
  210. super(r2), this.label = null, this.size = null, this.value = null;
  211. }
  212. clone() {
  213. return new p6({ label: this.label, size: this.size, value: this.value });
  214. }
  215. };
  216. e([y2({ type: String, json: { write: true } })], i2.prototype, "label", void 0), e([y2({ type: Number, cast: o2, json: { write: true } })], i2.prototype, "size", void 0), e([y2({ type: Number, json: { write: true } })], i2.prototype, "value", void 0), i2 = p6 = e([n("esri.renderers.visualVariables.support.SizeStop")], i2);
  217. var l3 = i2;
  218. // node_modules/@arcgis/core/renderers/visualVariables/support/VisualVariableLegendOptions.js
  219. var t3;
  220. var p7 = t3 = class extends p2 {
  221. constructor() {
  222. super(...arguments), this.showLegend = null;
  223. }
  224. clone() {
  225. return new t3({ title: this.title, showLegend: this.showLegend });
  226. }
  227. };
  228. e([y2({ type: Boolean, json: { write: true } })], p7.prototype, "showLegend", void 0), p7 = t3 = e([n("esri.renderers.visualVariables.support.VisualVariableLegendOptions")], p7);
  229. var i3 = p7;
  230. // node_modules/@arcgis/core/renderers/visualVariables/VisualVariable.js
  231. var a3 = new s3({ colorInfo: "color", transparencyInfo: "opacity", rotationInfo: "rotation", sizeInfo: "size" });
  232. var u3 = class extends l {
  233. constructor(e3) {
  234. super(e3), this.index = null, this.type = null, this.field = null, this.valueExpression = null, this.valueExpressionTitle = null, this.legendOptions = null;
  235. }
  236. castField(e3) {
  237. return null == e3 ? e3 : "function" == typeof e3 ? (s.getLogger(this.declaredClass).error(".field: field must be a string value"), null) : u(e3);
  238. }
  239. get arcadeRequired() {
  240. return !!this.valueExpression;
  241. }
  242. clone() {
  243. }
  244. getAttributeHash() {
  245. return `${this.type}-${this.field}-${this.valueExpression}`;
  246. }
  247. };
  248. e([y2()], u3.prototype, "index", void 0), e([y2({ type: a3.apiValues, readOnly: true, json: { read: a3.read, write: a3.write } })], u3.prototype, "type", void 0), e([y2({ type: String, json: { write: true } })], u3.prototype, "field", void 0), e([s4("field")], u3.prototype, "castField", null), e([y2({ type: String, json: { write: true } })], u3.prototype, "valueExpression", void 0), e([y2({ type: String, json: { write: true } })], u3.prototype, "valueExpressionTitle", void 0), e([y2({ readOnly: true })], u3.prototype, "arcadeRequired", null), e([y2({ type: i3, json: { write: true } })], u3.prototype, "legendOptions", void 0), u3 = e([n("esri.renderers.visualVariables.VisualVariable")], u3);
  249. var c3 = u3;
  250. // node_modules/@arcgis/core/renderers/visualVariables/support/SizeVariableLegendOptions.js
  251. var t4;
  252. var i4 = t4 = class extends i3 {
  253. constructor() {
  254. super(...arguments), this.customValues = null;
  255. }
  256. clone() {
  257. return new t4({ title: this.title, showLegend: this.showLegend, customValues: this.customValues && this.customValues.slice(0) });
  258. }
  259. };
  260. e([y2({ type: [Number], json: { write: true } })], i4.prototype, "customValues", void 0), i4 = t4 = e([n("esri.renderers.visualVariables.support.SizeVariableLegendOptions")], i4);
  261. var a4 = i4;
  262. // node_modules/@arcgis/core/renderers/visualVariables/SizeVariable.js
  263. var z;
  264. var v3 = new s3({ width: "width", depth: "depth", height: "height", widthAndDepth: "width-and-depth", all: "all" });
  265. var g2 = new s3({ unknown: "unknown", inch: "inches", foot: "feet", yard: "yards", mile: "miles", "nautical-mile": "nautical-miles", millimeter: "millimeters", centimeter: "centimeters", decimeter: "decimeters", meter: "meters", kilometer: "kilometers", "decimal-degree": "decimal-degrees" });
  266. function w2(e3) {
  267. if (null != e3)
  268. return "string" == typeof e3 || "number" == typeof e3 ? o2(e3) : "size" === e3.type ? e2(e3) ? e3 : (delete (e3 = { ...e3 }).type, new V(e3)) : void 0;
  269. }
  270. function f2(e3, t5, i5) {
  271. if ("object" != typeof e3)
  272. return e3;
  273. const s5 = new V();
  274. return s5.read(e3, i5), s5;
  275. }
  276. var V = z = class extends c3 {
  277. constructor(e3) {
  278. super(e3), this.axis = null, this.legendOptions = null, this.normalizationField = null, this.scaleBy = null, this.target = null, this.type = "size", this.useSymbolValue = null, this.valueExpression = null, this.valueRepresentation = null, this.valueUnit = null;
  279. }
  280. get cache() {
  281. return { ipData: this._interpolateData(), hasExpression: !!this.valueExpression, compiledFunc: null, isScaleDriven: null != this.valueExpression && v.test(this.valueExpression) };
  282. }
  283. set expression(e3) {
  284. s.getLogger(this.declaredClass).warn("'expression' is deprecated since version 4.2. Use 'valueExpression' instead. The only supported expression is 'view.scale'."), "view.scale" === e3 ? (this.valueExpression = "$view.scale", this._set("expression", e3)) : this._set("expression", null);
  285. }
  286. set index(e3) {
  287. e2(this.maxSize) && (this.maxSize.index = `visualVariables[${e3}].maxSize`), e2(this.minSize) && (this.minSize.index = `visualVariables[${e3}].minSize`), this._set("index", e3);
  288. }
  289. get inputValueType() {
  290. return t(this);
  291. }
  292. set maxDataValue(e3) {
  293. e3 && this.stops && (s.getLogger(this.declaredClass).warn("cannot set maxDataValue when stops is not null."), e3 = null), this._set("maxDataValue", e3);
  294. }
  295. set maxSize(e3) {
  296. e3 && this.stops && (s.getLogger(this.declaredClass).warn("cannot set maxSize when stops is not null."), e3 = null), this._set("maxSize", e3);
  297. }
  298. castMaxSize(e3) {
  299. return w2(e3);
  300. }
  301. readMaxSize(e3, t5, i5) {
  302. return f2(e3, t5, i5);
  303. }
  304. set minDataValue(e3) {
  305. e3 && this.stops && (s.getLogger(this.declaredClass).warn("cannot set minDataValue when stops is not null."), e3 = null), this._set("minDataValue", e3);
  306. }
  307. set minSize(e3) {
  308. e3 && this.stops && (s.getLogger(this.declaredClass).warn("cannot set minSize when stops is not null."), e3 = null), this._set("minSize", e3);
  309. }
  310. castMinSize(e3) {
  311. return w2(e3);
  312. }
  313. readMinSize(e3, t5, i5) {
  314. return f2(e3, t5, i5);
  315. }
  316. get arcadeRequired() {
  317. return !!this.valueExpression || (null != this.minSize && "object" == typeof this.minSize && this.minSize.arcadeRequired || null != this.maxSize && "object" == typeof this.maxSize && this.maxSize.arcadeRequired);
  318. }
  319. set stops(e3) {
  320. null == this.minDataValue && null == this.maxDataValue && null == this.minSize && null == this.maxSize ? e3 && Array.isArray(e3) && (e3 = e3.filter((e4) => !!e4)).sort((e4, t5) => e4.value - t5.value) : e3 && (s.getLogger(this.declaredClass).warn("cannot set stops when one of minDataValue, maxDataValue, minSize or maxSize is not null."), e3 = null), this._set("stops", e3);
  321. }
  322. get transformationType() {
  323. return a(this, this.inputValueType);
  324. }
  325. readValueExpression(e3, t5) {
  326. return e3 || t5.expression && "$view.scale";
  327. }
  328. writeValueExpressionWebScene(e3, i5, s5, r2) {
  329. if ("$view.scale" === e3) {
  330. if (r2 && r2.messages) {
  331. const e4 = this.index, i6 = "string" == typeof e4 ? e4 : `visualVariables[${e4}]`;
  332. r2.messages.push(new s2("property:unsupported", this.type + "VisualVariable.valueExpression = '$view.scale' is not supported in Web Scene. Please remove this property to save the Web Scene.", { instance: this, propertyName: i6 + ".valueExpression", context: r2 }));
  333. }
  334. } else
  335. i5[s5] = e3;
  336. }
  337. readValueUnit(e3) {
  338. return e3 ? g2.read(e3) : null;
  339. }
  340. clone() {
  341. return new z({ axis: this.axis, field: this.field, valueExpression: this.valueExpression, valueExpressionTitle: this.valueExpressionTitle, maxDataValue: this.maxDataValue, maxSize: e2(this.maxSize) ? this.maxSize.clone() : this.maxSize, minDataValue: this.minDataValue, minSize: e2(this.minSize) ? this.minSize.clone() : this.minSize, normalizationField: this.normalizationField, stops: this.stops && this.stops.map((e3) => e3.clone()), target: this.target, useSymbolValue: this.useSymbolValue, valueRepresentation: this.valueRepresentation, valueUnit: this.valueUnit, legendOptions: this.legendOptions && this.legendOptions.clone() });
  342. }
  343. flipSizes() {
  344. if (this.transformationType === i.ClampedLinear) {
  345. const { minSize: e3, maxSize: t5 } = this;
  346. return this.minSize = t5, this.maxSize = e3, this;
  347. }
  348. if (this.transformationType === i.Stops) {
  349. const e3 = this.stops;
  350. if (!e3)
  351. return this;
  352. const t5 = e3.map((e4) => e4.size).reverse(), i5 = e3.length;
  353. for (let s5 = 0; s5 < i5; s5++)
  354. e3[s5].size = t5[s5];
  355. return this;
  356. }
  357. return this;
  358. }
  359. getAttributeHash() {
  360. return `${super.getAttributeHash()}-${this.target}-${this.normalizationField}`;
  361. }
  362. _interpolateData() {
  363. return this.stops && this.stops.map((e3) => e3.value || 0);
  364. }
  365. };
  366. e([y2({ readOnly: true })], V.prototype, "cache", null), e([y2({ type: v3.apiValues, json: { type: v3.jsonValues, origins: { "web-map": { read: false } }, read: v3.read, write: v3.write } })], V.prototype, "axis", void 0), e([y2({ type: String, value: null, json: { read: false } })], V.prototype, "expression", null), e([y2()], V.prototype, "index", null), e([y2({ type: String, readOnly: true })], V.prototype, "inputValueType", null), e([y2({ type: a4, json: { write: true } })], V.prototype, "legendOptions", void 0), e([y2({ type: Number, value: null, json: { write: true } })], V.prototype, "maxDataValue", null), e([y2({ type: Number, value: null, json: { write: true } })], V.prototype, "maxSize", null), e([s4("maxSize")], V.prototype, "castMaxSize", null), e([o("maxSize")], V.prototype, "readMaxSize", null), e([y2({ type: Number, value: null, json: { write: true } })], V.prototype, "minDataValue", null), e([y2({ type: Number, value: null, json: { write: true } })], V.prototype, "minSize", null), e([s4("minSize")], V.prototype, "castMinSize", null), e([o("minSize")], V.prototype, "readMinSize", null), e([y2({ type: String, json: { write: true } })], V.prototype, "normalizationField", void 0), e([y2({ readOnly: true })], V.prototype, "arcadeRequired", null), e([y2({ type: String })], V.prototype, "scaleBy", void 0), e([y2({ type: [l3], value: null, json: { write: true } })], V.prototype, "stops", null), e([y2({ type: ["outline"], json: { write: true } })], V.prototype, "target", void 0), e([y2({ type: String, readOnly: true })], V.prototype, "transformationType", null), e([y2({ type: ["size"], json: { type: ["sizeInfo"] } })], V.prototype, "type", void 0), e([y2({ type: Boolean, json: { write: true, origins: { "web-map": { read: false } } } })], V.prototype, "useSymbolValue", void 0), e([y2({ type: String, json: { write: true } })], V.prototype, "valueExpression", void 0), e([o("valueExpression", ["valueExpression", "expression"])], V.prototype, "readValueExpression", null), e([r("web-scene", "valueExpression")], V.prototype, "writeValueExpressionWebScene", null), e([y2({ type: ["radius", "diameter", "area", "width", "distance"], json: { write: true } })], V.prototype, "valueRepresentation", void 0), e([y2({ type: g2.apiValues, json: { write: g2.write, origins: { "web-map": { read: false }, "web-scene": { write: true } } } })], V.prototype, "valueUnit", void 0), e([o("valueUnit")], V.prototype, "readValueUnit", null), V = z = e([n("esri.renderers.visualVariables.SizeVariable")], V);
  367. var j2 = V;
  368. export {
  369. j,
  370. c3 as c,
  371. l3 as l,
  372. j2
  373. };
  374. //# sourceMappingURL=chunk-ZOO4I2U4.js.map