import { RotateExtension } from './RotateExtension.js';
import { css } from "@node-projects/base-custom-webcomponent";
export class RotateExtensionProvider {
    type;
    constructor(type = 'center-top') {
        this.type = type;
    }
    shouldExtend(extensionManager, designerCanvas, designItem) {
        if (designerCanvas.readOnly)
            return false;
        if (designItem.element instanceof SVGElement || designItem.element instanceof HTMLTemplateElement) {
            return false;
        }
        return !designItem.isRootItem;
    }
    getExtension(extensionManager, designerCanvas, designItem) {
        return new RotateExtension(extensionManager, designerCanvas, designItem);
    }
    static style = css `
    .svg-primary-rotate { stroke: #3899ec; fill: white; stroke-width: 1; pointer-events: auto; cursor: alias; }
    .svg-primary-rotate-transparent { fill: transparent; pointer-events: auto; cursor: alias; }
    .svg-primary-rotate-line { stroke: #3899ec; fill: #3899ec; stroke-width: 1; }
  `;
}
//# sourceMappingURL=RotateExtensionProvider.js.map