Skip to content

Comments

develop#231

Merged
ienaga merged 3 commits intomainfrom
develop
Nov 14, 2025
Merged

develop#231
ienaga merged 3 commits intomainfrom
develop

Conversation

@ienaga
Copy link
Member

@ienaga ienaga commented Nov 14, 2025

No description provided.

Copilot AI review requested due to automatic review settings November 14, 2025 12:34
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR bumps the Next2D Player from version 2.8.0 to 2.9.0, fixing a critical operator precedence bug in color calculations and adding comprehensive test coverage for the affected components.

Key Changes:

  • Fixed operator precedence bug in RGB color extraction (bitwise AND operations now properly grouped before division)
  • Added comprehensive test suites for CommandRenderUseCase and CommandCaptureUseCase with 31 total test cases
  • Updated vitest and related testing dependencies from 4.0.8 to 4.0.9

Reviewed Changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/index.ts Updated version display from 2.8.0 to 2.9.0 in console output
packages/renderer/src/Command/usecase/CommandRenderUseCase.ts Fixed operator precedence bug by adding parentheses around bitwise operations in RGB color extraction
packages/renderer/src/Command/usecase/CommandRenderUseCase.test.ts Added comprehensive test suite with 16 test cases covering background color rendering, resize handling, and method call ordering
packages/renderer/src/Command/usecase/CommandCaptureUseCase.ts Fixed operator precedence bug by adding parentheses around bitwise operations in RGB color extraction
packages/renderer/src/Command/usecase/CommandCaptureUseCase.test.ts Added comprehensive test suite with 15 test cases covering image capture with various background colors and canvas sizes
package.json Updated version to 2.9.0 and vitest-related dependencies from 4.0.8 to 4.0.9
package-lock.json Updated lockfile to reflect version 2.9.0 and updated dependency resolutions for vitest packages and transitive dependencies

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

const expectedR = (0x80) / 255;
const expectedG = (0x80) / 255;
const expectedB = (0x80) / 255;

Copy link

Copilot AI Nov 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is trailing whitespace at the end of line 207. This should be removed to maintain code cleanliness.

Suggested change

Copilot uses AI. Check for mistakes.
const renderQueue = new Float32Array([-1]);
const imageBitmaps = null;

const result = execute(renderQueue, imageBitmaps);
Copy link

Copilot AI Nov 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the function execute does not return anything, yet the return value is used.

Copilot uses AI. Check for mistakes.
@ienaga ienaga merged commit 6b71d00 into main Nov 14, 2025
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant