
Security News
Socket Integrates With Bun 1.3’s Security Scanner API
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
@imgly/plugin-cutout-library-web
Advanced tools
This plugin introduces adds cutout functionality to the CreativeEditor SDK.
It allows users to add a rectangular or elliptical cutout to the scene. It also allows users to cutout the currently selected shape.
It registers a custom asset source called ly.img.cutout
which then can be added to the dock.
It also adds a custom canvas menu entry when a graphic or text block is selected.
You can install the plugin via npm or yarn. Use the following commands to install the package:
yarn add @imgly/plugin-cutout-library-web
npm install @imgly/plugin-cutout-library-web
When adding the plugin to the CE.SDK, you can also add an action button to the canvas menu. Further, we provide a utility method for getting a insert entry for the cutout library that adds the cutout library to the dock.
import CreativeEditorSDK from '@cesdk/cesdk-js';
import CutoutLibraryPlugin from '@imgly/plugin-cutout-library-web';
const cesdk = await CreativeEditorSDK.create(container, config);
await cesdk.addDefaultAssetSources();
await cesdk.addDemoAssetSources({ sceneMode: 'Design' });
await cesdk.addPlugin(
CutoutLibraryPlugin({
ui: { locations: ['canvasMenu'] }
})
);
const cutoutAssetEntry = cesdk.ui.getAssetLibraryEntry('ly.img.cutout.entry');
cesdk.ui.setDockOrder([
...cesdk.ui.getDockOrder(),
{
id: 'ly.img.assetLibrary.dock',
label: 'Cutout',
key: 'ly.img.assetLibrary.dock',
icon: cutoutAssetEntry?.icon,
entries: ['ly.img.cutout.entry']
}
]);
await cesdk.createDesignScene();
FAQs
Cutout Library plugin for the CE.SDK editor
The npm package @imgly/plugin-cutout-library-web receives a total of 292 weekly downloads. As such, @imgly/plugin-cutout-library-web popularity was classified as not popular.
We found that @imgly/plugin-cutout-library-web demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.
Security News
A data handling bug in OSV.dev caused disputed CVEs to disappear from vulnerability feeds until a recent fix restored over 500 advisories.