@instruments/materialgraph 0.40.0 → 0.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/resolve-color-types.d.ts +2 -2
- package/samplize-colorvec.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instruments/materialgraph",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.41.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@
|
|
24
|
+
"@materialinstruments/colorscope": "10.2.1"
|
|
25
25
|
},
|
|
26
26
|
"license": "Proprietary",
|
|
27
27
|
"engines": {
|
package/resolve-color-types.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { MatchTarget } from "@
|
|
1
|
+
import type { MatchTarget } from "@materialinstruments/colorscope/match";
|
|
2
2
|
/**
|
|
3
3
|
* Color-name resolution (GET `/api/v1/search/colors/resolve`): the resolved
|
|
4
4
|
* color, and whether the named paint is a variant in the catalogue.
|
|
5
5
|
*/
|
|
6
|
-
import type { ColorResolution } from "@
|
|
6
|
+
import type { ColorResolution } from "@materialinstruments/colorscope/naming";
|
|
7
7
|
import type { VariantId } from "./identifiers.js";
|
|
8
8
|
import type { SearchCatalogueSubset } from "./search-catalogue-subset-types.js";
|
|
9
9
|
import type { OpenEnum } from "./types.js";
|
package/samplize-colorvec.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EMBEDDING_VERSION, EMBEDDING_VECTOR_SIZE, embeddingCosineSimilarity, paletteToEmbedding, } from "@
|
|
1
|
+
import { EMBEDDING_VERSION, EMBEDDING_VECTOR_SIZE, embeddingCosineSimilarity, paletteToEmbedding, } from "@materialinstruments/colorscope/embedding";
|
|
2
2
|
export const SAMPLIZE_COLORVEC_RANKING_VERSION = "solid-colorvec-cosine-v2";
|
|
3
3
|
export const SAMPLIZE_COLORVEC_EMBEDDING_VERSION = EMBEDDING_VERSION;
|
|
4
4
|
const decodeVector = (encoded) => {
|