geo-pattern-ts
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -66,7 +66,26 @@ interface GeoPatternOptions { | ||
interface GenerateReturn { | ||
/** | ||
* Gets the pattern's background color as a hexadecimal string. | ||
*/ | ||
get color(): string; | ||
/** | ||
* Gets the SVG string representing the pattern. | ||
*/ | ||
toSvg: () => string; | ||
/** | ||
* Gets the SVG string representing the pattern. | ||
*/ | ||
toString: () => string; | ||
/** | ||
* Gets the pattern as a data URL suitable for use as a CSS background-image, | ||
* i.e. `url("data:image/svg+xml;base64,PHN2ZyB...").` | ||
*/ | ||
toDataUrl: () => string; | ||
/** | ||
* Gets the pattern as a data URI, i.e. `data:image/svg+xml;base64,PHN2ZyB....` | ||
*/ | ||
toDataUri: () => string; | ||
/** | ||
* Gets the SVG as a Base64-encoded string. | ||
*/ | ||
toBase64: () => string; | ||
@@ -73,0 +92,0 @@ } |
{ | ||
"name": "geo-pattern-ts", | ||
"type": "module", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"packageManager": "pnpm@8.15.5", | ||
@@ -12,3 +12,3 @@ "description": "Generate beautiful SVG patterns", | ||
"type": "git", | ||
"url": "https://github.com/pengzhanbo/geo-pattern-ts" | ||
"url": "git+https://github.com/pengzhanbo/geo-pattern-ts.git" | ||
}, | ||
@@ -15,0 +15,0 @@ "keywords": [ |
@@ -5,7 +5,7 @@ # GeoPattern | ||
![jsr score](https://jsr.io/badges/@raise/geo-pattern/score) | ||
![gzip size](https://img.badgesize.io/https:/unpkg.com/geo-pattern-ts/dist/index.js?label=gzip%20size&compression=gzip) | ||
[![MIT](https://img.shields.io/npm/l/@pengzhanbo/geo-pattern-ts)](https://github.com/pengzhanbo/geo-pattern-ts/blob/main/LICENSE) | ||
![npm package minimized gzipped size](https://img.shields.io/bundlejs/size/geo-pattern-ts?label=gzip) | ||
[![MIT](https://img.shields.io/npm/l/geo-pattern-ts)](https://github.com/pengzhanbo/geo-pattern-ts/blob/main/LICENSE) | ||
This is a TypeScript port of [jasonlong/geo_pattern](https://github.com/jasonlong/geo_pattern) with a | ||
[live preview page](http://btmills.github.io/geopattern/). | ||
[live preview page](https://geo-pattern.netlify.app/). | ||
@@ -12,0 +12,0 @@ ## Install |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26312
220