Skip to content

Commit fa6723b

Browse files
authored
Add image processing (#382)
* Add image processing * Stop setting the settings values
1 parent 7178de3 commit fa6723b

Some content is hidden

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

59 files changed

+2599
-16
lines changed

.changeset/afraid-mice-add.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@tokens-studio/graph-engine-ui": minor
3+
---
4+
5+
Added experimental image manipulation nodes

.changeset/two-laws-travel.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@tokens-studio/graph-engine": minor
3+
---
4+
5+
Changed registering capabilities to be async if needed

packages/graph-editor/src/components/panels/nodeSettings/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ const NodeSettings = ({
133133
selectedNode: Node;
134134
annotations: Record<string, unknown>;
135135
}) => {
136-
console.log('node setting');
137136
return (
138137
<Stack direction="column" gap={2}>
139138
<Label>Node ID</Label>

packages/nodes-image/.dockerignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
dist
2+
docs
3+
jest-coverage
4+
node_modules

packages/nodes-image/.eslintignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
dist/**
2+
coverage/**
3+
storybook-static/**
4+
docs
5+
site
6+
cypress
7+
cli
8+
.rollup.cache
9+
.turbo

packages/nodes-image/.eslintrc.cjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/* eslint-disable no-undef */
2+
/** @type {import("eslint").Linter.Config} */
3+
module.exports = {
4+
root: true,
5+
extends: [require.resolve('@tokens-studio/eslint-config-custom')]
6+
};
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package.json
2+
package-lock.json
3+
dist
4+
coverage
5+
docs
6+
jest-coverage
7+
site
8+
cli
9+
.turbo
10+
.rollup.cache

packages/nodes-image/LICENCE

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
“Commons Clause” License Condition v1.0
2+
3+
The Software is provided to you by the Licensor under the License, as defined below, subject to the following condition.
4+
5+
Without limiting other conditions in the License, the grant of rights under the License will not include, and the License does not grant to you, the right to Sell the Software.
6+
7+
For purposes of the foregoing, “Sell” means practicing any or all of the rights granted to you under the License to provide to third parties, for a fee or other consideration (including without limitation fees for hosting or consulting/ support services related to the Software), a product or service whose value derives, entirely or substantially, from the functionality of the Software. Any license notice or attribution required by the License must also include this Commons Clause License Condition notice.
8+
9+
Software: Graph Engine
10+
11+
License: MIT
12+
13+
Licensor: Hyma BV
14+
15+
---
16+
17+
MIT License
18+
19+
Copyright (c) 2023 Hyma BV
20+
21+
Permission is hereby granted, free of charge, to any person obtaining a copy
22+
of this software and associated documentation files (the "Software"), to deal
23+
in the Software without restriction, including without limitation the rights
24+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
25+
copies of the Software, and to permit persons to whom the Software is
26+
furnished to do so, subject to the following conditions:
27+
28+
The above copyright notice and this permission notice shall be included in all
29+
copies or substantial portions of the Software.
30+
31+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
32+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
33+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
34+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
35+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
36+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
37+
SOFTWARE.

packages/nodes-image/package.json

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"name": "@tokens-studio/graph-engine-nodes-image",
3+
"version": "1.0.0",
4+
"description": "Image nodes for the graph engine",
5+
"license": "MPL-2.0",
6+
"author": "andrew@hyma.io",
7+
"type": "module",
8+
"exports": {
9+
".": {
10+
"import": "./dist/index.js",
11+
"types": "./dist/index.d.ts"
12+
}
13+
},
14+
"files": [
15+
"dist"
16+
],
17+
"scripts": {
18+
"build": "tsup",
19+
"dev": "tsup --watch",
20+
"docs": "typedoc",
21+
"format": "npm run format:eslint && npm run format:prettier",
22+
"format:eslint": "eslint --ext .tsx,.ts,.js,.html . --fix",
23+
"format:prettier": "prettier \"**/*.{ts,js,md,json}\" --write",
24+
"lint": "eslint .",
25+
"lint:fix": "eslint --fix .",
26+
"release": "npm run build && changeset publish",
27+
"test": "vitest run --passWithNoTests"
28+
},
29+
"types": "./dist/index.d.ts",
30+
"dependencies": {
31+
"@imagemagick/magick-wasm": "^0.0.29",
32+
"axios": "^1.7.2"
33+
},
34+
"peerDependencies": {
35+
"@tokens-studio/graph-engine": "*",
36+
"react": "^18.2.0"
37+
},
38+
"devDependencies": {
39+
"@changesets/cli": "2.26.0",
40+
"@tokens-studio/eslint-config-custom": "*",
41+
"@tokens-studio/prettier-config-custom": "*",
42+
"@tokens-studio/graph-engine": "*",
43+
"tsup": "^8.1.0",
44+
"typedoc": "^0.24.7",
45+
"typescript": "^5.4.5",
46+
"vitest": "^1.6.0"
47+
},
48+
"keywords": [
49+
"studio",
50+
"tokens",
51+
"ui"
52+
]
53+
}

packages/nodes-image/readme.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Image Processing nodes
2+
3+
This is an experimental package of image processing nodes that use a wasm converted version of [ImageMagick](https://imagemagick.org/)

0 commit comments

Comments
 (0)