Skip to content
This repository was archived by the owner on Jul 26, 2025. It is now read-only.

chore: update dependencies #488

Merged
merged 1 commit into from
Jul 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion demo/components/testFunctions/testColorRois.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Image } from '../../../src/index.js';
import { fromMask, colorRois } from '../../../src/roi/index.js';
import { colorRois, fromMask } from '../../../src/roi/index.js';

/**
* Make a mask out of the image and detect all ROIs. Returns only the white ROIs on a black background.
Expand Down
2 changes: 1 addition & 1 deletion demo/components/testFunctions/testCorrectColor.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { polishAltered } from '../../../src/correctColor/__tests__/testUtils/imageColors.js';
import { referenceColorCard } from '../../../src/correctColor/utils/referenceColorCard.ts';
import { correctColor } from '../../../src/correctColor/correctColor.js';
import {
getMeasuredColors,
getReferenceColors,
} from '../../../src/correctColor/utils/formatData.js';
import { referenceColorCard } from '../../../src/correctColor/utils/referenceColorCard.ts';
import type { Image } from '../../../src/index.js';

/**
Expand Down
2 changes: 1 addition & 1 deletion demo/components/testFunctions/testExtract.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { fromMask, Image } from '../../../src/index.js';
import { Image, fromMask } from '../../../src/index.js';

/**
* Extract the pixels of a mask from the image.
Expand Down
2 changes: 1 addition & 1 deletion demo/components/testFunctions/testGetBorderPoints.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Image } from '../../../src/index.js';
import { fromMask, Mask } from '../../../src/index.js';
import { Mask, fromMask } from '../../../src/index.js';
/**
* Paint the border of the larger black ROI on the image.
* @param image - The image to process
Expand Down
36 changes: 18 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,46 +43,46 @@
"ml-ransac": "^1.0.0",
"ml-regression-multivariate-linear": "^2.0.4",
"ml-regression-polynomial-2d": "^1.0.0",
"ml-spectra-processing": "^14.12.0",
"ml-spectra-processing": "^14.14.0",
"robust-point-in-polygon": "^1.0.3",
"ssim.js": "^3.5.0",
"tiff": "^7.0.0",
"tiff": "^7.1.0",
"ts-pattern": "^5.7.1",
"uint8-base64": "^1.0.0"
},
"devDependencies": {
"@microsoft/api-extractor": "^7.52.8",
"@microsoft/api-extractor": "^7.52.9",
"@tailwindcss/forms": "^0.5.10",
"@tailwindcss/vite": "^4.1.10",
"@tailwindcss/vite": "^4.1.11",
"@types/jest-image-snapshot": "^6.4.0",
"@types/js-priority-queue": "^0.0.9",
"@types/node": "^24.0.1",
"@types/node": "^24.1.0",
"@types/react": "^19.1.8",
"@types/react-dom": "^19.1.6",
"@types/robust-point-in-polygon": "^1.0.4",
"@vitejs/plugin-react": "^4.5.2",
"@vitest/coverage-v8": "^3.2.3",
"@vitest/expect": "^3.2.3",
"@zakodium/tsconfig": "^1.0.1",
"@vitejs/plugin-react": "^4.7.0",
"@vitest/coverage-v8": "^3.2.4",
"@vitest/expect": "^3.2.4",
"@zakodium/tsconfig": "^1.0.2",
"autoprefixer": "^10.4.21",
"clsx": "^2.1.1",
"cross-env": "^7.0.3",
"eslint": "^9.29.0",
"eslint-config-cheminfo-react": "^16.1.0",
"eslint-config-cheminfo-typescript": "^18.0.1",
"eslint": "^9.31.0",
"eslint-config-cheminfo-react": "^17.0.1",
"eslint-config-cheminfo-typescript": "^19.0.0",
"immer": "^10.1.1",
"jest-image-snapshot": "^6.5.1",
"jest-matcher-deep-close-to": "^3.0.2",
"postcss": "^8.5.5",
"prettier": "^3.5.3",
"postcss": "^8.5.6",
"prettier": "^3.6.2",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"react-router-dom": "^7.6.2",
"react-router-dom": "^7.7.1",
"rimraf": "^6.0.1",
"tailwindcss": "^4.1.10",
"tailwindcss": "^4.1.11",
"typescript": "~5.8.3",
"vite": "^6.3.5",
"vitest": "^3.2.3"
"vite": "^7.0.6",
"vitest": "^3.2.4"
},
"repository": {
"type": "git",
Expand Down
10 changes: 5 additions & 5 deletions scripts/featureMatching/featureMatchingTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ import util from 'node:util';

import type { GetBriefOptions } from '../../src/featureMatching/descriptors/getBrief.js';
import { getBrief } from '../../src/featureMatching/descriptors/getBrief.js';
import type {
DrawKeypointsOptions,
GetColorsOptions,
} from '../../src/index.js';
import {
getCrosscheckMatches,
Montage,
getCrosscheckMatches,
readSync,
writeSync,
} from '../../src/index.js';
import type {
DrawKeypointsOptions,
GetColorsOptions,
} from '../../src/index.js';
import { getMinMax } from '../../src/utils/getMinMax.js';

util.inspect.defaultOptions.depth = 5;
Expand Down
6 changes: 3 additions & 3 deletions src/Image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ import { match } from 'ts-pattern';
import type { Mask } from './Mask.js';
import type { DivideOptions } from './compare/divide.js';
import { divide } from './compare/divide.js';
import { add, subtract } from './compare/index.js';
import type { SubtractImageOptions } from './compare/index.js';
import { add, subtract } from './compare/index.js';
import type { MultiplyOptions } from './compare/multiply.js';
import { multiply } from './compare/multiply.js';
import type {
MedianOptions,
HistogramOptions,
MeanOptions,
MedianOptions,
VarianceOptions,
HistogramOptions,
} from './compute/index.js';
import { histogram, mean, median, variance } from './compute/index.js';
import { correctColor } from './correctColor/index.js';
Expand Down
14 changes: 7 additions & 7 deletions src/Mask.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import type { BitDepth, Image } from './Image.js';
import type { SubtractImageOptions } from './compare/index.js';
import { subtract } from './compare/index.js';
import {
drawLineOnMask,
drawPoints,
drawPolygonOnMask,
drawPolylineOnMask,
drawRectangle,
} from './draw/index.js';
import type {
DrawLineOnMaskOptions,
DrawPointsOptions,
DrawPolygonOnMaskOptions,
DrawPolylineOnMaskOptions,
DrawRectangleOptions,
} from './draw/index.js';
import {
drawLineOnMask,
drawPoints,
drawPolygonOnMask,
drawPolylineOnMask,
drawRectangle,
} from './draw/index.js';
import type { AndOptions, InvertOptions, OrOptions } from './filters/index.js';
import { and, invert, or } from './filters/index.js';
import { getBorderPoints } from './maskAnalysis/getBorderPoints.js';
Expand Down
Loading
Loading