update: use vue-demi again to add compatability to vue2

* add vite.config.app.ts for demo generation
This commit is contained in:
Braks
2021-07-10 11:51:12 +02:00
parent 6a5496c60f
commit 92caccfd6e
39 changed files with 67 additions and 42 deletions
@@ -1,6 +1,6 @@
import { BackgroundVariant } from '../../types';
import { createGridDotsPath, createGridLinesPath } from './utils';
import { computed, defineComponent, HTMLAttributes, PropType } from 'vue';
import { computed, defineComponent, HTMLAttributes, PropType } from 'vue-demi';
import store from '../../store';
export interface BackgroundProps extends HTMLAttributes {
+1 -1
View File
@@ -1,6 +1,6 @@
import useZoomPanHelper from '../../hooks/useZoomPanHelper';
import { FitViewParams } from '../../types';
import { defineComponent, HTMLAttributes, onMounted, PropType, ref } from 'vue';
import { defineComponent, HTMLAttributes, onMounted, PropType, ref } from 'vue-demi';
import store from '../../store';
export interface ControlProps extends HTMLAttributes {
@@ -1,4 +1,4 @@
import { defineComponent, PropType } from 'vue';
import { defineComponent, PropType } from 'vue-demi';
interface MiniMapNodeProps {
x: number;
+1 -1
View File
@@ -1,7 +1,7 @@
import { getRectOfNodes, getBoundsofRects } from '../../utils/graph';
import { Node, Rect } from '../../types';
import MiniMapNode from './MiniMapNode';
import { computed, defineComponent, HTMLAttributes, PropType } from 'vue';
import { computed, defineComponent, HTMLAttributes, PropType } from 'vue-demi';
import store from '../../store';
type StringFunc = (node: Node) => string;