This commit is contained in:
2912401452 2022-02-16 14:47:06 +08:00
commit d62ec8e248
6 changed files with 19 additions and 10 deletions

View File

@ -32,7 +32,7 @@
"gl-matrix": "^3.1.0",
"inversify": "^5.0.1",
"inversify-inject-decorators": "^3.1.0",
"l7-tiny-sdf": "^0.0.2",
"l7-tiny-sdf": "^0.0.3",
"l7hammerjs": "^0.0.6",
"lodash": "^4.17.15",
"reflect-metadata": "^0.1.13",

View File

@ -29,7 +29,7 @@
"@antv/l7-core": "^2.7.13",
"@babel/runtime": "^7.7.7",
"inversify": "^5.0.1",
"l7regl": "^0.0.16",
"l7regl": "^0.0.17",
"lodash": "^4.17.15",
"reflect-metadata": "^0.1.13"
},

View File

@ -1,8 +1,11 @@
// @ts-nocheck
// @ts-nocheck 判断时候是支付宝小程序环境 my.isFRM == true smallfish H5+
import { globalWindow } from './global';
export const isMiniAli =
// @ts-ignore
typeof my !== 'undefined' && !!my && typeof my.showToast === 'function';
typeof my !== 'undefined' &&
!!my &&
typeof my.showToast === 'function' &&
my.isFRM !== true;
export default !isMiniAli
? globalWindow.devicePixelRatio
: (my.getSystemInfoSync().pixelRatio as number);

View File

@ -29,10 +29,10 @@ import { $XMLHttpRequest as $XMLHttpRequest2 } from './XMLHttpRequest';
import { globalWindow } from './global'
// 判断时候是支付宝小程序环境
// 判断时候是支付宝小程序环境 my.isFRM == true smallfish H5+
export const isMiniAli =
// @ts-ignore
typeof my !== 'undefined' && !!my && typeof my.showToast === 'function';
typeof my !== 'undefined' && !!my && typeof my.showToast === 'function' && my.isFRM !== true;
export const isWeChatMiniProgram = typeof wx !== 'undefined' && wx !== null && (typeof wx.request !== 'undefined' || typeof wx.miniProgram !== 'undefined');

View File

@ -1,8 +1,11 @@
// @ts-nocheck
// @ts-nocheck 判断时候是支付宝小程序环境 my.isFRM == true smallfish H5+
import { globalWindow } from './global';
export const isMiniAli =
// @ts-ignore
typeof my !== 'undefined' && !!my && typeof my.showToast === 'function';
typeof my !== 'undefined' &&
!!my &&
typeof my.showToast === 'function' &&
my.isFRM !== true;
let system;
let platform;
let language;

View File

@ -1,9 +1,12 @@
// @ts-nocheck
// @ts-nocheck 判断时候是支付宝小程序环境 my.isFRM == true smallfish H5+
import { globalWindow } from './global';
// 判断时候是支付宝小程序环境
export const isMiniAli =
// @ts-ignore
typeof my !== 'undefined' && !!my && typeof my.showToast === 'function';
typeof my !== 'undefined' &&
!!my &&
typeof my.showToast === 'function' &&
my.isFRM !== true;
let screenWidth;
let screenHeight;
let windowWidth;