@pixui-dev/pxw 0.1.16 → 0.1.19
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/bin/pxw.js +199 -217
- package/bin/wpbuild.js +10 -10
- package/config/default.conf +20 -20
- package/config/devops.js +361 -358
- package/config/h5es.js +10 -10
- package/config/index.html +181 -181
- package/config/pfbs.js +245 -207
- package/config/util.js +140 -140
- package/config/webpack.js +309 -291
- package/lib/assets/check.html +62 -62
- package/lib/assets/preact.js +4354 -4354
- package/lib/check/main.less +62 -62
- package/lib/check/main.tsx +41 -41
- package/lib/check/tool.js +3 -3
- package/lib/check/util.tsx +110 -110
- package/lib/grpc-web/dist/ChunkParser.js +117 -117
- package/lib/grpc-web/dist/Code.js +58 -58
- package/lib/grpc-web/dist/client.js +299 -299
- package/lib/grpc-web/dist/debug.js +16 -16
- package/lib/grpc-web/dist/detach.js +7 -7
- package/lib/grpc-web/dist/index.js +29 -29
- package/lib/grpc-web/dist/invoke.js +32 -32
- package/lib/grpc-web/dist/message.js +3 -3
- package/lib/grpc-web/dist/metadata.js +5 -5
- package/lib/grpc-web/dist/service.js +3 -3
- package/lib/grpc-web/dist/transports/Transport.js +15 -15
- package/lib/grpc-web/dist/transports/http/fetch.js +117 -117
- package/lib/grpc-web/dist/transports/http/http.js +15 -15
- package/lib/grpc-web/dist/transports/http/xhr.js +136 -136
- package/lib/grpc-web/dist/transports/http/xhrUtil.js +36 -36
- package/lib/grpc-web/dist/transports/websocket/websocket.js +95 -95
- package/lib/grpc-web/dist/typings/ChunkParser.d.ts +17 -17
- package/lib/grpc-web/dist/typings/Code.d.ts +20 -20
- package/lib/grpc-web/dist/typings/client.d.ts +25 -25
- package/lib/grpc-web/dist/typings/debug.d.ts +1 -1
- package/lib/grpc-web/dist/typings/detach.d.ts +1 -1
- package/lib/grpc-web/dist/typings/index.d.ts +45 -45
- package/lib/grpc-web/dist/typings/invoke.d.ts +20 -20
- package/lib/grpc-web/dist/typings/message.d.ts +8 -8
- package/lib/grpc-web/dist/typings/metadata.d.ts +2 -2
- package/lib/grpc-web/dist/typings/service.d.ts +16 -16
- package/lib/grpc-web/dist/typings/transports/Transport.d.ts +22 -22
- package/lib/grpc-web/dist/typings/transports/http/fetch.d.ts +6 -6
- package/lib/grpc-web/dist/typings/transports/http/http.d.ts +5 -5
- package/lib/grpc-web/dist/typings/transports/http/xhr.d.ts +27 -27
- package/lib/grpc-web/dist/typings/transports/http/xhrUtil.d.ts +3 -3
- package/lib/grpc-web/dist/typings/transports/websocket/websocket.d.ts +2 -2
- package/lib/grpc-web/dist/typings/unary.d.ts +23 -23
- package/lib/grpc-web/dist/typings/util.d.ts +2 -2
- package/lib/grpc-web/dist/unary.js +44 -44
- package/lib/grpc-web/dist/util.js +11 -11
- package/lib/grpcTransport/PixHttp2Transport.ts +107 -107
- package/lib/grpcTransport/PixLuaTransport.ts +82 -82
- package/lib/h5es-types/v1.9.2/h5es.d.ts +1698 -1698
- package/lib/h5es-types/v3.5.0/h5es.d.ts +1788 -1788
- package/lib/pi_component/tinyList/tinyList.js +483 -483
- package/lib/pi_component/tinyList/tinyList.tsx +517 -517
- package/lib/preact-router.js +395 -395
- package/lib/preact.js +4355 -4355
- package/lib/preact.tq.js +4385 -4385
- package/lib/react-window/src/FixedSizeGrid.js +172 -172
- package/lib/react-window/src/FixedSizeList.js +91 -91
- package/lib/react-window/src/VariableSizeGrid.js +329 -329
- package/lib/react-window/src/VariableSizeList.js +231 -231
- package/lib/react-window/src/__tests__/FixedSizeGrid.js +942 -942
- package/lib/react-window/src/__tests__/FixedSizeList.js +749 -749
- package/lib/react-window/src/__tests__/VariableSizeGrid.js +598 -598
- package/lib/react-window/src/__tests__/VariableSizeList.js +345 -345
- package/lib/react-window/src/__tests__/__snapshots__/FixedSizeGrid.js.snap +912 -912
- package/lib/react-window/src/__tests__/__snapshots__/FixedSizeList.js.snap +568 -568
- package/lib/react-window/src/__tests__/__snapshots__/VariableSizeGrid.js.snap +542 -542
- package/lib/react-window/src/__tests__/__snapshots__/VariableSizeList.js.snap +331 -331
- package/lib/react-window/src/__tests__/areEqual.js +28 -28
- package/lib/react-window/src/__tests__/shouldComponentUpdate.js +32 -32
- package/lib/react-window/src/areEqual.js +13 -13
- package/lib/react-window/src/createGridComponent.js +657 -657
- package/lib/react-window/src/createListComponent.js +574 -574
- package/lib/react-window/src/domHelpers.js +69 -69
- package/lib/react-window/src/index.js +9 -9
- package/lib/react-window/src/shallowDiffers.js +17 -17
- package/lib/react-window/src/shouldComponentUpdate.js +11 -11
- package/lib/react-window/src/test.js.flow +382 -382
- package/lib/react-window/src/timer.js +36 -36
- package/lib/types/css.d.ts +7476 -7476
- package/lib/types/dom.ts +17 -17
- package/lib/types/ext.d.ts +81 -81
- package/lib/types/internal.d.ts +94 -94
- package/lib/types/jsx.d.ts +309 -309
- package/lib/types/preact.d.ts +340 -340
- package/package.json +113 -111
- package/scripts/pack.js +40 -0
- package/scripts/postinstall.js +12 -0
- package/scripts/run-pxw.js +13 -0
- package/tsconfig.json +30 -30
- package/lib/pika-svelte/compiler.js +0 -29829
- package/lib/pika-svelte/easing/index.js +0 -158
- package/lib/pika-svelte/index.js +0 -72
- package/lib/pika-svelte/internal/index.js +0 -1926
- package/lib/pika-svelte/motion/index.js +0 -210
- package/lib/pika-svelte/package.json +0 -145
- package/lib/pika-svelte/register.js +0 -57
- package/lib/pika-svelte/rollup.config.js +0 -126
- package/lib/pika-svelte/store/index.js +0 -123
- package/lib/pika-svelte/transition/index.js +0 -185
- package/lib/svelte-tab/Tab.svelte +0 -31
- package/lib/svelte-tab/TabList.svelte +0 -10
- package/lib/svelte-tab/TabPanel.svelte +0 -13
- package/lib/svelte-tab/Tabs.svelte +0 -68
- package/lib/svelte-tab/tabs.js +0 -4
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var internal = require('../internal/index.js');
|
|
6
|
-
|
|
7
|
-
/*
|
|
8
|
-
Adapted from https://github.com/mattdesl
|
|
9
|
-
Distributed under MIT License https://github.com/mattdesl/eases/blob/master/LICENSE.md
|
|
10
|
-
*/
|
|
11
|
-
function backInOut(t) {
|
|
12
|
-
const s = 1.70158 * 1.525;
|
|
13
|
-
if ((t *= 2) < 1) return 0.5 * (t * t * ((s + 1) * t - s));
|
|
14
|
-
return 0.5 * ((t -= 2) * t * ((s + 1) * t + s) + 2);
|
|
15
|
-
}
|
|
16
|
-
function backIn(t) {
|
|
17
|
-
const s = 1.70158;
|
|
18
|
-
return t * t * ((s + 1) * t - s);
|
|
19
|
-
}
|
|
20
|
-
function backOut(t) {
|
|
21
|
-
const s = 1.70158;
|
|
22
|
-
return --t * t * ((s + 1) * t + s) + 1;
|
|
23
|
-
}
|
|
24
|
-
function bounceOut(t) {
|
|
25
|
-
const a = 4.0 / 11.0;
|
|
26
|
-
const b = 8.0 / 11.0;
|
|
27
|
-
const c = 9.0 / 10.0;
|
|
28
|
-
const ca = 4356.0 / 361.0;
|
|
29
|
-
const cb = 35442.0 / 1805.0;
|
|
30
|
-
const cc = 16061.0 / 1805.0;
|
|
31
|
-
const t2 = t * t;
|
|
32
|
-
return t < a ? 7.5625 * t2 : t < b ? 9.075 * t2 - 9.9 * t + 3.4 : t < c ? ca * t2 - cb * t + cc : 10.8 * t * t - 20.52 * t + 10.72;
|
|
33
|
-
}
|
|
34
|
-
function bounceInOut(t) {
|
|
35
|
-
return t < 0.5 ? 0.5 * (1.0 - bounceOut(1.0 - t * 2.0)) : 0.5 * bounceOut(t * 2.0 - 1.0) + 0.5;
|
|
36
|
-
}
|
|
37
|
-
function bounceIn(t) {
|
|
38
|
-
return 1.0 - bounceOut(1.0 - t);
|
|
39
|
-
}
|
|
40
|
-
function circInOut(t) {
|
|
41
|
-
if ((t *= 2) < 1) return -0.5 * (Math.sqrt(1 - t * t) - 1);
|
|
42
|
-
return 0.5 * (Math.sqrt(1 - (t -= 2) * t) + 1);
|
|
43
|
-
}
|
|
44
|
-
function circIn(t) {
|
|
45
|
-
return 1.0 - Math.sqrt(1.0 - t * t);
|
|
46
|
-
}
|
|
47
|
-
function circOut(t) {
|
|
48
|
-
return Math.sqrt(1 - --t * t);
|
|
49
|
-
}
|
|
50
|
-
function cubicInOut(t) {
|
|
51
|
-
return t < 0.5 ? 4.0 * t * t * t : 0.5 * Math.pow(2.0 * t - 2.0, 3.0) + 1.0;
|
|
52
|
-
}
|
|
53
|
-
function cubicIn(t) {
|
|
54
|
-
return t * t * t;
|
|
55
|
-
}
|
|
56
|
-
function cubicOut(t) {
|
|
57
|
-
const f = t - 1.0;
|
|
58
|
-
return f * f * f + 1.0;
|
|
59
|
-
}
|
|
60
|
-
function elasticInOut(t) {
|
|
61
|
-
return t < 0.5
|
|
62
|
-
? 0.5 * Math.sin(((+13.0 * Math.PI) / 2) * 2.0 * t) * Math.pow(2.0, 10.0 * (2.0 * t - 1.0))
|
|
63
|
-
: 0.5 * Math.sin(((-13.0 * Math.PI) / 2) * (2.0 * t - 1.0 + 1.0)) * Math.pow(2.0, -10.0 * (2.0 * t - 1.0)) + 1.0;
|
|
64
|
-
}
|
|
65
|
-
function elasticIn(t) {
|
|
66
|
-
return Math.sin((13.0 * t * Math.PI) / 2) * Math.pow(2.0, 10.0 * (t - 1.0));
|
|
67
|
-
}
|
|
68
|
-
function elasticOut(t) {
|
|
69
|
-
return Math.sin((-13.0 * (t + 1.0) * Math.PI) / 2) * Math.pow(2.0, -10.0 * t) + 1.0;
|
|
70
|
-
}
|
|
71
|
-
function expoInOut(t) {
|
|
72
|
-
return t === 0.0 || t === 1.0 ? t : t < 0.5 ? +0.5 * Math.pow(2.0, 20.0 * t - 10.0) : -0.5 * Math.pow(2.0, 10.0 - t * 20.0) + 1.0;
|
|
73
|
-
}
|
|
74
|
-
function expoIn(t) {
|
|
75
|
-
return t === 0.0 ? t : Math.pow(2.0, 10.0 * (t - 1.0));
|
|
76
|
-
}
|
|
77
|
-
function expoOut(t) {
|
|
78
|
-
return t === 1.0 ? t : 1.0 - Math.pow(2.0, -10.0 * t);
|
|
79
|
-
}
|
|
80
|
-
function quadInOut(t) {
|
|
81
|
-
t /= 0.5;
|
|
82
|
-
if (t < 1) return 0.5 * t * t;
|
|
83
|
-
t--;
|
|
84
|
-
return -0.5 * (t * (t - 2) - 1);
|
|
85
|
-
}
|
|
86
|
-
function quadIn(t) {
|
|
87
|
-
return t * t;
|
|
88
|
-
}
|
|
89
|
-
function quadOut(t) {
|
|
90
|
-
return -t * (t - 2.0);
|
|
91
|
-
}
|
|
92
|
-
function quartInOut(t) {
|
|
93
|
-
return t < 0.5 ? +8.0 * Math.pow(t, 4.0) : -8.0 * Math.pow(t - 1.0, 4.0) + 1.0;
|
|
94
|
-
}
|
|
95
|
-
function quartIn(t) {
|
|
96
|
-
return Math.pow(t, 4.0);
|
|
97
|
-
}
|
|
98
|
-
function quartOut(t) {
|
|
99
|
-
return Math.pow(t - 1.0, 3.0) * (1.0 - t) + 1.0;
|
|
100
|
-
}
|
|
101
|
-
function quintInOut(t) {
|
|
102
|
-
if ((t *= 2) < 1) return 0.5 * t * t * t * t * t;
|
|
103
|
-
return 0.5 * ((t -= 2) * t * t * t * t + 2);
|
|
104
|
-
}
|
|
105
|
-
function quintIn(t) {
|
|
106
|
-
return t * t * t * t * t;
|
|
107
|
-
}
|
|
108
|
-
function quintOut(t) {
|
|
109
|
-
return --t * t * t * t * t + 1;
|
|
110
|
-
}
|
|
111
|
-
function sineInOut(t) {
|
|
112
|
-
return -0.5 * (Math.cos(Math.PI * t) - 1);
|
|
113
|
-
}
|
|
114
|
-
function sineIn(t) {
|
|
115
|
-
const v = Math.cos(t * Math.PI * 0.5);
|
|
116
|
-
if (Math.abs(v) < 1e-14) return 1;
|
|
117
|
-
else return 1 - v;
|
|
118
|
-
}
|
|
119
|
-
function sineOut(t) {
|
|
120
|
-
return Math.sin((t * Math.PI) / 2);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
Object.defineProperty(exports, 'linear', {
|
|
124
|
-
enumerable: true,
|
|
125
|
-
get: function () {
|
|
126
|
-
return internal.identity;
|
|
127
|
-
},
|
|
128
|
-
});
|
|
129
|
-
exports.backIn = backIn;
|
|
130
|
-
exports.backInOut = backInOut;
|
|
131
|
-
exports.backOut = backOut;
|
|
132
|
-
exports.bounceIn = bounceIn;
|
|
133
|
-
exports.bounceInOut = bounceInOut;
|
|
134
|
-
exports.bounceOut = bounceOut;
|
|
135
|
-
exports.circIn = circIn;
|
|
136
|
-
exports.circInOut = circInOut;
|
|
137
|
-
exports.circOut = circOut;
|
|
138
|
-
exports.cubicIn = cubicIn;
|
|
139
|
-
exports.cubicInOut = cubicInOut;
|
|
140
|
-
exports.cubicOut = cubicOut;
|
|
141
|
-
exports.elasticIn = elasticIn;
|
|
142
|
-
exports.elasticInOut = elasticInOut;
|
|
143
|
-
exports.elasticOut = elasticOut;
|
|
144
|
-
exports.expoIn = expoIn;
|
|
145
|
-
exports.expoInOut = expoInOut;
|
|
146
|
-
exports.expoOut = expoOut;
|
|
147
|
-
exports.quadIn = quadIn;
|
|
148
|
-
exports.quadInOut = quadInOut;
|
|
149
|
-
exports.quadOut = quadOut;
|
|
150
|
-
exports.quartIn = quartIn;
|
|
151
|
-
exports.quartInOut = quartInOut;
|
|
152
|
-
exports.quartOut = quartOut;
|
|
153
|
-
exports.quintIn = quintIn;
|
|
154
|
-
exports.quintInOut = quintInOut;
|
|
155
|
-
exports.quintOut = quintOut;
|
|
156
|
-
exports.sineIn = sineIn;
|
|
157
|
-
exports.sineInOut = sineInOut;
|
|
158
|
-
exports.sineOut = sineOut;
|
package/lib/pika-svelte/index.js
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var internal = require('./internal/index.js');
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, 'SvelteComponent', {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function () {
|
|
10
|
-
return internal.SvelteComponentDev;
|
|
11
|
-
},
|
|
12
|
-
});
|
|
13
|
-
Object.defineProperty(exports, 'SvelteComponentTyped', {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function () {
|
|
16
|
-
return internal.SvelteComponentTyped;
|
|
17
|
-
},
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports, 'afterUpdate', {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function () {
|
|
22
|
-
return internal.afterUpdate;
|
|
23
|
-
},
|
|
24
|
-
});
|
|
25
|
-
Object.defineProperty(exports, 'beforeUpdate', {
|
|
26
|
-
enumerable: true,
|
|
27
|
-
get: function () {
|
|
28
|
-
return internal.beforeUpdate;
|
|
29
|
-
},
|
|
30
|
-
});
|
|
31
|
-
Object.defineProperty(exports, 'createEventDispatcher', {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
get: function () {
|
|
34
|
-
return internal.createEventDispatcher;
|
|
35
|
-
},
|
|
36
|
-
});
|
|
37
|
-
Object.defineProperty(exports, 'getContext', {
|
|
38
|
-
enumerable: true,
|
|
39
|
-
get: function () {
|
|
40
|
-
return internal.getContext;
|
|
41
|
-
},
|
|
42
|
-
});
|
|
43
|
-
Object.defineProperty(exports, 'hasContext', {
|
|
44
|
-
enumerable: true,
|
|
45
|
-
get: function () {
|
|
46
|
-
return internal.hasContext;
|
|
47
|
-
},
|
|
48
|
-
});
|
|
49
|
-
Object.defineProperty(exports, 'onDestroy', {
|
|
50
|
-
enumerable: true,
|
|
51
|
-
get: function () {
|
|
52
|
-
return internal.onDestroy;
|
|
53
|
-
},
|
|
54
|
-
});
|
|
55
|
-
Object.defineProperty(exports, 'onMount', {
|
|
56
|
-
enumerable: true,
|
|
57
|
-
get: function () {
|
|
58
|
-
return internal.onMount;
|
|
59
|
-
},
|
|
60
|
-
});
|
|
61
|
-
Object.defineProperty(exports, 'setContext', {
|
|
62
|
-
enumerable: true,
|
|
63
|
-
get: function () {
|
|
64
|
-
return internal.setContext;
|
|
65
|
-
},
|
|
66
|
-
});
|
|
67
|
-
Object.defineProperty(exports, 'tick', {
|
|
68
|
-
enumerable: true,
|
|
69
|
-
get: function () {
|
|
70
|
-
return internal.tick;
|
|
71
|
-
},
|
|
72
|
-
});
|