Skip to content

Commit 193a8d8

Browse files
committed
Merge remote-tracking branch 'origin/main' into 461-implement-perspective-warp
2 parents 67ee781 + 798d40d commit 193a8d8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+244
-402
lines changed

.github/workflows/nodejs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88

99
jobs:
1010
nodejs:
11+
# Documentation: https://github.com/zakodium/workflows#nodejs-ci
1112
uses: zakodium/workflows/.github/workflows/nodejs.yml@nodejs-v1
1213
with:
1314
lint-check-types: true

.ncurc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
reject:
2-
# Package is now ESM-only
2+
# Package is now asynchronous
33
- 'image-type'

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CHANGELOG.md

README.md

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,32 @@
1+
<h3 align="center">
2+
<a href="https://www.zakodium.com">
3+
<img src="https://www.zakodium.com/brand/zakodium-logo-white.svg" width="50" alt="Zakodium logo" />
4+
</a>
5+
<p>
6+
Maintained by <a href="https://www.zakodium.com">Zakodium</a>
7+
</p>
8+
</h3>
9+
110
# image-js
211

3-
[![NPM version][npm-image]][npm-url]
4-
[![build status][ci-image]][ci-url]
5-
[![Test coverage][codecov-image]][codecov-url]
6-
[![npm download][download-image]][download-url]
12+
[![NPM version](https://img.shields.io/npm/v/image-js.svg)](https://www.npmjs.com/package/image-js)
13+
[![npm download](https://img.shields.io/npm/dm/image-js.svg)](https://www.npmjs.com/package/image-js)
14+
[![test coverage](https://img.shields.io/codecov/c/github/image-js-typescript/image-js-typescript.svg)](https://codecov.io/gh/image-js/image-js-typescript)
15+
[![license](https://img.shields.io/npm/l/image-js.svg)](https://github.com/image-js/image-js-typescript/blob/main/LICENSE)
716

817
Image processing and manipulation in JavaScript.
918

1019
## Installation
1120

12-
`$ npm i image-js`
21+
```console
22+
npm install image-js
23+
```
24+
25+
## API
1326

14-
## [API](https://image-js.github.io/image-js-typescript/)
27+
### [Complete API documentation](https://image-js.github.io/image-js-typescript/)
28+
29+
### [Usage docs and guides](https://image-js-docs.pages.dev/docs/Getting%20started)
1530

1631
## Development
1732

@@ -20,12 +35,3 @@ See [Development documentation](./Development.md).
2035
## License
2136

2237
[MIT](./LICENSE)
23-
24-
[npm-image]: https://img.shields.io/npm/v/image-js.svg
25-
[npm-url]: https://www.npmjs.com/package/image-js
26-
[ci-image]: https://github.com/image-js/image-js-typescript/actions/workflows/nodejs.yml/badge.svg
27-
[ci-url]: https://github.com/image-js/image-js-typescript/actions/workflows/nodejs.yml
28-
[codecov-image]: https://img.shields.io/codecov/c/github/image-js/image-js-typescript.svg
29-
[codecov-url]: https://codecov.io/gh/image-js/image-js-typescript
30-
[download-image]: https://img.shields.io/npm/dm/image-js.svg
31-
[download-url]: https://www.npmjs.com/package/image-js

api-extractor.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
* SUPPORTED TOKENS: <projectFolder>, <packageName>, <unscopedPackageName>
104104
* DEFAULT VALUE: "<projectFolder>/tsconfig.json"
105105
*/
106-
"tsconfigFilePath": "<projectFolder>/tsconfig.esm.json"
106+
"tsconfigFilePath": "<projectFolder>/tsconfig.build.json"
107107
/**
108108
* Provides a compiler configuration that will be used instead of reading the tsconfig.json file from disk.
109109
* The object must conform to the TypeScript tsconfig schema:

demo/.eslintrc.yml

Whitespace-only changes.

demo/components/CameraSelector.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default function CameraSelector() {
1414
<select
1515
id="camera"
1616
name="camera"
17-
className="block w-full py-2 pl-3 pr-10 mt-1 text-base border-gray-300 rounded-md focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"
17+
className="block w-full py-2 pl-3 pr-10 mt-1 text-base border border-gray-300 rounded-md focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"
1818
value={selectedCamera?.device.label}
1919
onChange={(event) => {
2020
const device = cameras.find(

demo/components/CameraSnapshotButton.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export default function CameraSnapshotButton(props: CameraSnapshotButtonProps) {
1616
const url = canvasInputRef.current.toDataURL();
1717
const image = readCanvas(canvasInputRef.current);
1818
setSnapshotUrl(url);
19+
// eslint-disable-next-line react-hooks/react-compiler
1920
snapshotImageRef.current = image;
2021
}
2122
}

demo/components/CameraTransform.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export default function CameraTransform(props: CameraTransformProps) {
4545
const canvasInput = canvasInputRef.current as HTMLCanvasElement;
4646
const canvasOutput = canvasOutputRef.current as HTMLCanvasElement;
4747
if (!canvasInput || !canvasOutput) return;
48+
// eslint-disable-next-line react-hooks/react-compiler
4849
canvasInput.height = video.videoHeight;
4950
canvasInput.width = video.videoWidth;
5051
const inputContext = canvasInput.getContext(
@@ -63,7 +64,7 @@ export default function CameraTransform(props: CameraTransformProps) {
6364
}
6465
writeCanvas(result, canvasOutput);
6566
} catch (error_) {
66-
setError(error_.stack);
67+
setError((error_ as Error).stack as string);
6768
console.error(error_);
6869
}
6970
nextFrameRequest = requestAnimationFrame(nextFrame);

demo/components/Home.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import CameraSnapshotButton from './CameraSnapshotButton.js';
77
import type { TransformFunction } from './CameraTransform.js';
88
import CameraTransform from './CameraTransform.js';
99
import Container from './Container.js';
10-
import { testGetFastKeypoints } from './testFunctions/testGetFastKeypoints.js';
10+
import { testCannyEdge } from './testFunctions/testCannyEdge.js';
1111

12-
const testTransform: TransformFunction = testGetFastKeypoints;
12+
const testTransform: TransformFunction = testCannyEdge;
1313

1414
export default function Home() {
1515
const snapshotImageRef = useRef<Image>(null);

0 commit comments

Comments
 (0)