
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
vue-fabric-wrapper
Advanced tools
Fabric.Canvas, Fabric.Circle, Fabric.Ellipse, Fabric.Group, Fabric.ImageFromURL, Fabric.Line, Fabric.Path, Fabric.Polygon, Fabric.Polyline, Fabric.Rectangle, Fabric.SVGFromURL, Fabric.Text, Fabric.Triangle
$ npm install vue-fabric-wrapper
<template>
<div id="app">
<fabric-canvas>
<fabric-circle :id="3"></fabric-circle>
</fabric-canvas>
</div>
</template>
<script>
import vueFabricWrapper from "vue-fabric-wrapper";
export default {
name: "App",
components: {
FabricCanvas: vueFabricWrapper.FabricCanvas,
FabricCircle: vueFabricWrapper.FabricCircle
}
};
</script>
<style>
#app {
font-family: "Avenir", Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 60px;
}
</style>
Create Plugin with the following example code
import Vue from 'vue';
import vueFabricWrapper from 'vue-fabric-wrapper';
Vue.component("FabricCanvas", vueFabricWrapper.FabricCanvas)
Vue.component("FabricCircle", vueFabricWrapper.FabricCircle)
Add this to nuxt.config and use mode client
module.exports = {
plugins: [
{ src: "@/plugins/fabric.js", mode: "client" }
]
}
Finally use client-only to render only on the client side
<template>
<client-only>
<fabric-canvas>
<fabric-circle :id="2"></fabric-circle>
</fabric-canvas>
</client-only>
</template>
<script>
export default {
};
</script>
<style>
</style>
Please give a ⭐️ if this project helped you!
If you have any questions or requests or want to contribute to vue-fabric-wrapper
or other packages, please write the issue or give me a Pull Request freely.
If you find a bug, please report to us opening a new Issue on GitHub.
npm run serve
Runs the app in the development mode.
Open http://localhost:8080 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
FAQs
vue wrapper for fabricjs
The npm package vue-fabric-wrapper receives a total of 2,955 weekly downloads. As such, vue-fabric-wrapper popularity was classified as popular.
We found that vue-fabric-wrapper 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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.