@bbki.ng/components 1.5.47 → 1.5.48
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/dist/index.d.ts +3 -3
- package/dist/index.js +25 -12
- package/dist/index.mjs +23 -11
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -275,9 +275,9 @@ interface ISettings {
|
|
|
275
275
|
interface IOpt {
|
|
276
276
|
multiplier: number;
|
|
277
277
|
color: number[];
|
|
278
|
-
spiralConstA: number;
|
|
279
|
-
spiralConstB: number;
|
|
280
278
|
offset?: number;
|
|
279
|
+
length: number;
|
|
280
|
+
radius: number;
|
|
281
281
|
}
|
|
282
282
|
|
|
283
283
|
interface LoadingSpiralProps extends IOpt, ISettings {
|
|
@@ -287,4 +287,4 @@ interface LoadingSpiralProps extends IOpt, ISettings {
|
|
|
287
287
|
}
|
|
288
288
|
declare const LoadingSpiral: (props?: LoadingSpiralProps | undefined) => JSX.Element;
|
|
289
289
|
|
|
290
|
-
export { Article, ArticleProps, ArticleSkeleton, ArticleSkeletonProps, BLinkDotProps, BlinkDot, Breadcrumb, BreadcrumbProps, Button, ButtonProps, ButtonType, DropImage, Error, ErrorBoundary, Gallery, GalleryProps, ImageDropProps, ImagePreviewerProps, ImageRenderer, Img, Link, LinkColor, LinkList, LinkListProps, LinkListSkeleton, LinkListSkeletonProps, LinkProps, List, LoadingSpiral, LoadingSpiralProps, Logo, LogoProps, Nav, NavProps, NoiseCover, NoiseCoverProps, NotFound, Page, Panel, PanelProps, PathObj, PopConfirm, PopConfirmProps, Skeleton, SkeletonColor, SkeletonProps, Table, TableProps, Tag, TagProps, Tags, ThreeColLayout, TitledList, TitledListProps, listProps, threeColLayoutProps };
|
|
290
|
+
export { Article, ArticleProps, ArticleSkeleton, ArticleSkeletonProps, BLinkDotProps, BlinkDot, Breadcrumb, BreadcrumbProps, Button, ButtonProps, ButtonType, DropImage, Error, ErrorBoundary, Gallery, GalleryProps, ImageDropProps, ImagePreviewerProps, ImageRenderer, Img, ImgProps, Link, LinkColor, LinkList, LinkListProps, LinkListSkeleton, LinkListSkeletonProps, LinkProps, List, LoadingSpiral, LoadingSpiralProps, Logo, LogoProps, Nav, NavProps, NoiseCover, NoiseCoverProps, NotFound, Page, Panel, PanelProps, PathObj, Photo, PopConfirm, PopConfirmProps, Skeleton, SkeletonColor, SkeletonProps, Table, TableProps, Tag, TagProps, Tags, ThreeColLayout, TitledList, TitledListProps, listProps, ossProcessType, threeColLayoutProps };
|
package/dist/index.js
CHANGED
|
@@ -88,7 +88,8 @@ __export(src_exports, {
|
|
|
88
88
|
Tag: () => Tag,
|
|
89
89
|
Tags: () => Tags,
|
|
90
90
|
ThreeColLayout: () => ThreeColLayout,
|
|
91
|
-
TitledList: () => TitledList
|
|
91
|
+
TitledList: () => TitledList,
|
|
92
|
+
ossProcessType: () => ossProcessType
|
|
92
93
|
});
|
|
93
94
|
|
|
94
95
|
// src/article/Article.tsx
|
|
@@ -851,6 +852,16 @@ var ThreeColLayout = (props) => {
|
|
|
851
852
|
var import_classnames10 = __toESM(require("classnames"));
|
|
852
853
|
var import_react19 = __toESM(require("react"));
|
|
853
854
|
|
|
855
|
+
// src/img/types.ts
|
|
856
|
+
var ossProcessType = /* @__PURE__ */ ((ossProcessType2) => {
|
|
857
|
+
ossProcessType2["THUMBNAIL"] = "thumbnail";
|
|
858
|
+
ossProcessType2["WEBP"] = "webp";
|
|
859
|
+
ossProcessType2["NULL"] = "null";
|
|
860
|
+
ossProcessType2["oWEBP"] = "owebp";
|
|
861
|
+
ossProcessType2["PROG"] = "prog";
|
|
862
|
+
return ossProcessType2;
|
|
863
|
+
})(ossProcessType || {});
|
|
864
|
+
|
|
854
865
|
// src/img/utils.ts
|
|
855
866
|
var addOssWebpProcessStyle = (originUrl, style) => {
|
|
856
867
|
const OSS_ADDRESS = "https://zjh-im-res.oss-cn-shenzhen.aliyuncs.com";
|
|
@@ -1143,18 +1154,18 @@ var rgba = (val) => {
|
|
|
1143
1154
|
|
|
1144
1155
|
// src/loading-spiral/createOptions.ts
|
|
1145
1156
|
var DEFAULT_OPT = {
|
|
1146
|
-
multiplier:
|
|
1157
|
+
multiplier: 5e4,
|
|
1147
1158
|
color: [209, 213, 219, 1],
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1159
|
+
offset: -0.3,
|
|
1160
|
+
length: 0.15,
|
|
1161
|
+
radius: 0.028
|
|
1151
1162
|
};
|
|
1152
1163
|
var createOptions = (opt = DEFAULT_OPT) => {
|
|
1153
1164
|
const {
|
|
1154
1165
|
multiplier,
|
|
1155
|
-
spiralConstA,
|
|
1156
|
-
spiralConstB,
|
|
1157
1166
|
color,
|
|
1167
|
+
length,
|
|
1168
|
+
radius,
|
|
1158
1169
|
offset = -1 * 0.3
|
|
1159
1170
|
} = opt;
|
|
1160
1171
|
const attributes = [
|
|
@@ -1162,14 +1173,11 @@ var createOptions = (opt = DEFAULT_OPT) => {
|
|
|
1162
1173
|
name: "aPositionStart" /* POSITION_START */,
|
|
1163
1174
|
data: (index, total) => {
|
|
1164
1175
|
const percent = index / total;
|
|
1165
|
-
const length = 0.28;
|
|
1166
|
-
const radius = 0.056;
|
|
1167
1176
|
const pi2 = Math.PI * 2;
|
|
1168
1177
|
let x = length * Math.sin(pi2 * percent), y = radius * Math.cos(pi2 * 3 * percent), z, t;
|
|
1169
1178
|
t = percent % 0.25 / 0.25;
|
|
1170
1179
|
t = percent % 0.25 - (2 * (1 - t) * t * -0.0185 + t * t * 0.25);
|
|
1171
1180
|
if (Math.floor(percent / 0.25) == 0 || Math.floor(percent / 0.25) == 2) {
|
|
1172
|
-
console.log("neg t");
|
|
1173
1181
|
t *= -1;
|
|
1174
1182
|
}
|
|
1175
1183
|
z = radius * Math.sin(pi2 * 2 * (percent - t));
|
|
@@ -1227,7 +1235,11 @@ var LoadingSpiral = (props) => {
|
|
|
1227
1235
|
return;
|
|
1228
1236
|
}
|
|
1229
1237
|
const phenomenon = new import_phenomenon.default({
|
|
1230
|
-
settings: createSettings({ canvas: canvasRef.current, step })
|
|
1238
|
+
settings: createSettings({ canvas: canvasRef.current, step }),
|
|
1239
|
+
context: {
|
|
1240
|
+
alpha: true,
|
|
1241
|
+
antialias: true
|
|
1242
|
+
}
|
|
1231
1243
|
});
|
|
1232
1244
|
phenomenon.add("spiral", createOptions(Object.assign({}, DEFAULT_OPT, rest)));
|
|
1233
1245
|
}, []);
|
|
@@ -1272,5 +1284,6 @@ module.exports = __toCommonJS(src_exports);
|
|
|
1272
1284
|
Tag,
|
|
1273
1285
|
Tags,
|
|
1274
1286
|
ThreeColLayout,
|
|
1275
|
-
TitledList
|
|
1287
|
+
TitledList,
|
|
1288
|
+
ossProcessType
|
|
1276
1289
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -793,6 +793,16 @@ var ThreeColLayout = (props) => {
|
|
|
793
793
|
import classnames from "classnames";
|
|
794
794
|
import React18, { useState as useState5 } from "react";
|
|
795
795
|
|
|
796
|
+
// src/img/types.ts
|
|
797
|
+
var ossProcessType = /* @__PURE__ */ ((ossProcessType2) => {
|
|
798
|
+
ossProcessType2["THUMBNAIL"] = "thumbnail";
|
|
799
|
+
ossProcessType2["WEBP"] = "webp";
|
|
800
|
+
ossProcessType2["NULL"] = "null";
|
|
801
|
+
ossProcessType2["oWEBP"] = "owebp";
|
|
802
|
+
ossProcessType2["PROG"] = "prog";
|
|
803
|
+
return ossProcessType2;
|
|
804
|
+
})(ossProcessType || {});
|
|
805
|
+
|
|
796
806
|
// src/img/utils.ts
|
|
797
807
|
var addOssWebpProcessStyle = (originUrl, style) => {
|
|
798
808
|
const OSS_ADDRESS = "https://zjh-im-res.oss-cn-shenzhen.aliyuncs.com";
|
|
@@ -1085,18 +1095,18 @@ var rgba = (val) => {
|
|
|
1085
1095
|
|
|
1086
1096
|
// src/loading-spiral/createOptions.ts
|
|
1087
1097
|
var DEFAULT_OPT = {
|
|
1088
|
-
multiplier:
|
|
1098
|
+
multiplier: 5e4,
|
|
1089
1099
|
color: [209, 213, 219, 1],
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1100
|
+
offset: -0.3,
|
|
1101
|
+
length: 0.15,
|
|
1102
|
+
radius: 0.028
|
|
1093
1103
|
};
|
|
1094
1104
|
var createOptions = (opt = DEFAULT_OPT) => {
|
|
1095
1105
|
const {
|
|
1096
1106
|
multiplier,
|
|
1097
|
-
spiralConstA,
|
|
1098
|
-
spiralConstB,
|
|
1099
1107
|
color,
|
|
1108
|
+
length,
|
|
1109
|
+
radius,
|
|
1100
1110
|
offset = -1 * 0.3
|
|
1101
1111
|
} = opt;
|
|
1102
1112
|
const attributes = [
|
|
@@ -1104,14 +1114,11 @@ var createOptions = (opt = DEFAULT_OPT) => {
|
|
|
1104
1114
|
name: "aPositionStart" /* POSITION_START */,
|
|
1105
1115
|
data: (index, total) => {
|
|
1106
1116
|
const percent = index / total;
|
|
1107
|
-
const length = 0.28;
|
|
1108
|
-
const radius = 0.056;
|
|
1109
1117
|
const pi2 = Math.PI * 2;
|
|
1110
1118
|
let x = length * Math.sin(pi2 * percent), y = radius * Math.cos(pi2 * 3 * percent), z, t;
|
|
1111
1119
|
t = percent % 0.25 / 0.25;
|
|
1112
1120
|
t = percent % 0.25 - (2 * (1 - t) * t * -0.0185 + t * t * 0.25);
|
|
1113
1121
|
if (Math.floor(percent / 0.25) == 0 || Math.floor(percent / 0.25) == 2) {
|
|
1114
|
-
console.log("neg t");
|
|
1115
1122
|
t *= -1;
|
|
1116
1123
|
}
|
|
1117
1124
|
z = radius * Math.sin(pi2 * 2 * (percent - t));
|
|
@@ -1169,7 +1176,11 @@ var LoadingSpiral = (props) => {
|
|
|
1169
1176
|
return;
|
|
1170
1177
|
}
|
|
1171
1178
|
const phenomenon = new Phenomenon({
|
|
1172
|
-
settings: createSettings({ canvas: canvasRef.current, step })
|
|
1179
|
+
settings: createSettings({ canvas: canvasRef.current, step }),
|
|
1180
|
+
context: {
|
|
1181
|
+
alpha: true,
|
|
1182
|
+
antialias: true
|
|
1183
|
+
}
|
|
1173
1184
|
});
|
|
1174
1185
|
phenomenon.add("spiral", createOptions(Object.assign({}, DEFAULT_OPT, rest)));
|
|
1175
1186
|
}, []);
|
|
@@ -1212,5 +1223,6 @@ export {
|
|
|
1212
1223
|
Tag,
|
|
1213
1224
|
Tags,
|
|
1214
1225
|
ThreeColLayout,
|
|
1215
|
-
TitledList
|
|
1226
|
+
TitledList,
|
|
1227
|
+
ossProcessType
|
|
1216
1228
|
};
|