mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-01 19:42:03 +00:00
feat(cli): add --output-resolution to lambda render
Allows authored-at-1080p compositions to render at 4K/2K via Chrome deviceScaleFactor supersampling without re-laying-out the composition. Plain --width 3840 silently lays out at 1920×1080 because data-width/ data-height attrs override Config.width — this flag is the supported way to ask the renderer to supersample. Accepts canonical CanvasResolution names (landscape, landscape-4k, portrait, portrait-4k, square, square-4k) and aliases (1080p, 4k, uhd, hd, 1080p-portrait, 4k-portrait, 1080p-square, 4k-square). Wired through render + render-batch. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
committed by
James Russo
co-authored by
Claude Opus 4.7
parent
154359d95d
commit
6d1236a0cc
@@ -467,17 +467,40 @@ jobs:
|
||||
timeout-minutes: 1
|
||||
steps:
|
||||
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Check file sizes (max 500 lines)
|
||||
# Scoped to files THIS PR changed under packages/studio. Walking the
|
||||
# whole tree blamed every unrelated PR for pre-existing offenders.
|
||||
# Falls back to a full scan on push events (no base ref available)
|
||||
# so the rule still guards main.
|
||||
run: |
|
||||
set -e
|
||||
if [ -n "${{ github.base_ref }}" ]; then
|
||||
mapfile -t files < <(
|
||||
git diff --name-only --diff-filter=ACMR \
|
||||
"origin/${{ github.base_ref }}...HEAD" -- \
|
||||
'packages/studio/**/*.ts' 'packages/studio/**/*.tsx' \
|
||||
| grep -vE '\.(test|spec)\.(ts|tsx)$|\.generated\.' || true
|
||||
)
|
||||
else
|
||||
mapfile -t files < <(
|
||||
find packages/studio -path '*/node_modules' -prune -o \
|
||||
\( -name '*.ts' -o -name '*.tsx' \) -print \
|
||||
| grep -vE '\.(test|spec)\.(ts|tsx)$|\.generated\.'
|
||||
)
|
||||
fi
|
||||
EXIT=0
|
||||
while IFS= read -r f; do
|
||||
for f in "${files[@]}"; do
|
||||
[ -z "$f" ] && continue
|
||||
[ -f "$f" ] || continue # skip files deleted in this PR
|
||||
if grep -qxF "$f" .filesize-allowlist 2>/dev/null; then continue; fi
|
||||
lines=$(wc -l < "$f")
|
||||
if [ "$lines" -gt 500 ]; then
|
||||
echo "::error file=$f::$f has $lines lines (max 500)"
|
||||
EXIT=1
|
||||
fi
|
||||
done < <(find packages/studio -path '*/node_modules' -prune -o \( -name '*.ts' -o -name '*.tsx' \) -print | grep -vE '\.(test|spec)\.(ts|tsx)$|\.generated\.')
|
||||
done
|
||||
exit $EXIT
|
||||
|
||||
semantic-pr-title:
|
||||
|
||||
Reference in New Issue
Block a user