question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Integrating JointJS with Vue.js

See original GitHub issue

Creating a paper with parameter ‘drawGrid’ seems to be ignored in v3. Tried both { drawGrid: 'mesh' } and { drawGrid: { name: 'mesh' } } without success. This was working fine in v2.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
JoseGoncalvescommented, Jul 3, 2019

@vtalas I managed to import a minimal JointJS to my Vue.js plugin by cherry picking in the sources, and without the need to fiddle with namespaces, in this way:

import 'jointjs/dist/joint.core.css';

import { dia } from 'jointjs/src/core.mjs';
import * as standard from 'jointjs/src/shapes/standard.mjs';

export default {
	install: function (Vue) {
		let joint = { dia };
		joint.shapes = { standard };
		Object.defineProperty(Vue.prototype, '$joint', { value: joint });
	}
};

In this way I get a Vue.js+JointJS JS chunk with 552 KiB and a CSS chunk with 44.9 KiB: Screenshot from 2019-07-03 10-41-31

0reactions
JoseGoncalvescommented, Jul 3, 2019

Complementing my previous info, here is a graphical vizualization of the bundle given by Webpack Bundle Analyzer:

Screenshot from 2019-07-03 11-26-48

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vue example app with TypeScript and SCSS - JointJS
The tutorial will go over the typical process of creating a Vue app, setting up the build process, and integrating JointJS+ components into...
Read more >
How to integrate jointjs with Vue 2 and webpack
First you need to add the necessary components to the project, in particular the jointjs itself npm install jointjs --save (I work with...
Read more >
[Solved]-How to integrate jointjs with Vue 2 and webpack-Vue.js
First you need to add the necessary components to the project, in particular the jointjs itself npm install jointjs --save (I work with...
Read more >
JointJS Integrations - SourceForge
Explore reviews and pricing of software that integrates with JointJS. ... It is similar to JavaScript frameworks such as React and Vue, which...
Read more >
Javascript - Vue.js Examples
08 January 2022. Invoice status button web component and example integration in javascript Frameworks ... Vue 3 + JointJs Boxarray Component · Javascript...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found