1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2025-12-06 18:18:53 +08:00
This commit is contained in:
lana-k
2025-11-01 21:25:56 +01:00
parent e4b35bac0a
commit 0a2af0bba3
3 changed files with 12 additions and 2 deletions

View File

@@ -226,6 +226,7 @@ import NodeColorSettings from '@/components/Graph/NodeColorSettings.vue'
import NodeSizeSettings from '@/components/Graph/NodeSizeSettings.vue' import NodeSizeSettings from '@/components/Graph/NodeSizeSettings.vue'
import EdgeSizeSettings from '@/components/Graph/EdgeSizeSettings.vue' import EdgeSizeSettings from '@/components/Graph/EdgeSizeSettings.vue'
import EdgeColorSettings from '@/components/Graph/EdgeColorSettings.vue' import EdgeColorSettings from '@/components/Graph/EdgeColorSettings.vue'
import events from '@/lib/utils/events'
export default { export default {
components: { components: {
@@ -377,6 +378,14 @@ export default {
this.buildGraph() this.buildGraph()
} }
}, },
'settings.layout.type': {
immediate: true,
handler() {
events.send('viz_graph.render', null, {
layout: this.settings.layout.type
})
}
},
tabLayout: { tabLayout: {
deep: true, deep: true,
handler() { handler() {

View File

@@ -30,7 +30,6 @@
<script> <script>
import 'react-chart-editor/lib/react-chart-editor.css' import 'react-chart-editor/lib/react-chart-editor.css'
import events from '@/lib/utils/events'
import GraphEditor from './GraphEditor.vue' import GraphEditor from './GraphEditor.vue'
import { dataSourceIsValid } from '@/lib/graphHelper' import { dataSourceIsValid } from '@/lib/graphHelper'

View File

@@ -254,6 +254,8 @@ export default {
events.send( events.send(
this.mode === 'chart' || this.plotlyInPivot this.mode === 'chart' || this.plotlyInPivot
? 'viz_plotly.export' ? 'viz_plotly.export'
: this.mode === 'graph'
? 'viz_graph.export'
: 'viz_pivot.export', : 'viz_pivot.export',
null, null,
eventLabels eventLabels