@cssints/squircle 0.6.0 → 0.6.1
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.
- package/dist/index.d.mts +1 -3
- package/dist/index.mjs +1 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/index.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* `squircle().radius("24px")`: squircle corners, of `1rem` by default. Native `corner-shape: squircle` where the
|
|
4
3
|
* targets have it; where one lacks it the build adds a mask that cuts the same shape (it clips the element's shadow and
|
|
@@ -9,5 +8,4 @@ export declare const squircle: () => import("cssints/plugin").Chain<"squircle",
|
|
|
9
8
|
readonly args: "<length-percentage [0,∞]>";
|
|
10
9
|
readonly emit: (v: string) => [string, string][];
|
|
11
10
|
};
|
|
12
|
-
}, {}>;
|
|
13
|
-
//#endregion
|
|
11
|
+
}, {}>;
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { scope } from "cssints/plugin";
|
|
2
|
-
|
|
2
|
+
// src/index.ts
|
|
3
3
|
const url = `url("data:image/svg+xml,${"<svg xmlns='http://www.w3.org/2000/svg' viewBox='-1 -1 2 2' preserveAspectRatio='none'><path d='M1 0C1 .92 .92 1 0 1C-.92 1-1 .92-1 0C-1-.92-.92-1 0-1C.92-1 1-.92 1 0Z'/></svg>".replace(/[<>]/g, encodeURIComponent)}")`;
|
|
4
4
|
const size = "min(2*var(--_r),100%)";
|
|
5
5
|
const band = "max(0px,100% - 2*var(--_r))";
|
|
@@ -39,5 +39,4 @@ const { squircle } = scope("squircle", {
|
|
|
39
39
|
} }
|
|
40
40
|
}
|
|
41
41
|
}).export();
|
|
42
|
-
//#endregion
|
|
43
42
|
export { squircle };
|