mirror of
https://github.com/lana-k/sqliteviz.git
synced 2025-12-07 02:28:54 +08:00
events
This commit is contained in:
@@ -226,6 +226,7 @@ import NodeColorSettings from '@/components/Graph/NodeColorSettings.vue'
|
||||
import NodeSizeSettings from '@/components/Graph/NodeSizeSettings.vue'
|
||||
import EdgeSizeSettings from '@/components/Graph/EdgeSizeSettings.vue'
|
||||
import EdgeColorSettings from '@/components/Graph/EdgeColorSettings.vue'
|
||||
import events from '@/lib/utils/events'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
@@ -377,6 +378,14 @@ export default {
|
||||
this.buildGraph()
|
||||
}
|
||||
},
|
||||
'settings.layout.type': {
|
||||
immediate: true,
|
||||
handler() {
|
||||
events.send('viz_graph.render', null, {
|
||||
layout: this.settings.layout.type
|
||||
})
|
||||
}
|
||||
},
|
||||
tabLayout: {
|
||||
deep: true,
|
||||
handler() {
|
||||
|
||||
@@ -30,7 +30,6 @@
|
||||
|
||||
<script>
|
||||
import 'react-chart-editor/lib/react-chart-editor.css'
|
||||
import events from '@/lib/utils/events'
|
||||
import GraphEditor from './GraphEditor.vue'
|
||||
import { dataSourceIsValid } from '@/lib/graphHelper'
|
||||
|
||||
|
||||
@@ -254,7 +254,9 @@ export default {
|
||||
events.send(
|
||||
this.mode === 'chart' || this.plotlyInPivot
|
||||
? 'viz_plotly.export'
|
||||
: 'viz_pivot.export',
|
||||
: this.mode === 'graph'
|
||||
? 'viz_graph.export'
|
||||
: 'viz_pivot.export',
|
||||
null,
|
||||
eventLabels
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user