Skip to content

Commit c9989eb

Browse files
committed
Update deps
1 parent 91b75cc commit c9989eb

File tree

9 files changed

+117
-195
lines changed

9 files changed

+117
-195
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,6 @@ jobs:
6666
- name: Install Modules
6767
run: npm ci
6868

69-
- name: Fix Python
70-
if: matrix.os == 'macos-14'
71-
run: pip install setuptools
72-
7369
- name: Build Current Binary
7470
run: npm run build
7571

.github/workflows/test.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ jobs:
4242
- name: Run Unit Tests - Linux
4343
if: matrix.os == 'ubuntu-22.04'
4444
run: |
45-
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GITHUB_WORKSPACE/ci
46-
# objdump -T node_modules/deps-qmlui-raub/bin-linux/libqmlui.so
45+
# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GITHUB_WORKSPACE/ci
4746
LD_DEBUG=libs xvfb-run --auto-servernum npm run test-ci
4847
4948
# - name: Run Unit Tests - MacOS

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 Luis Blanco
3+
Copyright (c) 2025 Luis Blanco
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

eslint.config.js

Lines changed: 1 addition & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,3 @@
11
'use strict';
22

3-
const globals = require('globals');
4-
const js = require('@eslint/js');
5-
6-
7-
module.exports = [
8-
js.configs.recommended,
9-
{
10-
languageOptions: {
11-
'parserOptions': {
12-
'ecmaVersion': 2022,
13-
sourceType: 'script',
14-
},
15-
globals: {
16-
...globals.node,
17-
},
18-
},
19-
'rules': {
20-
'arrow-parens': ['error', 'always'],
21-
'no-trailing-spaces': [
22-
'error',
23-
{ 'skipBlankLines': true },
24-
],
25-
'indent': [
26-
'error',
27-
'tab',
28-
{ 'SwitchCase': 1 }
29-
],
30-
'operator-linebreak': [
31-
'error',
32-
'after',
33-
{
34-
'overrides': {
35-
'?': 'before',
36-
':': 'before'
37-
}
38-
}
39-
],
40-
'max-len': ['error', 110],
41-
'quotes': ['error', 'single'],
42-
'semi': ['error', 'always'],
43-
'no-multiple-empty-lines': ['error', { 'max': 3, 'maxEOF': 1, 'maxBOF': 1 }],
44-
'keyword-spacing': ['error', { 'before': true, 'after': true }],
45-
'space-before-blocks': ['error'],
46-
'space-before-function-paren': [
47-
'error', {'anonymous': 'always', 'named': 'never', 'asyncArrow': 'always'}
48-
],
49-
'camelcase': ['error'],
50-
'no-tabs': [0],
51-
'no-unused-vars': [
52-
'error',
53-
{
54-
'argsIgnorePattern': '^_',
55-
'varsIgnorePattern': '^_',
56-
'caughtErrorsIgnorePattern': '^_'
57-
}
58-
],
59-
'global-require': [0],
60-
'no-underscore-dangle': [0],
61-
'no-plusplus': [0],
62-
'no-shadow': [0],
63-
'node/no-unpublished-require': [0],
64-
'no-process-exit': [0],
65-
'linebreak-style': [0],
66-
'node/no-missing-require': [0],
67-
'no-console': [0],
68-
'node/no-unsupported-features/es-builtins': 0,
69-
'node/no-unsupported-features/node-builtins': 0,
70-
'func-names': [
71-
'error',
72-
'never',
73-
{ 'generators': 'never' }
74-
]
75-
}
76-
},
77-
];
3+
module.exports = require('addon-tools-raub/utils/eslint-common');

examples/main.ts

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,15 @@ import { View } from 'qml-raub';
88

99
Document.setWebgl(gl);
1010

11-
const doc = new Document({ vsync: true, autoEsc: true });
11+
const doc = new Document({
12+
vsync: true,
13+
autoEsc: true,
14+
autoFullscreen: true,
15+
title: 'QML',
16+
});
1217

1318
const icon = new Img(__dirname + '/qml.png');
1419
icon.on('load', () => { doc.icon = (icon as unknown as typeof doc.icon); });
15-
doc.title = 'QML';
1620

1721
View.init(process.cwd(), doc.platformWindow, doc.platformContext, doc.platformDevice);
1822

@@ -199,17 +203,10 @@ const drawScene = () => {
199203
);
200204
};
201205

202-
203-
const drawFrame = (): void => {
204-
glfw.pollEvents();
206+
const loopFunc = (): void => {
205207
View.update();
206208
doc.makeCurrent();
207209
drawScene();
208-
doc.swapBuffers();
209-
};
210-
211-
const loopFunc = (): void => {
212-
drawFrame();
213-
setImmediate(loopFunc);
210+
doc.requestAnimationFrame(loopFunc);
214211
};
215-
setImmediate(loopFunc);
212+
doc.requestAnimationFrame(loopFunc);

examples/package-lock.json

Lines changed: 44 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
},
99
"dependencies": {
1010
"qml-raub": "file:..",
11-
"glfw-raub": "^6.0.0",
12-
"image-raub": "^5.0.1",
11+
"glfw-raub": "^6.3.0",
12+
"image-raub": "^5.1.0",
1313
"tsconfig-paths": "^4.2.0",
1414
"tsx": "^4.19.2",
15-
"webgl-raub": "^5.0.0"
15+
"webgl-raub": "^5.1.0"
1616
}
1717
}

0 commit comments

Comments
 (0)