style-unit
Advanced tools
Comparing version 2.0.1 to 3.0.0
@@ -74,3 +74,3 @@ "use strict"; | ||
// In Weex convert rpx to 'px' | ||
// '375rpx' => 375 * rpx | ||
// '375rpx' => 375 * px | ||
return str.replace(RPX_REG, decimalPixelTransformer); | ||
@@ -77,0 +77,0 @@ } else { |
{ | ||
"name": "style-unit", | ||
"version": "2.0.1", | ||
"version": "3.0.0", | ||
"description": "style-unit", | ||
@@ -5,0 +5,0 @@ "license": "BSD-3-Clause", |
@@ -13,3 +13,3 @@ # style-unit | ||
| prop | string | true | | | ||
| platform | string | false | Different platforms have different rpx conversion. Details are as follows. | | ||
| platform | string | false | Auto assignment with [universal-env](https://www.npmjs.com/package/universal-env), different platforms have different rpx conversion. Details are as follows. | | ||
@@ -33,3 +33,3 @@ ## Web | ||
In Web, Calculate rpx to px (viewport width is 750). | ||
In Weex, Calculate rpx to px (viewport width is 750). | ||
@@ -36,0 +36,0 @@ 750rpx -> 750px |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
5289