Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
@arch-inc/fabricjs-layer
Advanced tools
fabricjs-layer is a simple layer implementation for Fabric.js v3.x and v4.x.
fabricjs-layer は Fabric.js v3.x および v4.x 用のシンプルなレイヤー実装です。
<canvas id="main" width="720" height="480"></canvas>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fabric.js/3.6.2/fabric.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@arch-inc/fabricjs-layer@latest/dist/index.js"></script>
<script>
// Create a Fabric.js canvas
let canvas = new fabric.Canvas(document.getElementById("main"), {
isDrawingMode: true
});
// Create layer manager
let manager = new fabricLayer.LayerManager(canvas);
// Add layers
for (let i = 0; i++; i < 5) {
manager.addLayer();
}
// Set active layer
manager.activeLayer = manager.getLayer(3);
// Remove layer
manager.removeLayer(manager.getLayer(2));
// Move layer
manager.moveLayer(manager.activeLayerIndex, manager.activeLayerIndex + 1);
// Dispose layer manager
manager.dispose();
</script>
If you use Webpack
or other similar solutions, simply install the npm package and start using it.
TypeScript definitions are available by default. (e.g., Layer.d.ts)
Webpack
等を使っている場合は npm install
でインストールできます。TypeScript の型定義がついてきます。
npm i @arch-inc/fabricjs-layer
import { LayerGroup } from "@arch-inc/fabricjs-layer";
All of the exported classes and interfaces are listed in TypeDoc.
このモジュールが export しているすべてのクラスとインタフェースは TypeDoc で閲覧できます。
Copyright (c) 2021 Arch Inc. (Jun Kato)
FAQs
A simple layer implementation for Fabric.js
The npm package @arch-inc/fabricjs-layer receives a total of 5 weekly downloads. As such, @arch-inc/fabricjs-layer popularity was classified as not popular.
We found that @arch-inc/fabricjs-layer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.