@bigmistqke/view.gl 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/settings.local.json +9 -0
- package/.github/ISSUE_TEMPLATE/bug-report.yml +31 -0
- package/.github/ISSUE_TEMPLATE/feature-request.yml +27 -0
- package/.github/workflows/codeql.yml +46 -0
- package/.github/workflows/deploy-page.yml +38 -0
- package/.github/workflows/format.yml +40 -0
- package/README.md +286 -84
- package/dev/404.html +19 -0
- package/dev/dist/404.html +19 -0
- package/dev/dist/assets/bezier-DuLTb2d1.js +294 -0
- package/dev/dist/assets/game_of_life-D7qHdFcv.js +202 -0
- package/dev/dist/assets/grid-Ie22U_9K.js +173 -0
- package/dev/dist/assets/index-0qrXMlfv.js +109 -0
- package/dev/dist/assets/index-C2N3u8wj.css +12 -0
- package/dev/dist/assets/main-BZ1N6pp6.js +32 -0
- package/dev/dist/assets/overview-DAxtMIw5.js +78 -0
- package/dev/dist/assets/pix_sim-DIhzM_vu.js +501 -0
- package/dev/dist/assets/symbol-BouRL-Ni.js +65 -0
- package/dev/dist/assets/tag-C_bg62fD.js +516 -0
- package/dev/dist/assets/tetris-IMnkSi9p.js +344 -0
- package/dev/dist/assets/utils-CvCgsM08.js +50 -0
- package/dev/dist/index.html +51 -0
- package/dev/index.html +39 -10
- package/dev/{bezier.ts → src/examples/bezier.ts} +1 -1
- package/dev/{grid.ts → src/examples/grid.ts} +1 -1
- package/dev/{pix_sim.ts → src/examples/pix_sim.ts} +112 -97
- package/dev/src/examples/symbol.ts +79 -0
- package/dev/{tetris.ts → src/examples/tetris.ts} +1 -0
- package/dev/src/index.css +12 -0
- package/dev/src/index.ts +69 -0
- package/dev/{utils.ts → src/utils.ts} +8 -2
- package/dev/vite.config.ts +9 -1
- package/dist/index.d.mts +3 -2
- package/dist/index.mjs +81 -27
- package/dist/index.mjs.map +1 -1
- package/dist/tag.d.mts +9 -9
- package/dist/tag.mjs +46 -17
- package/dist/tag.mjs.map +1 -1
- package/dist/{types-DxpS9Bae.d.mts → types-DoFAJoh-.d.mts} +18 -18
- package/package.json +20 -7
- package/src/index.ts +39 -17
- package/src/tag.ts +47 -39
- package/src/types.ts +24 -24
- package/src/{utils.ts → utils/index.ts} +39 -14
- package/src/utils/object.ts +27 -0
- package/test/index.test.ts +1017 -0
- package/test/mocks/webgl.ts +248 -0
- package/test/setup.ts +13 -0
- package/test/tag.test.ts +790 -0
- package/vitest.config.ts +15 -0
- /package/dev/{game_of_life.ts → src/examples/game_of_life.ts} +0 -0
- /package/dev/{index.ts → src/examples/overview.ts} +0 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
name: "🐛 Bug report"
|
|
2
|
+
description: Create a report to help us improve
|
|
3
|
+
body:
|
|
4
|
+
- type: markdown
|
|
5
|
+
attributes:
|
|
6
|
+
value: |
|
|
7
|
+
Thank you for reporting an issue :pray:.
|
|
8
|
+
|
|
9
|
+
The more information you fill in, the better the community can help you.
|
|
10
|
+
- type: textarea
|
|
11
|
+
id: description
|
|
12
|
+
attributes:
|
|
13
|
+
label: Describe the bug
|
|
14
|
+
description: Provide a clear and concise description of the challenge you are running into.
|
|
15
|
+
validations:
|
|
16
|
+
required: true
|
|
17
|
+
- type: input
|
|
18
|
+
id: link
|
|
19
|
+
attributes:
|
|
20
|
+
label: Minimal Reproduction Link
|
|
21
|
+
description: |
|
|
22
|
+
Please provide a link to a minimal reproduction of the bug you are running into.
|
|
23
|
+
It makes the process of verifying and fixing the bug much easier.
|
|
24
|
+
Note:
|
|
25
|
+
- Your bug will may get fixed much faster if we can run your code and it doesn't have dependencies other than the solid-js and solid-primitives.
|
|
26
|
+
- To create a shareable code example you can use [Stackblitz](https://stackblitz.com/) (https://solid.new). Please no localhost URLs.
|
|
27
|
+
- Please read these tips for providing a minimal example: https://stackoverflow.com/help/mcve.
|
|
28
|
+
placeholder: |
|
|
29
|
+
e.g. https://stackblitz.com/edit/...... OR Github Repo
|
|
30
|
+
validations:
|
|
31
|
+
required: true
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
name: "Feature Request"
|
|
2
|
+
description: For feature/enhancement requests. Please search for existing issues first.
|
|
3
|
+
body:
|
|
4
|
+
- type: markdown
|
|
5
|
+
attributes:
|
|
6
|
+
value: |
|
|
7
|
+
Thank you for bringing your ideas here :pray:.
|
|
8
|
+
|
|
9
|
+
The more information you fill in, the better the community can understand your idea.
|
|
10
|
+
- type: textarea
|
|
11
|
+
id: problem
|
|
12
|
+
attributes:
|
|
13
|
+
label: Describe The Problem To Be Solved
|
|
14
|
+
description: Provide a clear and concise description of the challenge you are running into.
|
|
15
|
+
validations:
|
|
16
|
+
required: true
|
|
17
|
+
- type: textarea
|
|
18
|
+
id: solution
|
|
19
|
+
attributes:
|
|
20
|
+
label: Suggest A Solution
|
|
21
|
+
description: |
|
|
22
|
+
A concise description of your preferred solution. Things to address include:
|
|
23
|
+
- Details of the technical implementation
|
|
24
|
+
- Tradeoffs made in design decisions
|
|
25
|
+
- Caveats and considerations for the future
|
|
26
|
+
validations:
|
|
27
|
+
required: true
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
name: 'CodeQL'
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
schedule:
|
|
9
|
+
- cron: '30 1 * * 0'
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
analyze:
|
|
13
|
+
name: Analyze
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
permissions:
|
|
16
|
+
security-events: write
|
|
17
|
+
|
|
18
|
+
steps:
|
|
19
|
+
- name: Checkout repository
|
|
20
|
+
uses: actions/checkout@v4
|
|
21
|
+
|
|
22
|
+
- name: Initialize CodeQL
|
|
23
|
+
uses: github/codeql-action/init@v1
|
|
24
|
+
with:
|
|
25
|
+
languages: javascript
|
|
26
|
+
|
|
27
|
+
- name: Perform CodeQL Analysis
|
|
28
|
+
uses: github/codeql-action/analyze@v1
|
|
29
|
+
with:
|
|
30
|
+
upload: false
|
|
31
|
+
output: sarif-results
|
|
32
|
+
|
|
33
|
+
# Only include files that are public
|
|
34
|
+
- name: filter-sarif
|
|
35
|
+
uses: advanced-security/filter-sarif@main
|
|
36
|
+
with:
|
|
37
|
+
patterns: |
|
|
38
|
+
/src/**/*.*
|
|
39
|
+
-**/*.test.*
|
|
40
|
+
input: sarif-results/javascript.sarif
|
|
41
|
+
output: sarif-results/javascript.sarif
|
|
42
|
+
|
|
43
|
+
- name: Upload SARIF
|
|
44
|
+
uses: github/codeql-action/upload-sarif@v1
|
|
45
|
+
with:
|
|
46
|
+
sarif_file: sarif-results/javascript.sarif
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
name: Deploy to GitHub Pages
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main # or the branch you want to trigger the deployment from
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
build-and-deploy:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
permissions:
|
|
12
|
+
contents: write
|
|
13
|
+
|
|
14
|
+
steps:
|
|
15
|
+
- name: Checkout repository
|
|
16
|
+
uses: actions/checkout@v2
|
|
17
|
+
|
|
18
|
+
- name: install latest corepack
|
|
19
|
+
run: npm install corepack@latest -g
|
|
20
|
+
|
|
21
|
+
- run: corepack enable
|
|
22
|
+
- uses: actions/setup-node@v4
|
|
23
|
+
with:
|
|
24
|
+
node-version: 20
|
|
25
|
+
cache: 'pnpm'
|
|
26
|
+
|
|
27
|
+
- name: Install dependencies
|
|
28
|
+
run: pnpm install
|
|
29
|
+
|
|
30
|
+
- name: Build dev
|
|
31
|
+
run: pnpm dev:build
|
|
32
|
+
|
|
33
|
+
- name: Deploy to GitHub Pages
|
|
34
|
+
uses: peaceiris/actions-gh-pages@v3
|
|
35
|
+
with:
|
|
36
|
+
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
37
|
+
publish_dir: ./dev/dist # Adjust if your build output directory is different
|
|
38
|
+
publish_branch: gh-pages # Specify the branch to deploy to
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
name: Format
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
format:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
|
|
11
|
+
permissions:
|
|
12
|
+
# Give the default GITHUB_TOKEN write permission to commit and push the
|
|
13
|
+
# added or changed files to the repository.
|
|
14
|
+
contents: write
|
|
15
|
+
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v4
|
|
18
|
+
|
|
19
|
+
- name: install latest corepack
|
|
20
|
+
run: npm install corepack@latest -g
|
|
21
|
+
|
|
22
|
+
- run: corepack enable
|
|
23
|
+
- uses: actions/setup-node@v4
|
|
24
|
+
with:
|
|
25
|
+
node-version: 20
|
|
26
|
+
cache: 'pnpm'
|
|
27
|
+
|
|
28
|
+
# "git restore ." discards changes to package-lock.json
|
|
29
|
+
- name: Install dependencies
|
|
30
|
+
run: |
|
|
31
|
+
pnpm install --no-frozen-lockfile --ignore-scripts
|
|
32
|
+
git restore .
|
|
33
|
+
|
|
34
|
+
- name: Format
|
|
35
|
+
run: pnpm run format
|
|
36
|
+
|
|
37
|
+
- name: Add, Commit and Push
|
|
38
|
+
uses: stefanzweifel/git-auto-commit-action@v4
|
|
39
|
+
with:
|
|
40
|
+
commit_message: 'Format'
|