mazey 1.4.37 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/tsconfig.json CHANGED
@@ -1,73 +1,73 @@
1
- {
2
- "$schema": "http://json.schemastore.org/tsconfig",
3
- "compilerOptions": {
4
- /* Visit https://aka.ms/tsconfig.json to read more about this file */
5
-
6
- /* Basic Options */
7
- // "incremental": true, /* Enable incremental compilation */
8
- "target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
9
- "module": "es2015", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
10
- "lib": ["es5", "DOM", "ScriptHost", "ESNext"], /* Specify library files to be included in the compilation. */
11
- // "allowJs": true, /* Allow javascript files to be compiled. */
12
- // "checkJs": true, /* Report errors in .js files. */
13
- // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
14
- "declaration": true, /* Generates corresponding '.d.ts' file. */
15
- "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
16
- "sourceMap": true, /* Generates corresponding '.map' file. */
17
- // "outFile": "./", /* Concatenate and emit output to single file. */
18
- "outDir": "lib", /* Redirect output structure to the directory. */
19
- // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
20
- // "composite": true, /* Enable project compilation */
21
- // "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
22
- // "removeComments": true, /* Do not emit comments to output. */
23
- // "noEmit": true, /* Do not emit outputs. */
24
- // "importHelpers": true, /* Import emit helpers from 'tslib'. */
25
- // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
26
- // "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
27
-
28
- /* Strict Type-Checking Options */
29
- "strict": true, /* Enable all strict type-checking options. */
30
- // "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
31
- // "strictNullChecks": true, /* Enable strict null checks. */
32
- // "strictFunctionTypes": true, /* Enable strict checking of function types. */
33
- // "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
34
- // "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
35
- "noImplicitThis": false, /* Raise error on 'this' expressions with an implied 'any' type. */
36
- // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
37
-
38
- /* Additional Checks */
39
- // "noUnusedLocals": true, /* Report errors on unused locals. */
40
- // "noUnusedParameters": true, /* Report errors on unused parameters. */
41
- // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
42
- // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
43
-
44
- /* Module Resolution Options */
45
- // "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
46
- // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
47
- // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
48
- // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
49
- // "typeRoots": [], /* List of folders to include type definitions from. */
50
- // "types": [], /* Type declaration files to be included in compilation. */
51
- "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
52
- "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
53
- // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
54
- // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
55
-
56
- /* Source Map Options */
57
- // "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
58
- // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
59
- // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
60
- // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
61
-
62
- /* Experimental Options */
63
- // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
64
- // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
65
-
66
- /* Advanced Options */
67
- "skipLibCheck": true, /* Skip type checking of declaration files. */
68
- "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
69
- },
70
- "include": [
71
- "src/**/*.ts"
72
- ]
73
- }
1
+ {
2
+ "$schema": "http://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ /* Visit https://aka.ms/tsconfig.json to read more about this file */
5
+
6
+ /* Basic Options */
7
+ // "incremental": true, /* Enable incremental compilation */
8
+ "target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
9
+ "module": "es2015", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
10
+ "lib": ["es5", "DOM", "ScriptHost", "ESNext"], /* Specify library files to be included in the compilation. */
11
+ // "allowJs": true, /* Allow javascript files to be compiled. */
12
+ // "checkJs": true, /* Report errors in .js files. */
13
+ // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
14
+ "declaration": true, /* Generates corresponding '.d.ts' file. */
15
+ "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
16
+ "sourceMap": true, /* Generates corresponding '.map' file. */
17
+ // "outFile": "./", /* Concatenate and emit output to single file. */
18
+ "outDir": "lib", /* Redirect output structure to the directory. */
19
+ // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
20
+ // "composite": true, /* Enable project compilation */
21
+ // "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
22
+ // "removeComments": true, /* Do not emit comments to output. */
23
+ // "noEmit": true, /* Do not emit outputs. */
24
+ // "importHelpers": true, /* Import emit helpers from 'tslib'. */
25
+ // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
26
+ // "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
27
+
28
+ /* Strict Type-Checking Options */
29
+ "strict": true, /* Enable all strict type-checking options. */
30
+ // "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
31
+ // "strictNullChecks": true, /* Enable strict null checks. */
32
+ // "strictFunctionTypes": true, /* Enable strict checking of function types. */
33
+ // "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
34
+ // "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
35
+ "noImplicitThis": false, /* Raise error on 'this' expressions with an implied 'any' type. */
36
+ // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
37
+
38
+ /* Additional Checks */
39
+ // "noUnusedLocals": true, /* Report errors on unused locals. */
40
+ // "noUnusedParameters": true, /* Report errors on unused parameters. */
41
+ // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
42
+ // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
43
+
44
+ /* Module Resolution Options */
45
+ // "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
46
+ // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
47
+ // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
48
+ // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
49
+ // "typeRoots": [], /* List of folders to include type definitions from. */
50
+ // "types": [], /* Type declaration files to be included in compilation. */
51
+ "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
52
+ "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
53
+ // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
54
+ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
55
+
56
+ /* Source Map Options */
57
+ // "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
58
+ // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
59
+ // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
60
+ // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
61
+
62
+ /* Experimental Options */
63
+ // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
64
+ // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
65
+
66
+ /* Advanced Options */
67
+ "skipLibCheck": true, /* Skip type checking of declaration files. */
68
+ "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
69
+ },
70
+ "include": [
71
+ "src/**/*.ts"
72
+ ]
73
+ }
package/typing.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // declare const navigator any;
2
- declare namespace navigator {
3
- let connection: string;
1
+ // declare const navigator any;
2
+ declare namespace navigator {
3
+ let connection: string;
4
4
  }
package/lib/test.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=test.d.ts.map
package/lib/test.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"test.d.ts","sourceRoot":"","sources":["src/test.ts"],"names":[],"mappings":""}
@@ -1,89 +0,0 @@
1
- // 集合
2
- export default function MSet () {
3
- this.dataStore = [];
4
- this.add = add;
5
- this.remove = remove;
6
- this.size = size;
7
- this.show = show;
8
- this.contains = contains;
9
- this.union = union;
10
- this.intersect = intersect;
11
- this.subset = subset;
12
- this.difference = difference;
13
- }
14
- function add (data) {
15
- if (this.dataStore.indexOf(data) < 0) {
16
- this.dataStore.push(data);
17
- return true;
18
- } else {
19
- return false;
20
- }
21
- }
22
- function remove (data) {
23
- let pos = this.dataStore.indexOf(data);
24
- if (pos > -1) {
25
- this.dataStore.splice(pos, 1);
26
- return true;
27
- } else {
28
- return false;
29
- }
30
- }
31
- function size () {
32
- return this.dataStore.length;
33
- }
34
- function show () {
35
- return this.dataStore;
36
- }
37
- function contains (data) {
38
- if (this.dataStore.indexOf(data) > -1) {
39
- return true;
40
- } else {
41
- return false;
42
- }
43
- }
44
- // 并集
45
- function union (set) {
46
- let tempSet = new MSet();
47
- for (let i = 0; i < this.dataStore.length; ++i) {
48
- tempSet.add(this.dataStore[i]);
49
- }
50
- for (let i = 0; i < set.dataStore.length; ++i) {
51
- if (!tempSet.contains(set.dataStore[i])) {
52
- tempSet.dataStore.push(set.dataStore[i]);
53
- }
54
- }
55
- return tempSet;
56
- }
57
- // 交集
58
- function intersect (set) {
59
- let tempSet = new MSet();
60
- for (let i = 0; i < this.dataStore.length; ++i) {
61
- if (set.contains(this.dataStore[i])) {
62
- tempSet.add(this.dataStore[i]);
63
- }
64
- }
65
- return tempSet;
66
- }
67
- // 子集
68
- function subset (set) {
69
- if (this.size() > set.size()) {
70
- return false;
71
- } else {
72
- for (let i = 0; i < this.dataStore.length; ++i) {
73
- if (!set.contains(this.dataStore[i])) {
74
- return false;
75
- }
76
- }
77
- }
78
- return true;
79
- }
80
- // 差集
81
- function difference (set) {
82
- let tempSet = new MSet();
83
- for (let i = 0; i < this.dataStore.length; ++i) {
84
- if (!set.contains(this.dataStore[i])) {
85
- tempSet.add(this.dataStore[i]);
86
- }
87
- }
88
- return tempSet;
89
- }
@@ -1,63 +0,0 @@
1
- // Production steps of ECMA-262, Edition 5, 15.4.4.21
2
- // Reference: http://es5.github.io/#x15.4.4.21
3
- // https://tc39.github.io/ecma262/#sec-array.prototype.reduce
4
- if (!Array.prototype.reduce) {
5
- Object.defineProperty(Array.prototype, 'reduce', {
6
- value: function(callback /*, initialValue*/) {
7
- if (this === null) {
8
- throw new TypeError( 'Array.prototype.reduce ' +
9
- 'called on null or undefined' );
10
- }
11
- if (typeof callback !== 'function') {
12
- throw new TypeError( callback +
13
- ' is not a function');
14
- }
15
-
16
- // 1. Let O be ? ToObject(this value).
17
- var o = Object(this);
18
-
19
- // 2. Let len be ? ToLength(? Get(O, "length")).
20
- var len = o.length >>> 0;
21
-
22
- // Steps 3, 4, 5, 6, 7
23
- var k = 0;
24
- var value;
25
-
26
- if (arguments.length >= 2) {
27
- value = arguments[1];
28
- } else {
29
- while (k < len && !(k in o)) {
30
- k++;
31
- }
32
-
33
- // 3. If len is 0 and initialValue is not present,
34
- // throw a TypeError exception.
35
- if (k >= len) {
36
- throw new TypeError( 'Reduce of empty array ' +
37
- 'with no initial value' );
38
- }
39
- value = o[k++];
40
- }
41
-
42
- // 8. Repeat, while k < len
43
- while (k < len) {
44
- // a. Let Pk be ! ToString(k).
45
- // b. Let kPresent be ? HasProperty(O, Pk).
46
- // c. If kPresent is true, then
47
- // i. Let kValue be ? Get(O, Pk).
48
- // ii. Let accumulator be ? Call(
49
- // callbackfn, undefined,
50
- // « accumulator, kValue, k, O »).
51
- if (k in o) {
52
- value = callback(value, o[k], k, o);
53
- }
54
-
55
- // d. Increase k by 1.
56
- k++;
57
- }
58
-
59
- // 9. Return accumulator.
60
- return value;
61
- }
62
- });
63
- }
@@ -1,4 +0,0 @@
1
- // 时间戳
2
- export const mNow = Date.now || function () {
3
- return new Date().getTime();
4
- };
@@ -1,149 +0,0 @@
1
- %m-pointer {
2
- cursor: pointer;
3
- }
4
-
5
- %m-show{
6
- display: block;
7
- }
8
-
9
- %m-hide{
10
- display: none;
11
- }
12
-
13
- %m-flex-middle {
14
- display: flex;
15
- align-items: center;
16
- }
17
-
18
- %m-flex-center {
19
- display: flex;
20
- justify-content: center;
21
- }
22
-
23
- %m-flex-centre {
24
- display: flex;
25
- justify-content: center;
26
- align-items: center;
27
- }
28
-
29
- %m-ellipsis{
30
- overflow: hidden;
31
- text-overflow: ellipsis;
32
- white-space: nowrap;
33
- }
34
-
35
- %m-wrap{
36
- word-break: break-all;
37
- word-wrap: break-word;
38
- }
39
-
40
- %m-table{
41
- width: 100%;
42
- //border: 1px solid #E4EBEE;
43
- background: 0 0;
44
- font-size: 12px;
45
- border-collapse: collapse;
46
- %unity{
47
- text-align: left;
48
- padding: 10px 15px;
49
- }
50
- >thead{
51
- >tr{
52
- >th{
53
- @extend %unity;
54
- color: #242a30;
55
- font-weight: 600;
56
- border-bottom: 1px solid #b6c2c9 !important;
57
- }
58
- }
59
- }
60
- >tbody{
61
- >tr{
62
- >td{
63
- @extend %unity;
64
- color: #707478;
65
- border-top: 1px solid #dee2e6;
66
- }
67
- }
68
- }
69
- // 斑马线
70
- &.table-striped tbody tr{
71
- &:nth-of-type(odd) {
72
- background-color: rgba(0,0,0,.05);
73
- }
74
- >td{
75
- border-top-width: 0;
76
- }
77
- }
78
- // 悬浮变色
79
- &.table-hover tbody tr{
80
- &:hover{
81
- background-color: rgba(0,0,0,.05);
82
- }
83
- }
84
- // 有框
85
- &.table-bordered{
86
- th,
87
- td{
88
- border: 1px solid #dee2e6;
89
- }
90
- }
91
- // 排序
92
- .m-table-is-sort{
93
- @extend %m-pointer;
94
- .m-table-sort{
95
- display: inline-flex;
96
- flex-direction: column;
97
- align-items: center;
98
- height: 34px;
99
- width: 24px;
100
- vertical-align: middle;
101
- cursor: pointer;
102
- overflow: initial;
103
- position: relative;
104
- >i{
105
- width: 0;
106
- height: 0;
107
- border: 5px solid transparent;
108
- position: absolute;
109
- left: 7px;
110
- &.sort-ascend{
111
- border-bottom-color: #c0c4cc;
112
- top: 5px;
113
- &.active{
114
- border-bottom-color: #409EFF;
115
- }
116
- }
117
- &.sort-descend{
118
- border-top-color: #c0c4cc;
119
- bottom: 7px;
120
- &.active{
121
- border-top-color: #409EFF;
122
- }
123
- }
124
- }
125
- }
126
- }
127
- }
128
-
129
- %m-scroll-bar{
130
- overflow-y: auto;
131
- /*滚动条的宽度*/
132
- &::-webkit-scrollbar{
133
- width: 6px;
134
- }
135
- /* 滚动条的滑轨背景颜色 */
136
- &::-webkit-scrollbar-track {
137
- background-color: transparent; // red;
138
- -webkit-border-radius: 2em;
139
- -moz-border-radius: 2em;
140
- border-radius:2em;
141
- }
142
- /* 滑块颜色 */
143
- &::-webkit-scrollbar-thumb {
144
- background-color:darken(#EEEEEE, 10%); // green;
145
- -webkit-border-radius: 2em;
146
- -moz-border-radius: 2em;
147
- border-radius:2em;
148
- }
149
- }
@@ -1,5 +0,0 @@
1
- @charset "utf-8";
2
- @import "variate/index";
3
- @import "extend/index";
4
- @import "mixin/index";
5
- // @import "font/iconfont";
@@ -1,41 +0,0 @@
1
- @mixin m-icon ($w: auto, $h: auto, $url: "") {
2
- display: inline-block;
3
- width: $w;
4
- height: $h;
5
- background: url($url) no-repeat;
6
- vertical-align: middle;
7
- }
8
-
9
- @mixin m-circle ($len, $color) {
10
- display: inline-block;
11
- width: $len;
12
- height: $len;
13
- background-color: $color;
14
- border-radius: 50%;
15
- vertical-align: middle;
16
- }
17
-
18
- @mixin m-row {
19
- display: flex;
20
- flex-wrap: wrap;
21
- }
22
-
23
- @mixin m-col ($percent) {
24
- display: block;
25
- position: relative;
26
- max-width: $percent;
27
- flex: 0 0 $percent;
28
- }
29
-
30
- @mixin m-hr ($w, $color) {
31
- width: $w;
32
- height: 1px;
33
- background-color: $color;
34
- display: inline-block;
35
- text-align: center;
36
- }
37
-
38
- @mixin m-triangle ($w, $color, $dir) {
39
- border: $w solid transparent;
40
- border-#{$dir}-color: $color;
41
- }
@@ -1,28 +0,0 @@
1
- // 颜色
2
- $color-white: #ffffff;
3
- $color-green: #2ECC40;
4
- $color-red: #FF4136;
5
- $color-black: #111111;
6
- $color-orange: #FF851B;
7
- $color-yellow: #FFDC00;
8
- $color-blue: #0074D9;
9
- $color-purple: #B10DC9;
10
-
11
- // 背景图
12
- $bgc-navy: #001F3F;
13
- $bgc-blue: #0074D9;
14
- $bgc-aqua: #7FDBFF;
15
- $bgc-teal: #39CCCC;
16
- $bgc-olive: #3D9970;
17
- $bgc-green: #2ECC40;
18
- $bgc-lime: #01FF70;
19
- $bgc-yellow: #FFDC00;
20
- $bgc-orange: #FF851B;
21
- $bgc-red: #FF4136;
22
- $bgc-fuchsia: #F012BE;
23
- $bgc-purple: #B10DC9;
24
- $bgc-maroon: #85144B;
25
- $bgc-white: #FFFFFF;
26
- $bgc-gray: #AAAAAA;
27
- $bgc-silver: #DDDDDD;
28
- $bgc-black: #111111;
package/src/test.html DELETED
@@ -1,33 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <title>Mazey's Test.</title>
6
- <style>
7
- .container {
8
- position: absolute;
9
- top: 0;
10
- bottom: 0;
11
- left: 0;
12
- right: 0;
13
- background-color: #999;
14
- overflow: hidden;
15
- }
16
- .box {
17
- transform: translate3d(0, 500px, 0px) scale(1);
18
- }
19
- .img {
20
- width: 30%;
21
- height: 90vh;
22
- }
23
- </style>
24
- </head>
25
- <body>
26
- <div class="container">
27
- <div class="box">
28
- <img class="img" src="https://i.mazey.net/asset/WechatIMG14200.jpeg" />
29
- </div>
30
- <div class="s"></div>
31
- </div>
32
- </body>
33
- </html>
package/src/test.ts DELETED
@@ -1,26 +0,0 @@
1
- import {
2
- calLongestCommonSubstring,
3
- calLongestCommonSubsequence,
4
- getPerformance,
5
- camelCaseToKebabCase,
6
- camelCase2Underscore,
7
- deepCopyObject,
8
- inRate,
9
- getUrlParam,
10
- loadScript,
11
- isSafePWAEnv,
12
- getBrowserType,
13
- debounce,
14
- windowLoaded,
15
- isNumber,
16
- addInlineStyle,
17
- floatToPercent,
18
- customScrollBarForTransformEle,
19
- // getPerformance,
20
- calcContainImageSizeAndPosition,
21
- } from './index';
22
-
23
- // 数字测试
24
- console.log('数字测试:', isNumber(Infinity, { isUnFiniteAsNumber: true }));
25
-
26
- console.log('计算适配屏幕宽度的图片尺寸和位置:', JSON.stringify(calcContainImageSizeAndPosition({ oriImageWidth: 300, oriImageHeight: 300, viewportWidth: 375, viewportHeight: 812 })));