postcss-unit-unit
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -1,21 +0,27 @@ | ||
// 任意样式单位转换工具 | ||
declare function px2rpx({ | ||
unitToConvert: string, | ||
viewportWidth: number, | ||
unitPrecision: number, | ||
propList: any, | ||
viewportUnit: string, | ||
fontViewportUnit: string, | ||
fullViewportWidth: number, | ||
selectorBlackList: array, | ||
minPixelValue: number, | ||
mediaQuery: any, | ||
replace: boolean, | ||
exclude: any, | ||
include: any, | ||
landscape: boolean, | ||
landscapeUnit: string, | ||
landscapeWidth: number | ||
}: object) | ||
// 任意样式单位转换工具 | ||
export = px2rpx | ||
// 定义选项的类型 | ||
interface Px2RpxOptions { | ||
unitToConvert: string; | ||
viewportWidth: number; | ||
unitPrecision: number; | ||
viewportUnit: string; | ||
fontViewportUnit: string; | ||
fullViewportWidth: number; | ||
selectorBlackList: any[]; | ||
propList: string[]; | ||
minPixelValue: number; | ||
mediaQuery: boolean; | ||
replace: boolean; | ||
landscape: boolean; | ||
landscapeUnit: string; | ||
landscapeWidth: number; | ||
exclude: any; | ||
include: any; | ||
} | ||
// 定义 px2rpx 函数 | ||
declare function px2rpx(options: Px2RpxOptions): any; | ||
// 导出函数 | ||
export = px2rpx; |
{ | ||
"name": "postcss-unit-unit", | ||
"main": "index.js", | ||
"description": "A CSS post-processor that converts px to viewport units (vw, vh, rpx, rem, vmin, vmax).", | ||
"version": "1.0.5", | ||
"description": "A CSS post-processor that converts px to viewport units (vw, vh, rpx, rem, vmin, vmax, ...).", | ||
"version": "1.0.6", | ||
"license": "MIT", | ||
@@ -7,0 +7,0 @@ "author": { |
14274
214