@extscreen/es-core 1.0.22 → 10000.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +150 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -1652,6 +1652,155 @@ class ESMMapManager {
|
|
1652
1652
|
|
1653
1653
|
var ESMMapManager$1 = new ESMMapManager();
|
1654
1654
|
|
1655
|
+
/**
|
1656
|
+
*
|
1657
|
+
*/
|
1658
|
+
|
1659
|
+
class ESDisplayManager {
|
1660
|
+
|
1661
|
+
_screenWidth = 1920;
|
1662
|
+
_screenHeight = 1080;
|
1663
|
+
_scale = 1;
|
1664
|
+
|
1665
|
+
init() {
|
1666
|
+
return new Promise((resolve, reject) => {
|
1667
|
+
try {
|
1668
|
+
this._screenWidth = ESDeviceManager$1.getScreenWidth();
|
1669
|
+
this._screenHeight = ESDeviceManager$1.getScreenHeight();
|
1670
|
+
this._scale = this._screenHeight / 1080;
|
1671
|
+
} catch (e) {
|
1672
|
+
}
|
1673
|
+
resolve(true);
|
1674
|
+
});
|
1675
|
+
}
|
1676
|
+
|
1677
|
+
getDisplayScale() {
|
1678
|
+
return this._scale;
|
1679
|
+
}
|
1680
|
+
|
1681
|
+
getDisplaySize(size) {
|
1682
|
+
return this._scale * size;
|
1683
|
+
}
|
1684
|
+
|
1685
|
+
getScreenWidth() {
|
1686
|
+
return this._screenWidth;
|
1687
|
+
}
|
1688
|
+
|
1689
|
+
getScreenHeight() {
|
1690
|
+
return this._screenHeight;
|
1691
|
+
}
|
1692
|
+
}
|
1693
|
+
|
1694
|
+
var ESDisplayManager$1 = new ESDisplayManager();
|
1695
|
+
|
1696
|
+
/**
|
1697
|
+
*
|
1698
|
+
*/
|
1699
|
+
|
1700
|
+
class ESLaunchManager {
|
1701
|
+
|
1702
|
+
_ESRouter = null;
|
1703
|
+
|
1704
|
+
init() {
|
1705
|
+
return Promise.resolve();
|
1706
|
+
}
|
1707
|
+
|
1708
|
+
setESRouter(ESRouter) {
|
1709
|
+
this._ESRouter = ESRouter;
|
1710
|
+
}
|
1711
|
+
|
1712
|
+
launchNativeIntent(paramsArray) {
|
1713
|
+
ESModule$1.launchNativeApp(paramsArray);
|
1714
|
+
}
|
1715
|
+
|
1716
|
+
launchESPageIntent(intent) {
|
1717
|
+
//
|
1718
|
+
ESModule$1.launchESPage({
|
1719
|
+
args: intent
|
1720
|
+
});
|
1721
|
+
}
|
1722
|
+
}
|
1723
|
+
|
1724
|
+
var ESLaunchManager$1 = new ESLaunchManager();
|
1725
|
+
|
1726
|
+
/**
|
1727
|
+
*
|
1728
|
+
*/
|
1729
|
+
|
1730
|
+
class ESManager {
|
1731
|
+
|
1732
|
+
_esSdkVersionCode = null;
|
1733
|
+
_esSdkPackageName = null;
|
1734
|
+
_esMiniProgramPath = null;
|
1735
|
+
|
1736
|
+
init() {
|
1737
|
+
return Promise.resolve()
|
1738
|
+
.then(() => this.initESSdkVersionCodePromise())
|
1739
|
+
.then(() => this.initESPackageNamePromise())
|
1740
|
+
.then(() => this.initESMiniProgramPathPromise())
|
1741
|
+
}
|
1742
|
+
|
1743
|
+
|
1744
|
+
initESSdkVersionCodePromise() {
|
1745
|
+
return ESModule$1.getESSDKVersionCode()
|
1746
|
+
.then((result) => {
|
1747
|
+
this._esSdkVersionCode = result;
|
1748
|
+
return Promise.resolve();
|
1749
|
+
}
|
1750
|
+
);
|
1751
|
+
}
|
1752
|
+
|
1753
|
+
initESPackageNamePromise() {
|
1754
|
+
return ESModule$1.getESPackageName()
|
1755
|
+
.then((result) => {
|
1756
|
+
this._esSdkPackageName = result;
|
1757
|
+
return Promise.resolve();
|
1758
|
+
}
|
1759
|
+
);
|
1760
|
+
}
|
1761
|
+
|
1762
|
+
initESMiniProgramPathPromise() {
|
1763
|
+
return ESModule$1.getESMiniProgramPath()
|
1764
|
+
.then((result) => {
|
1765
|
+
this._esMiniProgramPath = result;
|
1766
|
+
return Promise.resolve();
|
1767
|
+
}
|
1768
|
+
);
|
1769
|
+
}
|
1770
|
+
|
1771
|
+
getESSDKVersionCode() {
|
1772
|
+
return this._esSdkVersionCode;
|
1773
|
+
}
|
1774
|
+
|
1775
|
+
getESPackageName() {
|
1776
|
+
return this._esSdkPackageName;
|
1777
|
+
}
|
1778
|
+
|
1779
|
+
getESMiniProgramPath() {
|
1780
|
+
return this._esMiniProgramPath;
|
1781
|
+
}
|
1782
|
+
}
|
1783
|
+
|
1784
|
+
var ESManager$1 = new ESManager();
|
1785
|
+
|
1786
|
+
/**
|
1787
|
+
*
|
1788
|
+
*/
|
1789
|
+
|
1790
|
+
class ES {
|
1791
|
+
|
1792
|
+
init() {
|
1793
|
+
return Promise.resolve()
|
1794
|
+
.then(() => ESDeviceManager$1.init())
|
1795
|
+
.then(() => ESDevelopManager$1.init())
|
1796
|
+
.then(() => ESDisplayManager$1.init())
|
1797
|
+
.then(() => ESManager$1.init())
|
1798
|
+
.then(() => ESLaunchManager$1.init())
|
1799
|
+
}
|
1800
|
+
}
|
1801
|
+
|
1802
|
+
var ES$1 = new ES();
|
1803
|
+
|
1655
1804
|
//
|
1656
1805
|
const ES_MMP_MODE_PRIVATE = 0;
|
1657
1806
|
const ES_MMP_MODE_WORLD_READABLE = 1;
|
@@ -2496,9 +2645,6 @@ var ESKeyEventMixin = {
|
|
2496
2645
|
|
2497
2646
|
methods: {
|
2498
2647
|
onAndroidKeyEvent(keyEvent) {
|
2499
|
-
if (keyEvent.keyRepeat >= 1) {
|
2500
|
-
return;
|
2501
|
-
}
|
2502
2648
|
if (keyEvent.action === KEY_ACTION_DOWN) {
|
2503
2649
|
this.onKeyDown(keyEvent);
|
2504
2650
|
}
|
@@ -2597,4 +2743,4 @@ const ES_FAST_OUT_LINEAR_IN_INTERPOLATOR = 10;
|
|
2597
2743
|
const ES_FAST_OUT_SLOW_IN_INTERPOLATOR = 11;
|
2598
2744
|
const ES_PATH_INTERPOLATOR = 12;
|
2599
2745
|
|
2600
|
-
export { AUDIO_CONTENT_TYPE_MOVIE, AUDIO_CONTENT_TYPE_MUSIC, AUDIO_CONTENT_TYPE_SONIFICATION, AUDIO_CONTENT_TYPE_SPEECH, AUDIO_CONTENT_TYPE_UNKNOWN, AUDIO_STREAM_ACCESSIBILITY, AUDIO_STREAM_ALARM, AUDIO_STREAM_ASSISTANT, AUDIO_STREAM_BLUETOOTH_SCO, AUDIO_STREAM_DEFAULT, AUDIO_STREAM_DTMF, AUDIO_STREAM_MUSIC, AUDIO_STREAM_NOTIFICATION, AUDIO_STREAM_RING, AUDIO_STREAM_SYSTEM, AUDIO_STREAM_SYSTEM_ENFORCED, AUDIO_STREAM_TTS, AUDIO_STREAM_VOICE_CALL, AUDIO_USAGE_ALARM, AUDIO_USAGE_ASSISTANCE_ACCESSIBILITY, AUDIO_USAGE_ASSISTANCE_NAVIGATION_GUIDANCE, AUDIO_USAGE_ASSISTANCE_SONIFICATION, AUDIO_USAGE_ASSISTANT, AUDIO_USAGE_GAME, AUDIO_USAGE_INVALID, AUDIO_USAGE_MEDIA, AUDIO_USAGE_NOTIFICATION, AUDIO_USAGE_NOTIFICATION_COMMUNICATION_DELAYED, AUDIO_USAGE_NOTIFICATION_COMMUNICATION_INSTANT, AUDIO_USAGE_NOTIFICATION_COMMUNICATION_REQUEST, AUDIO_USAGE_NOTIFICATION_EVENT, AUDIO_USAGE_NOTIFICATION_RINGTONE, AUDIO_USAGE_UNKNOWN, AUDIO_USAGE_VIRTUAL_SOURCE, AUDIO_USAGE_VOICE_COMMUNICATION, AUDIO_USAGE_VOICE_COMMUNICATION_SIGNALLING, ESAnimationViewComponent, ESApp, ESAppModule$1 as ESAppModule, ESAudioModule$1 as ESAudioModule, ESBackPressMixin, ESDevelopManager$1 as ESDevelopManager, ESDevelopModule$1 as ESDevelopModule, ESDeviceManager$1 as ESDeviceManager, ESDeviceModule$1 as ESDeviceModule, ESFile, ESFileModule$1 as ESFileModule, ESKeyEventMixin, ESLifecycleMixin, ESLoadingViewComponent, ESMMapManager$1 as ESMMapManager, ESMMapModule$1 as ESMMapModule, ESModule$1 as ESModule, ESNetworkManager$1 as ESNetworkManager, ESNetworkMixin, ESNetworkModule$1 as ESNetworkModule, ESPermissionModule$1 as ESPermissionModule, ESPowerModule$1 as ESPowerModule, ESProgressBarViewComponent, ESQRCodeViewComponent, ESSeekBarViewComponent, ESSharedPreferencesModule$1 as ESSharedPreferencesModule, ESStorageModule$1 as ESStorageModule, ESTextViewComponent, ESToast$1 as ESToast, ToastModule as ESToastModule, ESTransitionImageViewComponent, ESUsbDeviceMixin, ESUsbDeviceModule$1 as ESUsbDeviceModule, ES_ACCELERATE_DECELERATE_INTERPOLATOR, ES_ACCELERATE_INTERPOLATOR, ES_ANIMATION_PROPERTY_NAME_ALPHA, ES_ANIMATION_PROPERTY_NAME_ROTATION, ES_ANIMATION_PROPERTY_NAME_SCALE_X, ES_ANIMATION_PROPERTY_NAME_SCALE_Y, ES_ANIMATION_PROPERTY_NAME_TRANSLATION_X, ES_ANIMATION_PROPERTY_NAME_TRANSLATION_Y, ES_ANIMATION_REPEAT_MODE_INFINITE, ES_ANIMATION_REPEAT_MODE_RESTART, ES_ANIMATION_REPEAT_MODE_REVERSE, ES_ANIMATION_TYPE_AFTER, ES_ANIMATION_TYPE_AFTER_DELAY, ES_ANIMATION_TYPE_BEFORE, ES_ANIMATION_TYPE_NONE, ES_ANIMATION_TYPE_PLAY, ES_ANIMATION_TYPE_PLAY_SEQUENTIALLY, ES_ANIMATION_TYPE_PLAY_TOGETHER, ES_ANIMATION_TYPE_WITH, ES_ANIMATION_VALUE_TYPE_FLOAT, ES_ANIMATION_VALUE_TYPE_INT, ES_ANTICIPATE_INTERPOLATOR, ES_ANTICIPATE_OVERSHOOT_INTERPOLATOR, ES_BOUNCE_INTERPOLATOR, ES_CYCLE_INTERPOLATOR, ES_DECELERATE_INTERPOLATOR, ES_FAST_OUT_LINEAR_IN_INTERPOLATOR, ES_FAST_OUT_SLOW_IN_INTERPOLATOR, ES_LINEAR_INTERPOLATOR, ES_MMP_MODE_PRIVATE, ES_MMP_MODE_WORLD_READABLE, ES_MMP_MODE_WORLD_WRITEABLE, ES_NETWORK_INFO_STATE_CONNECTED, ES_NETWORK_INFO_STATE_CONNECTING, ES_NETWORK_INFO_STATE_DISCONNECTED, ES_NETWORK_INFO_STATE_DISCONNECTING, ES_NETWORK_INFO_STATE_SUSPENDED, ES_NETWORK_INFO_STATE_UNKNOWN, ES_NETWORK_INFO_TYPE_ETHERNET, ES_NETWORK_INFO_TYPE_MOBILE, ES_NETWORK_INFO_TYPE_NONE, ES_NETWORK_INFO_TYPE_WIFI, ES_OVERSHOOT_INTERPOLATOR, ES_PATH_INTERPOLATOR, KEYCODE_BACK, KEYCODE_DPAD_CENTER, KEYCODE_DPAD_DOWN, KEYCODE_DPAD_LEFT, KEYCODE_DPAD_RIGHT, KEYCODE_DPAD_UP, KEYCODE_ENTER, KEYCODE_ESCAPE, KEYCODE_MENU, KEYCODE_SEARCH, KEY_ACTION_DOWN, KEY_ACTION_UP, getESApp, setESApp };
|
2746
|
+
export { AUDIO_CONTENT_TYPE_MOVIE, AUDIO_CONTENT_TYPE_MUSIC, AUDIO_CONTENT_TYPE_SONIFICATION, AUDIO_CONTENT_TYPE_SPEECH, AUDIO_CONTENT_TYPE_UNKNOWN, AUDIO_STREAM_ACCESSIBILITY, AUDIO_STREAM_ALARM, AUDIO_STREAM_ASSISTANT, AUDIO_STREAM_BLUETOOTH_SCO, AUDIO_STREAM_DEFAULT, AUDIO_STREAM_DTMF, AUDIO_STREAM_MUSIC, AUDIO_STREAM_NOTIFICATION, AUDIO_STREAM_RING, AUDIO_STREAM_SYSTEM, AUDIO_STREAM_SYSTEM_ENFORCED, AUDIO_STREAM_TTS, AUDIO_STREAM_VOICE_CALL, AUDIO_USAGE_ALARM, AUDIO_USAGE_ASSISTANCE_ACCESSIBILITY, AUDIO_USAGE_ASSISTANCE_NAVIGATION_GUIDANCE, AUDIO_USAGE_ASSISTANCE_SONIFICATION, AUDIO_USAGE_ASSISTANT, AUDIO_USAGE_GAME, AUDIO_USAGE_INVALID, AUDIO_USAGE_MEDIA, AUDIO_USAGE_NOTIFICATION, AUDIO_USAGE_NOTIFICATION_COMMUNICATION_DELAYED, AUDIO_USAGE_NOTIFICATION_COMMUNICATION_INSTANT, AUDIO_USAGE_NOTIFICATION_COMMUNICATION_REQUEST, AUDIO_USAGE_NOTIFICATION_EVENT, AUDIO_USAGE_NOTIFICATION_RINGTONE, AUDIO_USAGE_UNKNOWN, AUDIO_USAGE_VIRTUAL_SOURCE, AUDIO_USAGE_VOICE_COMMUNICATION, AUDIO_USAGE_VOICE_COMMUNICATION_SIGNALLING, ES$1 as ES, ESAnimationViewComponent, ESApp, ESAppModule$1 as ESAppModule, ESAudioModule$1 as ESAudioModule, ESBackPressMixin, ESDevelopManager$1 as ESDevelopManager, ESDevelopModule$1 as ESDevelopModule, ESDeviceManager$1 as ESDeviceManager, ESDeviceModule$1 as ESDeviceModule, ESDisplayManager$1 as ESDisplayManager, ESFile, ESFileModule$1 as ESFileModule, ESKeyEventMixin, ESLifecycleMixin, ESLoadingViewComponent, ESMMapManager$1 as ESMMapManager, ESMMapModule$1 as ESMMapModule, ESModule$1 as ESModule, ESNetworkManager$1 as ESNetworkManager, ESNetworkMixin, ESNetworkModule$1 as ESNetworkModule, ESPermissionModule$1 as ESPermissionModule, ESPowerModule$1 as ESPowerModule, ESProgressBarViewComponent, ESQRCodeViewComponent, ESSeekBarViewComponent, ESSharedPreferencesModule$1 as ESSharedPreferencesModule, ESStorageModule$1 as ESStorageModule, ESTextViewComponent, ESToast$1 as ESToast, ToastModule as ESToastModule, ESTransitionImageViewComponent, ESUsbDeviceMixin, ESUsbDeviceModule$1 as ESUsbDeviceModule, ES_ACCELERATE_DECELERATE_INTERPOLATOR, ES_ACCELERATE_INTERPOLATOR, ES_ANIMATION_PROPERTY_NAME_ALPHA, ES_ANIMATION_PROPERTY_NAME_ROTATION, ES_ANIMATION_PROPERTY_NAME_SCALE_X, ES_ANIMATION_PROPERTY_NAME_SCALE_Y, ES_ANIMATION_PROPERTY_NAME_TRANSLATION_X, ES_ANIMATION_PROPERTY_NAME_TRANSLATION_Y, ES_ANIMATION_REPEAT_MODE_INFINITE, ES_ANIMATION_REPEAT_MODE_RESTART, ES_ANIMATION_REPEAT_MODE_REVERSE, ES_ANIMATION_TYPE_AFTER, ES_ANIMATION_TYPE_AFTER_DELAY, ES_ANIMATION_TYPE_BEFORE, ES_ANIMATION_TYPE_NONE, ES_ANIMATION_TYPE_PLAY, ES_ANIMATION_TYPE_PLAY_SEQUENTIALLY, ES_ANIMATION_TYPE_PLAY_TOGETHER, ES_ANIMATION_TYPE_WITH, ES_ANIMATION_VALUE_TYPE_FLOAT, ES_ANIMATION_VALUE_TYPE_INT, ES_ANTICIPATE_INTERPOLATOR, ES_ANTICIPATE_OVERSHOOT_INTERPOLATOR, ES_BOUNCE_INTERPOLATOR, ES_CYCLE_INTERPOLATOR, ES_DECELERATE_INTERPOLATOR, ES_FAST_OUT_LINEAR_IN_INTERPOLATOR, ES_FAST_OUT_SLOW_IN_INTERPOLATOR, ES_LINEAR_INTERPOLATOR, ES_MMP_MODE_PRIVATE, ES_MMP_MODE_WORLD_READABLE, ES_MMP_MODE_WORLD_WRITEABLE, ES_NETWORK_INFO_STATE_CONNECTED, ES_NETWORK_INFO_STATE_CONNECTING, ES_NETWORK_INFO_STATE_DISCONNECTED, ES_NETWORK_INFO_STATE_DISCONNECTING, ES_NETWORK_INFO_STATE_SUSPENDED, ES_NETWORK_INFO_STATE_UNKNOWN, ES_NETWORK_INFO_TYPE_ETHERNET, ES_NETWORK_INFO_TYPE_MOBILE, ES_NETWORK_INFO_TYPE_NONE, ES_NETWORK_INFO_TYPE_WIFI, ES_OVERSHOOT_INTERPOLATOR, ES_PATH_INTERPOLATOR, KEYCODE_BACK, KEYCODE_DPAD_CENTER, KEYCODE_DPAD_DOWN, KEYCODE_DPAD_LEFT, KEYCODE_DPAD_RIGHT, KEYCODE_DPAD_UP, KEYCODE_ENTER, KEYCODE_ESCAPE, KEYCODE_MENU, KEYCODE_SEARCH, KEY_ACTION_DOWN, KEY_ACTION_UP, getESApp, setESApp };
|