layer-dxi.js 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385
  1. "use strict";
  2. var __extends = (this && this.__extends) || (function () {
  3. var extendStatics = Object.setPrototypeOf ||
  4. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  5. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  6. return function (d, b) {
  7. extendStatics(d, b);
  8. function __() { this.constructor = d; }
  9. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  10. };
  11. })();
  12. /*!
  13. * devextreme-angular
  14. * Version: 19.1.16
  15. * Build date: Tue Oct 18 2022
  16. *
  17. * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
  18. *
  19. * This software may be modified and distributed under the terms
  20. * of the MIT license. See the LICENSE file in the root of the project for details.
  21. *
  22. * https://github.com/DevExpress/devextreme-angular
  23. */
  24. Object.defineProperty(exports, "__esModule", { value: true });
  25. var core_1 = require("@angular/core");
  26. var nested_option_1 = require("../../core/nested-option");
  27. var nested_option_2 = require("../../core/nested-option");
  28. var DxiLayerComponent = (function (_super) {
  29. __extends(DxiLayerComponent, _super);
  30. function DxiLayerComponent(parentOptionHost, optionHost) {
  31. var _this = _super.call(this) || this;
  32. parentOptionHost.setNestedOption(_this);
  33. optionHost.setHost(_this, _this._fullOptionPath.bind(_this));
  34. return _this;
  35. }
  36. Object.defineProperty(DxiLayerComponent.prototype, "borderColor", {
  37. get: function () {
  38. return this._getOption('borderColor');
  39. },
  40. set: function (value) {
  41. this._setOption('borderColor', value);
  42. },
  43. enumerable: true,
  44. configurable: true
  45. });
  46. Object.defineProperty(DxiLayerComponent.prototype, "borderWidth", {
  47. get: function () {
  48. return this._getOption('borderWidth');
  49. },
  50. set: function (value) {
  51. this._setOption('borderWidth', value);
  52. },
  53. enumerable: true,
  54. configurable: true
  55. });
  56. Object.defineProperty(DxiLayerComponent.prototype, "color", {
  57. get: function () {
  58. return this._getOption('color');
  59. },
  60. set: function (value) {
  61. this._setOption('color', value);
  62. },
  63. enumerable: true,
  64. configurable: true
  65. });
  66. Object.defineProperty(DxiLayerComponent.prototype, "colorGroupingField", {
  67. get: function () {
  68. return this._getOption('colorGroupingField');
  69. },
  70. set: function (value) {
  71. this._setOption('colorGroupingField', value);
  72. },
  73. enumerable: true,
  74. configurable: true
  75. });
  76. Object.defineProperty(DxiLayerComponent.prototype, "colorGroups", {
  77. get: function () {
  78. return this._getOption('colorGroups');
  79. },
  80. set: function (value) {
  81. this._setOption('colorGroups', value);
  82. },
  83. enumerable: true,
  84. configurable: true
  85. });
  86. Object.defineProperty(DxiLayerComponent.prototype, "customize", {
  87. get: function () {
  88. return this._getOption('customize');
  89. },
  90. set: function (value) {
  91. this._setOption('customize', value);
  92. },
  93. enumerable: true,
  94. configurable: true
  95. });
  96. Object.defineProperty(DxiLayerComponent.prototype, "dataField", {
  97. get: function () {
  98. return this._getOption('dataField');
  99. },
  100. set: function (value) {
  101. this._setOption('dataField', value);
  102. },
  103. enumerable: true,
  104. configurable: true
  105. });
  106. Object.defineProperty(DxiLayerComponent.prototype, "dataSource", {
  107. get: function () {
  108. return this._getOption('dataSource');
  109. },
  110. set: function (value) {
  111. this._setOption('dataSource', value);
  112. },
  113. enumerable: true,
  114. configurable: true
  115. });
  116. Object.defineProperty(DxiLayerComponent.prototype, "elementType", {
  117. get: function () {
  118. return this._getOption('elementType');
  119. },
  120. set: function (value) {
  121. this._setOption('elementType', value);
  122. },
  123. enumerable: true,
  124. configurable: true
  125. });
  126. Object.defineProperty(DxiLayerComponent.prototype, "hoveredBorderColor", {
  127. get: function () {
  128. return this._getOption('hoveredBorderColor');
  129. },
  130. set: function (value) {
  131. this._setOption('hoveredBorderColor', value);
  132. },
  133. enumerable: true,
  134. configurable: true
  135. });
  136. Object.defineProperty(DxiLayerComponent.prototype, "hoveredBorderWidth", {
  137. get: function () {
  138. return this._getOption('hoveredBorderWidth');
  139. },
  140. set: function (value) {
  141. this._setOption('hoveredBorderWidth', value);
  142. },
  143. enumerable: true,
  144. configurable: true
  145. });
  146. Object.defineProperty(DxiLayerComponent.prototype, "hoveredColor", {
  147. get: function () {
  148. return this._getOption('hoveredColor');
  149. },
  150. set: function (value) {
  151. this._setOption('hoveredColor', value);
  152. },
  153. enumerable: true,
  154. configurable: true
  155. });
  156. Object.defineProperty(DxiLayerComponent.prototype, "hoverEnabled", {
  157. get: function () {
  158. return this._getOption('hoverEnabled');
  159. },
  160. set: function (value) {
  161. this._setOption('hoverEnabled', value);
  162. },
  163. enumerable: true,
  164. configurable: true
  165. });
  166. Object.defineProperty(DxiLayerComponent.prototype, "label", {
  167. get: function () {
  168. return this._getOption('label');
  169. },
  170. set: function (value) {
  171. this._setOption('label', value);
  172. },
  173. enumerable: true,
  174. configurable: true
  175. });
  176. Object.defineProperty(DxiLayerComponent.prototype, "maxSize", {
  177. get: function () {
  178. return this._getOption('maxSize');
  179. },
  180. set: function (value) {
  181. this._setOption('maxSize', value);
  182. },
  183. enumerable: true,
  184. configurable: true
  185. });
  186. Object.defineProperty(DxiLayerComponent.prototype, "minSize", {
  187. get: function () {
  188. return this._getOption('minSize');
  189. },
  190. set: function (value) {
  191. this._setOption('minSize', value);
  192. },
  193. enumerable: true,
  194. configurable: true
  195. });
  196. Object.defineProperty(DxiLayerComponent.prototype, "name", {
  197. get: function () {
  198. return this._getOption('name');
  199. },
  200. set: function (value) {
  201. this._setOption('name', value);
  202. },
  203. enumerable: true,
  204. configurable: true
  205. });
  206. Object.defineProperty(DxiLayerComponent.prototype, "opacity", {
  207. get: function () {
  208. return this._getOption('opacity');
  209. },
  210. set: function (value) {
  211. this._setOption('opacity', value);
  212. },
  213. enumerable: true,
  214. configurable: true
  215. });
  216. Object.defineProperty(DxiLayerComponent.prototype, "palette", {
  217. get: function () {
  218. return this._getOption('palette');
  219. },
  220. set: function (value) {
  221. this._setOption('palette', value);
  222. },
  223. enumerable: true,
  224. configurable: true
  225. });
  226. Object.defineProperty(DxiLayerComponent.prototype, "paletteSize", {
  227. get: function () {
  228. return this._getOption('paletteSize');
  229. },
  230. set: function (value) {
  231. this._setOption('paletteSize', value);
  232. },
  233. enumerable: true,
  234. configurable: true
  235. });
  236. Object.defineProperty(DxiLayerComponent.prototype, "selectedBorderColor", {
  237. get: function () {
  238. return this._getOption('selectedBorderColor');
  239. },
  240. set: function (value) {
  241. this._setOption('selectedBorderColor', value);
  242. },
  243. enumerable: true,
  244. configurable: true
  245. });
  246. Object.defineProperty(DxiLayerComponent.prototype, "selectedBorderWidth", {
  247. get: function () {
  248. return this._getOption('selectedBorderWidth');
  249. },
  250. set: function (value) {
  251. this._setOption('selectedBorderWidth', value);
  252. },
  253. enumerable: true,
  254. configurable: true
  255. });
  256. Object.defineProperty(DxiLayerComponent.prototype, "selectedColor", {
  257. get: function () {
  258. return this._getOption('selectedColor');
  259. },
  260. set: function (value) {
  261. this._setOption('selectedColor', value);
  262. },
  263. enumerable: true,
  264. configurable: true
  265. });
  266. Object.defineProperty(DxiLayerComponent.prototype, "selectionMode", {
  267. get: function () {
  268. return this._getOption('selectionMode');
  269. },
  270. set: function (value) {
  271. this._setOption('selectionMode', value);
  272. },
  273. enumerable: true,
  274. configurable: true
  275. });
  276. Object.defineProperty(DxiLayerComponent.prototype, "size", {
  277. get: function () {
  278. return this._getOption('size');
  279. },
  280. set: function (value) {
  281. this._setOption('size', value);
  282. },
  283. enumerable: true,
  284. configurable: true
  285. });
  286. Object.defineProperty(DxiLayerComponent.prototype, "sizeGroupingField", {
  287. get: function () {
  288. return this._getOption('sizeGroupingField');
  289. },
  290. set: function (value) {
  291. this._setOption('sizeGroupingField', value);
  292. },
  293. enumerable: true,
  294. configurable: true
  295. });
  296. Object.defineProperty(DxiLayerComponent.prototype, "sizeGroups", {
  297. get: function () {
  298. return this._getOption('sizeGroups');
  299. },
  300. set: function (value) {
  301. this._setOption('sizeGroups', value);
  302. },
  303. enumerable: true,
  304. configurable: true
  305. });
  306. Object.defineProperty(DxiLayerComponent.prototype, "type", {
  307. get: function () {
  308. return this._getOption('type');
  309. },
  310. set: function (value) {
  311. this._setOption('type', value);
  312. },
  313. enumerable: true,
  314. configurable: true
  315. });
  316. Object.defineProperty(DxiLayerComponent.prototype, "_optionPath", {
  317. get: function () {
  318. return 'layers';
  319. },
  320. enumerable: true,
  321. configurable: true
  322. });
  323. DxiLayerComponent.decorators = [
  324. { type: core_1.Component, args: [{
  325. selector: 'dxi-layer',
  326. template: '',
  327. styles: [''],
  328. providers: [nested_option_1.NestedOptionHost]
  329. },] },
  330. ];
  331. /** @nocollapse */
  332. DxiLayerComponent.ctorParameters = function () { return [
  333. { type: nested_option_1.NestedOptionHost, decorators: [{ type: core_1.SkipSelf }, { type: core_1.Host },] },
  334. { type: nested_option_1.NestedOptionHost, decorators: [{ type: core_1.Host },] },
  335. ]; };
  336. DxiLayerComponent.propDecorators = {
  337. "borderColor": [{ type: core_1.Input },],
  338. "borderWidth": [{ type: core_1.Input },],
  339. "color": [{ type: core_1.Input },],
  340. "colorGroupingField": [{ type: core_1.Input },],
  341. "colorGroups": [{ type: core_1.Input },],
  342. "customize": [{ type: core_1.Input },],
  343. "dataField": [{ type: core_1.Input },],
  344. "dataSource": [{ type: core_1.Input },],
  345. "elementType": [{ type: core_1.Input },],
  346. "hoveredBorderColor": [{ type: core_1.Input },],
  347. "hoveredBorderWidth": [{ type: core_1.Input },],
  348. "hoveredColor": [{ type: core_1.Input },],
  349. "hoverEnabled": [{ type: core_1.Input },],
  350. "label": [{ type: core_1.Input },],
  351. "maxSize": [{ type: core_1.Input },],
  352. "minSize": [{ type: core_1.Input },],
  353. "name": [{ type: core_1.Input },],
  354. "opacity": [{ type: core_1.Input },],
  355. "palette": [{ type: core_1.Input },],
  356. "paletteSize": [{ type: core_1.Input },],
  357. "selectedBorderColor": [{ type: core_1.Input },],
  358. "selectedBorderWidth": [{ type: core_1.Input },],
  359. "selectedColor": [{ type: core_1.Input },],
  360. "selectionMode": [{ type: core_1.Input },],
  361. "size": [{ type: core_1.Input },],
  362. "sizeGroupingField": [{ type: core_1.Input },],
  363. "sizeGroups": [{ type: core_1.Input },],
  364. "type": [{ type: core_1.Input },],
  365. };
  366. return DxiLayerComponent;
  367. }(nested_option_2.CollectionNestedOption));
  368. exports.DxiLayerComponent = DxiLayerComponent;
  369. var DxiLayerModule = (function () {
  370. function DxiLayerModule() {
  371. }
  372. DxiLayerModule.decorators = [
  373. { type: core_1.NgModule, args: [{
  374. declarations: [
  375. DxiLayerComponent
  376. ],
  377. exports: [
  378. DxiLayerComponent
  379. ],
  380. },] },
  381. ];
  382. return DxiLayerModule;
  383. }());
  384. exports.DxiLayerModule = DxiLayerModule;
  385. //# sourceMappingURL=layer-dxi.js.map