-
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
Feature: Layer List Plugin #11
Open
mirko314
wants to merge
38
commits into
main
Choose a base branch
from
feature/layer-list
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
491d2af
WIP
mirko314 73a9357
Initial commit with inline tailwindcss
mirko314 3f41648
Enable layer list app in web example, add translations
mirko314 e927cf7
Improve Semantic, Make layer component fully clickable
mirko314 7701fde
Remove unused packages
mirko314 bd34623
ENABLE_VISIBILITY_TOGGLE=false
mirko314 d36a8b4
Remove esbuild tailwind
mirko314 ddb054a
Add package.json
mirko314 eded87f
npx tailwind
mirko314 c10adac
yarn
mirko314 c647057
Move folder
mirko314 94a336a
Rename Plugin
mirko314 38dc873
Add license
mirko314 28c1cb7
Remove unused tailwindconfig duplicate
mirko314 86703e8
Add Barebones Readme
mirko314 3520e60
Rename QRCodePanel
mirko314 06cbdf7
Fix package.json
mirko314 7190dbc
tailwind compile
mirko314 6325371
Cleanup
mirko314 46c176b
Update only when history is updated
mirko314 ba7586d
fix typing
mirko314 ffff0d6
Add information on css style issue
mirko314 7be893d
Bump version
mirko314 2ca8c06
Add undo step after dnd
mirko314 aa0c076
version bump
mirko314 d777212
Add cutout icon
mirko314 8a0f67b
Add cutout type
mirko314 12ce662
Bump version
mirko314 8470bcc
Add vector path to layer list asset for theming
mirko314 98a91ad
Move layerlist into `plugin-layer-list-web` folder
mirko314 36743d9
Add fallback icon for graphics without kind
mirko314 fa7a68e
Add scene upload to example app
mirko314 ff2b142
Version bump
mirko314 85999af
Cleanup Readme
mirko314 56bc86c
Cleanup
mirko314 ed3f487
Add dblclick to edit functionality
mirko314 999b9b8
Update examples/web/src/addPlugins.ts
mirko314 dd6c1cc
Update packages/plugin-layer-list-web/README.md
mirko314 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
node_modules | ||
packages/*/dist | ||
examples/*/dist | ||
examples/*/public/assets | ||
.env.local | ||
.nvmrc | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,38 @@ | ||
import type CreativeEditorSDK from '@cesdk/cesdk-js'; | ||
import CreativeEditorSDK from '@cesdk/cesdk-js'; | ||
|
||
import BackgroundRemovalPlugin from '@imgly/plugin-background-removal-web'; | ||
import LayerListPlugin, { | ||
Apps as LayerListApps | ||
} from '@imgly/plugin-layer-list-web'; | ||
import RemoteAssetSourcePlugin from '@imgly/plugin-remote-asset-source-web'; | ||
|
||
// Add more apps when available | ||
export const Apps = LayerListApps; | ||
|
||
const ENABLE_DEMO_ASSET_SOURCES = false; | ||
|
||
async function addPlugins(cesdk: CreativeEditorSDK): Promise<void> { | ||
console.log('Adding plugins', RemoteAssetSourcePlugin); | ||
console.log('Adding plugins'); | ||
try { | ||
await Promise.all([ | ||
cesdk.unstable_addPlugin( | ||
// @ts-ignore | ||
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. Are you sure that this is needed? |
||
BackgroundRemovalPlugin({ ui: { locations: 'canvasMenu' } }) | ||
), | ||
...addDemoRemoteAssetSourcesPlugins(cesdk) | ||
...addDemoRemoteAssetSourcesPlugins(cesdk), | ||
// @ts-ignore | ||
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. Same here... |
||
cesdk.unstable_addPlugin(LayerListPlugin()) | ||
]); | ||
// Add all exported apps to the 'ly.img.apps' asset source | ||
const engine = cesdk.engine; | ||
if ( | ||
engine.asset.findAllSources().includes('ly.img.apps') | ||
) { | ||
const appAssets = Apps.map((a) => a.asset); | ||
appAssets.forEach((appAsset) => { | ||
engine.asset.addAssetToSource('ly.img.apps', appAsset); | ||
}); | ||
} | ||
} catch (error) { | ||
console.error('Could not add all plugins: ', error); | ||
} | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Don't we have to copy asset from the CE.SDK with this changes? At least I cannot start the app without WASM errors.