mirror of https://gitee.com/antv-l7/antv-l7
Merge branch 'master' of https://github.com/antvis/L7
This commit is contained in:
commit
d62ec8e248
|
@ -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",
|
||||
|
|
|
@ -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"
|
||||
},
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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');
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue