@node-projects/web-component-designer 0.1.75 → 0.1.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -13,7 +13,7 @@ export class DefaultPlacementService {
|
|
|
13
13
|
isEnterableContainer(container) {
|
|
14
14
|
if (DomConverter.IsSelfClosingElement(container.element.localName))
|
|
15
15
|
return false;
|
|
16
|
-
if (container.element.shadowRoot && container.element.shadowRoot.querySelector('slot') == null)
|
|
16
|
+
if (!container.isRootItem && container.element.shadowRoot && container.element.shadowRoot.querySelector('slot') == null)
|
|
17
17
|
return false;
|
|
18
18
|
return true;
|
|
19
19
|
}
|
package/dist/elements/widgets/designerView/extensions/grid/EditGridColumnRowSizesExtension.js
CHANGED
|
@@ -14,14 +14,14 @@ export class EditGridColumnRowSizesExtension extends AbstractExtension {
|
|
|
14
14
|
super(extensionManager, designerView, extendedItem);
|
|
15
15
|
}
|
|
16
16
|
extend(cache, event) {
|
|
17
|
-
this.refresh(event);
|
|
18
|
-
}
|
|
19
|
-
refresh(cache, event) {
|
|
20
|
-
this.gridInformation = calculateGridInformation(this.extendedItem);
|
|
21
17
|
this._group = this._drawGroup(null, this._group, OverlayLayer.Background);
|
|
22
18
|
this._group.style.transform = getElementCombinedTransform(this.extendedItem.element).toString();
|
|
23
19
|
this._group.style.transformOrigin = '0 0';
|
|
24
20
|
this._group.style.transformBox = 'fill-box';
|
|
21
|
+
this.refresh(event);
|
|
22
|
+
}
|
|
23
|
+
refresh(cache, event) {
|
|
24
|
+
this.gridInformation = calculateGridInformation(this.extendedItem);
|
|
25
25
|
this.gridInformation.gaps.forEach((gap, i) => {
|
|
26
26
|
if (gap.width < 3) {
|
|
27
27
|
gap.width = 3;
|
|
@@ -32,12 +32,12 @@ export class EditGridColumnRowSizesExtension extends AbstractExtension {
|
|
|
32
32
|
gap.y--;
|
|
33
33
|
}
|
|
34
34
|
let rect = this._drawRect(gap.x, gap.y, gap.width, gap.height, 'svg-grid-resizer-' + gap.type, this._resizers[i], OverlayLayer.Normal);
|
|
35
|
-
this._group.appendChild(rect);
|
|
36
35
|
if (!this._resizers[i]) {
|
|
37
36
|
this._resizers[i] = rect;
|
|
38
37
|
rect.addEventListener(EventNames.PointerDown, event => this._pointerActionTypeResize(event, rect, gap));
|
|
39
38
|
rect.addEventListener(EventNames.PointerMove, event => this._pointerActionTypeResize(event, rect, gap));
|
|
40
39
|
rect.addEventListener(EventNames.PointerUp, event => this._pointerActionTypeResize(event, rect, gap));
|
|
40
|
+
this._group.appendChild(rect);
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
43
|
}
|