@pixui-dev/pxw 0.1.16
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 +217 -0
- package/bin/wpbuild.js +10 -0
- package/config/default.conf +21 -0
- package/config/devops.js +358 -0
- package/config/h5es.js +10 -0
- package/config/index.html +181 -0
- package/config/pfbs.js +207 -0
- package/config/testhelp.js +0 -0
- package/config/util.js +140 -0
- package/config/webpack.js +291 -0
- package/lib/assets/border.png +0 -0
- package/lib/assets/check.html +62 -0
- package/lib/assets/pixui.png +0 -0
- package/lib/assets/preact.js +4354 -0
- package/lib/assets/preact.png +0 -0
- package/lib/check/main.less +63 -0
- package/lib/check/main.tsx +41 -0
- package/lib/check/tool.js +3 -0
- package/lib/check/util.tsx +110 -0
- package/lib/grpc-web/dist/ChunkParser.js +117 -0
- package/lib/grpc-web/dist/ChunkParser.js.map +1 -0
- package/lib/grpc-web/dist/Code.js +58 -0
- package/lib/grpc-web/dist/Code.js.map +1 -0
- package/lib/grpc-web/dist/client.js +299 -0
- package/lib/grpc-web/dist/client.js.map +1 -0
- package/lib/grpc-web/dist/debug.js +16 -0
- package/lib/grpc-web/dist/debug.js.map +1 -0
- package/lib/grpc-web/dist/detach.js +7 -0
- package/lib/grpc-web/dist/detach.js.map +1 -0
- package/lib/grpc-web/dist/index.js +29 -0
- package/lib/grpc-web/dist/index.js.map +1 -0
- package/lib/grpc-web/dist/invoke.js +32 -0
- package/lib/grpc-web/dist/invoke.js.map +1 -0
- package/lib/grpc-web/dist/message.js +3 -0
- package/lib/grpc-web/dist/message.js.map +1 -0
- package/lib/grpc-web/dist/metadata.js +5 -0
- package/lib/grpc-web/dist/metadata.js.map +1 -0
- package/lib/grpc-web/dist/service.js +3 -0
- package/lib/grpc-web/dist/service.js.map +1 -0
- package/lib/grpc-web/dist/transports/Transport.js +15 -0
- package/lib/grpc-web/dist/transports/Transport.js.map +1 -0
- package/lib/grpc-web/dist/transports/http/fetch.js +117 -0
- package/lib/grpc-web/dist/transports/http/fetch.js.map +1 -0
- package/lib/grpc-web/dist/transports/http/http.js +15 -0
- package/lib/grpc-web/dist/transports/http/http.js.map +1 -0
- package/lib/grpc-web/dist/transports/http/xhr.js +136 -0
- package/lib/grpc-web/dist/transports/http/xhr.js.map +1 -0
- package/lib/grpc-web/dist/transports/http/xhrUtil.js +36 -0
- package/lib/grpc-web/dist/transports/http/xhrUtil.js.map +1 -0
- package/lib/grpc-web/dist/transports/websocket/websocket.js +95 -0
- package/lib/grpc-web/dist/transports/websocket/websocket.js.map +1 -0
- package/lib/grpc-web/dist/typings/ChunkParser.d.ts +17 -0
- package/lib/grpc-web/dist/typings/Code.d.ts +20 -0
- package/lib/grpc-web/dist/typings/client.d.ts +25 -0
- package/lib/grpc-web/dist/typings/debug.d.ts +1 -0
- package/lib/grpc-web/dist/typings/detach.d.ts +1 -0
- package/lib/grpc-web/dist/typings/index.d.ts +45 -0
- package/lib/grpc-web/dist/typings/invoke.d.ts +20 -0
- package/lib/grpc-web/dist/typings/message.d.ts +8 -0
- package/lib/grpc-web/dist/typings/metadata.d.ts +2 -0
- package/lib/grpc-web/dist/typings/service.d.ts +16 -0
- package/lib/grpc-web/dist/typings/transports/Transport.d.ts +22 -0
- package/lib/grpc-web/dist/typings/transports/http/fetch.d.ts +6 -0
- package/lib/grpc-web/dist/typings/transports/http/http.d.ts +5 -0
- package/lib/grpc-web/dist/typings/transports/http/xhr.d.ts +27 -0
- package/lib/grpc-web/dist/typings/transports/http/xhrUtil.d.ts +3 -0
- package/lib/grpc-web/dist/typings/transports/websocket/websocket.d.ts +2 -0
- package/lib/grpc-web/dist/typings/unary.d.ts +23 -0
- package/lib/grpc-web/dist/typings/util.d.ts +2 -0
- package/lib/grpc-web/dist/unary.js +44 -0
- package/lib/grpc-web/dist/unary.js.map +1 -0
- package/lib/grpc-web/dist/util.js +11 -0
- package/lib/grpc-web/dist/util.js.map +1 -0
- package/lib/grpcTransport/PixHttp2Transport.ts +107 -0
- package/lib/grpcTransport/PixLuaTransport.ts +82 -0
- package/lib/h5es-types/v1.9.2/h5es.d.ts +1698 -0
- package/lib/h5es-types/v3.5.0/h5es.d.ts +1788 -0
- package/lib/pi_component/tinyList/tinyList.js +483 -0
- package/lib/pi_component/tinyList/tinyList.tsx +517 -0
- package/lib/pika-svelte/compiler.js +29829 -0
- package/lib/pika-svelte/easing/index.js +158 -0
- package/lib/pika-svelte/index.js +72 -0
- package/lib/pika-svelte/internal/index.js +1926 -0
- package/lib/pika-svelte/motion/index.js +210 -0
- package/lib/pika-svelte/package.json +145 -0
- package/lib/pika-svelte/register.js +57 -0
- package/lib/pika-svelte/rollup.config.js +126 -0
- package/lib/pika-svelte/store/index.js +123 -0
- package/lib/pika-svelte/transition/index.js +185 -0
- package/lib/preact-router.js +395 -0
- package/lib/preact.js +4355 -0
- package/lib/preact.tq.js +4385 -0
- package/lib/react-window/src/FixedSizeGrid.js +172 -0
- package/lib/react-window/src/FixedSizeList.js +91 -0
- package/lib/react-window/src/VariableSizeGrid.js +329 -0
- package/lib/react-window/src/VariableSizeList.js +231 -0
- package/lib/react-window/src/__tests__/FixedSizeGrid.js +942 -0
- package/lib/react-window/src/__tests__/FixedSizeList.js +749 -0
- package/lib/react-window/src/__tests__/VariableSizeGrid.js +598 -0
- package/lib/react-window/src/__tests__/VariableSizeList.js +345 -0
- package/lib/react-window/src/__tests__/__snapshots__/FixedSizeGrid.js.snap +912 -0
- package/lib/react-window/src/__tests__/__snapshots__/FixedSizeList.js.snap +568 -0
- package/lib/react-window/src/__tests__/__snapshots__/VariableSizeGrid.js.snap +542 -0
- package/lib/react-window/src/__tests__/__snapshots__/VariableSizeList.js.snap +331 -0
- package/lib/react-window/src/__tests__/areEqual.js +28 -0
- package/lib/react-window/src/__tests__/shouldComponentUpdate.js +32 -0
- package/lib/react-window/src/areEqual.js +13 -0
- package/lib/react-window/src/createGridComponent.js +657 -0
- package/lib/react-window/src/createListComponent.js +574 -0
- package/lib/react-window/src/domHelpers.js +69 -0
- package/lib/react-window/src/index.js +9 -0
- package/lib/react-window/src/shallowDiffers.js +17 -0
- package/lib/react-window/src/shouldComponentUpdate.js +11 -0
- package/lib/react-window/src/test.js.flow +382 -0
- package/lib/react-window/src/timer.js +36 -0
- package/lib/svelte-tab/Tab.svelte +31 -0
- package/lib/svelte-tab/TabList.svelte +10 -0
- package/lib/svelte-tab/TabPanel.svelte +13 -0
- package/lib/svelte-tab/Tabs.svelte +68 -0
- package/lib/svelte-tab/tabs.js +4 -0
- package/lib/types/css.d.ts +7476 -0
- package/lib/types/dom.ts +17 -0
- package/lib/types/ext.d.ts +81 -0
- package/lib/types/internal.d.ts +94 -0
- package/lib/types/jsx.d.ts +309 -0
- package/lib/types/preact.d.ts +340 -0
- package/package.json +111 -0
- package/tsconfig.json +30 -0
|
@@ -0,0 +1,158 @@
|
|
|
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;
|
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
});
|