xy-map 1.1.32 → 1.1.34

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xy-map",
3
- "version": "1.1.32",
3
+ "version": "1.1.34",
4
4
  "description": "雄越地图",
5
5
  "main": "xy-map.umd.min.js",
6
6
  "scripts": {
package/xy-map.common.js CHANGED
@@ -224,7 +224,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".mapLoad[data-v-fa3ebcb8]{position:abs
224
224
 
225
225
  /***/ }),
226
226
 
227
- /***/ 7237:
227
+ /***/ 2071:
228
228
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
229
229
 
230
230
  "use strict";
@@ -238,7 +238,7 @@ __webpack_require__.r(__webpack_exports__);
238
238
 
239
239
  var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
240
240
  // Module
241
- ___CSS_LOADER_EXPORT___.push([module.id, ".snow[data-v-59d7e867]{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;background-color:rgba(145,147,184,.103)}", ""]);
241
+ ___CSS_LOADER_EXPORT___.push([module.id, ".snow[data-v-20664206]{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;background-color:rgba(145,147,184,.103)}", ""]);
242
242
  // Exports
243
243
  /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
244
244
 
@@ -42912,19 +42912,19 @@ var update = add("7474eb16", content, true, {"sourceMap":false,"shadowMode":fals
42912
42912
 
42913
42913
  /***/ }),
42914
42914
 
42915
- /***/ 1901:
42915
+ /***/ 6916:
42916
42916
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
42917
42917
 
42918
42918
  // style-loader: Adds some css to the DOM by adding a <style> tag
42919
42919
 
42920
42920
  // load the styles
42921
- var content = __webpack_require__(7237);
42921
+ var content = __webpack_require__(2071);
42922
42922
  if(content.__esModule) content = content.default;
42923
42923
  if(typeof content === 'string') content = [[module.id, content, '']];
42924
42924
  if(content.locals) module.exports = content.locals;
42925
42925
  // add the styles to the DOM
42926
42926
  var add = (__webpack_require__(7037)/* ["default"] */ .Z)
42927
- var update = add("933c13ea", content, true, {"sourceMap":false,"shadowMode":false});
42927
+ var update = add("4a7b31d4", content, true, {"sourceMap":false,"shadowMode":false});
42928
42928
 
42929
42929
  /***/ }),
42930
42930
 
@@ -44186,9 +44186,10 @@ class mapSdk {
44186
44186
  * @param {*} position
44187
44187
  * @param {*} html
44188
44188
  * @param {*} option { offset: 25 }
44189
+ * @param {*} isClear // 是否情况上次的气泡
44189
44190
  */
44190
- addPopup(position, html, option) {
44191
- this.removePopup();
44191
+ addPopup(position, html, option, isClear = true) {
44192
+ if (isClear) this.removePopup();
44192
44193
  popup = new (mapbox_gl_default()).Popup(option).setLngLat(position).setHTML(html).addTo(this.map);
44193
44194
  popup.on('close', e => {
44194
44195
  popup = null;
@@ -118333,8 +118334,8 @@ var component = normalizeComponent(
118333
118334
  )
118334
118335
 
118335
118336
  /* harmony default export */ var mapMarker = (component.exports);
118336
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/components/mapRain.vue?vue&type=template&id=59d7e867&scoped=true&
118337
- var mapRainvue_type_template_id_59d7e867_scoped_true_render = function render() {
118337
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/components/mapRain.vue?vue&type=template&id=20664206&scoped=true&
118338
+ var mapRainvue_type_template_id_20664206_scoped_true_render = function render() {
118338
118339
  var _vm = this,
118339
118340
  _c = _vm._self._c;
118340
118341
  return _c('canvas', {
@@ -118344,14 +118345,14 @@ var mapRainvue_type_template_id_59d7e867_scoped_true_render = function render()
118344
118345
  }
118345
118346
  }, [_vm._v("不支持canvas")]);
118346
118347
  };
118347
- var mapRainvue_type_template_id_59d7e867_scoped_true_staticRenderFns = [];
118348
+ var mapRainvue_type_template_id_20664206_scoped_true_staticRenderFns = [];
118348
118349
 
118349
118350
  ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/components/mapRain.vue?vue&type=script&lang=js&
118350
118351
  /* harmony default export */ var mapRainvue_type_script_lang_js_ = ({
118351
118352
  props: {
118352
118353
  id: {
118353
118354
  type: String,
118354
- default: 'snow'
118355
+ default: 'rain'
118355
118356
  },
118356
118357
  angle: {
118357
118358
  // 角度
@@ -118366,17 +118367,24 @@ var mapRainvue_type_template_id_59d7e867_scoped_true_staticRenderFns = [];
118366
118367
  len: {
118367
118368
  // 雨滴长度
118368
118369
  type: Number,
118369
- default: 80
118370
+ default: 70
118370
118371
  },
118371
- count: {
118372
- // 雨滴数量
118372
+ lineWidth: {
118373
+ // 雨滴宽度
118373
118374
  type: Number,
118374
- default: 500
118375
+ default: 1.5
118376
+ },
118377
+ isRain: {
118378
+ // 是否下雨
118379
+ type: Boolean,
118380
+ default: true
118375
118381
  }
118376
118382
  },
118377
118383
  data() {
118378
118384
  return {
118379
- timer: ''
118385
+ timer: '',
118386
+ ctx: null,
118387
+ count: 500
118380
118388
  };
118381
118389
  },
118382
118390
  destroyed() {
@@ -118385,61 +118393,77 @@ var mapRainvue_type_template_id_59d7e867_scoped_true_staticRenderFns = [];
118385
118393
  mounted() {
118386
118394
  this.start();
118387
118395
  },
118396
+ watch: {
118397
+ status() {
118398
+ window.clearInterval(this.timer);
118399
+ this.start();
118400
+ }
118401
+ },
118388
118402
  methods: {
118389
118403
  start() {
118404
+ this.$nextTick(() => {
118405
+ const canvas = document.getElementById(this.id);
118406
+ const width = canvas.clientWidth;
118407
+ const height = canvas.clientHeight;
118408
+ if (this.status === 'small') {
118409
+ this.count = 100;
118410
+ }
118411
+ if (this.status === 'default') {
118412
+ this.count = 300;
118413
+ }
118414
+ if (this.status === 'large') {
118415
+ this.count = 1000;
118416
+ }
118417
+ canvas.width = width;
118418
+ canvas.height = height;
118419
+ this.ctx = canvas.getContext('2d');
118420
+ this.timer = setInterval(() => {
118421
+ if (this.isRain) {
118422
+ this.clearCanvas();
118423
+ this.draws();
118424
+ } else {
118425
+ this.clearCanvas();
118426
+ }
118427
+ }, 50);
118428
+ });
118429
+ },
118430
+ draws() {
118390
118431
  const self = this;
118391
- let canvas = document.getElementById(this.id);
118392
- let width = canvas.clientWidth;
118393
- let height = canvas.clientHeight;
118394
- let x2 = this.angle;
118395
- let len = this.len;
118396
- let count = this.count;
118397
- let lineWidth = 1;
118398
- if (this.status === 'small') {
118399
- x2 = 0;
118400
- len = 50;
118401
- count = 100;
118402
- }
118403
- if (this.status === 'large') {
118404
- x2 = -35;
118405
- count = 1000;
118406
- lineWidth = 1.5;
118407
- }
118408
- canvas.width = width;
118409
- canvas.height = height;
118410
- let ctx = canvas.getContext('2d');
118411
- self.timer = setInterval(clearCanvas, 50);
118412
- function clearCanvas() {
118413
- ctx.clearRect(0, 0, width, height);
118414
- draws();
118432
+ const canvas = document.getElementById(this.id);
118433
+ const width = canvas.clientWidth;
118434
+ const height = canvas.clientHeight;
118435
+ for (let i = 1; i <= this.count; i++) {
118436
+ draw(Math.random() * width, Math.random() * height);
118415
118437
  }
118416
118438
  function draw(x, y) {
118439
+ let ctx = self.ctx;
118417
118440
  //canvas写渐变:createLinearGradient(startX,startY,endX,endY)
118418
- let grd = ctx.createLinearGradient(x, y, x + x2, (y + len) * 5);
118441
+ let grd = ctx.createLinearGradient(x, y, x + self.angle, (y + self.len) * 5);
118419
118442
  grd.addColorStop(0, 'rgba(255,255,255,0.1)');
118420
118443
  grd.addColorStop(0.5, 'rgba(105,105,105,0.3)');
118421
118444
  grd.addColorStop(1, 'rgba(255,255,255,0.5)');
118422
118445
  ctx.strokeStyle = grd;
118423
118446
  ctx.beginPath();
118424
118447
  ctx.moveTo(x, y);
118425
- ctx.lineTo(x + x2, y + len);
118426
- ctx.lineWidth = lineWidth;
118448
+ ctx.lineTo(x + self.angle, y + self.len);
118449
+ ctx.lineWidth = self.lineWidth;
118427
118450
  ctx.stroke();
118428
118451
  ctx.closePath();
118429
118452
  }
118430
- function draws() {
118431
- for (let i = 1; i <= count; i++) {
118432
- draw(Math.random() * width, Math.random() * height);
118433
- }
118434
- }
118453
+ },
118454
+ clearCanvas() {
118455
+ const canvas = document.getElementById(this.id);
118456
+ const width = canvas.clientWidth;
118457
+ const height = canvas.clientHeight;
118458
+ this.ctx.clearRect(0, 0, width, height);
118435
118459
  }
118436
118460
  }
118437
118461
  });
118438
118462
  ;// CONCATENATED MODULE: ./src/package/components/mapRain.vue?vue&type=script&lang=js&
118439
118463
  /* harmony default export */ var components_mapRainvue_type_script_lang_js_ = (mapRainvue_type_script_lang_js_);
118440
- // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/components/mapRain.vue?vue&type=style&index=0&id=59d7e867&prod&lang=scss&scoped=true&
118441
- var mapRainvue_type_style_index_0_id_59d7e867_prod_lang_scss_scoped_true_ = __webpack_require__(1901);
118442
- ;// CONCATENATED MODULE: ./src/package/components/mapRain.vue?vue&type=style&index=0&id=59d7e867&prod&lang=scss&scoped=true&
118464
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/components/mapRain.vue?vue&type=style&index=0&id=20664206&prod&lang=scss&scoped=true&
118465
+ var mapRainvue_type_style_index_0_id_20664206_prod_lang_scss_scoped_true_ = __webpack_require__(6916);
118466
+ ;// CONCATENATED MODULE: ./src/package/components/mapRain.vue?vue&type=style&index=0&id=20664206&prod&lang=scss&scoped=true&
118443
118467
 
118444
118468
  ;// CONCATENATED MODULE: ./src/package/components/mapRain.vue
118445
118469
 
@@ -118452,11 +118476,11 @@ var mapRainvue_type_style_index_0_id_59d7e867_prod_lang_scss_scoped_true_ = __we
118452
118476
 
118453
118477
  var mapRain_component = normalizeComponent(
118454
118478
  components_mapRainvue_type_script_lang_js_,
118455
- mapRainvue_type_template_id_59d7e867_scoped_true_render,
118456
- mapRainvue_type_template_id_59d7e867_scoped_true_staticRenderFns,
118479
+ mapRainvue_type_template_id_20664206_scoped_true_render,
118480
+ mapRainvue_type_template_id_20664206_scoped_true_staticRenderFns,
118457
118481
  false,
118458
118482
  null,
118459
- "59d7e867",
118483
+ "20664206",
118460
118484
  null
118461
118485
 
118462
118486
  )
package/xy-map.umd.js CHANGED
@@ -234,7 +234,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".mapLoad[data-v-fa3ebcb8]{position:abs
234
234
 
235
235
  /***/ }),
236
236
 
237
- /***/ 335:
237
+ /***/ 871:
238
238
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
239
239
 
240
240
  "use strict";
@@ -248,7 +248,7 @@ __webpack_require__.r(__webpack_exports__);
248
248
 
249
249
  var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
250
250
  // Module
251
- ___CSS_LOADER_EXPORT___.push([module.id, ".snow[data-v-59d7e867]{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;background-color:rgba(145,147,184,.103)}", ""]);
251
+ ___CSS_LOADER_EXPORT___.push([module.id, ".snow[data-v-20664206]{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;background-color:rgba(145,147,184,.103)}", ""]);
252
252
  // Exports
253
253
  /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
254
254
 
@@ -42922,19 +42922,19 @@ var update = add("5d9c6596", content, true, {"sourceMap":false,"shadowMode":fals
42922
42922
 
42923
42923
  /***/ }),
42924
42924
 
42925
- /***/ 3207:
42925
+ /***/ 354:
42926
42926
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
42927
42927
 
42928
42928
  // style-loader: Adds some css to the DOM by adding a <style> tag
42929
42929
 
42930
42930
  // load the styles
42931
- var content = __webpack_require__(335);
42931
+ var content = __webpack_require__(871);
42932
42932
  if(content.__esModule) content = content.default;
42933
42933
  if(typeof content === 'string') content = [[module.id, content, '']];
42934
42934
  if(content.locals) module.exports = content.locals;
42935
42935
  // add the styles to the DOM
42936
42936
  var add = (__webpack_require__(208)/* ["default"] */ .Z)
42937
- var update = add("c0ed1eea", content, true, {"sourceMap":false,"shadowMode":false});
42937
+ var update = add("33a2ac54", content, true, {"sourceMap":false,"shadowMode":false});
42938
42938
 
42939
42939
  /***/ }),
42940
42940
 
@@ -44204,9 +44204,10 @@ class mapSdk {
44204
44204
  * @param {*} position
44205
44205
  * @param {*} html
44206
44206
  * @param {*} option { offset: 25 }
44207
+ * @param {*} isClear // 是否情况上次的气泡
44207
44208
  */
44208
- addPopup(position, html, option) {
44209
- this.removePopup();
44209
+ addPopup(position, html, option, isClear = true) {
44210
+ if (isClear) this.removePopup();
44210
44211
  popup = new (mapbox_gl_default()).Popup(option).setLngLat(position).setHTML(html).addTo(this.map);
44211
44212
  popup.on('close', e => {
44212
44213
  popup = null;
@@ -118351,8 +118352,8 @@ var component = normalizeComponent(
118351
118352
  )
118352
118353
 
118353
118354
  /* harmony default export */ var mapMarker = (component.exports);
118354
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/components/mapRain.vue?vue&type=template&id=59d7e867&scoped=true&
118355
- var mapRainvue_type_template_id_59d7e867_scoped_true_render = function render() {
118355
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/components/mapRain.vue?vue&type=template&id=20664206&scoped=true&
118356
+ var mapRainvue_type_template_id_20664206_scoped_true_render = function render() {
118356
118357
  var _vm = this,
118357
118358
  _c = _vm._self._c;
118358
118359
  return _c('canvas', {
@@ -118362,14 +118363,14 @@ var mapRainvue_type_template_id_59d7e867_scoped_true_render = function render()
118362
118363
  }
118363
118364
  }, [_vm._v("不支持canvas")]);
118364
118365
  };
118365
- var mapRainvue_type_template_id_59d7e867_scoped_true_staticRenderFns = [];
118366
+ var mapRainvue_type_template_id_20664206_scoped_true_staticRenderFns = [];
118366
118367
 
118367
118368
  ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/components/mapRain.vue?vue&type=script&lang=js&
118368
118369
  /* harmony default export */ var mapRainvue_type_script_lang_js_ = ({
118369
118370
  props: {
118370
118371
  id: {
118371
118372
  type: String,
118372
- default: 'snow'
118373
+ default: 'rain'
118373
118374
  },
118374
118375
  angle: {
118375
118376
  // 角度
@@ -118384,17 +118385,24 @@ var mapRainvue_type_template_id_59d7e867_scoped_true_staticRenderFns = [];
118384
118385
  len: {
118385
118386
  // 雨滴长度
118386
118387
  type: Number,
118387
- default: 80
118388
+ default: 70
118388
118389
  },
118389
- count: {
118390
- // 雨滴数量
118390
+ lineWidth: {
118391
+ // 雨滴宽度
118391
118392
  type: Number,
118392
- default: 500
118393
+ default: 1.5
118394
+ },
118395
+ isRain: {
118396
+ // 是否下雨
118397
+ type: Boolean,
118398
+ default: true
118393
118399
  }
118394
118400
  },
118395
118401
  data() {
118396
118402
  return {
118397
- timer: ''
118403
+ timer: '',
118404
+ ctx: null,
118405
+ count: 500
118398
118406
  };
118399
118407
  },
118400
118408
  destroyed() {
@@ -118403,61 +118411,77 @@ var mapRainvue_type_template_id_59d7e867_scoped_true_staticRenderFns = [];
118403
118411
  mounted() {
118404
118412
  this.start();
118405
118413
  },
118414
+ watch: {
118415
+ status() {
118416
+ window.clearInterval(this.timer);
118417
+ this.start();
118418
+ }
118419
+ },
118406
118420
  methods: {
118407
118421
  start() {
118422
+ this.$nextTick(() => {
118423
+ const canvas = document.getElementById(this.id);
118424
+ const width = canvas.clientWidth;
118425
+ const height = canvas.clientHeight;
118426
+ if (this.status === 'small') {
118427
+ this.count = 100;
118428
+ }
118429
+ if (this.status === 'default') {
118430
+ this.count = 300;
118431
+ }
118432
+ if (this.status === 'large') {
118433
+ this.count = 1000;
118434
+ }
118435
+ canvas.width = width;
118436
+ canvas.height = height;
118437
+ this.ctx = canvas.getContext('2d');
118438
+ this.timer = setInterval(() => {
118439
+ if (this.isRain) {
118440
+ this.clearCanvas();
118441
+ this.draws();
118442
+ } else {
118443
+ this.clearCanvas();
118444
+ }
118445
+ }, 50);
118446
+ });
118447
+ },
118448
+ draws() {
118408
118449
  const self = this;
118409
- let canvas = document.getElementById(this.id);
118410
- let width = canvas.clientWidth;
118411
- let height = canvas.clientHeight;
118412
- let x2 = this.angle;
118413
- let len = this.len;
118414
- let count = this.count;
118415
- let lineWidth = 1;
118416
- if (this.status === 'small') {
118417
- x2 = 0;
118418
- len = 50;
118419
- count = 100;
118420
- }
118421
- if (this.status === 'large') {
118422
- x2 = -35;
118423
- count = 1000;
118424
- lineWidth = 1.5;
118425
- }
118426
- canvas.width = width;
118427
- canvas.height = height;
118428
- let ctx = canvas.getContext('2d');
118429
- self.timer = setInterval(clearCanvas, 50);
118430
- function clearCanvas() {
118431
- ctx.clearRect(0, 0, width, height);
118432
- draws();
118450
+ const canvas = document.getElementById(this.id);
118451
+ const width = canvas.clientWidth;
118452
+ const height = canvas.clientHeight;
118453
+ for (let i = 1; i <= this.count; i++) {
118454
+ draw(Math.random() * width, Math.random() * height);
118433
118455
  }
118434
118456
  function draw(x, y) {
118457
+ let ctx = self.ctx;
118435
118458
  //canvas写渐变:createLinearGradient(startX,startY,endX,endY)
118436
- let grd = ctx.createLinearGradient(x, y, x + x2, (y + len) * 5);
118459
+ let grd = ctx.createLinearGradient(x, y, x + self.angle, (y + self.len) * 5);
118437
118460
  grd.addColorStop(0, 'rgba(255,255,255,0.1)');
118438
118461
  grd.addColorStop(0.5, 'rgba(105,105,105,0.3)');
118439
118462
  grd.addColorStop(1, 'rgba(255,255,255,0.5)');
118440
118463
  ctx.strokeStyle = grd;
118441
118464
  ctx.beginPath();
118442
118465
  ctx.moveTo(x, y);
118443
- ctx.lineTo(x + x2, y + len);
118444
- ctx.lineWidth = lineWidth;
118466
+ ctx.lineTo(x + self.angle, y + self.len);
118467
+ ctx.lineWidth = self.lineWidth;
118445
118468
  ctx.stroke();
118446
118469
  ctx.closePath();
118447
118470
  }
118448
- function draws() {
118449
- for (let i = 1; i <= count; i++) {
118450
- draw(Math.random() * width, Math.random() * height);
118451
- }
118452
- }
118471
+ },
118472
+ clearCanvas() {
118473
+ const canvas = document.getElementById(this.id);
118474
+ const width = canvas.clientWidth;
118475
+ const height = canvas.clientHeight;
118476
+ this.ctx.clearRect(0, 0, width, height);
118453
118477
  }
118454
118478
  }
118455
118479
  });
118456
118480
  ;// CONCATENATED MODULE: ./src/package/components/mapRain.vue?vue&type=script&lang=js&
118457
118481
  /* harmony default export */ var components_mapRainvue_type_script_lang_js_ = (mapRainvue_type_script_lang_js_);
118458
- // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[4]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/components/mapRain.vue?vue&type=style&index=0&id=59d7e867&prod&lang=scss&scoped=true&
118459
- var mapRainvue_type_style_index_0_id_59d7e867_prod_lang_scss_scoped_true_ = __webpack_require__(3207);
118460
- ;// CONCATENATED MODULE: ./src/package/components/mapRain.vue?vue&type=style&index=0&id=59d7e867&prod&lang=scss&scoped=true&
118482
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[4]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/components/mapRain.vue?vue&type=style&index=0&id=20664206&prod&lang=scss&scoped=true&
118483
+ var mapRainvue_type_style_index_0_id_20664206_prod_lang_scss_scoped_true_ = __webpack_require__(354);
118484
+ ;// CONCATENATED MODULE: ./src/package/components/mapRain.vue?vue&type=style&index=0&id=20664206&prod&lang=scss&scoped=true&
118461
118485
 
118462
118486
  ;// CONCATENATED MODULE: ./src/package/components/mapRain.vue
118463
118487
 
@@ -118470,11 +118494,11 @@ var mapRainvue_type_style_index_0_id_59d7e867_prod_lang_scss_scoped_true_ = __we
118470
118494
 
118471
118495
  var mapRain_component = normalizeComponent(
118472
118496
  components_mapRainvue_type_script_lang_js_,
118473
- mapRainvue_type_template_id_59d7e867_scoped_true_render,
118474
- mapRainvue_type_template_id_59d7e867_scoped_true_staticRenderFns,
118497
+ mapRainvue_type_template_id_20664206_scoped_true_render,
118498
+ mapRainvue_type_template_id_20664206_scoped_true_staticRenderFns,
118475
118499
  false,
118476
118500
  null,
118477
- "59d7e867",
118501
+ "20664206",
118478
118502
  null
118479
118503
 
118480
118504
  )