-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(vectorizer): Headless ready and move into worker for demo purposes #6
base: feature/vectorize-plugin-ms
Are you sure you want to change the base?
Changes from 3 commits
1f17f48
1a986b1
cfff8f4
af309e9
cf00db3
b3a8791
8a828e9
941767e
1ebb0a0
4f11aba
4cddfea
5289b4a
e6639f8
edf8783
5f22833
94645a7
6855ffc
589a4da
6ba69d4
12b5a49
52c52c5
6797250
13facde
ab4c77c
f15a1da
34cfd3d
38875f9
06feae3
8f50f7d
4a8e47b
1e806bd
e2c2fe9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "chrome", | ||
"request": "launch", | ||
"name": "Launch Chrome against localhost", | ||
"url": "http://localhost:5173", | ||
"webRoot": "${workspaceFolder}" | ||
} | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,17 +14,18 @@ console.log( | |
|
||
const configs = [ | ||
{ | ||
entryPoints: ['src/index.ts'], | ||
entryPoints: ['src/index.ts', "src/worker.ts"], | ||
define: { | ||
PLUGIN_VERSION: `"${packageJson.version}"` | ||
}, | ||
minify: true, | ||
bundle: true, | ||
sourcemap: true, | ||
external: ['@cesdk/cesdk-js', 'lodash', "node:path", "fs", "url"], | ||
platform: 'browser', | ||
external: ['@cesdk/cesdk-js'], | ||
platform: 'node', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I learned from the docs that "nodejs" is not the platform to build for, it has mechanism in place such das externalizing node modules and so forth. The platform itself has not influence on the end target. |
||
format: 'esm', | ||
outfile: 'dist/index.mjs', | ||
outdir: 'dist', | ||
outExtension: { '.js': '.mjs' }, | ||
plugins: [ | ||
{ | ||
name: 'reporter', | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
export const PLUGIN_ID = '@imgly/plugin-vectorizer-web'; | ||
export const CANVAS_MENU_COMPONENT_ID = `${PLUGIN_ID}.canvasMenu`; | ||
export const CANVAS_MENU_COMPONENT_BUTTON_ID = `${CANVAS_MENU_COMPONENT_ID}.button`; | ||
export const FEATURE_ID = `${PLUGIN_ID}.feature`; | ||
export const I18N_ID = "plugin.vectorizer.vectorize" | ||
export const I18N_TRANSLATIONS = { | ||
en: { [I18N_ID]: 'Vectorize' }, | ||
de: { [I18N_ID]: 'Vektorisieren' } | ||
export const PLUGIN_CANVAS_MENU_COMPONENT_ID = `${PLUGIN_ID}.canvasMenu`; | ||
export const PLUGIN_CANVAS_MENU_COMPONENT_BUTTON_ID = `${PLUGIN_CANVAS_MENU_COMPONENT_ID}.button`; | ||
export const PLUGIN_FEATURE_ID = `${PLUGIN_ID}`; | ||
export const PLUGIN_ACTION_VECTORIZE_LABEL = `plugin.${PLUGIN_ID}.vectorize` | ||
export const PLUGIN_I18N_TRANSLATIONS = { | ||
en: { [PLUGIN_ACTION_VECTORIZE_LABEL]: 'Vectorize' }, | ||
de: { [PLUGIN_ACTION_VECTORIZE_LABEL]: 'Vektorisieren' } | ||
} | ||
export const ICON = '@imgly/icons/Vectorize' | ||
export const PLUGIN_ICON = '@imgly/icons/Vectorize' |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove this comment? It looks wrong inside a json