New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vue-fabric-wrapper

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-fabric-wrapper

vue wrapper for fabricjs

  • 0.3.71
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.5K
increased by13.61%
Maintainers
1
Weekly downloads
 
Created
Source

vue-fabric-wrapper

branches releases openIssues lastCommit license

Netlify Status

Stick Man Example: Edit StickMan

Currently implemented the following Fabric Objects:

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

⚙️ Installation

$ npm install vue-fabric-wrapper

📄 Documents

Link

🚀 How to use in Vue

<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>

🚀 How to use in Nuxt

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>

⭐️ Show Your Support

Please give a ⭐️ if this project helped you!

👏 Contributing

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.

🐞 Bug Report

If you find a bug, please report to us opening a new Issue on GitHub.

⚙️ Development

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.

Keywords

FAQs

Package last updated on 17 Mar 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc