chore: cleanup
This commit is contained in:
@@ -4,7 +4,8 @@
|
|||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"declarationDir": "./dist",
|
"declarationDir": "./dist",
|
||||||
"types": [
|
"types": [
|
||||||
"vite/client"
|
"vite/client",
|
||||||
|
"vue/macros"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
|
|||||||
@@ -3,9 +3,6 @@ import type { CSSProperties, InjectionKey, Slots } from 'vue'
|
|||||||
|
|
||||||
/** expects a node and returns a color value */
|
/** expects a node and returns a color value */
|
||||||
export type MiniMapNodeFunc = (node: GraphNode) => string
|
export type MiniMapNodeFunc = (node: GraphNode) => string
|
||||||
// hack for vue-type imports
|
|
||||||
type MiniMapNodeFunc2 = (node: GraphNode) => string
|
|
||||||
type MiniMapNodeFunc3 = (node: GraphNode) => string
|
|
||||||
|
|
||||||
export type ShapeRendering = CSSProperties['shapeRendering']
|
export type ShapeRendering = CSSProperties['shapeRendering']
|
||||||
|
|
||||||
@@ -13,9 +10,9 @@ export interface MiniMapProps {
|
|||||||
/** Node color, can be either a string or a string func that receives the current node */
|
/** Node color, can be either a string or a string func that receives the current node */
|
||||||
nodeColor?: string | MiniMapNodeFunc
|
nodeColor?: string | MiniMapNodeFunc
|
||||||
/** Node stroke color, can be either a string or a string func that receives the current node */
|
/** Node stroke color, can be either a string or a string func that receives the current node */
|
||||||
nodeStrokeColor?: string | MiniMapNodeFunc2
|
nodeStrokeColor?: string | MiniMapNodeFunc
|
||||||
/** Additional node class name, can be either a string or a string func that receives the current node */
|
/** Additional node class name, can be either a string or a string func that receives the current node */
|
||||||
nodeClassName?: string | MiniMapNodeFunc3
|
nodeClassName?: string | MiniMapNodeFunc
|
||||||
/** Node border radius */
|
/** Node border radius */
|
||||||
nodeBorderRadius?: number
|
nodeBorderRadius?: number
|
||||||
/** Node stroke width */
|
/** Node stroke width */
|
||||||
|
|||||||
Reference in New Issue
Block a user