weex-vdom-tester
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -5,3 +5,4 @@ var env = require('./lib/env/default') | ||
exports.DEFAULT_ENV = env.DEFAULT_ENV | ||
exports.DEFAULT_CSS_UNIT = env.DEFAULT_CSS_UNIT | ||
exports.Runtime = require('./lib/runtime').Runtime | ||
exports.Instance = require('./lib/instance').Instance |
@@ -145,4 +145,21 @@ /* eslint-disable */ | ||
var scale = 2 | ||
var DEFAULT_CSS_UNIT = { | ||
REM: 12 * scale, | ||
VW: DEFAULT_ENV.deviceWidth / 100, | ||
VH: DEFAULT_ENV.deviceHeight / 100, | ||
VMIN: Math.min(DEFAULT_ENV.deviceWidth, DEFAULT_ENV.deviceHeight) / 100, | ||
VMAX: Math.max(DEFAULT_ENV.deviceWidth, DEFAULT_ENV.deviceHeight) / 100, | ||
CM: 96 / 2.54 * scale, | ||
MM: 96 / 25.4 * scale, | ||
Q: 96 / 25.4 / 4 * scale, | ||
IN: 96 * scale, | ||
PT: 96 / 72 * scale, | ||
PC: 96 / 6 * scale, | ||
PX: scale | ||
} | ||
exports.DEFAULT_MODULES = DEFAULT_MODULES | ||
exports.DEFAULT_COMPONENTS = DEFAULT_COMPONENTS | ||
exports.DEFAULT_ENV = DEFAULT_ENV | ||
exports.DEFAULT_CSS_UNIT = DEFAULT_CSS_UNIT |
{ | ||
"name": "weex-vdom-tester", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Virtual-DOM test driver for Weex", | ||
@@ -40,3 +40,3 @@ "main": "index.js", | ||
"sinon-chai": "^2.8.0", | ||
"weex-js-framework": "^0.17.0-alpha2" | ||
"weex-js-runtime": "^0.17.0-alpha4" | ||
}, | ||
@@ -43,0 +43,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
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
78056
1133