Skip to content

Commit b6a1266

Browse files
committed
#43 fix lint errors
1 parent 713f5ac commit b6a1266

File tree

6 files changed

+134
-29
lines changed

6 files changed

+134
-29
lines changed

src/components/Graph/CirclePackLayoutSettings.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,13 @@
4040
import { applyPureReactInVue } from 'veaury'
4141
import Field from 'react-chart-editor/lib/components/fields/Field'
4242
import NumericInput from 'react-chart-editor/lib/components/widgets/NumericInput'
43-
import Dropdown from 'react-chart-editor/lib/components/widgets/Dropdown'
4443
import Multiselect from 'vue-multiselect'
4544
import 'react-chart-editor/lib/react-chart-editor.css'
4645
4746
export default {
4847
components: {
4948
Field: applyPureReactInVue(Field),
5049
NumericInput: applyPureReactInVue(NumericInput),
51-
Dropdown: applyPureReactInVue(Dropdown),
5250
Multiselect
5351
},
5452
props: {

src/components/Graph/GraphEditor.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
documentation</a
1212
>.
1313
</Field>
14-
<Field label="Object type" ref="objectTypeField">
14+
<Field ref="objectTypeField" label="Object type">
1515
<Dropdown
1616
:options="keysOptions"
1717
:value="settings.structure.objectType"
@@ -172,15 +172,15 @@
172172
<div class="force-atlas-buttons">
173173
<Button
174174
variant="secondary"
175-
@click="resetFA2LayoutSettings"
176175
class="test_fa2_reset"
176+
@click="resetFA2LayoutSettings"
177177
>
178178
Reset
179179
</Button>
180180
<Button
181181
variant="primary"
182-
@click="toggleFA2Layout"
183182
class="test_fa2_toggle"
183+
@click="toggleFA2Layout"
184184
>
185185
<template #node:icon>
186186
<div
@@ -225,6 +225,7 @@ import Button from 'react-chart-editor/lib/components/widgets/Button'
225225
import Field from 'react-chart-editor/lib/components/fields/Field'
226226
import RandomLayoutSettings from '@/components/Graph/RandomLayoutSettings.vue'
227227
import ForceAtlasLayoutSettings from '@/components/Graph/ForceAtlasLayoutSettings.vue'
228+
// eslint-disable-next-line max-len
228229
import AdvancedForceAtlasLayoutSettings from '@/components/Graph/AdvancedForceAtlasLayoutSettings.vue'
229230
import CirclePackLayoutSettings from '@/components/Graph/CirclePackLayoutSettings.vue'
230231
import FA2Layout from 'graphology-layout-forceatlas2/worker'

src/components/svg/graph.vue

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,33 @@
77
xmlns="http://www.w3.org/2000/svg"
88
>
99
<path
10-
d="M5 4C5 5.10457 4.10457 6 3 6C1.89543 6 1 5.10457 1 4C1 2.89543 1.89543 2 3 2C4.10457 2 5 2.89543 5 4Z"
10+
d="M5 4C5 5.10457 4.10457 6 3 6C1.89543 6 1 5.10457 1 4C1 2.89543
11+
1.89543 2 3 2C4.10457 2 5 2.89543 5 4Z"
1112
fill="#A2B1C6"
1213
/>
1314
<path
14-
d="M17 7.5C17 8.88071 15.8807 10 14.5 10C13.1193 10 12 8.88071 12 7.5C12 6.11929 13.1193 5 14.5 5C15.8807 5 17 6.11929 17 7.5Z"
15+
d="M17 7.5C17 8.88071 15.8807 10 14.5 10C13.1193 10 12 8.88071 12
16+
7.5C12 6.11929 13.1193 5 14.5 5C15.8807 5 17 6.11929 17 7.5Z"
1517
fill="#A2B1C6"
1618
/>
1719
<path
18-
d="M8 13.5C8 14.8807 6.88071 16 5.5 16C4.11929 16 3 14.8807 3 13.5C3 12.1193 4.11929 11 5.5 11C6.88071 11 8 12.1193 8 13.5Z"
20+
d="M8 13.5C8 14.8807 6.88071 16 5.5 16C4.11929 16 3 14.8807 3 13.5C3
21+
12.1193 4.11929 11 5.5 11C6.88071 11 8 12.1193 8 13.5Z"
1922
fill="#A2B1C6"
2023
/>
2124
<path
22-
d="M2.93128 5.31436L3.90527 5.08778L5.48693 11.8867L4.51294 12.1133L2.93128 5.31436Z"
25+
d="M2.93128 5.31436L3.90527 5.08778L5.48693 11.8867L4.51294
26+
12.1133L2.93128 5.31436Z"
2327
fill="#A2B1C6"
2428
/>
2529
<path
26-
d="M12.9447 7.79159L13.5548 8.58392L7.30516 13.3962L6.69507 12.6038L12.9447 7.79159Z"
30+
d="M12.9447 7.79159L13.5548 8.58392L7.30516 13.3962L6.69507
31+
12.6038L12.9447 7.79159Z"
2732
fill="#A2B1C6"
2833
/>
2934
<path
30-
d="M14.1316 6.51712L3.13166 3.51723L2.86844 4.48202L13.8684 7.48191L14.1316 6.51712Z"
35+
d="M14.1316 6.51712L3.13166 3.51723L2.86844 4.48202L13.8684
36+
7.48191L14.1316 6.51712Z"
3137
fill="#A2B1C6"
3238
/>
3339
</svg>

src/components/svg/settings.vue

Lines changed: 101 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,110 @@
88
>
99
<g clip-path="url(#clip0_2236_2707)">
1010
<path
11-
d="M8.11441 0.0274963C7.73011 0.0274918 7.35916 0.168422 7.0718 0.423594C6.78445 0.678766 6.60065 1.03046 6.55522 1.41207L7.89167 1.57122C7.89815 1.51669 7.9244 1.46644 7.96546 1.42997C8.00651 1.39351 8.05951 1.37337 8.11441 1.37337V0.0274963ZM9.88559 0.0274963H8.11441V1.37337H9.88559V0.0274963ZM11.4448 1.41207C11.3994 1.03046 11.2156 0.678766 10.9282 0.423594C10.6408 0.168422 10.2699 0.0274918 9.88559 0.0274963V1.37337C9.94049 1.37337 9.99349 1.39351 10.0345 1.42997C10.0756 1.46644 10.1018 1.51669 10.1083 1.57122L11.4448 1.41207ZM11.5815 2.56055L11.4448 1.41207L10.1083 1.57122L10.2449 2.7197L11.5815 2.56055ZM14.349 3.0888L13.282 3.5464L13.8123 4.78326L14.8793 4.32566L14.349 3.0888ZM16.3276 3.74682C16.1355 3.41401 15.8279 3.16322 15.4633 3.04195C15.0986 2.92067 14.7021 2.93735 14.349 3.0888L14.8793 4.32566C14.9298 4.304 14.9865 4.30172 15.0386 4.31904C15.0907 4.33636 15.1346 4.3722 15.1621 4.41976L16.3276 3.74682ZM17.2132 5.28067L16.3276 3.74682L15.1621 4.41976L16.0477 5.95361L17.2132 5.28067ZM16.7937 7.32326C17.1015 7.09311 17.3142 6.75809 17.3915 6.38165C17.4688 6.00521 17.4054 5.61348 17.2132 5.28067L16.0477 5.95361C16.0751 6.00117 16.0842 6.05714 16.0731 6.11093C16.0621 6.16471 16.0317 6.21257 15.9877 6.24544L16.7937 7.32326ZM15.7861 8.07673L16.7937 7.32326L15.9877 6.24544L14.9801 6.99891L15.7861 8.07673ZM16.7937 10.6767L15.7861 9.92327L14.9802 11.0011L15.9877 11.7546L16.7937 10.6767ZM17.2132 12.7193C17.4054 12.3865 17.4688 11.9948 17.3915 11.6183C17.3142 11.2419 17.1015 10.9069 16.7937 10.6767L15.9877 11.7546C16.0317 11.7874 16.0621 11.8353 16.0731 11.8891C16.0842 11.9429 16.0751 11.9988 16.0477 12.0464L17.2132 12.7193ZM16.3276 14.2532L17.2132 12.7193L16.0477 12.0464L15.1621 13.5802L16.3276 14.2532ZM14.349 14.9112C14.7021 15.0626 15.0986 15.0793 15.4633 14.958C15.8279 14.8368 16.1355 14.586 16.3276 14.2532L15.1621 13.5802C15.1346 13.6278 15.0907 13.6636 15.0386 13.6809C14.9865 13.6982 14.9298 13.6959 14.8793 13.6742L14.349 14.9112ZM13.282 14.4536L14.349 14.9112L14.8793 13.6742L13.8125 13.2167L13.282 14.4536ZM11.4448 16.5879L11.5814 15.4394L10.245 15.2803L10.1083 16.4288L11.4448 16.5879ZM9.88559 17.9725C10.2699 17.9725 10.6408 17.8316 10.9282 17.5764C11.2156 17.3212 11.3994 16.9695 11.4448 16.5879L10.1083 16.4288C10.1018 16.4833 10.0756 16.5336 10.0345 16.57C9.99349 16.6065 9.94049 16.6266 9.88559 16.6266V17.9725ZM8.11441 17.9725H9.88559V16.6266H8.11441V17.9725ZM6.55522 16.5879C6.60065 16.9695 6.78445 17.3212 7.0718 17.5764C7.35916 17.8316 7.73011 17.9725 8.11441 17.9725V16.6266C8.05951 16.6266 8.00651 16.6065 7.96546 16.57C7.9244 16.5336 7.89815 16.4833 7.89167 16.4288L6.55522 16.5879ZM6.44172 15.6342L6.55522 16.5879L7.89167 16.4288L7.77817 15.475L6.44172 15.6342ZM4.00097 13.2967L3.12066 13.6742L3.65104 14.9112L4.53136 14.5337L4.00097 13.2967ZM3.12066 13.6742C3.07021 13.6959 3.01346 13.6982 2.96138 13.6809C2.90929 13.6636 2.86536 13.6278 2.83791 13.5802L1.67238 14.2532C1.86453 14.586 2.17205 14.8368 2.53672 14.958C2.90138 15.0793 3.29785 15.0626 3.65104 14.9112L3.12066 13.6742ZM2.83791 13.5802L1.95233 12.0464L0.786798 12.7193L1.67238 14.2532L2.83791 13.5802ZM1.95233 12.0464C1.92487 11.9988 1.91582 11.9429 1.92688 11.8891C1.93794 11.8353 1.96834 11.7874 2.01233 11.7546L1.20626 10.6767C0.898499 10.9069 0.685823 11.2419 0.608517 11.6183C0.531211 11.9948 0.594643 12.3865 0.786798 12.7193L1.95233 12.0464ZM2.01233 11.7546L2.70007 11.2403L1.89389 10.1625L1.20626 10.6767L2.01233 11.7546ZM1.20626 7.32326L1.894 7.83761L2.70007 6.75979L2.01233 6.24544L1.20626 7.32326ZM0.786798 5.28067C0.594643 5.61348 0.531211 6.00521 0.608517 6.38165C0.685823 6.75809 0.898499 7.09311 1.20626 7.32326L2.01233 6.24544C1.96834 6.21257 1.93794 6.16471 1.92688 6.11093C1.91582 6.05714 1.92487 6.00117 1.95233 5.95361L0.786798 5.28067ZM1.67238 3.74682L0.786798 5.28067L1.95233 5.95361L2.83791 4.41976L1.67238 3.74682ZM3.65104 3.0888C3.29785 2.93735 2.90138 2.92067 2.53672 3.04195C2.17205 3.16322 1.86453 3.41401 1.67238 3.74682L2.83791 4.41976C2.86536 4.37223 2.90929 4.33641 2.96138 4.31909C3.01346 4.30176 3.07021 4.30414 3.12066 4.32577L3.65104 3.0888ZM4.53136 3.46632L3.65104 3.0888L3.12066 4.32577L4.00097 4.70329L4.53136 3.46632ZM6.55522 1.41207L6.44172 2.36584L7.77817 2.52499L7.89167 1.57122L6.55522 1.41207ZM6.3585 4.5022C7.04018 4.11795 7.6696 3.4366 7.77817 2.52499L6.44172 2.36584C6.39887 2.72575 6.13116 3.08544 5.69756 3.32994L6.3585 4.5022ZM4.00097 4.70329C4.81792 5.05367 5.68948 4.87938 6.3585 4.5022L5.69756 3.32994C5.28213 3.56412 4.85852 3.60663 4.53136 3.46632L4.00097 4.70329ZM3.72866 9C3.72866 8.20369 3.44288 7.3153 2.70007 6.75979L1.894 7.83761C2.19884 8.06562 2.38278 8.48834 2.38278 9H3.72866ZM6.3585 13.4978C5.68948 13.1206 4.81792 12.9463 4.00097 13.2967L4.53136 14.5337C4.85852 14.3934 5.28213 14.436 5.69756 14.6703L6.3585 13.4978ZM2.70007 11.2403C3.44299 10.6848 3.72866 9.79631 3.72866 9H2.38278C2.38278 9.51177 2.19873 9.9346 1.89389 10.1625L2.70007 11.2403ZM11.5243 13.4358C10.9034 13.8057 10.3448 14.4432 10.245 15.2803L11.5814 15.4394C11.6183 15.1293 11.8415 14.8134 12.2132 14.5919L11.5243 13.4358ZM13.8125 13.2167C13.0169 12.8756 12.1673 13.0527 11.5243 13.4358L12.2132 14.5919C12.5925 14.3659 12.9839 14.3258 13.282 14.4536L13.8125 13.2167ZM7.77817 15.475C7.6696 14.5635 7.04018 13.8822 6.3585 13.4978L5.69756 14.6703C6.13116 14.9147 6.39887 15.2742 6.44172 15.6342L7.77817 15.475ZM14.047 9C14.047 9.71656 14.316 10.5045 14.9802 11.0011L15.7861 9.92327C15.547 9.74449 15.3929 9.41139 15.3929 9H14.047ZM14.9801 6.99891C14.3159 7.49553 14.047 8.28332 14.047 9H15.3929C15.3929 8.58861 15.547 8.2555 15.7861 8.07673L14.9801 6.99891ZM11.5243 4.56422C12.1673 4.94734 13.0168 5.12444 13.8123 4.78326L13.282 3.5464C12.9839 3.67426 12.5925 3.63399 12.2132 3.408L11.5243 4.56422ZM10.2449 2.7197C10.3446 3.55683 10.9034 4.19433 11.5243 4.56422L12.2132 3.408C11.8415 3.1866 11.6184 2.87077 11.5815 2.56055L10.2449 2.7197Z"
11+
d="M8.11441 0.0274963C7.73011 0.0274918 7.35916 0.168422 7.0718
12+
0.423594C6.78445 0.678766 6.60065 1.03046 6.55522 1.41207L7.89167
13+
1.57122C7.89815 1.51669 7.9244 1.46644 7.96546 1.42997C8.00651 1.39351
14+
8.05951 1.37337 8.11441 1.37337V0.0274963ZM9.88559
15+
0.0274963H8.11441V1.37337H9.88559V0.0274963ZM11.4448
16+
1.41207C11.3994 1.03046 11.2156 0.678766 10.9282 0.423594C10.6408
17+
0.168422 10.2699 0.0274918 9.88559 0.0274963V1.37337C9.94049 1.37337
18+
9.99349 1.39351 10.0345 1.42997C10.0756 1.46644 10.1018 1.51669
19+
10.1083 1.57122L11.4448 1.41207ZM11.5815 2.56055L11.4448
20+
1.41207L10.1083 1.57122L10.2449 2.7197L11.5815 2.56055ZM14.349
21+
3.0888L13.282 3.5464L13.8123 4.78326L14.8793 4.32566L14.349
22+
3.0888ZM16.3276 3.74682C16.1355 3.41401 15.8279 3.16322 15.4633
23+
3.04195C15.0986 2.92067 14.7021 2.93735 14.349 3.0888L14.8793
24+
4.32566C14.9298 4.304 14.9865 4.30172 15.0386 4.31904C15.0907
25+
4.33636 15.1346 4.3722 15.1621 4.41976L16.3276 3.74682ZM17.2132
26+
5.28067L16.3276 3.74682L15.1621 4.41976L16.0477 5.95361L17.2132
27+
5.28067ZM16.7937 7.32326C17.1015 7.09311 17.3142 6.75809 17.3915
28+
6.38165C17.4688 6.00521 17.4054 5.61348 17.2132 5.28067L16.0477
29+
5.95361C16.0751 6.00117 16.0842 6.05714 16.0731 6.11093C16.0621
30+
6.16471 16.0317 6.21257 15.9877 6.24544L16.7937 7.32326ZM15.7861
31+
8.07673L16.7937 7.32326L15.9877 6.24544L14.9801 6.99891L15.7861
32+
8.07673ZM16.7937 10.6767L15.7861 9.92327L14.9802 11.0011L15.9877
33+
11.7546L16.7937 10.6767ZM17.2132 12.7193C17.4054 12.3865 17.4688
34+
11.9948 17.3915 11.6183C17.3142 11.2419 17.1015 10.9069 16.7937
35+
10.6767L15.9877 11.7546C16.0317 11.7874 16.0621 11.8353 16.0731
36+
11.8891C16.0842 11.9429 16.0751 11.9988 16.0477 12.0464L17.2132
37+
12.7193ZM16.3276 14.2532L17.2132 12.7193L16.0477 12.0464L15.1621
38+
13.5802L16.3276 14.2532ZM14.349 14.9112C14.7021 15.0626 15.0986
39+
15.0793 15.4633 14.958C15.8279 14.8368 16.1355 14.586 16.3276
40+
14.2532L15.1621 13.5802C15.1346 13.6278 15.0907 13.6636 15.0386
41+
13.6809C14.9865 13.6982 14.9298 13.6959 14.8793 13.6742L14.349
42+
14.9112ZM13.282 14.4536L14.349 14.9112L14.8793 13.6742L13.8125
43+
13.2167L13.282 14.4536ZM11.4448 16.5879L11.5814 15.4394L10.245
44+
15.2803L10.1083 16.4288L11.4448 16.5879ZM9.88559 17.9725C10.2699
45+
17.9725 10.6408 17.8316 10.9282 17.5764C11.2156 17.3212 11.3994
46+
16.9695 11.4448 16.5879L10.1083 16.4288C10.1018 16.4833 10.0756
47+
16.5336 10.0345 16.57C9.99349 16.6065 9.94049 16.6266 9.88559
48+
16.6266V17.9725ZM8.11441
49+
17.9725H9.88559V16.6266H8.11441V17.9725ZM6.55522
50+
16.5879C6.60065 16.9695 6.78445 17.3212 7.0718 17.5764C7.35916
51+
17.8316 7.73011 17.9725 8.11441 17.9725V16.6266C8.05951 16.6266
52+
8.00651 16.6065 7.96546 16.57C7.9244 16.5336 7.89815 16.4833
53+
7.89167 16.4288L6.55522 16.5879ZM6.44172 15.6342L6.55522 1
54+
6.5879L7.89167 16.4288L7.77817 15.475L6.44172 15.6342ZM4.00097
55+
13.2967L3.12066 13.6742L3.65104 14.9112L4.53136 14.5337L4.00097
56+
13.2967ZM3.12066 13.6742C3.07021 13.6959 3.01346 13.6982 2.96138
57+
13.6809C2.90929 13.6636 2.86536 13.6278 2.83791 13.5802L1.67238
58+
14.2532C1.86453 14.586 2.17205 14.8368 2.53672 14.958C2.90138
59+
15.0793 3.29785 15.0626 3.65104 14.9112L3.12066 13.6742ZM2.83791
60+
13.5802L1.95233 12.0464L0.786798 12.7193L1.67238 14.2532L2.83791
61+
13.5802ZM1.95233 12.0464C1.92487 11.9988 1.91582 11.9429 1.92688
62+
11.8891C1.93794 11.8353 1.96834 11.7874 2.01233 11.7546L1.20626
63+
10.6767C0.898499 10.9069 0.685823 11.2419 0.608517 11.6183C0.531211
64+
11.9948 0.594643 12.3865 0.786798 12.7193L1.95233 12.0464ZM2.01233
65+
11.7546L2.70007 11.2403L1.89389 10.1625L1.20626 10.6767L2.01233
66+
11.7546ZM1.20626 7.32326L1.894 7.83761L2.70007 6.75979L2.01233
67+
6.24544L1.20626 7.32326ZM0.786798 5.28067C0.594643 5.61348
68+
0.531211 6.00521 0.608517 6.38165C0.685823 6.75809 0.898499
69+
7.09311 1.20626 7.32326L2.01233 6.24544C1.96834 6.21257
70+
1.93794 6.16471 1.92688 6.11093C1.91582 6.05714 1.92487
71+
6.00117 1.95233 5.95361L0.786798 5.28067ZM1.67238
72+
3.74682L0.786798 5.28067L1.95233 5.95361L2.83791
73+
4.41976L1.67238 3.74682ZM3.65104 3.0888C3.29785
74+
2.93735 2.90138 2.92067 2.53672 3.04195C2.17205 3.16322 1.86453
75+
3.41401 1.67238 3.74682L2.83791 4.41976C2.86536 4.37223 2.90929
76+
4.33641 2.96138 4.31909C3.01346 4.30176 3.07021 4.30414 3.12066
77+
4.32577L3.65104 3.0888ZM4.53136 3.46632L3.65104 3.0888L3.12066
78+
4.32577L4.00097 4.70329L4.53136 3.46632ZM6.55522 1.41207L6.44172
79+
2.36584L7.77817 2.52499L7.89167 1.57122L6.55522 1.41207ZM6.3585
80+
4.5022C7.04018 4.11795 7.6696 3.4366 7.77817 2.52499L6.44172
81+
2.36584C6.39887 2.72575 6.13116 3.08544 5.69756 3.32994L6.3585
82+
4.5022ZM4.00097 4.70329C4.81792 5.05367 5.68948 4.87938 6.3585
83+
4.5022L5.69756 3.32994C5.28213 3.56412 4.85852 3.60663 4.53136
84+
3.46632L4.00097 4.70329ZM3.72866 9C3.72866 8.20369 3.44288 7.3153
85+
2.70007 6.75979L1.894 7.83761C2.19884 8.06562 2.38278 8.48834 2.38278
86+
9H3.72866ZM6.3585 13.4978C5.68948 13.1206 4.81792 12.9463 4.00097
87+
13.2967L4.53136 14.5337C4.85852 14.3934 5.28213 14.436 5.69756
88+
14.6703L6.3585 13.4978ZM2.70007 11.2403C3.44299 10.6848 3.72866
89+
9.79631 3.72866 9H2.38278C2.38278 9.51177 2.19873 9.9346 1.89389
90+
10.1625L2.70007 11.2403ZM11.5243 13.4358C10.9034 13.8057 10.3448
91+
14.4432 10.245 15.2803L11.5814 15.4394C11.6183 15.1293 11.8415
92+
14.8134 12.2132 14.5919L11.5243 13.4358ZM13.8125 13.2167C13.0169
93+
12.8756 12.1673 13.0527 11.5243 13.4358L12.2132 14.5919C12.5925
94+
14.3659 12.9839 14.3258 13.282 14.4536L13.8125 13.2167ZM7.77817
95+
15.475C7.6696 14.5635 7.04018 13.8822 6.3585 13.4978L5.69756
96+
14.6703C6.13116 14.9147 6.39887 15.2742 6.44172 15.6342L7.77817
97+
15.475ZM14.047 9C14.047 9.71656 14.316 10.5045 14.9802
98+
11.0011L15.7861 9.92327C15.547 9.74449 15.3929 9.41139 15.3929
99+
9H14.047ZM14.9801 6.99891C14.3159 7.49553 14.047 8.28332 14.047
100+
9H15.3929C15.3929 8.58861 15.547 8.2555 15.7861 8.07673L14.9801
101+
6.99891ZM11.5243 4.56422C12.1673 4.94734 13.0168 5.12444 13.8123
102+
4.78326L13.282 3.5464C12.9839 3.67426 12.5925 3.63399 12.2132
103+
3.408L11.5243 4.56422ZM10.2449 2.7197C10.3446 3.55683 10.9034
104+
4.19433 11.5243 4.56422L12.2132 3.408C11.8415 3.1866 11.6184
105+
2.87077 11.5815 2.56055L10.2449 2.7197Z"
12106
fill="#A2B1C6"
13107
/>
14108
<path
15-
d="M11.0935 9C11.0935 7.84373 10.1562 6.90642 8.99988 6.90642C7.84361 6.90642 6.90629 7.84373 6.90629 9C6.90629 10.1563 7.84361 11.0936 8.99988 11.0936C10.1562 11.0936 11.0935 10.1563 11.0935 9ZM12.2898 9C12.2898 10.817 10.8169 12.2899 8.99988 12.2899C7.18289 12.2899 5.70996 10.817 5.70996 9C5.70996 7.18301 7.18289 5.71008 8.99988 5.71008C10.8169 5.71008 12.2898 7.18301 12.2898 9Z"
109+
d="M11.0935 9C11.0935 7.84373 10.1562 6.90642 8.99988 6.90642C7.84361
110+
6.90642 6.90629 7.84373 6.90629 9C6.90629 10.1563 7.84361 11.0936
111+
8.99988 11.0936C10.1562 11.0936 11.0935 10.1563 11.0935 9ZM12.2898
112+
9C12.2898 10.817 10.8169 12.2899 8.99988 12.2899C7.18289 12.2899
113+
5.70996 10.817 5.70996 9C5.70996 7.18301 7.18289 5.71008 8.99988
114+
5.71008C10.8169 5.71008 12.2898 7.18301 12.2898 9Z"
16115
fill="#A2B1C6"
17116
/>
18117
</g>

src/components/svg/stop.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
xmlns="http://www.w3.org/2000/svg"
88
>
99
<path
10-
d="M3 4C3 3.44772 3.44772 3 4 3H14C14.5523 3 15 3.44772 15 4V14C15 14.5523 14.5523 15 14 15H4C3.44772 15 3 14.5523 3 14V4Z"
10+
d="M3 4C3 3.44772 3.44772 3 4 3H14C14.5523 3 15 3.44772 15 4V14C15
11+
14.5523 14.5523 15 14 15H4C3.44772 15 3 14.5523 3 14V4Z"
1112
fill="#A2B1C6"
1213
/>
1314
</svg>

src/views/MainView/Workspace/Tabs/Tab/DataView/Graph/index.vue

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,21 @@ export default {
6060
resizeObserver: null
6161
}
6262
},
63+
computed: {
64+
dataSourceIsValid() {
65+
return !this.dataSources || dataSourceIsValid(this.dataSources)
66+
}
67+
},
68+
watch: {
69+
async showViewSettings() {
70+
await this.$nextTick()
71+
this.handleResize()
72+
},
73+
dataSources() {
74+
this.$emit('update:exportToPngEnabled', !!this.dataSources)
75+
this.$emit('update:exportToClipboardEnabled', !!this.dataSources)
76+
}
77+
},
6378
created() {
6479
this.$emit('update:exportToSvgEnabled', false)
6580
this.$emit('update:exportToHtmlEnabled', false)
@@ -73,21 +88,6 @@ export default {
7388
beforeUnmount() {
7489
this.resizeObserver.unobserve(this.$refs.graphContainer)
7590
},
76-
watch: {
77-
async showViewSettings() {
78-
await this.$nextTick()
79-
this.handleResize()
80-
},
81-
dataSources() {
82-
this.$emit('update:exportToPngEnabled', !!this.dataSources)
83-
this.$emit('update:exportToClipboardEnabled', !!this.dataSources)
84-
}
85-
},
86-
computed: {
87-
dataSourceIsValid() {
88-
return !this.dataSources || dataSourceIsValid(this.dataSources)
89-
}
90-
},
9191
methods: {
9292
getOptionsForSave() {
9393
return this.$refs.graphEditor.settings

0 commit comments

Comments
 (0)