unity-webgl
Advanced tools
Comparing version
/*! | ||
* unity-webgl.js v3.1.0 | ||
* unity-webgl.js v3.1.2 | ||
* (c) 2022 Mervin<mengqing723@gmail.com> | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* unity-webgl.js v3.1.0 | ||
* unity-webgl.js v3.1.2 | ||
* (c) 2022 Mervin<mengqing723@gmail.com> | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
{ | ||
"name": "unity-webgl", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"description": "An easy solution for embedding Unity WebGL builds in your Vue.js or Web Application.", | ||
@@ -47,4 +47,3 @@ "keywords": [ | ||
"dev": "NODE_ENV=development rollup -c rollup.config.js -w", | ||
"build": "npm run clean && NODE_ENV=production rollup -c rollup.config.js", | ||
"release": "npm run build && node ./scripts/release.js" | ||
"build": "npm run clean && NODE_ENV=production rollup -c rollup.config.js" | ||
}, | ||
@@ -51,0 +50,0 @@ "devDependencies": { |
@@ -31,6 +31,6 @@ # unity-webgl | ||
```bash | ||
https://cdn.jsdelivr.net/npm/unity-webgl/dist/UnityWebgl.min.js | ||
https://cdn.jsdelivr.net/npm/unity-webgl/dist/UnityWebgl.umd.js | ||
# vue component | ||
https://cdn.jsdelivr.net/npm/unity-webgl/dist/VueUnity.min.js | ||
https://cdn.jsdelivr.net/npm/unity-webgl/dist/VueUnity.umd.js | ||
``` | ||
@@ -173,3 +173,6 @@ | ||
```js | ||
unityContext = new UnityWebgl(canvasElement: HTMLCanvasElement | string, options: IUnityConfig) | ||
unityContext = new UnityWebgl( | ||
canvasElement: HTMLCanvasElement | string, | ||
options: IUnityConfig | ||
) | ||
``` | ||
@@ -176,0 +179,0 @@ |
@@ -10,5 +10,3 @@ import { defineComponent, isVue2, h } from 'vue-demi'; | ||
else { | ||
return regx.test(val) | ||
? isNaN(parseFloat(val)) ? val : val + 'px' | ||
: '100%'; | ||
return regx.test(val) ? (isNaN(parseFloat(val)) ? val : val + 'px') : '100%'; | ||
} | ||
@@ -15,0 +13,0 @@ } |
@@ -14,5 +14,3 @@ (function (global, factory) { | ||
else { | ||
return regx.test(val) | ||
? isNaN(parseFloat(val)) ? val : val + 'px' | ||
: '100%'; | ||
return regx.test(val) ? (isNaN(parseFloat(val)) ? val : val + 'px') : '100%'; | ||
} | ||
@@ -19,0 +17,0 @@ } |
353
0.86%42023
-0.25%732
-0.54%