1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2026-02-04 15:38:55 +08:00

Compare commits

...

9 Commits

Author SHA1 Message Date
lana-k
85b5a200e2 fix tinycolor2 bundle 2025-12-27 21:11:01 +01:00
lana-k
a0ef93921f #131 fix label color 2025-12-26 20:56:08 +01:00
lana-k
859cd2ccfc #129 fix icon 2025-12-25 12:29:28 +01:00
lana-k
a59946c09d remove karma config 2025-12-24 22:14:48 +01:00
lana-k
7b06b3d9c8 uninstall mesa 2025-12-24 22:06:39 +01:00
lana-k
ced933f497 revert firefox base and env 2025-12-24 21:59:23 +01:00
lana-k
cda368f109 xvfb 2025-12-24 21:49:53 +01:00
lana-k
df67466c2f firefox base 2025-12-24 21:41:29 +01:00
lana-k
528549ae5a LIBGL_ALWAYS_SOFTWARE 2025-12-24 21:36:47 +01:00
6 changed files with 77 additions and 73 deletions

View File

@@ -26,10 +26,7 @@ jobs:
sudo apt-get install -y \ sudo apt-get install -y \
chromium-browser \ chromium-browser \
firefox-esr \ firefox-esr \
libgl1 \ xvfb
libgl1-mesa-dri \
libegl1 \
mesa-utils
- name: Update npm - name: Update npm
run: npm install -g npm@10 run: npm install -g npm@10
@@ -41,4 +38,4 @@ jobs:
run: npm run lint -- --no-fix run: npm run lint -- --no-fix
- name: Run karma tests - name: Run karma tests
run: npm run test run: xvfb-run -a npm test

View File

@@ -90,12 +90,7 @@ module.exports = function (config) {
base: 'FirefoxHeadless', base: 'FirefoxHeadless',
prefs: { prefs: {
'dom.w3c_touch_events.enabled': 1, 'dom.w3c_touch_events.enabled': 1,
'dom.events.asyncClipboard.clipboardItem': true, 'dom.events.asyncClipboard.clipboardItem': true
'webgl.disabled': false,
'webgl.force-enabled': true,
'webgl.force-layers-readback': true,
'layers.acceleration.disabled': true,
'gfx.webrender.all': false
} }
} }
}, },

18
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "sqliteviz", "name": "sqliteviz",
"version": "0.27.1", "version": "0.28.2",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "sqliteviz", "name": "sqliteviz",
"version": "0.27.1", "version": "0.28.2",
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"@sigma/export-image": "^3.0.0", "@sigma/export-image": "^3.0.0",
@@ -32,6 +32,7 @@
"sigma": "^3.0.1", "sigma": "^3.0.1",
"sql.js": "file:./lib/sql-js", "sql.js": "file:./lib/sql-js",
"tiny-emitter": "^2.1.0", "tiny-emitter": "^2.1.0",
"tinycolor2": "^1.4.2",
"veaury": "^2.5.1", "veaury": "^2.5.1",
"vue": "^3.5.11", "vue": "^3.5.11",
"vue-final-modal": "^4.5.5", "vue-final-modal": "^4.5.5",
@@ -13341,6 +13342,11 @@
"react": "^0.14.0 || ^15.0.0" "react": "^0.14.0 || ^15.0.0"
} }
}, },
"node_modules/react-chart-editor/node_modules/tinycolor2": {
"version": "1.6.0",
"resolved": "https://registry.npmjs.org/tinycolor2/-/tinycolor2-1.6.0.tgz",
"integrity": "sha512-XPaBkWQJdsf3pLKJV9p4qN/S+fm2Oj8AIPo1BTUhg5oxkvm9+SVEGFdhyOz7tTdUTfvxMiAs4sp6/eZO2Ew+pw=="
},
"node_modules/react-color": { "node_modules/react-color": {
"version": "2.19.3", "version": "2.19.3",
"license": "MIT", "license": "MIT",
@@ -15514,8 +15520,12 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/tinycolor2": { "node_modules/tinycolor2": {
"version": "1.6.0", "version": "1.4.2",
"license": "MIT" "resolved": "https://registry.npmjs.org/tinycolor2/-/tinycolor2-1.4.2.tgz",
"integrity": "sha512-vJhccZPs965sV/L2sU4oRQVAos0pQXwsvTLkWYdqJ+a8Q5kPFzJTuOFwy7UniPli44NKQGAglksjvOcpo95aZA==",
"engines": {
"node": "*"
}
}, },
"node_modules/tinyglobby": { "node_modules/tinyglobby": {
"version": "0.2.12", "version": "0.2.12",

View File

@@ -1,6 +1,6 @@
{ {
"name": "sqliteviz", "name": "sqliteviz",
"version": "0.28.0", "version": "0.28.2",
"license": "Apache-2.0", "license": "Apache-2.0",
"private": true, "private": true,
"type": "module", "type": "module",
@@ -36,6 +36,7 @@
"sigma": "^3.0.1", "sigma": "^3.0.1",
"sql.js": "file:./lib/sql-js", "sql.js": "file:./lib/sql-js",
"tiny-emitter": "^2.1.0", "tiny-emitter": "^2.1.0",
"tinycolor2": "^1.4.2",
"veaury": "^2.5.1", "veaury": "^2.5.1",
"vue": "^3.5.11", "vue": "^3.5.11",
"vue-final-modal": "^4.5.5", "vue-final-modal": "^4.5.5",

View File

@@ -437,7 +437,9 @@ export default {
this.updateLayout(this.settings.layout.type) this.updateLayout(this.settings.layout.type)
this.renderer = new Sigma(this.graph, this.$refs.graph, { this.renderer = new Sigma(this.graph, this.$refs.graph, {
renderEdgeLabels: true, renderEdgeLabels: true,
allowInvalidContainer: true allowInvalidContainer: true,
labelColor: { attribute: 'labelColor', color: '#444444' },
edgeLabelColor: { attribute: 'labelColor', color: '#a2b1c6' }
}) })
if (this.settings.layout.type === 'forceAtlas2') { if (this.settings.layout.type === 'forceAtlas2') {
this.autoRunFA2Layout() this.autoRunFA2Layout()

View File

@@ -47,62 +47,61 @@
16.5336 10.0345 16.57C9.99349 16.6065 9.94049 16.6266 9.88559 16.5336 10.0345 16.57C9.99349 16.6065 9.94049 16.6266 9.88559
16.6266V17.9725ZM8.11441 16.6266V17.9725ZM8.11441
17.9725H9.88559V16.6266H8.11441V17.9725ZM6.55522 17.9725H9.88559V16.6266H8.11441V17.9725ZM6.55522
16.5879C6.60065 16.9695 6.78445 17.3212 7.0718 17.5764C7.35916 16.5879C6.60065 16.9695 6.78445 17.3212 7.0718
17.8316 7.73011 17.9725 8.11441 17.9725V16.6266C8.05951 16.6266 17.5764C7.35916 17.8316 7.73011 17.9725 8.11441
8.00651 16.6065 7.96546 16.57C7.9244 16.5336 7.89815 16.4833 17.9725V16.6266C8.05951 16.6266 8.00651 16.6065
7.89167 16.4288L6.55522 16.5879ZM6.44172 15.6342L6.55522 1 7.96546 16.57C7.9244 16.5336 7.89815 16.4833 7.89167
6.5879L7.89167 16.4288L7.77817 15.475L6.44172 15.6342ZM4.00097 16.4288L6.55522 16.5879ZM6.44172 15.6342L6.55522 16.5879L7.89167
13.2967L3.12066 13.6742L3.65104 14.9112L4.53136 14.5337L4.00097 16.4288L7.77817 15.475L6.44172 15.6342ZM4.00097 13.2967L3.12066
13.2967ZM3.12066 13.6742C3.07021 13.6959 3.01346 13.6982 2.96138 13.6742L3.65104 14.9112L4.53136 14.5337L4.00097 13.2967ZM3.12066
13.6809C2.90929 13.6636 2.86536 13.6278 2.83791 13.5802L1.67238 13.6742C3.07021 13.6959 3.01346 13.6982 2.96138 13.6809C2.90929
14.2532C1.86453 14.586 2.17205 14.8368 2.53672 14.958C2.90138 13.6636 2.86536 13.6278 2.83791 13.5802L1.67238 14.2532C1.86453
15.0793 3.29785 15.0626 3.65104 14.9112L3.12066 13.6742ZM2.83791 14.586 2.17205 14.8368 2.53672 14.958C2.90138 15.0793 3.29785
13.5802L1.95233 12.0464L0.786798 12.7193L1.67238 14.2532L2.83791 15.0626 3.65104 14.9112L3.12066 13.6742ZM2.83791 13.5802L1.95233
13.5802ZM1.95233 12.0464C1.92487 11.9988 1.91582 11.9429 1.92688 12.0464L0.786798 12.7193L1.67238 14.2532L2.83791 13.5802ZM1.95233
11.8891C1.93794 11.8353 1.96834 11.7874 2.01233 11.7546L1.20626 12.0464C1.92487 11.9988 1.91582 11.9429 1.92688 11.8891C1.93794
10.6767C0.898499 10.9069 0.685823 11.2419 0.608517 11.6183C0.531211 11.8353 1.96834 11.7874 2.01233 11.7546L1.20626 10.6767C0.898499
11.9948 0.594643 12.3865 0.786798 12.7193L1.95233 12.0464ZM2.01233 10.9069 0.685823 11.2419 0.608517 11.6183C0.531211 11.9948 0.594643
11.7546L2.70007 11.2403L1.89389 10.1625L1.20626 10.6767L2.01233 12.3865 0.786798 12.7193L1.95233 12.0464ZM2.01233 11.7546L2.70007
11.7546ZM1.20626 7.32326L1.894 7.83761L2.70007 6.75979L2.01233 11.2403L1.89389 10.1625L1.20626 10.6767L2.01233 11.7546ZM1.20626
6.24544L1.20626 7.32326ZM0.786798 5.28067C0.594643 5.61348 7.32326L1.894 7.83761L2.70007 6.75979L2.01233 6.24544L1.20626
0.531211 6.00521 0.608517 6.38165C0.685823 6.75809 0.898499 7.32326ZM0.786798 5.28067C0.594643 5.61348 0.531211 6.00521
7.09311 1.20626 7.32326L2.01233 6.24544C1.96834 6.21257 0.608517 6.38165C0.685823 6.75809 0.898499 7.09311 1.20626
1.93794 6.16471 1.92688 6.11093C1.91582 6.05714 1.92487 7.32326L2.01233 6.24544C1.96834 6.21257 1.93794 6.16471 1.92688
6.00117 1.95233 5.95361L0.786798 5.28067ZM1.67238 6.11093C1.91582 6.05714 1.92487 6.00117 1.95233 5.95361L0.786798
3.74682L0.786798 5.28067L1.95233 5.95361L2.83791 5.28067ZM1.67238 3.74682L0.786798 5.28067L1.95233 5.95361L2.83791
4.41976L1.67238 3.74682ZM3.65104 3.0888C3.29785 4.41976L1.67238 3.74682ZM3.65104 3.0888C3.29785 2.93735 2.90138
2.93735 2.90138 2.92067 2.53672 3.04195C2.17205 3.16322 1.86453 2.92067 2.53672 3.04195C2.17205 3.16322 1.86453 3.41401 1.67238
3.41401 1.67238 3.74682L2.83791 4.41976C2.86536 4.37223 2.90929 3.74682L2.83791 4.41976C2.86536 4.37223 2.90929 4.33641 2.96138
4.33641 2.96138 4.31909C3.01346 4.30176 3.07021 4.30414 3.12066 4.31909C3.01346 4.30176 3.07021 4.30414 3.12066 4.32577L3.65104
4.32577L3.65104 3.0888ZM4.53136 3.46632L3.65104 3.0888L3.12066 3.0888ZM4.53136 3.46632L3.65104 3.0888L3.12066 4.32577L4.00097
4.32577L4.00097 4.70329L4.53136 3.46632ZM6.55522 1.41207L6.44172 4.70329L4.53136 3.46632ZM6.55522 1.41207L6.44172 2.36584L7.77817
2.36584L7.77817 2.52499L7.89167 1.57122L6.55522 1.41207ZM6.3585 2.52499L7.89167 1.57122L6.55522 1.41207ZM6.3585 4.5022C7.04018
4.5022C7.04018 4.11795 7.6696 3.4366 7.77817 2.52499L6.44172 4.11795 7.6696 3.4366 7.77817 2.52499L6.44172 2.36584C6.39887 2.72575
2.36584C6.39887 2.72575 6.13116 3.08544 5.69756 3.32994L6.3585 6.13116 3.08544 5.69756 3.32994L6.3585 4.5022ZM4.00097 4.70329C4.81792
4.5022ZM4.00097 4.70329C4.81792 5.05367 5.68948 4.87938 6.3585 5.05367 5.68948 4.87938 6.3585 4.5022L5.69756 3.32994C5.28213 3.56412
4.5022L5.69756 3.32994C5.28213 3.56412 4.85852 3.60663 4.53136 4.85852 3.60663 4.53136 3.46632L4.00097 4.70329ZM3.72866 9C3.72866
3.46632L4.00097 4.70329ZM3.72866 9C3.72866 8.20369 3.44288 7.3153 8.20369 3.44288 7.3153 2.70007 6.75979L1.894 7.83761C2.19884 8.06562
2.70007 6.75979L1.894 7.83761C2.19884 8.06562 2.38278 8.48834 2.38278 2.38278 8.48834 2.38278 9H3.72866ZM6.3585 13.4978C5.68948 13.1206
9H3.72866ZM6.3585 13.4978C5.68948 13.1206 4.81792 12.9463 4.00097 4.81792 12.9463 4.00097 13.2967L4.53136 14.5337C4.85852 14.3934
13.2967L4.53136 14.5337C4.85852 14.3934 5.28213 14.436 5.69756 5.28213 14.436 5.69756 14.6703L6.3585 13.4978ZM2.70007
14.6703L6.3585 13.4978ZM2.70007 11.2403C3.44299 10.6848 3.72866 11.2403C3.44299 10.6848 3.72866 9.79631 3.72866 9H2.38278C2.38278
9.79631 3.72866 9H2.38278C2.38278 9.51177 2.19873 9.9346 1.89389 9.51177 2.19873 9.9346 1.89389 10.1625L2.70007 11.2403ZM11.5243
10.1625L2.70007 11.2403ZM11.5243 13.4358C10.9034 13.8057 10.3448 13.4358C10.9034 13.8057 10.3448 14.4432 10.245 15.2803L11.5814
14.4432 10.245 15.2803L11.5814 15.4394C11.6183 15.1293 11.8415 15.4394C11.6183 15.1293 11.8415 14.8134 12.2132 14.5919L11.5243
14.8134 12.2132 14.5919L11.5243 13.4358ZM13.8125 13.2167C13.0169 13.4358ZM13.8125 13.2167C13.0169 12.8756 12.1673 13.0527 11.5243
12.8756 12.1673 13.0527 11.5243 13.4358L12.2132 14.5919C12.5925 13.4358L12.2132 14.5919C12.5925 14.3659 12.9839 14.3258 13.282
14.3659 12.9839 14.3258 13.282 14.4536L13.8125 13.2167ZM7.77817 14.4536L13.8125 13.2167ZM7.77817 15.475C7.6696 14.5635 7.04018
15.475C7.6696 14.5635 7.04018 13.8822 6.3585 13.4978L5.69756 13.8822 6.3585 13.4978L5.69756 14.6703C6.13116 14.9147 6.39887
14.6703C6.13116 14.9147 6.39887 15.2742 6.44172 15.6342L7.77817 15.2742 6.44172 15.6342L7.77817 15.475ZM14.047 9C14.047 9.71656
15.475ZM14.047 9C14.047 9.71656 14.316 10.5045 14.9802 14.316 10.5045 14.9802 11.0011L15.7861 9.92327C15.547 9.74449 15.3929
11.0011L15.7861 9.92327C15.547 9.74449 15.3929 9.41139 15.3929 9.41139 15.3929 9H14.047ZM14.9801 6.99891C14.3159 7.49553 14.047
9H14.047ZM14.9801 6.99891C14.3159 7.49553 14.047 8.28332 14.047 8.28332 14.047 9H15.3929C15.3929 8.58861 15.547 8.2555 15.7861
9H15.3929C15.3929 8.58861 15.547 8.2555 15.7861 8.07673L14.9801 8.07673L14.9801 6.99891ZM11.5243 4.56422C12.1673 4.94734 13.0168
6.99891ZM11.5243 4.56422C12.1673 4.94734 13.0168 5.12444 13.8123 5.12444 13.8123 4.78326L13.282 3.5464C12.9839 3.67426 12.5925
4.78326L13.282 3.5464C12.9839 3.67426 12.5925 3.63399 12.2132 3.63399 12.2132 3.408L11.5243 4.56422ZM10.2449 2.7197C10.3446
3.408L11.5243 4.56422ZM10.2449 2.7197C10.3446 3.55683 10.9034 3.55683 10.9034 4.19433 11.5243 4.56422L12.2132 3.408C11.8415
4.19433 11.5243 4.56422L12.2132 3.408C11.8415 3.1866 11.6184 3.1866 11.6184 2.87077 11.5815 2.56055L10.2449 2.7197Z"
2.87077 11.5815 2.56055L10.2449 2.7197Z"
fill="#A2B1C6" fill="#A2B1C6"
/> />
<path <path