@kizmann/nano-ui 0.7.14 → 0.7.17

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kizmann/nano-ui",
3
- "version": "0.7.14",
3
+ "version": "0.7.17",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "author": "Eduard Kizmann <kizmann@protonmail.ch>",
@@ -368,6 +368,13 @@ export default {
368
368
  this.filterVirtuals();
369
369
  },
370
370
 
371
+ expanded(value)
372
+ {
373
+ this.tempExpanded = value;
374
+
375
+ this.filterVirtuals();
376
+ },
377
+
371
378
  selected(value)
372
379
  {
373
380
  this.tempSelected = value;
@@ -75,18 +75,16 @@ export default {
75
75
  if ( this.NDraggable.draggable ) {
76
76
  this.timer = setTimeout(() => {
77
77
  this.NDraggable.drag.bindNode(this);
78
- }, 50);
78
+ }, 10);
79
79
  }
80
80
 
81
81
  this.init = true;
82
- }, 40);
82
+ }, 5);
83
83
  },
84
84
 
85
85
  beforeUnmount()
86
86
  {
87
- if ( ! this.init ) {
88
- clearTimeout(this.timer);
89
- }
87
+ clearTimeout(this.timer);
90
88
 
91
89
  this.NDraggable.drag.unbindNode(this);
92
90
  },
@@ -1,4 +1,4 @@
1
- import { Arr, Map } from "@kizmann/pico-js";
1
+ import { Arr, Map, Any } from "@kizmann/pico-js";
2
2
 
3
3
  export default {
4
4
 
@@ -44,6 +44,20 @@ export default {
44
44
  return { init: false, callbacks: [], tempMap: null };
45
45
  },
46
46
 
47
+ watch: {
48
+
49
+ lat()
50
+ {
51
+ Any.delay(() => this.tempMap.focusMarkers(), 100);
52
+ },
53
+
54
+ lng()
55
+ {
56
+ Any.delay(() => this.tempMap.focusMarkers(), 100);
57
+ }
58
+
59
+ },
60
+
47
61
  mounted()
48
62
  {
49
63
  this.tempMap = new Map(this.$el, {
@@ -54,18 +54,18 @@ export default {
54
54
 
55
55
  data()
56
56
  {
57
- return { init: false };
57
+ return { init: true };
58
58
  },
59
59
 
60
- mounted()
61
- {
62
- this.timer = setTimeout(() => this.init = true, 5);
63
- },
64
-
65
- beforeUnmount()
66
- {
67
- clearTimeout(this.timer);
68
- },
60
+ // mounted()
61
+ // {
62
+ // this.timer = setTimeout(() => this.init = true, 5);
63
+ // },
64
+ //
65
+ // beforeUnmount()
66
+ // {
67
+ // clearTimeout(this.timer);
68
+ // },
69
69
 
70
70
  methods: {
71
71
 
@@ -99,7 +99,7 @@ export default {
99
99
  framerate: {
100
100
  default()
101
101
  {
102
- return 30;
102
+ return 60;
103
103
  },
104
104
  type: [Number]
105
105
  },
@@ -155,7 +155,7 @@ export default {
155
155
  bindAdaptScroll()
156
156
  {
157
157
  this.refreshScroll = setInterval(this.onScrollupdate,
158
- 500 / this.framerate);
158
+ 1000 / this.framerate);
159
159
  },
160
160
 
161
161
  unbindAdaptScroll()