Skip to content

Commit

Permalink
Merge branch 'gl-shaders-testing'
Browse files Browse the repository at this point in the history
# Conflicts:
#	electron.vite.config.ts
#	package-lock.json
#	package.json
#	src/renderer/src/App.tsx
#	src/renderer/src/components/LayersSidebar.tsx
#	src/renderer/src/components/MousePosition.tsx
#	src/renderer/src/components/Toolbar.tsx
#	src/renderer/src/components/sidebar/LayerListItem.tsx
#	src/renderer/src/renderer/graphics.ts
#	src/renderer/src/renderer/index.ts
#	tsconfig.web.json
#	vite.config.ts
  • Loading branch information
hpcreery committed Apr 4, 2024
2 parents 6b1e15d + 892bae3 commit 2a3873f
Show file tree
Hide file tree
Showing 131 changed files with 81,996 additions and 14,960 deletions.
19 changes: 10 additions & 9 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ module.exports = {
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:prettier/recommended'
'plugin:@typescript-eslint/eslint-recommended'
// 'plugin:prettier/recommended'
],
rules: {
'@typescript-eslint/ban-ts-comment': ['error', { 'ts-ignore': 'allow-with-description' }],
Expand All @@ -31,13 +31,14 @@ module.exports = {
'@typescript-eslint/no-explicit-any': ['off'], //'error',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-var-requires': 'off',
'linebreak-style': ['error', 'unix'],
'prettier/prettier': [
'error',
{
endOfLine: 'auto'
}
]
// 'linebreak-style': ['error', 'unix'],
'@typescript-eslint/no-empty-interface': 'off',
// 'prettier/prettier': [
// 'error',
// {
// endOfLine: 'auto'
// }
// ]
},
overrides: [
{
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ dist
out
*.log*

# Shader Builds
src/renderer/src/shaders/build

.DS_Store
6 changes: 4 additions & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{
"recommendations": ["dbaeumer.vscode-eslint"]
}
"recommendations": [
"dbaeumer.vscode-eslint"
]
}
11 changes: 8 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
"windows": {
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron-vite.cmd"
},
"runtimeArgs": ["--sourcemap"],
"runtimeArgs": [
"--sourcemap"
],
"env": {
"REMOTE_DEBUGGING_PORT": "9222"
}
Expand All @@ -30,10 +32,13 @@
"compounds": [
{
"name": "Debug All",
"configurations": ["Debug Main Process", "Debug Renderer Process"],
"configurations": [
"Debug Main Process",
"Debug Renderer Process"
],
"presentation": {
"order": 1
}
}
]
}
}
13 changes: 9 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
Expand All @@ -9,7 +9,12 @@
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"typescript.tsdk": "node_modules/typescript/lib",
"editor.formatOnSave": true,
"cSpell.words": ["Comlink", "Pixi", "uncull"],
"vue.codeActions.enabled": false
"editor.formatOnSave": false,
"cSpell.words": [
"Comlink",
"Pixi",
"uncull"
],
"vue.codeActions.enabled": false,
"files.eol": "\n"
}
21 changes: 18 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,28 @@ GRX is designed to be an easy to use online gerber viewer. Under the hood, GRX u
- 👍 Easy to use
- 🤏 Touchscreen Friendly
- 🖥 Cross Platform and Available Everywhere
- 📄 Supports Gerber X2 (X3 coming soon!)
- 📈 Supports Excellon

## Supported Artwork Formats

- [x] Gerber RS-274X
- [x] X1
- [ ] X2 ( coming soon! )
- [ ] X3
- [ ] NC
- [ ] XNC
- [ ] IPC-NC-349
- [ ] Excellon
- [ ] Sieb & Meyer
- [x] GDSII
- [ ] ODB++
- [ ] IPC-2581
- [ ] DXF
- [ ] OASIS

## Tools

- [Electron](https://electronjs.org/)
- [React](https://reactjs.org/)
- [PixiJS](https://www.pixijs.com/)
- [regl](http://regl.party/)
- [Typescript](https://www.typescriptlang.org/)
- [Tracespace (forked)](https://github.com/hpcreery/tracespace)
25 changes: 21 additions & 4 deletions electron.vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import { resolve } from 'path'
import { defineConfig, externalizeDepsPlugin } from 'electron-vite'
import react from '@vitejs/plugin-react'
import { comlink } from 'vite-plugin-comlink'
import glsl from 'vite-plugin-glsl'
// import glsl from 'vite-plugin-glsl'
import glslify from 'rollup-plugin-glslify'

export default defineConfig({
main: {
Expand All @@ -14,16 +15,32 @@ export default defineConfig({
renderer: {
resolve: {
alias: {
'@renderer': resolve('src/renderer/src')
'@src': resolve('src/renderer/src'),
'@lib': resolve('src/renderer/lib'),
}
},
define: {
__APP_VERSION__: JSON.stringify(process.env.npm_package_version)
},
plugins: [react(), comlink(), glsl()],
plugins: [
react(),
comlink(),
glslify({
compress: false,
// @ts-ignore - glslify options are not typed
transform: ['glslify-import']
})
],
worker: {
format: 'es',
plugins: [comlink(), glsl()]
plugins: () => [
comlink(),
glslify({
compress: false,
// @ts-ignore - glslify options are not typed
transform: ['glslify-import']
})
]
}
}
})
Loading

0 comments on commit 2a3873f

Please sign in to comment.