@node-projects/web-component-designer 0.0.208 → 0.0.209

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.
@@ -1,7 +1,9 @@
1
1
  import { IDesignItem } from "../../item/IDesignItem.js";
2
2
  import { IStyleDeclaration, IStyleRule, IStylesheet } from "./IStylesheetService.js";
3
3
  import { AbstractStylesheetService } from "./AbstractStylesheetService.js";
4
- import type { CssDeclarationAST, CssRuleAST, CssStylesheetAST } from "@adobe/css-tools";
4
+ type CssRuleAST = any;
5
+ type CssDeclarationAST = any;
6
+ type CssStylesheetAST = any;
5
7
  interface IRuleWithAST extends IStyleRule {
6
8
  ast: CssRuleAST;
7
9
  declarations: IDeclarationWithAST[];
@@ -84,7 +84,10 @@ export class EditGridColumnRowSizesExtension extends AbstractExtension {
84
84
  let bounding = target.getBoundingClientRect();
85
85
  let containerSize = bounding[percentTarget];
86
86
  let amountGaps = percentTarget == "height" ? this.gridInformation.cells.length - 1 : this.gridInformation.cells[0].length - 1;
87
- let gapSize = convertCssUnitToPixel(percentTarget == "width" ? cp.columnGap : cp.rowGap, target, percentTarget) ?? 0;
87
+ let gapValue = percentTarget == "width" ? cp.columnGap : cp.rowGap;
88
+ if (gapValue == "normal")
89
+ gapValue = '0px';
90
+ let gapSize = convertCssUnitToPixel(gapValue, target, percentTarget) ?? 0;
88
91
  let containerSizeWithoutGaps = containerSize - gapSize * amountGaps;
89
92
  let sizeForFrs = containerSizeWithoutGaps;
90
93
  for (let i = 0; i < pixelSizes.length; i++) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "description": "A UI designer for Polymer apps",
3
3
  "name": "@node-projects/web-component-designer",
4
- "version": "0.0.208",
4
+ "version": "0.0.209",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "author": "",