minutool 1.0.17 → 1.0.18
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.ts +10 -0
- package/dist/minutool.js +1 -0
- package/dist/minutool.js.map +1 -1
- package/dist/minutool.umd.cjs +4 -4
- package/dist/minutool.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1624,6 +1624,16 @@ export declare const stripSlashes: (str: string) => string;
|
|
|
1624
1624
|
*/
|
|
1625
1625
|
export declare const strToPascalCase: (str: string, capitalize_first?: boolean) => string;
|
|
1626
1626
|
|
|
1627
|
+
/**
|
|
1628
|
+
* 兼容方式获取svg的BBox,避免Firefox获取svg尺寸时,额外考虑了父容器的zoom
|
|
1629
|
+
* @param {SVGSVGElement} svg
|
|
1630
|
+
* @returns {DOMRect}
|
|
1631
|
+
* @returns {DOMRect.width} 单位px
|
|
1632
|
+
* @returns {DOMRect.height} 单位px
|
|
1633
|
+
* @see https://stackoverflow.com/questions/60814803/getboundingbox-of-svg-element-in-firefox
|
|
1634
|
+
*/
|
|
1635
|
+
export declare const svgGetBBox: (svg: SVGSVGElement) => DOMRect;
|
|
1636
|
+
|
|
1627
1637
|
/**
|
|
1628
1638
|
* svg 对象转换为图片对象
|
|
1629
1639
|
* @returns
|