import { NodeRelationPath } from '@anglr/dynamic/relations-editor';
/**
 * Class that represents node relation path for debugging
 */
export class NodeRelationPathDebug extends NodeRelationPath {
    //######################### public methods - overrides #########################
    /**
     * @inheritdoc
     */
    destroy() {
        super.destroy();
        this.destroyTransferOverlay();
    }
    //######################### public methods #########################
    /**
     * Creates transfer overlay preventing hover
     */
    createTransferOverlay() {
        if (this.overlay) {
            return;
        }
        this.overlay = this.parentGroup.append('path')
            .attr('fill', 'transparent')
            .attr('stroke', 'transparent')
            .attr('stroke-width', '5px');
    }
    /**
     * Destroys transfer overlay preventing hover
     */
    destroyTransferOverlay() {
        this.overlay?.remove();
        this.overlay = null;
    }
    /**
     * @inheritdoc
     */
    invalidateVisuals(propertyName) {
        super.invalidateVisuals(propertyName);
        if (this.path && this.overlay) {
            this.overlay.attr('d', this.path.attr('d'));
        }
    }
}
//# sourceMappingURL=nodeRelationPathDebug.js.map