import { css } from "@node-projects/base-custom-webcomponent";
import { NodeType } from "../../../../item/NodeType.js";
import { GridChildResizeExtension } from "./GridChildResizeExtension.js";
export class GridChildResizeExtensionProvider {
    shouldExtend(extensionManager, designerView, designItem) {
        if (designItem.nodeType === NodeType.Element && designItem.parent?.nodeType === NodeType.Element && getComputedStyle(designItem.parent.element).display === 'grid')
            return true;
        return false;
    }
    getExtension(extensionManager, designerView, designItem) {
        return new GridChildResizeExtension(extensionManager, designerView, designItem);
    }
    static style = css `
    .svg-grid-resizer { stroke: #3899ec; fill: white; pointer-events: auto; }
  `;
}
//# sourceMappingURL=GridChildResizeExtensionProvider.js.map