Repository navigation
002 cube render layer - #1
Merged
Merged
Conversation
…ersion V2 リポジトリと sr-visualizer 1.0.13 の機能を確認した結果、V2 は SVG / PNG の 静止画出力のみをサポートし、アニメーション機能(GIF / WebP)は存在しないことが 判明した。Constitution 原則I の出力フォーマット要件およびコアミッション記述から 「アニメーション」を削除し、技術スタック表の sr-visualizer 行を ^1.0.13 で確定。 バージョンを 1.2.0 → 1.2.1 (PATCH: 事実誤認の訂正) に更新。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
描画レイヤー(sr-visualizer 統合)のフィーチャー仕様を新規作成。 V2 確認により静止画 PNG / SVG のみに絞ったスコープで策定。 - specs/002-cube-render-layer/spec.md: US1〜US4、FR-001〜010、SC-001〜007 - specs/002-cube-render-layer/checklists/requirements.md: 品質チェックリスト(全項目クリア) - .specify/feature.json: カレントフィーチャーを 002 に更新 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
sr-visualizer@1.0.13, svgdom, @resvg/resvg-js を依存に追加し、 vitest.config.ts の coverage.include に src/render/**/*.ts を追加。 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Phase 2 - 基盤:
- T003: sr-visualizer stickerColors API を確定し research.md に追記
(AllFaces 順 U,R,F,D,L,B、インデックス式 faceIdx*N²+row*N+col)
- T004: src/render/types.ts に Renderer/RenderOptions/RenderError/ColorScheme/ViewAxis を実装
- T005: src/render/defaults.ts に DEFAULT_COLOR_SCHEME (WCA 標準配色) を実装
- T006: src/render/sr-visualizer/dom-factory.ts に svgdom ヘッドレス DOM を実装
(globalThis.window を設定して svg.js v2 の Node.js 動作を保証)
Phase 3 - US1 SVG 描画:
- T007: tests/render/color-map.test.ts - buildStickerColors 単体テスト (RED → GREEN)
- T008: tests/render/adapter.test.ts - renderSVG 統合テスト (RED → GREEN)
- T009: src/render/sr-visualizer/color-map.ts に buildStickerColors を実装
- T010: src/render/sr-visualizer/adapter.ts に SrVisualizerAdapter.renderSVG を実装
- T011: src/render/index.ts に公開 API (renderSVG/renderPNG/createRenderer) を実装
全 33 render テスト GREEN、logic 104 テスト維持、typecheck 通過
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- T012-T014: renderPNG — PNG magic number validation, deterministic output - T015-T017: RenderOptions full application (backgroundColor, width/height, viewportRotations) with INVALID_OPTIONS / INVALID_COLOR validation - T018-T020: US4 colorScheme partial override tests (DEFAULT_COLOR_SCHEME merge) - T021: add tests/render/index.test.ts to bring public API coverage to 100% - T022: typecheck passes with zero errors - T023: src/render/index.ts public API verified against contracts/render-api.ts - T024: quickstart.md steps validated (deps, TDD, coverage, typecheck) All 184 tests pass; src/render/ line coverage 97.76% (threshold 90%). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.