test(canvas): share oracle pixel image type
This commit is contained in:
parent
ef1ef0c9b1
commit
b6570d7a03
|
|
@ -4,11 +4,7 @@ import { parseArgs } from 'node:util'
|
|||
|
||||
import { initCanvasKit } from '@open-pencil/core/io'
|
||||
|
||||
interface PixelImage {
|
||||
width: number
|
||||
height: number
|
||||
pixels: Uint8Array
|
||||
}
|
||||
import type { PixelImage } from './pixel-image'
|
||||
|
||||
interface Component {
|
||||
count: number
|
||||
|
|
|
|||
|
|
@ -4,11 +4,7 @@ import { parseArgs } from 'node:util'
|
|||
|
||||
import { initCanvasKit } from '@open-pencil/core/io'
|
||||
|
||||
interface PixelImage {
|
||||
width: number
|
||||
height: number
|
||||
pixels: Uint8Array
|
||||
}
|
||||
import type { PixelImage } from './pixel-image'
|
||||
|
||||
interface ChannelSummary {
|
||||
rows: Array<{ y: number; count: number; minX: number; maxX: number }>
|
||||
|
|
|
|||
5
scripts/pixel-image.ts
Normal file
5
scripts/pixel-image.ts
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
export interface PixelImage {
|
||||
width: number
|
||||
height: number
|
||||
pixels: Uint8Array
|
||||
}
|
||||
Loading…
Reference in a new issue