forked from sjmallon/vue-visjs
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(): upd rollup config, remove vue2 version, release vue3-vis package
- Loading branch information
Showing
45 changed files
with
4,623 additions
and
68,747 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
legacy-peer-deps=true |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,49 @@ | ||
# vue-visjs | ||
# vue3-visjs | ||
|
||
> Vue2 component that helps with <a href="http://visjs.org/">Visjs</a> interaction. | ||
> This is a fork of the [vis2vue](https://github.com/alexcode/vue2vis) project to update to the latest split component Visjs structure. | ||
> Vue3 component that helps with <a href="http://visjs.org/">Visjs</a> interaction. | ||
> Originally this is fork of the [vis2vue](https://github.com/alexcode/vue2vis) project to update to the latest split component Visjs structure and a fork of [vue3-visjs](https://github.com/sjmallon/vue3-visjs) project to upgrade to Vue 3 compatibility. | ||
> Also, my colleagues and me were starting to support vanilla visjs (a bit) | ||
<p align="center"> | ||
<a href="https://travis-ci.org/sjmallon/vue-visjs"> | ||
<img src="https://travis-ci.com/sjmallon/vue-visjs.svg?branch=master" alt="Build Status" /> | ||
</a> | ||
<a href="LICENSE"> | ||
<img src="https://img.shields.io/github/license/sjmallon/vue-visjs" alt="Software License" /> | ||
<img src="https://img.shields.io/github/license/sjmallon/vue3-visjs" alt="Software License" /> | ||
</a> | ||
<a href="https://github.com/sjmallon/vue-visjs/releases"> | ||
<img src="https://img.shields.io/github/v/release/sjmallon/vue-visjs?sort=semver" alt="Latest Version" /> | ||
<a href="https://github.com/sjmallon/vue3-visjs/releases"> | ||
<img src="https://img.shields.io/github/v/release/sjmallon/vue3-visjs?sort=semver" alt="Latest Version" /> | ||
</a> | ||
|
||
<a href="https://github.com/alexcode/vue2vis/issues"> | ||
<img src="https://img.shields.io/github/issues/sjmallon/vue-visjs" alt="Issues" /> | ||
<img src="https://img.shields.io/github/issues/sjmallon/vue3-visjs" alt="Issues" /> | ||
</a> | ||
</p> | ||
|
||
### Installation | ||
|
||
``` | ||
npm install --save vue-visjs | ||
npm install --save vue3-visjs | ||
``` | ||
|
||
or | ||
|
||
``` | ||
yarn add vue-visjs | ||
yarn add vue3-visjs | ||
``` | ||
|
||
## Usage | ||
|
||
Declare the component | ||
|
||
```javascript | ||
import { Timeline } from 'vue-visjs' | ||
Vue.component('timeline', Timeline) | ||
import { Timeline } from 'vue3-visjs' | ||
``` | ||
|
||
Add the component in the template. | ||
|
||
```html | ||
<body> | ||
<div id="app"> | ||
<timeline ref="timeline" :items="items" :groups="groups" :options="options"> </timeline> | ||
<Timeline ref="timeline" :items="items" :groups="groups" :options="options" /> | ||
</div> | ||
</body> | ||
``` | ||
|
@@ -88,16 +86,15 @@ By default all Vis events are emitted by your component. You can subscribe to a | |
```html | ||
<body> | ||
<div id="app"> | ||
<timeline | ||
<Timeline | ||
ref="timeline" | ||
:items="items" | ||
:groups="groups" | ||
:options="options" | ||
:events="['drop', 'changed']" | ||
@drop="myDropCallback" | ||
@changed="myChangedCallback" | ||
> | ||
</timeline> | ||
/> | ||
</div> | ||
</body> | ||
``` | ||
|
@@ -124,7 +121,7 @@ All the [Visjs DataSet event](http://visjs.org/docs/data/dataset.html#Events) wi | |
You can also manage your own data bindings by passing your own DataSet or DataView instead of an Array. | ||
|
||
```javascript | ||
import { DataSet } from 'vue2vis' | ||
import { DataSet } from 'vue3-visjs' | ||
|
||
new Vue({ | ||
el: '#app', | ||
|
@@ -185,6 +182,8 @@ $ npm install | |
|
||
# build for development and production with minification | ||
$ npm run build | ||
# or only esm | ||
$ npm run build:es | ||
|
||
``` | ||
|
||
|
@@ -193,31 +192,29 @@ $ npm run build | |
```bash | ||
# Run demo at localhost:8080 | ||
$ npm link | ||
$ cd examples | ||
$ cd examples/vue3 | ||
$ npm install | ||
$ npm link vue-visjs | ||
$ npm link vue3-visjs # or npm link ../.. | ||
# serve with hot reload at localhost:8080 | ||
$ npm run serve | ||
$ npm run dev | ||
``` | ||
|
||
Go to <http://localhost:8080/> to see running examples | ||
Go to <http://localhost:5173/> to see running examples | ||
|
||
NOTE: If you make changes to the library you should run 'npm run build' again in the root folder. | ||
The dev server should detect modification and reload the demo | ||
|
||
## Security | ||
|
||
If you discover any security related issues, please email [email protected] instead of using the issue tracker. | ||
|
||
## Credits | ||
|
||
- [Steve Malllon][link-author] | ||
- [Aleksei Klykov][link-author] | ||
|
||
- [Steve Malllon](https://github.com/sjmallon) | ||
|
||
- [vue2vis contributors](https://github.com/alexcode/vue2vis/graphs/contributors) | ||
|
||
## License | ||
|
||
The MIT License (MIT). Please see [License File](LICENSE.md) for more information. | ||
|
||
[link-author]: https://github.com/sjmallon | ||
[link-author]: https://github.com/alexdeia | ||
[link-contributors]: ../../contributors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.