Properties
tempLineRender
temp
Line
Render
: { render
: (() => SVGPathElement); renderPath
: ((__namedParameters
: Object, line
: { data
: VEditorLine; dom
: SVGPathElement }) => void) } = ...
Type declaration
-
render: (() => SVGPathElement)
-
- (): SVGPathElement
-
Returns SVGPathElement
-
renderPath: ((__namedParameters: Object, line: { data: VEditorLine; dom: SVGPathElement }) => void)
-
- (__namedParameters: Object, line: { data: VEditorLine; dom: SVGPathElement }): void
-
Parameters
-
__namedParameters: Object
-
line: { data: VEditorLine; dom: SVGPathElement }
Returns void
Methods
calcLinkPoint
- calcLinkPoint(x: number, y: number, adsorb?: number[]): InstanceNodePoint
-
Parameters
-
x: number
-
y: number
-
adsorb: number[] = ...
checkNewLine
- checkNewLine(): void
-
Returns void
clear
- clear(): void
-
Returns void
deleteLine
- deleteLine(data: string | VEditorLine, notEvent?: boolean, byNode?: boolean): void
-
Parameters
-
-
notEvent: boolean = false
-
byNode: boolean = false
Returns void
listenEvent
- listenEvent(): void
-
Returns void
makeAdsorbPoints
- makeAdsorbPoints(): void
-
Returns void
registeLine
- registeLine(type: string, data: LineRender, extend?: string): void
-
Parameters
-
type: string
-
-
extend: string = "default"
Returns void
render
- render(lines?: Record<string, VEditorLine>): void
-
Returns void
unActiveLine
- unActiveLine(): void
-
Returns void
update
- update(): void
-
Returns void
updateActiveLine
- updateActiveLine(instanceLine: InstanceLine): void
-
Returns void
updateLine
- updateLine(data: string | VEditorLine, rerenderShape?: boolean): void
-
Parameters
-
-
rerenderShape: boolean = true
Returns void
添加线