forked from gosling-lang/gosling.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from datavisyn/mp/clone_performance_v2
Update to latest master
- Loading branch information
Showing
25 changed files
with
11,486 additions
and
7,117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,29 +2,47 @@ name: Deploy Editor | |
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
branches: [main] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | ||
concurrency: | ||
group: 'pages' | ||
cancel-in-progress: false | ||
|
||
deploy: | ||
jobs: | ||
Build: | ||
runs-on: ubuntu-latest | ||
if: github.ref == 'refs/heads/master' | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
- run: yarn install | ||
- run: yarn build-editor | ||
- uses: pnpm/action-setup@v2 | ||
- run: | | ||
pnpm install | ||
pnpm build-editor | ||
echo "gosling.js.org" >> build/CNAME | ||
env: | ||
NODE_OPTIONS: '--max_old_space_size=8192' | ||
- name: Deploy editor | ||
run: | | ||
git config --global user.name "[email protected]" | ||
git config --global user.email "GitHub Action" | ||
git remote set-url origin https://${ACCESS_TOKEN}@github.com/${REPO}.git | ||
yarn deploy | ||
env: | ||
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} | ||
REPO: ${{ github.repository }} | ||
- uses: actions/upload-pages-artifact@v2 | ||
with: | ||
path: build | ||
|
||
Deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
needs: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ jobs: | |
docs | ||
refactor | ||
test | ||
perf | ||
# Configure which scopes are allowed. | ||
scopes: | | ||
core | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
checksumBehavior: update | ||
|
||
nodeLinker: node-modules | ||
|
||
yarnPath: .yarn/releases/yarn-4.0.2.cjs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import type { GoslingSpec } from '@gosling-lang/gosling-schema'; | ||
import { alignmentWithText } from './responsive-alignment'; | ||
|
||
const commonProps = { width: 800, height: 400, xAxis: false, rowLegend: false, colorLegend: false }; | ||
export const EX_SPEC_PERF_ALIGNMENT: GoslingSpec = { | ||
zoomLimits: [1, 396], | ||
xDomain: { interval: [350, 396] }, | ||
assembly: 'unknown', | ||
title: 'Smoother Zoom', | ||
subtitle: 'Rather than redrawing every element at every frame, we can scale existing elements', | ||
views: [ | ||
{ | ||
tracks: [ | ||
{ | ||
...alignmentWithText(commonProps), | ||
title: 'New Approach: Stretching Tiles', | ||
experimental: { stretchGraphics: true } | ||
} | ||
] | ||
}, | ||
{ | ||
tracks: [ | ||
{ | ||
...alignmentWithText(commonProps), | ||
title: 'Original Approach' | ||
} | ||
] | ||
} | ||
] | ||
}; |
Oops, something went wrong.