@wingnpm/x6-vue-shape
TypeScript icon, indicating that this package has built-in type declarations

1.3.2 • Public • Published

@antv/x6-vue-shape

x6 shape for rendering vue components

Installation

# npm
$ npm install @antv/x6-vue-shape --save

# yarn
$ yarn add @antv/x6-vue-shape

Usage

import { Graph } from '@antv/x6'
import '@antv/x6-vue-shape'
import HelloWord from './HelloWord.vue'

// render
graph.addNode({
  shape: 'vue-shape',
  x: 32,
  y: 48,
  width: 180,
  height: 40,
  component: {
    template: `<hello-world :name="name"></hello-world>`,
    data() {
      return {
        name: 'x6',
      }
    },
    components: {
      HelloWorld,
    }
  },
})

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.3.2
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.3.2
    0

Package Sidebar

Install

npm i @wingnpm/x6-vue-shape

Weekly Downloads

0

Version

1.3.2

License

MIT

Unpacked Size

4.07 MB

Total Files

35

Last publish

Collaborators

  • wingnpm