()
| 212 | this.scene = null |
| 213 | }, |
| 214 | mounted () { |
| 215 | setTimeout(() => { |
| 216 | this.init() |
| 217 | }, 10); |
| 218 | Object.keys(this.option) |
| 219 | .filter(_ => !["data"].includes(_)) |
| 220 | .forEach(_ => { |
| 221 | this.$watch(vm => vm.option[_], (newValue) => { |
| 222 | vm.updateStyle(this.pointLayer, _, newValue) |
| 223 | this.scene && this.scene.render() |
| 224 | }); |
| 225 | }); |
| 226 | }, |
| 227 | methods: { |
| 228 | updateStyle () { |
| 229 | if (this.pointLayer) { |
nothing calls this directly
no test coverage detected