Skip to content

Rewrite - #257

Draft
piquark6046 wants to merge 16 commits into
mainfrom
rewrite
Draft

Rewrite#257
piquark6046 wants to merge 16 commits into
mainfrom
rewrite

Conversation

@piquark6046

Copy link
Copy Markdown
Member

No description provided.

…hing utilities

- Deleted `ocr-types.ts` and `ocr-worker.ts` files as part of the refactor.
- Introduced `startrick.ts` with schema matching functions for validating and manipulating data structures.
- Removed `vuejsawait.ts` for cleaner codebase.
- Updated `tsconfig.json` to change the root directory for TypeScript compilation.
…g, distance, luminance, contrast, and readability
if (typeof self !== 'undefined') {
return {
OnMessage(Callback) {
self.addEventListener('message', (EventValue: MessageEvent) => Callback(EventValue.data))
Comment thread userscript/source/worker-runtime.ts Fixed
…ions

- Implement tests for `ParseHexColor`, `HexDistance`, `HexRelativeLuminance`, `HexContrastRatio`, `IsReadableTextColor`, and `TextReadabilityScore` in coloring-hex.test.ts.
- Validate both valid and invalid hex color formats, ensuring correct parsing and error handling.
- Add tests for geometric region membership functions including `IsInsideRegion` and `RegionCentroidRatio` in coloring-region.test.ts.
- Test various geometric shapes (box, line, rectangle, triangle, pyramid) for color containment.
- Create a worker pool test suite in coloring-worker-pool.test.ts to validate concurrent processing of color operations.
- Ensure error handling for malformed inputs and validate pool size constraints.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants