@@ -45,7 +38,6 @@ import configDescription from "../components/configDescription/index.vue";
import configTab from "../components/configTab/index.vue";
import { excludeDataConfig } from "../constants";
import { echartsTabEnum } from "../type";
-import childrenManager from "./childrenManager/index.vue";
import ComponentStyle from "./components/interactiveConfig/componentStyle.vue";
import dataConfig from "./dataConfig.vue";
import interactiveConfig from "./interactiveConfig.vue";
@@ -56,9 +48,6 @@ const { targetFlag, selectTargetData: targetData } = useTargetData();
const { options, activeTab, renderComponent } = useAttrsRender();
const active = ref(echartsTabEnum.STYLE);
const refreshKey = ref(0);
-const isHasChildrenManager = computed(() => {
- return selectTargetData.value[0] && selectTargetData.value[0].presetChild;
-});
const tabs = ref([
{
title: "样式",
diff --git a/apps/app/src/views/build/components/buildConfig/constants/index.ts b/apps/app/src/views/build/components/buildConfig/constants/index.ts
index 2622e758..2d0f2a3e 100644
--- a/apps/app/src/views/build/components/buildConfig/constants/index.ts
+++ b/apps/app/src/views/build/components/buildConfig/constants/index.ts
@@ -83,7 +83,7 @@ export const notAllowToGroup = [
extendsEnumType.UePeerStreaming,
extendsEnumType.UePixelStreaming,
extendsEnumType.UeVessel,
- extendsEnumType.FtDigitalHuman,
+ extendsEnumType.SwDigitalHuman,
sceneEnumType.MapProjection,
sceneEnumType.Maptalks,
sceneEnumType.EchartcommonMap,
@@ -691,9 +691,9 @@ export const twinPanelIconCorrelation: { label: string; value: TwinPanelIconCorr
export const excludeDataConfig = [
PanelType.artifactAppPreview,
- textEnum.FtDatetime,
- interactiveEnum.FtVoiceControl,
- textEnum.FtRichtext,
+ textEnum.SwDatetime,
+ interactiveEnum.SwVoiceControl,
+ textEnum.SwRichtext,
sceneEnumType.MapProjection,
sceneEnumType.Maptalks,
sceneEnumType.Mapmars,
@@ -702,15 +702,13 @@ export const excludeDataConfig = [
PanelType.dynamicPanel,
PanelType.encodePanel,
extendsEnumType.PageReload,
- extendsEnumType.FtMaskLayer,
+ extendsEnumType.SwMaskLayer,
extendsEnumType.SimpleParticle,
extendsEnumType.SimpleStar,
extendsEnumType.FullScreenSwitch,
- mediaEnum.FtImgBorder,
- // ExhibitEnumType.PdfjsViewer,
+ mediaEnum.SwImgBorder,
PanelType.quotePanel,
- ExhibitEnumType.FtFilter,
- ExhibitEnumType.verticalCard,
- mediaEnum.FtSwiperCard,
+ ExhibitEnumType.SwFilter,
+ mediaEnum.SwSwiperCard,
InteractiveEnum.videoProgress
];
diff --git a/apps/app/src/views/build/components/buildConfig/graphConfig/pageConfig.vue b/apps/app/src/views/build/components/buildConfig/graphConfig/pageConfig.vue
index e7daecab..888cb7ee 100644
--- a/apps/app/src/views/build/components/buildConfig/graphConfig/pageConfig.vue
+++ b/apps/app/src/views/build/components/buildConfig/graphConfig/pageConfig.vue
@@ -297,7 +297,13 @@ const update = () => {
margin-top: 10px;
width: 70px;
height: 25px;
- background-image: -webkit-gradient(linear, left top, left bottom, from(var(--sw-theme-color)), to(var(--sw-theme-color)));
+ background-image: -webkit-gradient(
+ linear,
+ left top,
+ left bottom,
+ from(var(--sw-theme-color)),
+ to(var(--sw-theme-color))
+ );
background-image: linear-gradient(180deg, var(--sw-theme-color) 0%, var(--sw-theme-color) 100%);
border-color: transparent;
border-radius: 4px;
diff --git a/apps/app/src/views/build/components/buildConfig/graphConfig/screenCapture/strategies/specialComponentRegistry.ts b/apps/app/src/views/build/components/buildConfig/graphConfig/screenCapture/strategies/specialComponentRegistry.ts
index 8b8e638d..476e6cad 100644
--- a/apps/app/src/views/build/components/buildConfig/graphConfig/screenCapture/strategies/specialComponentRegistry.ts
+++ b/apps/app/src/views/build/components/buildConfig/graphConfig/screenCapture/strategies/specialComponentRegistry.ts
@@ -46,13 +46,6 @@ export const SPECIAL_COMPONENT_MARKERS: SpecialComponentMarker[] = [
rasterSelectors: [".ft-swiper"],
readySelectors: [".ft-swiper .el-carousel__item", ".ft-swiper img"]
},
- {
- key: "verticalCard",
- label: "垂直卡片",
- selectors: [".vertical-card"],
- rasterSelectors: [".vertical-card", ".carousel-3d-container", ".carousel-3d-slider"],
- readySelectors: [".carousel-3d-slide", ".vertical-card img"]
- },
{
key: "particles",
label: "上升粒子",
@@ -70,7 +63,6 @@ const OVERFLOW_CHAIN_SELECTOR = [
".ft-swiperCard",
".ft-swiper",
".imagesList3d",
- ".vertical-card",
".ringIndicator3d",
".ringIndicator3dNew",
".carousel",
diff --git a/apps/app/src/views/build/components/buildConfig/graphConfig/screenCapture/transform3dCapture.ts b/apps/app/src/views/build/components/buildConfig/graphConfig/screenCapture/transform3dCapture.ts
index 4ab2b4bb..6dd47e32 100644
--- a/apps/app/src/views/build/components/buildConfig/graphConfig/screenCapture/transform3dCapture.ts
+++ b/apps/app/src/views/build/components/buildConfig/graphConfig/screenCapture/transform3dCapture.ts
@@ -69,7 +69,7 @@ export const Transform3DCapture = {
root
.querySelectorAll(
- ".imagesList3d, .ft-swiperCard, .ft-swiper, .carousel, .vertical-card, .carousel-3d-container"
+ ".imagesList3d, .ft-swiperCard, .ft-swiper, .carousel, .carousel-3d-container"
)
.forEach((container) => {
if (!(container instanceof HTMLElement)) {
@@ -152,7 +152,6 @@ export const Transform3DCapture = {
".spin-point",
".point-box",
".ground",
- ".vertical-card",
".swiper-container",
".el-carousel",
".el-carousel__container"
@@ -206,7 +205,6 @@ export const Transform3DCapture = {
".spin-point",
".point-box",
".ground",
- ".vertical-card",
];
liveRoot.querySelectorAll("[data-id]").forEach((liveHost) => {
const id = liveHost.getAttribute("data-id");
diff --git a/apps/app/src/views/build/components/buildRender/core/ExhibitComponent/type.ts b/apps/app/src/views/build/components/buildRender/core/ExhibitComponent/type.ts
index 95092150..76f91418 100644
--- a/apps/app/src/views/build/components/buildRender/core/ExhibitComponent/type.ts
+++ b/apps/app/src/views/build/components/buildRender/core/ExhibitComponent/type.ts
@@ -7,9 +7,6 @@ export const exhibitComponentType: ExhibitEnum[] = [
ExhibitEnum.ringIndicator3dNew,
ExhibitEnum.RingIndicator3d,
ExhibitEnum.ImagesList3d,
- ExhibitEnum.PdfjsViewer,
- ExhibitEnum.FtParticles,
- ExhibitEnum.FtSignaturePad,
- ExhibitEnum.FtFilter,
- ExhibitEnum.verticalCard
+ ExhibitEnum.SwParticles,
+ ExhibitEnum.SwFilter,
];
diff --git a/apps/app/src/views/build/components/buildRender/core/ExtendsComponents/type.ts b/apps/app/src/views/build/components/buildRender/core/ExtendsComponents/type.ts
index 83084726..67cc397e 100644
--- a/apps/app/src/views/build/components/buildRender/core/ExtendsComponents/type.ts
+++ b/apps/app/src/views/build/components/buildRender/core/ExtendsComponents/type.ts
@@ -17,16 +17,15 @@ export const extendsComponentType: ExtendsEnum[] = [
ExtendsEnum.UePeerStreaming,
ExtendsEnum.UeVessel,
ExtendsEnum.UePixelStreaming,
- ExtendsEnum.FtUnrealEngine,
- ExtendsEnum.FtDigitalHuman,
+ ExtendsEnum.SwUnrealEngine,
+ ExtendsEnum.SwDigitalHuman,
ExtendsEnum.SimpleStar,
ExtendsEnum.FullScreenSwitch,
ExtendsEnum.PageReload,
ExtendsEnum.SimpleParticle,
- ExtendsEnum.SimpleBarrage,
- ExtendsEnum.FtDataContainer,
- ExtendsEnum.FtWeather,
- ExtendsEnum.FtMaskLayer
+ ExtendsEnum.SwDataContainer,
+ ExtendsEnum.SwWeather,
+ ExtendsEnum.SwMaskLayer
];
export const childComponentType: ExtendsChildComponentEnum[] = [ExtendsChildComponentEnum.UeVessel_UeMessageReceiver];
diff --git a/apps/app/src/views/build/components/buildRender/core/SystemComponent/panel/index.ts b/apps/app/src/views/build/components/buildRender/core/SystemComponent/panel/index.ts
index 914d8598..698368fb 100644
--- a/apps/app/src/views/build/components/buildRender/core/SystemComponent/panel/index.ts
+++ b/apps/app/src/views/build/components/buildRender/core/SystemComponent/panel/index.ts
@@ -20,7 +20,5 @@ export const panelInstanceToType: barEchartClass
= {
export const DYNAMIC_PANEL_MODULE_ID = 69;
export const ENCODE_PANEL_MODULE_ID = 102;
export const QUOTE_PANEL_MODULE_ID = 70;
-// 154 而不是 119:119 在 scripts/modules-data.json 里自初始提交起就是「PDF容器v1」,
-// 之前手工往库里插的那行被重新 seed 时按 name 覆盖回去了。改用 seed 未占用的下一个 id,
-// 并把这行本身也写进 modules-data.json —— 只存在于数据库里的模块,下次重建库还会再丢一次。
+// 使用未被种子数据占用的 ID,并同步写入 modules-data.json,避免重建数据库时丢失。
export const ARTIFACT_APP_PREVIEW_MODULE_ID = 154;
diff --git a/apps/app/src/views/build/components/buildConfig/attrsRender/childrenManager/defaultData.ts b/apps/app/src/views/build/components/buildRender/defaultGlData.ts
similarity index 100%
rename from apps/app/src/views/build/components/buildConfig/attrsRender/childrenManager/defaultData.ts
rename to apps/app/src/views/build/components/buildRender/defaultGlData.ts
diff --git a/apps/app/src/views/build/components/buildRender/hooks/useComponentCreateActions.ts b/apps/app/src/views/build/components/buildRender/hooks/useComponentCreateActions.ts
index 741a8eac..ac2e7aa6 100644
--- a/apps/app/src/views/build/components/buildRender/hooks/useComponentCreateActions.ts
+++ b/apps/app/src/views/build/components/buildRender/hooks/useComponentCreateActions.ts
@@ -5,7 +5,7 @@ import { ElMessage } from "element-plus";
import { assign, cloneDeep } from "lodash-es";
import { uuid } from "@/utils/utils";
-import { defaultGlData } from "@/views/build/components/buildConfig/attrsRender/childrenManager/defaultData";
+import { defaultGlData } from "../defaultGlData";
import { FileTypeEnum } from "../../buildTabs/assetsEditFrom/type";
import type { MenuItemForRender } from "../../buildTabs/selectAssets/assetsMenuType";
diff --git a/apps/app/src/views/build/components/buildRender/useBuildRender.ts b/apps/app/src/views/build/components/buildRender/useBuildRender.ts
index 8671e315..9d9bddf1 100644
--- a/apps/app/src/views/build/components/buildRender/useBuildRender.ts
+++ b/apps/app/src/views/build/components/buildRender/useBuildRender.ts
@@ -34,7 +34,7 @@ export const useBuildRender = (props: {
await onEnterDynamicPanel(item);
}
- if (item.component.prop === textEnum.FtText && isBuild.value) {
+ if (item.component.prop === textEnum.SwText && isBuild.value) {
setTextEdit(item);
}
}
diff --git a/apps/app/src/views/build/components/buildRender/utils.ts b/apps/app/src/views/build/components/buildRender/utils.ts
index ca307db7..94317a38 100644
--- a/apps/app/src/views/build/components/buildRender/utils.ts
+++ b/apps/app/src/views/build/components/buildRender/utils.ts
@@ -456,14 +456,14 @@ export const pointerEventStyle = (item: ComponentType, isBuild: boolean) => {
}
const pointerEventsComponent = [
- textEnum.FtText,
- mediaEnum.FtVideo,
- mediaEnum.FtImg,
- mediaEnum.FtOpenVideo,
- textEnum.FtText2,
- extendsEnumType.FtMaskLayer
+ textEnum.SwText,
+ mediaEnum.SwVideo,
+ mediaEnum.SwImg,
+ mediaEnum.SwOpenVideo,
+ textEnum.SwText2,
+ extendsEnumType.SwMaskLayer
];
- if (item.component.prop === extendsEnumType.FtMaskLayer) {
+ if (item.component.prop === extendsEnumType.SwMaskLayer) {
return { pointerEvents: item.option.pointerEvents ? "none" : "auto" };
}
if (pointerEventsComponent.includes(item.component.prop as textEnum)) {
@@ -579,7 +579,7 @@ const ueLimit = ({
return isMore();
}
- if (newComponent.component.prop === extendsEnumType.FtUnrealEngine) {
+ if (newComponent.component.prop === extendsEnumType.SwUnrealEngine) {
if (isDynamicPanel || isEncodePanel) {
ElMessage.warning("提示:UE组件不能复制到动态面板或终端交互中");
return false;
@@ -634,14 +634,14 @@ const digitalHumanLimit = ({
newComponent: ComponentType;
}) => {
const isMore = () => {
- const cityComponent = componentList.filter((v) => v.component.prop === extendsEnumType.FtDigitalHuman);
+ const cityComponent = componentList.filter((v) => v.component.prop === extendsEnumType.SwDigitalHuman);
if (cityComponent.length >= 1) {
ElMessage.warning(`提示:数字人已达上限!`);
return false;
}
return true;
};
- if (newComponent.component.prop === extendsEnumType.FtDigitalHuman) {
+ if (newComponent.component.prop === extendsEnumType.SwDigitalHuman) {
return isMore();
}
return true;
diff --git a/apps/app/src/views/build/components/encodeEditor/components/Config/attrsRender/encodeEvent/useEncodeEventConfig.ts b/apps/app/src/views/build/components/encodeEditor/components/Config/attrsRender/encodeEvent/useEncodeEventConfig.ts
index b5d232f0..a10bfcfe 100644
--- a/apps/app/src/views/build/components/encodeEditor/components/Config/attrsRender/encodeEvent/useEncodeEventConfig.ts
+++ b/apps/app/src/views/build/components/encodeEditor/components/Config/attrsRender/encodeEvent/useEncodeEventConfig.ts
@@ -29,7 +29,7 @@ import { buildComponentMap, useGlobalComponentData } from "@/views/build/useGlob
/**
* 不需要事件就能添加到远程控制目标的组件类型
*/
-const autoRemoteControlComponents = [extendsEnumType.PageReload, mediaEnum.FtVideo];
+const autoRemoteControlComponents = [extendsEnumType.PageReload, mediaEnum.SwVideo];
export const useEncodeEventConfig = createGlobalState(() => {
const { componentList } = useEditStore();
@@ -97,11 +97,7 @@ export const useEncodeEventConfig = createGlobalState(() => {
.filter((component) => componentIsAutoRemoteControl(component) || componentHasEvent(component))
.filter((component) => {
if (currentEncodeEvent.value.trigger === EncodeEventTypeEnum.VideoControls) {
- return component.component.prop === mediaEnum.FtVideo;
- }
-
- if (currentEncodeEvent.value.trigger === EncodeEventTypeEnum.SignatureSubmit) {
- return component.component.prop === extendsEnumType.SimpleBarrage;
+ return component.component.prop === mediaEnum.SwVideo;
}
return true;
@@ -121,18 +117,18 @@ export const useEncodeEventConfig = createGlobalState(() => {
componentType: ComponentType["component"]["prop"]
): { label: string; value: string; hotword?: string }[] | null => {
const ComponentOfSpecialData: Record<
- interactiveEnum.FtPageTurning | interactiveEnum.FtPageQuery | interactiveEnum.FtVoiceControl,
+ interactiveEnum.SwPageTurning | interactiveEnum.SwPageQuery | interactiveEnum.SwVoiceControl,
{ label: string; value: string; hotword?: string }[]
> = {
- [interactiveEnum.FtPageTurning]: [
+ [interactiveEnum.SwPageTurning]: [
{ label: "上一页", value: "prev" },
{ label: "下一页", value: "next" }
],
- [interactiveEnum.FtPageQuery]: [
+ [interactiveEnum.SwPageQuery]: [
{ label: "上一页", value: "prev" },
{ label: "下一页", value: "next" }
],
- [interactiveEnum.FtVoiceControl]: [
+ [interactiveEnum.SwVoiceControl]: [
{ label: "开始", value: "start", hotword: "" },
{ label: "结束", value: "stop", hotword: "" }
]
@@ -140,7 +136,7 @@ export const useEncodeEventConfig = createGlobalState(() => {
if (componentType in ComponentOfSpecialData) {
return ComponentOfSpecialData[
- componentType as interactiveEnum.FtPageTurning | interactiveEnum.FtPageQuery | interactiveEnum.FtVoiceControl
+ componentType as interactiveEnum.SwPageTurning | interactiveEnum.SwPageQuery | interactiveEnum.SwVoiceControl
];
}
@@ -467,7 +463,7 @@ export const useEncodeEventConfig = createGlobalState(() => {
if (!component) {
return false;
}
- const noControlItemComponent = [interactiveEnum.FtMutual, mediaEnum.FtVideo, extendsEnumType.PageReload];
+ const noControlItemComponent = [interactiveEnum.SwMutual, mediaEnum.SwVideo, extendsEnumType.PageReload];
return noControlItemComponent.includes(component.component.prop as interactiveEnum | mediaEnum | extendsEnumType);
};
diff --git a/apps/app/src/views/build/components/encodeEditor/components/Config/attrsRender/index.vue b/apps/app/src/views/build/components/encodeEditor/components/Config/attrsRender/index.vue
index b2557306..7aa7eaad 100644
--- a/apps/app/src/views/build/components/encodeEditor/components/Config/attrsRender/index.vue
+++ b/apps/app/src/views/build/components/encodeEditor/components/Config/attrsRender/index.vue
@@ -3,19 +3,12 @@
-
-
-
+
@@ -36,7 +29,6 @@ import { computed, ref, watch } from "vue";
import { InteractiveEnum } from "@screenwright/types";
import { interactiveEnum, mediaEnum, textEnum } from "@/components/componentEntry/type";
-import childrenManager from "@/views/build/components/buildConfig/attrsRender/childrenManager/index.vue";
import ComponentStyle from "@/views/build/components/buildConfig/attrsRender/components/interactiveConfig/componentStyle.vue";
import dataConfig from "@/views/build/components/buildConfig/attrsRender/dataConfig.vue";
import { useAttrsRender } from "@/views/build/components/buildConfig/attrsRender/useAttrsRender";
@@ -45,7 +37,6 @@ import configBaseAttrs from "@/views/build/components/buildConfig/components/con
import configDescription from "@/views/build/components/buildConfig/components/configDescription/index.vue";
import configTab from "@/views/build/components/buildConfig/components/configTab/index.vue";
import { echartsTabEnum } from "@/views/build/components/buildConfig/type";
-import { ExhibitEnumType } from "@/views/build/components/buildRender/core/ExhibitComponent/type";
import { extendsEnumType } from "@/views/build/components/buildRender/core/ExtendsComponents/type";
import { sceneEnumType } from "@/views/build/components/buildRender/core/SceneComponent/type";
import { useEditStore } from "@/views/build/components/buildRender/hooks/useEditStore";
@@ -57,29 +48,24 @@ const { selectTargetData } = useEditStore();
const { targetFlag, selectTargetData: targetData } = useTargetData();
const { options, activeTab, renderComponent } = useAttrsRender();
const excludeDataConfig = [
- textEnum.FtDatetime,
- interactiveEnum.FtVoiceControl,
- textEnum.FtRichtext,
+ textEnum.SwDatetime,
+ interactiveEnum.SwVoiceControl,
+ textEnum.SwRichtext,
sceneEnumType.MapProjection,
sceneEnumType.Maptalks,
sceneEnumType.Mapmars,
sceneEnumType.ThreeScene,
sceneEnumType.IndustryScene,
extendsEnumType.PageReload,
- extendsEnumType.FtMaskLayer,
- extendsEnumType.SimpleBarrage,
+ extendsEnumType.SwMaskLayer,
extendsEnumType.SimpleParticle,
extendsEnumType.SimpleStar,
extendsEnumType.FullScreenSwitch,
- mediaEnum.FtImgBorder,
- ExhibitEnumType.PdfjsViewer,
+ mediaEnum.SwImgBorder,
InteractiveEnum.videoProgress
];
const active = ref(echartsTabEnum.STYLE);
-const isHasChildrenManager = computed(() => {
- return selectTargetData.value[0] && selectTargetData.value[0].presetChild;
-});
const tabs = ref([
{
title: "样式",
diff --git a/apps/app/src/views/build/components/encodeEditor/components/Renderer/encodeRender.vue b/apps/app/src/views/build/components/encodeEditor/components/Renderer/encodeRender.vue
index d566ea4a..64918256 100644
--- a/apps/app/src/views/build/components/encodeEditor/components/Renderer/encodeRender.vue
+++ b/apps/app/src/views/build/components/encodeEditor/components/Renderer/encodeRender.vue
@@ -142,7 +142,7 @@ const {
params: { cid: item.id }
});
}
- if (item.component.prop === textEnum.FtText && isBuild()) {
+ if (item.component.prop === textEnum.SwText && isBuild()) {
console.log("双击文本框");
setTextEdit(item);
}
diff --git a/apps/app/src/views/build/components/panelEditor/components/Renderer/panelRender.vue b/apps/app/src/views/build/components/panelEditor/components/Renderer/panelRender.vue
index d5434407..58318353 100644
--- a/apps/app/src/views/build/components/panelEditor/components/Renderer/panelRender.vue
+++ b/apps/app/src/views/build/components/panelEditor/components/Renderer/panelRender.vue
@@ -146,7 +146,7 @@ const {
params: { cid: item.id }
});
}
- if (item.component.prop === textEnum.FtText && isBuild()) {
+ if (item.component.prop === textEnum.SwText && isBuild()) {
console.log("双击文本框");
setTextEdit(item);
}
diff --git a/apps/app/src/views/interfaceDebugger/components/interFaceForm.vue b/apps/app/src/views/interfaceDebugger/components/interFaceForm.vue
deleted file mode 100644
index 7f8db517..00000000
--- a/apps/app/src/views/interfaceDebugger/components/interFaceForm.vue
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/apps/app/src/views/interfaceDebugger/components/interFaceHeader.vue b/apps/app/src/views/interfaceDebugger/components/interFaceHeader.vue
deleted file mode 100644
index 81605506..00000000
--- a/apps/app/src/views/interfaceDebugger/components/interFaceHeader.vue
+++ /dev/null
@@ -1,81 +0,0 @@
-
-
-
-
-
diff --git a/apps/app/src/views/interfaceDebugger/components/interFaceList.vue b/apps/app/src/views/interfaceDebugger/components/interFaceList.vue
deleted file mode 100644
index 5225c974..00000000
--- a/apps/app/src/views/interfaceDebugger/components/interFaceList.vue
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-
-
-
-
- {{ item.name }}
-
-
-
-
-
-
diff --git a/apps/app/src/views/interfaceDebugger/index.vue b/apps/app/src/views/interfaceDebugger/index.vue
deleted file mode 100644
index b0877f34..00000000
--- a/apps/app/src/views/interfaceDebugger/index.vue
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
-
-
-
diff --git a/apps/app/src/views/interfaceDebugger/style/interFaceList.scss b/apps/app/src/views/interfaceDebugger/style/interFaceList.scss
deleted file mode 100644
index 72219643..00000000
--- a/apps/app/src/views/interfaceDebugger/style/interFaceList.scss
+++ /dev/null
@@ -1,105 +0,0 @@
-.inter-face-list {
- padding-right: 10px;
- .inter-face-item {
- position: relative;
- height: 220px !important;
- .info__type {
- position: absolute;
- top: 4px;
- right: 4px;
- width: 20px !important;
- height: 20px !important;
- }
- .content__info {
- height: calc(100% - 46px);
- position: relative;
- img {
- width: 100%;
- height: 100%;
- }
- }
- .content__main {
- font-size: 12px;
- width: 100%;
- height: 46px;
- display: flex;
- align-items: center;
- position: absolute;
- bottom: 0;
- justify-content: space-between;
- background: #1d262e;
- box-sizing: border-box;
- padding: 0 10px;
- color: #bcc9d4;
- .content__name {
- width: 150px !important;
- padding: 0 5px;
- line-height: 28px;
- text-overflow: ellipsis;
- overflow: hidden;
- white-space: nowrap;
- border: 1px solid transparent;
- }
- }
- .content__menu {
- display: none;
- position: absolute;
- top: 0;
- left: 0;
- background-color: rgba(29, 38, 46, 0.8);
- width: 100%;
- height: 100%;
- align-items: center;
- justify-content: center;
- flex-direction: column;
- .content__btn {
- width: 66px;
- height: 32px;
- padding: 0 !important;
- text-align: center;
- background: #3d404c;
- cursor: pointer;
- font-size: 14px;
- color: #fff;
- border-radius: 4px 4px;
- opacity: 1;
- line-height: 32px;
- &:first-child {
- margin-right: 16px;
- background-image: linear-gradient(180deg, var(--sw-theme-color), var(--sw-theme-color)) !important;
- }
- }
- .content__view {
- position: absolute;
- top: 70%;
- margin-right: 2px;
- .iconfont {
- margin-right: 10px;
- cursor: pointer;
- position: relative;
- }
- }
- }
- &:hover {
- &::after {
- content: "";
- width: 100%;
- height: 100%;
- position: absolute;
- top: 0;
- left: 0;
- box-sizing: border-box;
- border-radius: 0 0 6px 6px;
- box-shadow: 0 0 0 1px var(--sw-theme-color) inset !important;
- pointer-events: none;
- }
- .content__menu {
- display: flex;
- }
- .content__info > img {
- transition: transform 0.25s linear, -webkit-transform 0.25s linear;
- transform: scale(1.1);
- }
- }
- }
-}
diff --git a/apps/app/src/views/interfaceDebugger/useInterAction.ts b/apps/app/src/views/interfaceDebugger/useInterAction.ts
deleted file mode 100644
index 31df0613..00000000
--- a/apps/app/src/views/interfaceDebugger/useInterAction.ts
+++ /dev/null
@@ -1,158 +0,0 @@
-import { ElMessage } from "element-plus";
-import { flatten } from "lodash-es";
-
-import {
- copyInterfaceDebugger,
- delInterfaceDebugger,
- saveInterfaceDebugger,
- updateInterfaceDebugger
-} from "@/api/interfaceDebugger";
-import { useDialog } from "@/hooks/useDialog";
-import type { MenuItem } from "@/layout/Siderbar/components/config/menuConfig";
-import { useSiderTreeData } from "@/layout/Siderbar/components/siderTree/useSiderTreeData";
-import type { InterfaceItem } from "@/model/InterfaceDebugger";
-import to from "@/utils/await-to-js";
-import { handleMessageBox } from "@/utils/utils";
-
-import interFaceForm from "./components/interFaceForm.vue";
-
-interface Props {
- refreshList?: () => void;
-}
-
-export const useInterAction = (props: Props) => {
- const { dialog } = useDialog();
- const { treeData, currentNode } = useSiderTreeData();
-
- const getSelectOptionsByNode = (node: MenuItem | null) => {
- if (!node) {
- return [];
- }
- if (node.outsider) {
- // 遍历treeData.value 找到 children.length>0的children
- const children = treeData.value
- .filter((item) => item.children && item.children.length > 0)
- .map((item) => item.children);
- const options = flatten(children);
- options.unshift(node);
- return options;
- }
- return [node];
- };
-
- const setCount = (plus: boolean) => {
- if (!currentNode.value) {
- return;
- }
- if (currentNode.value.count === undefined) {
- currentNode.value.count = 0;
- }
- if (currentNode.value && currentNode.value.count !== undefined) {
- const pid = -2;
- const parentNode = treeData.value.find((item) => item.id === pid);
- if (plus) {
- currentNode.value.count++;
- } else {
- currentNode.value.count--;
- }
-
- if (currentNode.value.id !== pid && parentNode && parentNode.count && currentNode.value.count !== undefined) {
- if (plus) {
- parentNode.count++;
- } else {
- parentNode.count--;
- }
- }
- }
- };
-
- const handleDelete = async (item: InterfaceItem) => {
- const confirmRes = await handleMessageBox(`是否确认永久删除该场景? 【${item.name}】`);
- if (confirmRes) {
- const [error, res] = await to(delInterfaceDebugger(item.id));
- if (error) {
- ElMessage.error("删除失败");
- return;
- }
- if (res && res.success) {
- ElMessage.success(res.message || "删除成功");
- setCount(false);
- props.refreshList && props.refreshList();
- } else {
- ElMessage.error(res.message || "删除失败");
- }
- }
- };
-
- const handleInterfaceForm = (item: InterfaceItem) => {
- const options: MenuItem[] = getSelectOptionsByNode(currentNode.value);
- const isAdd = Object.keys(item).length === 0;
- dialog({
- DialogProps: {
- title: isAdd ? "新增调试器" : "编辑调试器",
- width: "35%"
- },
- closeBefore: async (componentData, done) => {
- const dataRes = await componentData.validate();
- if (!dataRes.success) {
- return;
- }
- const api = isAdd ? saveInterfaceDebugger : updateInterfaceDebugger;
- const [error, res] = await to(api(dataRes));
- if (error) {
- return;
- }
- if (res && res.success) {
- const msg = isAdd ? "新增成功" : "编辑成功";
- ElMessage.success(msg);
- isAdd && setCount(true);
- props.refreshList && props.refreshList();
- done();
- } else {
- const msg = isAdd ? "新增失败" : "编辑失败";
- ElMessage.error(msg);
- done();
- }
- },
- componentProps: {
- options,
- defaultFormData: item
- },
- component: interFaceForm
- });
- };
-
- const handleAddClick = () => {
- handleInterfaceForm({} as InterfaceItem);
- };
-
- const handleEdit = (item: InterfaceItem) => {
- handleInterfaceForm(item);
- };
-
- const handleCopy = async (item: InterfaceItem) => {
- const confirmRes = await handleMessageBox(`确认复制当前场景 【${item.name}】`);
- if (!confirmRes) {
- return;
- }
- const [error, res] = await to(copyInterfaceDebugger(item.id));
- if (error) {
- ElMessage.error("复制失败");
- return;
- }
- if (res && res.success) {
- ElMessage.success("复制成功");
- setCount(true);
- props.refreshList && props.refreshList();
- } else {
- ElMessage.error(res.message || "复制失败");
- }
- };
-
- return {
- handleAddClick,
- handleDelete,
- handleEdit,
- handleCopy
- };
-};
diff --git a/apps/app/src/views/interfaceDebugger/useInterFace.ts b/apps/app/src/views/interfaceDebugger/useInterFace.ts
deleted file mode 100644
index af95b516..00000000
--- a/apps/app/src/views/interfaceDebugger/useInterFace.ts
+++ /dev/null
@@ -1,74 +0,0 @@
-import { ref, watch } from "vue";
-import { useRoute } from "vue-router";
-
-import { getInterfaceDebugger } from "@/api/interfaceDebugger";
-import { useSiderTreeData } from "@/layout/Siderbar/components/siderTree/useSiderTreeData";
-import type { InterfaceDebuggerReq, InterfaceItem } from "@/model/InterfaceDebugger";
-import to from "@/utils/await-to-js";
-
-import { useParams } from "./useParams";
-
-export const useInterFace = () => {
- const { currentNode } = useSiderTreeData();
- const route = useRoute();
- const listData = ref
([]);
- const total = ref(0);
- const loading = ref(false);
- const { params } = useParams();
- const handleSearch = (searchParams: InterfaceDebuggerReq) => {
- params.value.current = 1;
- params.value.size = 14;
- params.value = Object.assign(params.value, searchParams);
- getListData();
- };
-
- const getListData = async () => {
- loading.value = true;
- const [error, res] = await to(getInterfaceDebugger(params.value));
- if (error) {
- loading.value = false;
- return;
- }
- if (res && res.success) {
- listData.value = res.result.records;
- total.value = res.result.total;
- } else {
- listData.value = [];
- total.value = 0;
- }
- loading.value = false;
- };
-
- watch(
- () => currentNode.value,
- async (nVal) => {
- if (route.path !== "/interfaceDebugger") {
- return;
- }
- if (nVal) {
- if (nVal.id === "") {
- return;
- }
- params.value.current = 1;
- params.value.name = "";
- params.value.size = 14;
- params.value.time = 1;
- params.value.groupId = nVal.id;
- params.value.name = "";
- await getListData();
- }
- },
- {
- immediate: true
- }
- );
-
- return {
- total,
- params,
- loading,
- listData,
- handleSearch,
- getListData
- };
-};
diff --git a/apps/app/src/views/interfaceDebugger/useParams.ts b/apps/app/src/views/interfaceDebugger/useParams.ts
deleted file mode 100644
index 4b593335..00000000
--- a/apps/app/src/views/interfaceDebugger/useParams.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-import { ref } from "vue";
-import { createGlobalState } from "@vueuse/core";
-
-import type { InterfaceDebuggerReq } from "@/model/InterfaceDebugger";
-
-export const useParams = createGlobalState(() => {
- const params = ref({
- size: 14,
- current: 1,
- groupId: -2,
- name: "",
- time: 1
- });
- return {
- params
- };
-});
diff --git a/apps/app/src/views/pluginLibrary/index.vue b/apps/app/src/views/pluginLibrary/index.vue
deleted file mode 100644
index 285ca7af..00000000
--- a/apps/app/src/views/pluginLibrary/index.vue
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
-
-
-
diff --git a/apps/app/src/views/pluginLibrary/pluginList.vue b/apps/app/src/views/pluginLibrary/pluginList.vue
deleted file mode 100644
index c841ffa2..00000000
--- a/apps/app/src/views/pluginLibrary/pluginList.vue
+++ /dev/null
@@ -1,137 +0,0 @@
-
-
-
-
-
-
-
- {{ item.name }}
-
-
-
-
- 下载
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/apps/app/src/views/pluginLibrary/pluginSearch.vue b/apps/app/src/views/pluginLibrary/pluginSearch.vue
deleted file mode 100644
index a735b3cc..00000000
--- a/apps/app/src/views/pluginLibrary/pluginSearch.vue
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-
-
-
diff --git a/apps/app/src/views/pluginLibrary/usePluginLibrary.ts b/apps/app/src/views/pluginLibrary/usePluginLibrary.ts
deleted file mode 100644
index fd89ee17..00000000
--- a/apps/app/src/views/pluginLibrary/usePluginLibrary.ts
+++ /dev/null
@@ -1,35 +0,0 @@
-import { ref } from "vue";
-import { createGlobalState } from "@vueuse/core";
-
-import { getPlugin } from "@/api/plugin";
-import type { itemPluginResponse } from "@/model/Plugin";
-
-export const usePluginLibrary = createGlobalState(() => {
- const params = ref({
- current: 1,
- size: 10,
- name: ""
- });
- const pluginList = ref([]);
- const total = ref(0);
- const loading = ref(false);
- const getPluginList = async () => {
- loading.value = true;
- try {
- const res = await getPlugin(params.value);
- pluginList.value = res.result.records;
- total.value = res.result.total;
- } catch (error) {
- console.error("Error fetching plugin list:", error);
- } finally {
- loading.value = false;
- }
- };
- return {
- params,
- loading,
- pluginList,
- total,
- getPluginList
- };
-});
diff --git a/apps/app/src/views/view/useVideoProgress.ts b/apps/app/src/views/view/useVideoProgress.ts
index 286a61b3..ebb56860 100644
--- a/apps/app/src/views/view/useVideoProgress.ts
+++ b/apps/app/src/views/view/useVideoProgress.ts
@@ -60,7 +60,7 @@ const useVideoProgress = () => {
}
// 判断是否为视频组件
- const isVideo = videoComponent.component.prop === MediaEnum.FtVideo;
+ const isVideo = videoComponent.component.prop === MediaEnum.SwVideo;
if (!isVideo) {
continue;
}
diff --git a/apps/app/src/views/view/useView.ts b/apps/app/src/views/view/useView.ts
index 6f74d301..70aa956a 100644
--- a/apps/app/src/views/view/useView.ts
+++ b/apps/app/src/views/view/useView.ts
@@ -178,7 +178,7 @@ export function useView() {
}> => {
// loadingScene.value = false
- const openVideo = groupData.value.find((component) => component.component.prop === mediaEnum.FtOpenVideo);
+ const openVideo = groupData.value.find((component) => component.component.prop === mediaEnum.SwOpenVideo);
if (openVideo && !isBuild()) {
const { delayLoadingTime, openDelayLoading, delayPlayTime, autoPlay } = openVideo.option as {
diff --git a/artifact.excalidraw b/artifact.excalidraw
new file mode 100644
index 00000000..ea92615e
--- /dev/null
+++ b/artifact.excalidraw
@@ -0,0 +1,865 @@
+{
+ "type": "excalidraw",
+ "version": 2,
+ "source": "https://marketplace.visualstudio.com/items?itemName=pomdtr.excalidraw-editor",
+ "elements": [
+ {
+ "id": "arh7d6cPaj3L1366l0PCV",
+ "type": "rectangle",
+ "x": -1222.94346110026,
+ "y": 676.8302205403645,
+ "width": 1164.0748494466147,
+ "height": 1768.7546259562175,
+ "angle": 0,
+ "strokeColor": "#1e1e1e",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 1,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "index": "a0",
+ "roundness": {
+ "type": 3
+ },
+ "seed": 444572520,
+ "version": 1213,
+ "versionNonce": 1340576374,
+ "isDeleted": false,
+ "boundElements": [
+ {
+ "id": "BPaF1CPxzT15lX04yqT-t",
+ "type": "arrow"
+ }
+ ],
+ "updated": 1789443529365,
+ "link": null,
+ "locked": false
+ },
+ {
+ "id": "d93vpuYewF1XGKIqdLRk8",
+ "type": "text",
+ "x": -1208.641459147135,
+ "y": 697.5472462972004,
+ "width": 59.3199462890625,
+ "height": 25,
+ "angle": 0,
+ "strokeColor": "#1e1e1e",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 1,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "index": "a1",
+ "roundness": null,
+ "seed": 250059032,
+ "version": 669,
+ "versionNonce": 1183018666,
+ "isDeleted": false,
+ "boundElements": [],
+ "updated": 1789439444786,
+ "link": null,
+ "locked": false,
+ "text": "server",
+ "fontSize": 20,
+ "fontFamily": 5,
+ "textAlign": "left",
+ "verticalAlign": "top",
+ "containerId": null,
+ "originalText": "server",
+ "autoResize": true,
+ "lineHeight": 1.25
+ },
+ {
+ "id": "R7TO8MMppAMkyqI3gggA7",
+ "type": "rectangle",
+ "x": 127.69873046875,
+ "y": 687.9138357979909,
+ "width": 1869.7351684570315,
+ "height": 1443.4933166503909,
+ "angle": 0,
+ "strokeColor": "#1e1e1e",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 1,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "index": "a2",
+ "roundness": {
+ "type": 3
+ },
+ "seed": 350268264,
+ "version": 334,
+ "versionNonce": 720328367,
+ "isDeleted": false,
+ "boundElements": [],
+ "updated": 1789453969220,
+ "link": null,
+ "locked": false
+ },
+ {
+ "id": "-oIjqHT3KENqSFwghz_oD",
+ "type": "text",
+ "x": 150.12966128368862,
+ "y": 710.8868408203125,
+ "width": 32.38948059082031,
+ "height": 24.547195434570312,
+ "angle": 0,
+ "strokeColor": "#1e1e1e",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 1,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "index": "a3",
+ "roundness": null,
+ "seed": 1863074584,
+ "version": 93,
+ "versionNonce": 110643816,
+ "isDeleted": false,
+ "boundElements": [],
+ "updated": 1789387033887,
+ "link": null,
+ "locked": false,
+ "text": "app",
+ "fontSize": 19.63775634765625,
+ "fontFamily": 5,
+ "textAlign": "left",
+ "verticalAlign": "top",
+ "containerId": null,
+ "originalText": "app",
+ "autoResize": true,
+ "lineHeight": 1.25
+ },
+ {
+ "id": "qu6fhB8ueID9XZ8lTh8dm",
+ "type": "rectangle",
+ "x": 215.95030574378734,
+ "y": 984.460123302272,
+ "width": 855.6690160221647,
+ "height": 1036.281538551405,
+ "angle": 0,
+ "strokeColor": "#1e1e1e",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 1,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "index": "a4",
+ "roundness": {
+ "type": 3
+ },
+ "seed": 864637464,
+ "version": 1294,
+ "versionNonce": 557968001,
+ "isDeleted": false,
+ "boundElements": [
+ {
+ "id": "bKo--t63iGnneuANSSSkc",
+ "type": "arrow"
+ },
+ {
+ "id": "5J_TlZyv4vNCESGgp8bcN",
+ "type": "arrow"
+ },
+ {
+ "id": "WmX2mADi18PXrlcVbRTHP",
+ "type": "arrow"
+ }
+ ],
+ "updated": 1789453967508,
+ "link": null,
+ "locked": false
+ },
+ {
+ "id": "6yvI9gJz_sja24qXCHleo",
+ "type": "text",
+ "x": 230.8054227068751,
+ "y": 995.3090735575136,
+ "width": 795.6994018554688,
+ "height": 1025,
+ "angle": 0,
+ "strokeColor": "#1e1e1e",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 1,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "index": "a5",
+ "roundness": null,
+ "seed": 1062071576,
+ "version": 931,
+ "versionNonce": 2054022506,
+ "isDeleted": false,
+ "boundElements": [
+ {
+ "id": "bKo--t63iGnneuANSSSkc",
+ "type": "arrow"
+ },
+ {
+ "id": "BPaF1CPxzT15lX04yqT-t",
+ "type": "arrow"
+ },
+ {
+ "id": "5J_TlZyv4vNCESGgp8bcN",
+ "type": "arrow"
+ }
+ ],
+ "updated": 1789446552245,
+ "link": null,
+ "locked": false,
+ "text": "Tab1\n\n发生消息\n\nsession.sendMessage\n\n上传资源得到文件url\n\n 格式\n构建系统提示词\n构建用户消息\n\nprocessAgentStream\n\n-parseChatSseStream(解析 data: xxx 的json数据)\n--consumeMessageStream(消费初步解析的stream)\n\n先经过 transform ( 分离 background chunk; 执行副作用)\nconst processedStream = transforms.reduce>(\n (s, factory) => s.pipeThrough(factory(state)),\n stream\n );\n\n\nreadUIMessageStream 产出 UIMessage\n ↓\nMessageRenderSession.schedule()\n ↓\n立即提交 / 合并高频帧\n ↓\nnormalize()\n新增的 part:浅拷贝,生成新的渲染引用。\n内容变化的 part:浅拷贝,让 Vue 感知变化。\n内容未变化的 part:复用上一帧引用,避免无效渲染。\n已经完成的 part:永久复用上一帧引用,因为它后续不会再变化。\n ↓\nonCommit()\n ↓\n更新 Vue messages\n\n",
+ "fontSize": 20,
+ "fontFamily": 5,
+ "textAlign": "left",
+ "verticalAlign": "top",
+ "containerId": null,
+ "originalText": "Tab1\n\n发生消息\n\nsession.sendMessage\n\n上传资源得到文件url\n\n 格式\n构建系统提示词\n构建用户消息\n\nprocessAgentStream\n\n-parseChatSseStream(解析 data: xxx 的json数据)\n--consumeMessageStream(消费初步解析的stream)\n\n先经过 transform ( 分离 background chunk; 执行副作用)\nconst processedStream = transforms.reduce>(\n (s, factory) => s.pipeThrough(factory(state)),\n stream\n );\n\n\nreadUIMessageStream 产出 UIMessage\n ↓\nMessageRenderSession.schedule()\n ↓\n立即提交 / 合并高频帧\n ↓\nnormalize()\n新增的 part:浅拷贝,生成新的渲染引用。\n内容变化的 part:浅拷贝,让 Vue 感知变化。\n内容未变化的 part:复用上一帧引用,避免无效渲染。\n已经完成的 part:永久复用上一帧引用,因为它后续不会再变化。\n ↓\nonCommit()\n ↓\n更新 Vue messages\n\n",
+ "autoResize": true,
+ "lineHeight": 1.25
+ },
+ {
+ "id": "1PUAjnaOmmoxThTk99LHG",
+ "type": "text",
+ "x": 148.64582864727817,
+ "y": 746.6038719033274,
+ "width": 608.98046875,
+ "height": 146.73962402343756,
+ "angle": 0,
+ "strokeColor": "#1e1e1e",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 1,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "index": "a6",
+ "roundness": null,
+ "seed": 404783976,
+ "version": 204,
+ "versionNonce": 1096534552,
+ "isDeleted": false,
+ "boundElements": [
+ {
+ "id": "bKo--t63iGnneuANSSSkc",
+ "type": "arrow"
+ }
+ ],
+ "updated": 1789387497219,
+ "link": null,
+ "locked": false,
+ "text": "创建对话\n\nuseAgentBISessions\n- const session = createAgentBISession(); // useAgentBI提供\n session含有 当前消息 sessionId。。。\n",
+ "fontSize": 19.56528320312501,
+ "fontFamily": 5,
+ "textAlign": "left",
+ "verticalAlign": "top",
+ "containerId": null,
+ "originalText": "创建对话\n\nuseAgentBISessions\n- const session = createAgentBISession(); // useAgentBI提供\n session含有 当前消息 sessionId。。。\n",
+ "autoResize": true,
+ "lineHeight": 1.25
+ },
+ {
+ "id": "bKo--t63iGnneuANSSSkc",
+ "type": "arrow",
+ "x": 618.1857684446541,
+ "y": 900.3058524941478,
+ "width": 320.2814557396425,
+ "height": 80.88489411278181,
+ "angle": 0,
+ "strokeColor": "#1e1e1e",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 1,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "index": "a7",
+ "roundness": {
+ "type": 2
+ },
+ "seed": 896188696,
+ "version": 963,
+ "versionNonce": 747249217,
+ "isDeleted": false,
+ "boundElements": [
+ {
+ "type": "text",
+ "id": "p9oLQipUtnNlF4a1Lmude"
+ }
+ ],
+ "updated": 1789453957825,
+ "link": null,
+ "locked": false,
+ "points": [
+ [
+ 0,
+ 0
+ ],
+ [
+ 320.2814557396425,
+ 80.88489411278181
+ ]
+ ],
+ "lastCommittedPoint": null,
+ "startBinding": {
+ "elementId": "1PUAjnaOmmoxThTk99LHG",
+ "focus": 0.2572092301134723,
+ "gap": 6.9623565673828125
+ },
+ "endBinding": {
+ "elementId": "6yvI9gJz_sja24qXCHleo",
+ "focus": 0.9867613230726684,
+ "gap": 14.118326950583969
+ },
+ "startArrowhead": null,
+ "endArrowhead": "arrow",
+ "elbowed": false
+ },
+ {
+ "id": "p9oLQipUtnNlF4a1Lmude",
+ "type": "text",
+ "x": 276.0187439176679,
+ "y": 889.6378731586253,
+ "width": 110.71992492675781,
+ "height": 25,
+ "angle": 0,
+ "strokeColor": "#1e1e1e",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 1,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "index": "a8",
+ "roundness": null,
+ "seed": 735878680,
+ "version": 16,
+ "versionNonce": 1252094312,
+ "isDeleted": false,
+ "boundElements": [],
+ "updated": 1789387190672,
+ "link": null,
+ "locked": false,
+ "text": "注入session",
+ "fontSize": 20,
+ "fontFamily": 5,
+ "textAlign": "center",
+ "verticalAlign": "middle",
+ "containerId": "bKo--t63iGnneuANSSSkc",
+ "originalText": "注入session",
+ "autoResize": true,
+ "lineHeight": 1.25
+ },
+ {
+ "id": "btGOkj2p_rKw_I_bHjSc5",
+ "type": "text",
+ "x": -1199.608723958336,
+ "y": 753.5755004882812,
+ "width": 1023.9991455078125,
+ "height": 1425,
+ "angle": 0,
+ "strokeColor": "#1e1e1e",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 1,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "index": "a9",
+ "roundness": null,
+ "seed": 160138026,
+ "version": 1222,
+ "versionNonce": 1810039350,
+ "isDeleted": false,
+ "boundElements": [
+ {
+ "id": "BPaF1CPxzT15lX04yqT-t",
+ "type": "arrow"
+ }
+ ],
+ "updated": 1789444854110,
+ "link": null,
+ "locked": false,
+ "text": "route\n\ncustomApi[\"bi-chat\"].$post\n\nhandleBiChat\n// 获取或创建一个对话流\n const session = sessionRegistry.\ngetOrCreate(threadId!, resourceId!, requestSignal);\n\n// 启动session的这一轮对话 传入用户消息/客户端工具\n void session.runTurn({ messages, clientTools });\n\n// 串行队列执行\n runTurn(args: RunTurnArgs): Promise {\n// 等待上一轮完成后 执行当前这一轮次对话\n// runTurnWithRecording 用于记录llm对话轮次 使用 AsyncLocalStorage 在本次请求中注入上下文\n const next = this.tail.then(() => this.runTurnWithRecording(args));\n this.tail = next.catch(() => {}); \n return next;\n }\n\nrunTurnBody\n- buildTurnStream\n--createBIChatTurnStream\n---buildRequestContext (获取当前的三种模式 ASK AUTO PLAN)\n----startBIAgentStream\n----- mastraStream = swAgent.resumeStream | swAgent.stream (继续 |开启新一轮 turn)\n打平+重命名 background 的chunk 转化为 ai-sdk 类型的chunk\n-----const aiSdkStream = toAISdkStream(withRenamedBackgroundChunks(mastraStream, bgSubRunIds), {\n from: \"agent\",\n sendReasoning: true\n });\n-----return createProcessedStream({\n aiSdkStream: aiSdkStream as unknown as ReadableStream,\n snapshots,\n threadId,\n internalAbort: abortController,\n usageRef,\n bgSubRunIds\n });\n\n\nfor await (const chunk of turnStream as unknown as AsyncIterable) {\n\nthis.push\n- await this.writer.write(chunk); // 背压:消费者慢就在这等\n\n\n\n\n\n\n\n// 返回流\n return session.getStream() as ReadableStream;\n\n",
+ "fontSize": 20,
+ "fontFamily": 5,
+ "textAlign": "left",
+ "verticalAlign": "top",
+ "containerId": null,
+ "originalText": "route\n\ncustomApi[\"bi-chat\"].$post\n\nhandleBiChat\n// 获取或创建一个对话流\n const session = sessionRegistry.\ngetOrCreate(threadId!, resourceId!, requestSignal);\n\n// 启动session的这一轮对话 传入用户消息/客户端工具\n void session.runTurn({ messages, clientTools });\n\n// 串行队列执行\n runTurn(args: RunTurnArgs): Promise {\n// 等待上一轮完成后 执行当前这一轮次对话\n// runTurnWithRecording 用于记录llm对话轮次 使用 AsyncLocalStorage 在本次请求中注入上下文\n const next = this.tail.then(() => this.runTurnWithRecording(args));\n this.tail = next.catch(() => {}); \n return next;\n }\n\nrunTurnBody\n- buildTurnStream\n--createBIChatTurnStream\n---buildRequestContext (获取当前的三种模式 ASK AUTO PLAN)\n----startBIAgentStream\n----- mastraStream = swAgent.resumeStream | swAgent.stream (继续 |开启新一轮 turn)\n打平+重命名 background 的chunk 转化为 ai-sdk 类型的chunk\n-----const aiSdkStream = toAISdkStream(withRenamedBackgroundChunks(mastraStream, bgSubRunIds), {\n from: \"agent\",\n sendReasoning: true\n });\n-----return createProcessedStream({\n aiSdkStream: aiSdkStream as unknown as ReadableStream,\n snapshots,\n threadId,\n internalAbort: abortController,\n usageRef,\n bgSubRunIds\n });\n\n\nfor await (const chunk of turnStream as unknown as AsyncIterable) {\n\nthis.push\n- await this.writer.write(chunk); // 背压:消费者慢就在这等\n\n\n\n\n\n\n\n// 返回流\n return session.getStream() as ReadableStream;\n\n",
+ "autoResize": true,
+ "lineHeight": 1.25
+ },
+ {
+ "id": "BPaF1CPxzT15lX04yqT-t",
+ "type": "arrow",
+ "x": 216.05869420986028,
+ "y": 1126.5718516268505,
+ "width": 273.7858568127367,
+ "height": 160.06760280112553,
+ "angle": 0,
+ "strokeColor": "#1e1e1e",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 1,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "index": "aA",
+ "roundness": {
+ "type": 2
+ },
+ "seed": 1613809462,
+ "version": 2097,
+ "versionNonce": 1427025441,
+ "isDeleted": false,
+ "boundElements": [
+ {
+ "type": "text",
+ "id": "3aQK98FQac3s9T8XrLeDO"
+ }
+ ],
+ "updated": 1789453957826,
+ "link": null,
+ "locked": false,
+ "points": [
+ [
+ 0,
+ 0
+ ],
+ [
+ -157.72691813552166,
+ 85.5640557650629
+ ],
+ [
+ -273.7858568127367,
+ 160.06760280112553
+ ]
+ ],
+ "lastCommittedPoint": null,
+ "startBinding": {
+ "elementId": "6yvI9gJz_sja24qXCHleo",
+ "focus": 0.8307586567697035,
+ "gap": 14.746728497014828
+ },
+ "endBinding": {
+ "elementId": "arh7d6cPaj3L1366l0PCV",
+ "focus": 0.07933231301734188,
+ "gap": 2.0745277269556937
+ },
+ "startArrowhead": null,
+ "endArrowhead": "arrow",
+ "elbowed": false
+ },
+ {
+ "id": "3aQK98FQac3s9T8XrLeDO",
+ "type": "text",
+ "x": -251.6597493489612,
+ "y": 935.5850524902345,
+ "width": 80,
+ "height": 25,
+ "angle": 0,
+ "strokeColor": "#1e1e1e",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 1,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "index": "aB",
+ "roundness": null,
+ "seed": 1081295606,
+ "version": 23,
+ "versionNonce": 1543972790,
+ "isDeleted": false,
+ "boundElements": [],
+ "updated": 1789436641401,
+ "link": null,
+ "locked": false,
+ "text": "请求对话",
+ "fontSize": 20,
+ "fontFamily": 5,
+ "textAlign": "center",
+ "verticalAlign": "middle",
+ "containerId": "BPaF1CPxzT15lX04yqT-t",
+ "originalText": "请求对话",
+ "autoResize": true,
+ "lineHeight": 1.25
+ },
+ {
+ "id": "fdgucjnjNq4mn5PaRiLPx",
+ "type": "rectangle",
+ "x": -2144.467804231448,
+ "y": 1328.7452880571432,
+ "width": 893.88671875,
+ "height": 137.66036987304688,
+ "angle": 0,
+ "strokeColor": "#1e1e1e",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 1,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "index": "aC",
+ "roundness": {
+ "type": 3
+ },
+ "seed": 598699190,
+ "version": 427,
+ "versionNonce": 910905578,
+ "isDeleted": false,
+ "boundElements": [],
+ "updated": 1789444787098,
+ "link": null,
+ "locked": false
+ },
+ {
+ "id": "jz_-a8wgOXR_hXKVMFNNd",
+ "type": "rectangle",
+ "x": -1216.1659548662137,
+ "y": 1252.5942817544017,
+ "width": 1061.4339599609375,
+ "height": 512.6038208007812,
+ "angle": 0,
+ "strokeColor": "#1e1e1e",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 1,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "index": "aD",
+ "roundness": {
+ "type": 3
+ },
+ "seed": 951466090,
+ "version": 221,
+ "versionNonce": 2144951478,
+ "isDeleted": false,
+ "boundElements": [],
+ "updated": 1789444756772,
+ "link": null,
+ "locked": false
+ },
+ {
+ "id": "P0y_lMYjTWrnwQUlStvId",
+ "type": "text",
+ "x": -2118.95849637012,
+ "y": 1334.783063492683,
+ "width": 860.0593872070312,
+ "height": 125,
+ "angle": 0,
+ "strokeColor": "#1e1e1e",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 1,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "index": "aE",
+ "roundness": null,
+ "seed": 31729910,
+ "version": 225,
+ "versionNonce": 1665508266,
+ "isDeleted": false,
+ "boundElements": [],
+ "updated": 1789444787098,
+ "link": null,
+ "locked": false,
+ "text": "chunk处理链路:\n\n1. mastra类型的chunk\n2. toAISdkStream(withRenamedBackgroundChunks...) 转化为 data-xxx ai-sdk类型的chunk\n3. 记录同步子agent的chunk 打平工作流chunk",
+ "fontSize": 20,
+ "fontFamily": 5,
+ "textAlign": "left",
+ "verticalAlign": "top",
+ "containerId": null,
+ "originalText": "chunk处理链路:\n\n1. mastra类型的chunk\n2. toAISdkStream(withRenamedBackgroundChunks...) 转化为 data-xxx ai-sdk类型的chunk\n3. 记录同步子agent的chunk 打平工作流chunk",
+ "autoResize": true,
+ "lineHeight": 1.25
+ },
+ {
+ "id": "TVFcaUf64VEFI2_Of79Ei",
+ "type": "arrow",
+ "x": -965.298095979495,
+ "y": 1582.2546211098704,
+ "width": 54.3397216796875,
+ "height": 222.79241943359375,
+ "angle": 0,
+ "strokeColor": "#1e1e1e",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 1,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "index": "aF",
+ "roundness": {
+ "type": 2
+ },
+ "seed": 1705544298,
+ "version": 101,
+ "versionNonce": 2026590134,
+ "isDeleted": false,
+ "boundElements": [],
+ "updated": 1789444828014,
+ "link": null,
+ "locked": false,
+ "points": [
+ [
+ 0,
+ 0
+ ],
+ [
+ 54.3397216796875,
+ 222.79241943359375
+ ]
+ ],
+ "lastCommittedPoint": null,
+ "startBinding": null,
+ "endBinding": null,
+ "startArrowhead": null,
+ "endArrowhead": "arrow",
+ "elbowed": false
+ },
+ {
+ "id": "sB6pVPnk-c3EkPnM4BID3",
+ "type": "arrow",
+ "x": -974.3548586748075,
+ "y": 1911.9149604653392,
+ "width": 96,
+ "height": 189.28302001953148,
+ "angle": 0,
+ "strokeColor": "#1e1e1e",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 1,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "index": "aG",
+ "roundness": {
+ "type": 2
+ },
+ "seed": 904162486,
+ "version": 66,
+ "versionNonce": 1798180342,
+ "isDeleted": false,
+ "boundElements": [],
+ "updated": 1789444910342,
+ "link": null,
+ "locked": false,
+ "points": [
+ [
+ 0,
+ 0
+ ],
+ [
+ 96,
+ 189.28302001953148
+ ]
+ ],
+ "lastCommittedPoint": null,
+ "startBinding": null,
+ "endBinding": null,
+ "startArrowhead": null,
+ "endArrowhead": "arrow",
+ "elbowed": false
+ },
+ {
+ "id": "5J_TlZyv4vNCESGgp8bcN",
+ "type": "arrow",
+ "x": -687.102004554644,
+ "y": 2120.4214616760046,
+ "width": 896.5897813255383,
+ "height": 797.3120782347285,
+ "angle": 0,
+ "strokeColor": "#1e1e1e",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 1,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "index": "aH",
+ "roundness": {
+ "type": 2
+ },
+ "seed": 1231347510,
+ "version": 701,
+ "versionNonce": 1110852097,
+ "isDeleted": false,
+ "boundElements": [],
+ "updated": 1789453957826,
+ "link": null,
+ "locked": false,
+ "points": [
+ [
+ 0,
+ 0
+ ],
+ [
+ 389.4340297154017,
+ -207.008056640625
+ ],
+ [
+ 896.5897813255383,
+ -797.3120782347285
+ ]
+ ],
+ "lastCommittedPoint": null,
+ "startBinding": null,
+ "endBinding": {
+ "elementId": "6yvI9gJz_sja24qXCHleo",
+ "focus": 0.6894273212143264,
+ "gap": 21.317645935980863
+ },
+ "startArrowhead": null,
+ "endArrowhead": "arrow",
+ "elbowed": false
+ },
+ {
+ "id": "uZ22Xm0giOwsGhID-yLAL",
+ "type": "text",
+ "x": 1208.8980913577448,
+ "y": 1405.1306330362956,
+ "width": 203.71981811523438,
+ "height": 25,
+ "angle": 0,
+ "strokeColor": "#1e1e1e",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 1,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "index": "aI",
+ "roundness": null,
+ "seed": 164238753,
+ "version": 178,
+ "versionNonce": 1209531969,
+ "isDeleted": false,
+ "boundElements": [
+ {
+ "id": "WmX2mADi18PXrlcVbRTHP",
+ "type": "arrow"
+ }
+ ],
+ "updated": 1789453967508,
+ "link": null,
+ "locked": false,
+ "text": "useChunkSideEffects",
+ "fontSize": 20,
+ "fontFamily": 5,
+ "textAlign": "left",
+ "verticalAlign": "top",
+ "containerId": null,
+ "originalText": "useChunkSideEffects",
+ "autoResize": true,
+ "lineHeight": 1.25
+ },
+ {
+ "id": "WmX2mADi18PXrlcVbRTHP",
+ "type": "arrow",
+ "x": 1072.4123430667291,
+ "y": 1407.8901087443035,
+ "width": 123.39630126953125,
+ "height": 9.056549072265625,
+ "angle": 0,
+ "strokeColor": "#1e1e1e",
+ "backgroundColor": "transparent",
+ "fillStyle": "solid",
+ "strokeWidth": 2,
+ "strokeStyle": "solid",
+ "roughness": 1,
+ "opacity": 100,
+ "groupIds": [],
+ "frameId": null,
+ "index": "aK",
+ "roundness": {
+ "type": 2
+ },
+ "seed": 943355279,
+ "version": 70,
+ "versionNonce": 830665313,
+ "isDeleted": false,
+ "boundElements": null,
+ "updated": 1789453967508,
+ "link": null,
+ "locked": false,
+ "points": [
+ [
+ 0,
+ 0
+ ],
+ [
+ 123.39630126953125,
+ 9.056549072265625
+ ]
+ ],
+ "lastCommittedPoint": null,
+ "startBinding": {
+ "elementId": "qu6fhB8ueID9XZ8lTh8dm",
+ "focus": -0.2295905431023416,
+ "gap": 1
+ },
+ "endBinding": {
+ "elementId": "uZ22Xm0giOwsGhID-yLAL",
+ "focus": -0.3880984586517504,
+ "gap": 13.089447021484375
+ },
+ "startArrowhead": null,
+ "endArrowhead": "arrow",
+ "elbowed": false
+ }
+ ],
+ "appState": {
+ "gridSize": 20,
+ "gridStep": 5,
+ "gridModeEnabled": false,
+ "viewBackgroundColor": "#ffffff"
+ },
+ "files": {}
+}
\ No newline at end of file
diff --git a/artifact.png b/artifact.png
index 1641e00e..7d2a6ed9 100644
Binary files a/artifact.png and b/artifact.png differ
diff --git a/packages/composables/src/event/useEncodeCommunication.ts b/packages/composables/src/event/useEncodeCommunication.ts
index 83300d87..ae8fbbcf 100644
--- a/packages/composables/src/event/useEncodeCommunication.ts
+++ b/packages/composables/src/event/useEncodeCommunication.ts
@@ -1,5 +1,5 @@
import { extractComponentId } from "@screenwright/core";
-import { type Action, EncodeEventTypeEnum, ExtendsEnum, interactiveEnum } from "@screenwright/types";
+import { type Action, EncodeEventTypeEnum, interactiveEnum } from "@screenwright/types";
import { createGlobalState } from "@vueuse/core";
import { ElMessage } from "element-plus";
import { isNil } from "lodash-es";
@@ -248,23 +248,13 @@ const useEncodeCommunication = createGlobalState(() => {
return;
}
- if (trigger === EncodeEventTypeEnum.SignatureSubmit) {
- const event = (eventList.value as any)[`${ExtendsEnum.SimpleBarrage}-${component.id}`];
- if (!event || !event.onSignaturePadSave) {
- return;
- }
-
- event.onSignaturePadSave({ imageUrl: throwValue?.imageUrl || "" });
- return;
- }
-
- if (encodeKey && componentProp === interactiveEnum.FtPageTurning) {
+ if (encodeKey && componentProp === interactiveEnum.SwPageTurning) {
// 翻页
// interRef.handleClick?.(encodeKey)
- } else if (encodeKey && componentProp === interactiveEnum.FtPageQuery) {
+ } else if (encodeKey && componentProp === interactiveEnum.SwPageQuery) {
// 分页
// interRef.handleBeforOrAfterClick?.(encodeKey, null)
- } else if (componentProp === interactiveEnum.FtVoiceControl && (component as any).upodateVoiceState) {
+ } else if (componentProp === interactiveEnum.SwVoiceControl && (component as any).upodateVoiceState) {
// 语音控制
// interRef.upodateVoiceState(encodeKey || "")
} else {
@@ -323,15 +313,15 @@ const useEncodeCommunication = createGlobalState(() => {
const componentProp = component.component.prop;
// 处理特殊组件类型
- if (componentProp === interactiveEnum.FtPageTurning) {
+ if (componentProp === interactiveEnum.SwPageTurning) {
// 翻页组件
// TODO: 实现翻页逻辑
// interRef.handleClick?.(targetEncode.value)
- } else if (componentProp === interactiveEnum.FtPageQuery) {
+ } else if (componentProp === interactiveEnum.SwPageQuery) {
// 分页组件
// TODO: 实现分页逻辑
// interRef.handleBeforOrAfterClick?.(targetEncode.value, null)
- } else if (componentProp === interactiveEnum.FtVoiceControl) {
+ } else if (componentProp === interactiveEnum.SwVoiceControl) {
// 语音控制组件
// TODO: 实现语音控制逻辑
// component.upodateVoiceState?.(targetEncode.value)
diff --git a/packages/composables/src/index.ts b/packages/composables/src/index.ts
index 6fdc6728..c47b7f3d 100644
--- a/packages/composables/src/index.ts
+++ b/packages/composables/src/index.ts
@@ -17,7 +17,6 @@ export * from "./useBaseData";
export * from "./useComponentSlot";
export * from "./useBaseFilter";
export * from "./useCallbackArguments";
-export * from "./useChildrenDrawer";
export * from "./useDataFilter";
export * from "./useEditStore";
export * from "./useEventCallbacks";
diff --git a/packages/composables/src/initUsePorts.ts b/packages/composables/src/initUsePorts.ts
index ced091cb..9c781f37 100644
--- a/packages/composables/src/initUsePorts.ts
+++ b/packages/composables/src/initUsePorts.ts
@@ -4,13 +4,8 @@ import type { FilterDataApiImpls } from "./filter/ports";
import { initFilterDataApi } from "./filter/ports";
import type { GetExtraEventsFn } from "./ports/baseDataPort";
import { initBaseDataExtraEvents } from "./ports/baseDataPort";
-import type { ActionStrategyExecutorFn, SendUE4MessageFn, StatusAnimationTriggerFn } from "./ports/eventPort";
-import {
- initActionStrategyExecutor,
- initRouter,
- initSendUE4Message,
- initStatusAnimationTrigger
-} from "./ports/eventPort";
+import type { ActionStrategyExecutorFn, StatusAnimationTriggerFn } from "./ports/eventPort";
+import { initActionStrategyExecutor, initRouter, initStatusAnimationTrigger } from "./ports/eventPort";
import type { HttpPortImpls } from "./ports/httpPort";
import { initHttpPort } from "./ports/httpPort";
import type { DataFilterPersistenceImpls } from "./ports/persistencePort";
@@ -25,7 +20,6 @@ export interface UsePortsConfig {
dataFilterPersistence: DataFilterPersistenceImpls;
baseDataExtraEvents: GetExtraEventsFn;
actionStrategyExecutor: ActionStrategyExecutorFn;
- sendUE4Message: SendUE4MessageFn;
statusAnimationTrigger: StatusAnimationTriggerFn;
assetsPicker: AssetsPickerImpl;
}
@@ -44,7 +38,6 @@ export function initUsePorts(config: UsePortsConfig): void {
initDataFilterPersistence(config.dataFilterPersistence);
initBaseDataExtraEvents(config.baseDataExtraEvents);
initActionStrategyExecutor(config.actionStrategyExecutor);
- initSendUE4Message(config.sendUE4Message);
initStatusAnimationTrigger(config.statusAnimationTrigger);
initAssetsPicker(config.assetsPicker);
}
diff --git a/packages/composables/src/ports/eventPort.ts b/packages/composables/src/ports/eventPort.ts
index 913e43b2..e6b9016e 100644
--- a/packages/composables/src/ports/eventPort.ts
+++ b/packages/composables/src/ports/eventPort.ts
@@ -42,9 +42,6 @@ export type ActionStrategyExecutorFn = (
export type SendUE4MessageParams = ActionExecutionParams & { ue4Config: Ue4Config };
-/** 替代 useEncodeCommunication.handleUE4Message 里 `new sendUE4MessageStrategy().execute(...)` */
-export type SendUE4MessageFn = (params: SendUE4MessageParams) => void | Promise;
-
/** 替代 useStatusAnimation().triggerStatusAnimationByAction(状态动画留在 app,编辑器状态) */
export type StatusAnimationTriggerFn = (panelStatusAnimationId: string, panelStatusId: string) => Promise;
@@ -83,8 +80,9 @@ const actionStrategyExecutorPort = createPort("actionS
export const initActionStrategyExecutor = actionStrategyExecutorPort.init;
export const getActionStrategyExecutor = actionStrategyExecutorPort.get;
-const sendUE4MessagePort = createPort("sendUE4Message");
-export const initSendUE4Message = sendUE4MessagePort.init;
+const sendUE4MessagePort = createPort<(params: SendUE4MessageParams) => void | Promise>(
+ "sendUE4Message"
+);
export const getSendUE4Message = sendUE4MessagePort.get;
const statusAnimationTriggerPort = createPort("statusAnimationTrigger");
diff --git a/packages/composables/src/ports/persistencePort.ts b/packages/composables/src/ports/persistencePort.ts
index 34f2d2ac..ece1628c 100644
--- a/packages/composables/src/ports/persistencePort.ts
+++ b/packages/composables/src/ports/persistencePort.ts
@@ -1,7 +1,7 @@
import type { ComponentType } from "@screenwright/types";
/**
- * useUpdateInstance/useChildrenDrawer/useDataFilter(views/build) 共同依赖的唯一真正 IO 边界:
+ * useUpdateInstance/useDataFilter(views/build) 共同依赖的唯一真正 IO 边界:
* 保存图层(saveLayersByType,内部耦合状态动画同步/HTTP/DOM reload,整体作为一个端口注入,不拆解)
* 和保存大屏全局配置(updateLargeScreen,原生 HTTP)。
*
diff --git a/packages/composables/src/useChildrenDrawer.ts b/packages/composables/src/useChildrenDrawer.ts
deleted file mode 100644
index 0f9cfe37..00000000
--- a/packages/composables/src/useChildrenDrawer.ts
+++ /dev/null
@@ -1,124 +0,0 @@
-import { type ChildComponent, type ComponentType, echartsTabEnum, type sceneEnumType } from "@screenwright/types";
-import { createGlobalState } from "@vueuse/core";
-import { computed, ref } from "vue";
-
-import { getDataFilterPersistence } from "./ports/persistencePort";
-import { useCallbackArguments } from "./useCallbackArguments";
-import { useEditStore } from "./useEditStore";
-import { TargetFlag, useTargetData } from "./useTargetData";
-
-export { echartsTabEnum };
-
-/**
- * 子组件(children)编辑抽屉状态:iconList/twinPanelIconList 等组件内部嵌套子项的编辑面板。
- * 纯 UI 状态 + useCallbackArguments/useEditStore(均已下沉);唯一 IO 边界是保存图层,走
- * initDataFilterPersistence 端口。
- */
-export const useChildrenDrawer = createGlobalState(() => {
- const { isPanel } = useEditStore();
- const { setSelectedTargetActionData, onConfigDrawerClose, setTargetFlag } = useTargetData();
- const currentChildrenItem = ref(null);
- const currentParentItem = ref(null);
- const visibleRef = ref(false);
- const active = ref(echartsTabEnum.STYLE);
- const tabs = ref([
- {
- title: "样式",
- en: "style",
- key: echartsTabEnum.STYLE,
- icon: "iconfont-style_btn"
- },
- {
- title: "数据",
- en: "data",
- key: echartsTabEnum.DATA,
- icon: "iconfont-data_btn"
- },
- {
- title: "交互",
- en: "interactive",
- key: echartsTabEnum.INTERACTIVE,
- icon: "iconfont-interactive_btn"
- }
- ]);
- const { emitFilterTrigger } = useCallbackArguments();
- const ueTabs = ref([
- {
- title: "样式",
- en: "style",
- key: echartsTabEnum.STYLE,
- icon: "iconfont-style_btn"
- },
- {
- title: "交互",
- en: "interactive",
- key: echartsTabEnum.INTERACTIVE,
- icon: "iconfont-interactive_btn"
- }
- ]);
-
- const curTabs = computed(() => {
- if (!currentChildrenItem.value) {
- return [];
- }
- const props = currentChildrenItem.value.type;
- const mapPropsToList: Record = {
- mapEffectScatter: tabs.value.slice(0, 2),
- mapGlScatter: tabs.value.slice(0, 2),
- mapLines: tabs.value.slice(0, 2),
- heatmap: tabs.value.slice(0, 2),
- colormap: tabs.value.slice(0, 2),
- iconList: tabs.value,
- twinIconList: tabs.value,
- twinPanelIconList: tabs.value,
- flowLine: tabs.value.slice(0, 2),
- mapPath: tabs.value.slice(0, 2),
- fence: tabs.value.slice(0, 2),
- plane: tabs.value.slice(0, 2),
- mapBar: tabs.value.slice(0, 2),
- mapScatter: tabs.value.slice(0, 2),
- regionOutline: tabs.value.slice(0, 2),
- mapGlIcon: tabs.value,
- ueToFunEvent: ueTabs.value
- };
- return mapPropsToList[props as sceneEnumType] || [];
- });
- const handleShowDrawer = () => {
- visibleRef.value = !visibleRef.value;
- if (!visibleRef.value) {
- handleClose();
- }
- };
- const handleClose = () => {
- onConfigDrawerClose();
- active.value = echartsTabEnum.STYLE;
- };
- const setCurrentChildrenItem = (item: any, parentItem: any) => {
- currentChildrenItem.value = item;
- currentParentItem.value = parentItem;
- setTargetFlag(TargetFlag.ChildItemOption);
- setSelectedTargetActionData(item);
- };
- const update = () => {
- if (!currentParentItem.value) {
- return;
- }
-
- emitFilterTrigger(`${currentParentItem.value.id}`);
- getDataFilterPersistence().saveLayersByType(currentParentItem.value, isPanel());
- };
-
- return {
- visibleRef,
- active,
- tabs,
- curTabs,
- currentChildrenItem,
- currentParentItem,
- update,
- handleClose,
- onConfigDrawerClose,
- setCurrentChildrenItem,
- handleShowDrawer
- };
-});
diff --git a/packages/composables/src/useDataFilter.ts b/packages/composables/src/useDataFilter.ts
index 994ce9a8..53839ea8 100644
--- a/packages/composables/src/useDataFilter.ts
+++ b/packages/composables/src/useDataFilter.ts
@@ -7,7 +7,6 @@ import { computed, ref, toRaw } from "vue";
import { useScreenEditor } from "./core-adapter/useScreenEditor";
import { FilterResultCollector, type ResultCollectItem } from "./FilterResultCollector";
import { getDataFilterPersistence, UpdateHistoryTypeEnum } from "./ports/persistencePort";
-import { useChildrenDrawer } from "./useChildrenDrawer";
import { useEditStore } from "./useEditStore";
import { useGlobalComponentData } from "./useGlobalComponentData";
import { useLargeScreenInfo } from "./useLargeScreenInfo";
@@ -38,7 +37,6 @@ export type FilterValidationResult =
export const useDataFilter = createGlobalState(() => {
const editor = useScreenEditor();
const { isPanel } = useEditStore();
- const { visibleRef: isChildComponentEditing, currentParentItem, currentChildrenItem } = useChildrenDrawer();
const { selectTargetData, update } = useUpdateInstance({
history: false,
isDynamicPanel: isPanel()
@@ -81,17 +79,6 @@ export const useDataFilter = createGlobalState(() => {
*/
const filterAllResultForCurrentComponent = computed(() => {
void filterResultCollector.getVersionRef().value;
- if (isChildComponentEditing.value) {
- return [
- ...toRaw(
- filterResultCollector.getResults(
- currentParentItem.value?.presetChild?.find((v) => v.id === currentChildrenItem.value?.id) as
- | ComponentType
- | ChildComponent
- ) || []
- )
- ];
- }
return [...toRaw(filterResultCollector.getResults(selectTargetData.value[0]) || [])];
});
@@ -263,7 +250,7 @@ export const useDataFilter = createGlobalState(() => {
listenArgs.usageStatus = value;
- const updateComponent = isChildComponentEditing.value ? currentParentItem.value : component;
+ const updateComponent = component;
if (!updateComponent) {
console.warn("更新组件不存在");
return;
diff --git a/packages/composables/src/useUpdateInstance.ts b/packages/composables/src/useUpdateInstance.ts
index 58d22fee..5dd48fd0 100644
--- a/packages/composables/src/useUpdateInstance.ts
+++ b/packages/composables/src/useUpdateInstance.ts
@@ -1,9 +1,8 @@
import { computed } from "vue";
import { getDataFilterPersistence, UpdateHistoryTypeEnum } from "./ports/persistencePort";
-import { useChildrenDrawer } from "./useChildrenDrawer";
import { useEditStore } from "./useEditStore";
-import { TargetFlag, useTargetData } from "./useTargetData";
+import { useTargetData } from "./useTargetData";
interface Props {
/** 历史遗留字段,当前实现未消费(保留仅为调用方类型兼容) */
@@ -39,8 +38,7 @@ export const useUpdateInstance = (
/**
* @description 組件v-model綁定的值
*/
- const { selectTargetData: targetData, targetFlag } = useTargetData();
- const { update: updateChildrenDrawer } = useChildrenDrawer();
+ const { selectTargetData: targetData } = useTargetData();
/**
* 250+ 处调用点里,绝大多数把 update 直接当 @change/@input 等事件处理器绑定(如
@@ -55,10 +53,6 @@ export const useUpdateInstance = (
if (isLock.value) {
return;
}
- if (targetFlag.value === TargetFlag.ChildItemOption) {
- updateChildrenDrawer();
- }
-
getDataFilterPersistence().saveLayersByType(target, isPanel(), {
updateHistoryType: isUpdateHistoryType(updateHistoryType) ? updateHistoryType : UpdateHistoryTypeEnum.UPDATE
});
diff --git a/packages/material/package.json b/packages/material/package.json
index c3e1da43..d052ac36 100644
--- a/packages/material/package.json
+++ b/packages/material/package.json
@@ -55,14 +55,25 @@
"format": "prettier --write src"
},
"dependencies": {
+ "@screenwright/composables": "workspace:*",
"@screenwright/core": "workspace:*",
"@screenwright/types": "workspace:*",
- "@screenwright/composables": "workspace:*",
+ "@tiptap/extension-color": "3.31.3",
+ "@tiptap/extension-font-family": "3.31.3",
+ "@tiptap/extension-text-align": "3.31.3",
+ "@tiptap/extension-text-style": "3.31.3",
+ "@tiptap/extension-underline": "3.31.3",
+ "@tiptap/pm": "3.31.3",
+ "@tiptap/starter-kit": "3.31.3",
+ "@tiptap/vue-3": "3.31.3",
"@vueuse/core": "^14.2.1",
"dayjs": "^1.11.13",
- "lodash-es": "4.17.21"
+ "lodash-es": "4.17.21",
+ "marked": "^17.0.3",
+ "recorder-core": "1.3.26070800"
},
"peerDependencies": {
+ "@screenwright/ui": "workspace:*",
"axios": "1.4.0",
"echarts": "^5.6.0",
"echarts-gl": "^2.0.9",
@@ -70,7 +81,6 @@
"echarts-wordcloud": "^2.1.0",
"element-plus": "^2.11.2",
"flv.js": "^1.6.2",
- "@screenwright/ui": "workspace:*",
"hls.js": "^1.5.20",
"page-flip": "^2.0.7",
"photoswipe": "^5.4.4",
@@ -80,35 +90,34 @@
"vuedraggable": "^4.1.0"
},
"devDependencies": {
- "axios": "1.4.0",
"@element-plus/icons-vue": "^2.1.0",
"@screenwright/eslint-config": "workspace:*",
- "@tinymce/tinymce-vue": "^6.1.0",
"@screenwright/ui": "workspace:*",
"@types/lodash-es": "4.17.7",
"@types/node": "20.3.2",
"@types/page-flip": "^2.0.3",
"@types/three": "^0.182.0",
"@vitejs/plugin-vue": "^5.0.0",
+ "axios": "1.4.0",
"echarts": "^5.6.0",
"echarts-gl": "^2.0.9",
"echarts-liquidfill": "^3.1.0",
"echarts-wordcloud": "^2.1.0",
"element-plus": "^2.11.2",
+ "eslint": "^9.32.0",
+ "eslint-plugin-simple-import-sort": "^12.1.1",
"flv.js": "^1.6.2",
"hls.js": "^1.5.20",
"page-flip": "^2.0.7",
"photoswipe": "^5.4.4",
- "three": "^0.182.0",
- "vue-router": "4.2.2",
- "vuedraggable": "^4.1.0",
- "eslint": "^9.32.0",
- "eslint-plugin-simple-import-sort": "^12.1.1",
"prettier": "^3.6.2",
+ "three": "^0.182.0",
"typescript": "5.9.2",
"vite": "^5.4.11",
"vite-plugin-dts": "^4.3.0",
"vue": "3.5.21",
- "vue-tsc": "^2.0.0"
+ "vue-router": "4.2.2",
+ "vue-tsc": "^2.0.0",
+ "vuedraggable": "^4.1.0"
}
}
diff --git a/packages/material/src/components/ScreenwrightExhibitComponent/ftSignaturePad/AdvanceSignaturePad.ts b/packages/material/src/components/ScreenwrightExhibitComponent/ftSignaturePad/AdvanceSignaturePad.ts
deleted file mode 100644
index 55ea3165..00000000
--- a/packages/material/src/components/ScreenwrightExhibitComponent/ftSignaturePad/AdvanceSignaturePad.ts
+++ /dev/null
@@ -1,292 +0,0 @@
-// @ts-check
-import SignaturePad from "./signature_pad/index";
-
-export class AdvanceSignaturePad {
- /**
- * @type {SignaturePad | null}
- */
- public signaturePad: SignaturePad | null = null;
-
- public undoData: any[] = [];
-
- /**
- * 当前加载的图片URL
- */
- public currentImageUrl: string | null = null;
-
- /**
- * 当前图片的属性
- */
- public currentImageProperties: {
- url: string;
- x: number;
- y: number;
- width: number;
- height: number;
- crossOrigin?: string;
- } | null = null;
-
- constructor(canvas: HTMLCanvasElement, options?: any, callBack?: () => void) {
- this.signaturePad = new SignaturePad(canvas, options);
-
- // 添加笔画结束事件监听,清空重做历史
- this.signaturePad.addEventListener("endStroke", () => {
- callBack && callBack();
- this.undoData = [];
- });
- }
-
- // /**
- // * @param {HTMLCanvasElement} canvas
- // * @param {Options} [options]
- // */
- createNewSignaturePad(canvas: HTMLCanvasElement, options: any) {
- if (this.signaturePad) {
- this.signaturePad.off();
- this.signaturePad = null;
- }
-
- this.signaturePad = new SignaturePad(canvas, options);
-
- // 重新添加事件监听
- this.signaturePad.addEventListener("endStroke", () => {
- this.undoData = [];
- });
- }
-
- /**
- * 撤销上一笔
- * @returns {void}
- */
- undo() {
- if (!this.signaturePad || this.isEmpty()) return;
-
- const data = this.signaturePad.toData();
- if (data.length > 0) {
- const removed = data.pop();
- if (!removed) return;
-
- this.undoData.push(removed);
- this.signaturePad.clear();
- if (data.length > 0) {
- this.signaturePad.fromData(data);
- }
- }
- }
-
- /**
- * 重做上一笔
- * @returns {void}
- */
- redo() {
- if (!this.signaturePad || this.undoData.length === 0) return;
-
- const data = this.signaturePad.toData();
- const restored = this.undoData.pop();
- if (restored) {
- data.push(restored);
- this.signaturePad.fromData(data);
- }
- }
-
- /**
- * 检查是否可以撤销
- * @returns {boolean}
- */
- canUndo() {
- return !this.isEmpty();
- }
-
- /**
- * 检查是否可以重做
- * @returns {boolean}
- */
- canRedo() {
- return this.undoData.length > 0;
- }
-
- /**
- * 更新画布背景
- * @param {string} backgroundColor - 新的背景颜色
- */
- updateCanvasBackground(backgroundColor: string) {
- if (!this.signaturePad) return;
-
- // 保存当前数据
- const data = this.signaturePad.toData();
-
- // 清除画布并设置背景
- const ctx: any = this.signaturePad._ctx;
- const canvas = this.signaturePad.canvas;
-
- if (!ctx || !canvas || canvas.width === 0 || canvas.height === 0) return;
-
- // 先清除整个画布
- ctx.clearRect(0, 0, canvas.width, canvas.height);
-
- // 设置背景色
- ctx.fillStyle = backgroundColor;
- ctx.fillRect(0, 0, canvas.width, canvas.height);
-
- // 更新 SignaturePad 的背景色属性
- this.signaturePad.backgroundColor = backgroundColor;
-
- // 重新绘制签名
- if (data.length > 0) {
- this.signaturePad.fromData(data);
- }
- }
-
- /**
- * 更新SignaturePad的配置选项
- * @param {Partial} options 要更新的选项
- */
- updateSignaturePadOptions(options: Partial): void {
- if (!this.signaturePad) return;
-
- // 先处理背景色,因为它需要特殊处理
- if (options.backgroundColor && this.signaturePad._ctx) {
- this.updateCanvasBackground(options.backgroundColor);
- }
-
- // 更新其他属性
- const updatableProps = [
- "velocityFilterWeight",
- "minWidth",
- "maxWidth",
- "throttle",
- "minDistance",
- "dotSize",
- "penColor",
- "compositeOperation",
- "canvasContextOptions",
- "scale"
- ];
-
- // 遍历并更新属性
- for (const prop of updatableProps) {
- if (prop in options) {
- // @ts-ignore
- this.signaturePad[prop] = options[prop];
- }
- }
-
- // 如果有存储的图片,重新绘制
- if (this.currentImageProperties && this.signaturePad._ctx) {
- this.redrawStoredImage();
- }
- }
-
- /**
- * 重新绘制存储的图片
- */
- redrawStoredImage() {
- if (!this.currentImageProperties || !this.signaturePad || !this.signaturePad._ctx) return;
-
- const image = new Image();
- const props = this.currentImageProperties;
- const ctx: any = this.signaturePad._ctx;
- const canvas = this.signaturePad.canvas;
-
- // 设置跨域属性以避免canvas被污染
- if (props.crossOrigin) {
- image.crossOrigin = props.crossOrigin;
- }
-
- image.onload = () => {
- // 保存当前数据,包括撤销历史
- const data = this.signaturePad ? this.signaturePad.toData() : [];
- const undoDataBackup = [...this.undoData]; // 备份撤销历史
-
- // 先绘制背景
- if (ctx && this.signaturePad && canvas) {
- ctx.fillStyle = this.signaturePad.backgroundColor;
- ctx.fillRect(0, 0, canvas.width, canvas.height);
-
- // 绘制图片 - 这一操作不影响撤销历史
- ctx.drawImage(image, props.x, props.y, props.width, props.height);
-
- // 重新绘制签名数据
- if (data.length > 0 && this.signaturePad) {
- // 使用 clear:false 选项避免影响撤销历史
- this.signaturePad.fromData(data, { clear: false });
- }
-
- // 恢复撤销历史
- this.undoData = undoDataBackup;
- }
- };
-
- // 添加错误处理
- image.onerror = () => {
- console.warn("Failed to load image with CORS. Attempting without CORS.");
- // 尝试不使用跨域加载
- const fallbackImage = new Image();
- fallbackImage.onload = image.onload;
- fallbackImage.src = props.url;
- };
-
- image.src = props.url;
- }
-
- /**
- * 清空签名板
- */
- clear() {
- if (this.signaturePad) {
- this.signaturePad.clear();
- // 清除图片相关属性
- this.currentImageUrl = null;
- this.currentImageProperties = null;
- }
- }
-
- /**
- * 检查签名板是否为空
- * @returns {boolean} 是否为空
- */
- isEmpty() {
- return this.signaturePad ? this.signaturePad.isEmpty() : true;
- }
-
- /**
- * 获取签名数据的 URL
- * @param {'image/png'|'image/svg+xml'} [type='image/png'] - 图像类型
- * @param {number} [encoderOptions] - 编码选项
- * @returns {string} 数据 URL
- */
- toDataURL(type: "image/png" | "image/svg+xml" = "image/png", encoderOptions?: number) {
- return this.signaturePad ? this.signaturePad.toDataURL(type, encoderOptions) : "";
- }
-
- /**
- * 获取签名数据
- * @returns {PointGroup[]} 签名数据
- */
- toData() {
- return this.signaturePad ? this.signaturePad.toData() : [];
- }
-
- /**
- * 从数据加载签名
- * @param {PointGroup[]} data - 签名数据
- * @param {Object} [options] - 加载选项
- */
- fromData(data: any[], options?: { clear?: boolean }): void {
- if (this.signaturePad) {
- this.signaturePad.fromData(data, options);
- }
- }
-
- /**
- * 从 DataURL 加载签名
- * @param {string} dataUrl - 数据 URL
- * @param {Object} [options] - 加载选项
- * @returns {Promise}
- */
- fromDataURL(dataUrl: string, options: any) {
- return this.signaturePad
- ? this.signaturePad.fromDataURL(dataUrl, options)
- : Promise.reject("SignaturePad not initialized");
- }
-}
diff --git a/packages/material/src/components/ScreenwrightExhibitComponent/ftSignaturePad/controls/ConfigControls.vue b/packages/material/src/components/ScreenwrightExhibitComponent/ftSignaturePad/controls/ConfigControls.vue
deleted file mode 100644
index 885b42b4..00000000
--- a/packages/material/src/components/ScreenwrightExhibitComponent/ftSignaturePad/controls/ConfigControls.vue
+++ /dev/null
@@ -1,322 +0,0 @@
-
-
-
-
- 画笔颜色
-
-
-
-
- 背景颜色
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/packages/material/src/components/ScreenwrightExhibitComponent/ftSignaturePad/controls/OperationControls.vue b/packages/material/src/components/ScreenwrightExhibitComponent/ftSignaturePad/controls/OperationControls.vue
deleted file mode 100644
index 1e8a5a82..00000000
--- a/packages/material/src/components/ScreenwrightExhibitComponent/ftSignaturePad/controls/OperationControls.vue
+++ /dev/null
@@ -1,197 +0,0 @@
-
-
-
-
- 导出
-
-
-
- 清除
-
-
- 撤销
-
-
- 重做
-
-
-
-
-
-
-
-
diff --git a/packages/material/src/components/ScreenwrightExhibitComponent/ftSignaturePad/index.vue b/packages/material/src/components/ScreenwrightExhibitComponent/ftSignaturePad/index.vue
deleted file mode 100644
index 9e817487..00000000
--- a/packages/material/src/components/ScreenwrightExhibitComponent/ftSignaturePad/index.vue
+++ /dev/null
@@ -1,297 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/packages/material/src/components/ScreenwrightExhibitComponent/ftSignaturePad/signature_pad/bezier.ts b/packages/material/src/components/ScreenwrightExhibitComponent/ftSignaturePad/signature_pad/bezier.ts
deleted file mode 100644
index 26eb9b4c..00000000
--- a/packages/material/src/components/ScreenwrightExhibitComponent/ftSignaturePad/signature_pad/bezier.ts
+++ /dev/null
@@ -1,132 +0,0 @@
-import type Point from "./point";
-import type { BasicPoint } from "./type";
-
-interface ControlPoints {
- c1: BasicPoint;
- c2: BasicPoint;
-}
-
-/**
- * 贝塞尔曲线类,用于平滑签名轨迹
- */
-class Bezier {
- public startPoint: Point;
- public control1: BasicPoint;
- public control2: BasicPoint;
- public endPoint: Point;
- public startWidth: number;
- public endWidth: number;
-
- /**
- * 从点集合创建贝塞尔曲线
- * @static
- * @param points - 点集合
- * @param widths - 曲线起始和终止宽度
- * @returns 贝塞尔曲线实例
- */
- static fromPoints(points: Point[], widths: { start: number; end: number }): Bezier {
- const c2 = this.calculateControlPoints(points[0], points[1], points[2]).c2;
- const c3 = this.calculateControlPoints(points[1], points[2], points[3]).c1;
- return new Bezier(points[1], c2, c3, points[2], widths.start, widths.end);
- }
-
- /**
- * 计算贝塞尔曲线的控制点
- * @private
- * @static
- * @param s1 - 第一个点
- * @param s2 - 第二个点
- * @param s3 - 第三个点
- * @returns 控制点对象
- */
- static calculateControlPoints(s1: BasicPoint, s2: BasicPoint, s3: BasicPoint): ControlPoints {
- const dx1 = s1.x - s2.x;
- const dy1 = s1.y - s2.y;
- const dx2 = s2.x - s3.x;
- const dy2 = s2.y - s3.y;
- const m1: BasicPoint = { x: (s1.x + s2.x) / 2.0, y: (s1.y + s2.y) / 2.0, pressure: 0, time: 0 };
- const m2: BasicPoint = { x: (s2.x + s3.x) / 2.0, y: (s2.y + s3.y) / 2.0, pressure: 0, time: 0 };
- const l1 = Math.sqrt(dx1 * dx1 + dy1 * dy1);
- const l2 = Math.sqrt(dx2 * dx2 + dy2 * dy2);
- const dxm = m1.x - m2.x;
- const dym = m1.y - m2.y;
- const k = l2 / (l1 + l2);
- const cm: BasicPoint = { x: m2.x + dxm * k, y: m2.y + dym * k, pressure: 0, time: 0 };
- const tx = s2.x - cm.x;
- const ty = s2.y - cm.y;
- return {
- c1: { x: m1.x + tx, y: m1.y + ty, pressure: 0, time: 0 },
- c2: { x: m2.x + tx, y: m2.y + ty, pressure: 0, time: 0 }
- };
- }
-
- /**
- * 创建一个新的贝塞尔曲线实例
- * @param startPoint - 起始点
- * @param control1 - 控制点1
- * @param control2 - 控制点2
- * @param endPoint - 终止点
- * @param startWidth - 起始宽度
- * @param endWidth - 终止宽度
- */
- constructor(
- startPoint: Point,
- control1: BasicPoint,
- control2: BasicPoint,
- endPoint: Point,
- startWidth: number,
- endWidth: number
- ) {
- this.startPoint = startPoint;
- this.control1 = control1;
- this.control2 = control2;
- this.endPoint = endPoint;
- this.startWidth = startWidth;
- this.endWidth = endWidth;
- }
-
- /**
- * 计算贝塞尔曲线的近似长度
- * @returns 曲线长度
- */
- length(): number {
- const steps = 10;
- let length = 0;
- let px = 0;
- let py = 0;
- for (let i = 0; i <= steps; i += 1) {
- const t = i / steps;
- const cx = this.point(t, this.startPoint.x, this.control1.x, this.control2.x, this.endPoint.x);
- const cy = this.point(t, this.startPoint.y, this.control1.y, this.control2.y, this.endPoint.y);
- if (i > 0) {
- const xdiff = cx - px;
- const ydiff = cy - py;
- length += Math.sqrt(xdiff * xdiff + ydiff * ydiff);
- }
- px = cx;
- py = cy;
- }
- return length;
- }
-
- /**
- * 计算贝塞尔曲线上的点
- * @private
- * @param t - 参数值 (0到1之间)
- * @param start - 起始值
- * @param c1 - 控制点1值
- * @param c2 - 控制点2值
- * @param end - 终止值
- * @returns 曲线上的点的值
- */
- private point(t: number, start: number, c1: number, c2: number, end: number): number {
- return (
- start * (1.0 - t) * (1.0 - t) * (1.0 - t) +
- 3.0 * c1 * (1.0 - t) * (1.0 - t) * t +
- 3.0 * c2 * (1.0 - t) * t * t +
- end * t * t * t
- );
- }
-}
-
-export default Bezier;
diff --git a/packages/material/src/components/ScreenwrightExhibitComponent/ftSignaturePad/signature_pad/index.ts b/packages/material/src/components/ScreenwrightExhibitComponent/ftSignaturePad/signature_pad/index.ts
deleted file mode 100644
index 22e24597..00000000
--- a/packages/material/src/components/ScreenwrightExhibitComponent/ftSignaturePad/signature_pad/index.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * 签名板组件导出文件
- * @module SignaturePad
- */
-import Bezier from "./bezier";
-import Point from "./point";
-import SignatureEventTarget from "./signature_event_target";
-import SignaturePad from "./signature_pad";
-import throttle from "./throttle";
-
-export { Bezier, Point, SignatureEventTarget, throttle };
-
-export default SignaturePad;
diff --git a/packages/material/src/components/ScreenwrightExhibitComponent/ftSignaturePad/signature_pad/point.ts b/packages/material/src/components/ScreenwrightExhibitComponent/ftSignaturePad/signature_pad/point.ts
deleted file mode 100644
index b300c4ef..00000000
--- a/packages/material/src/components/ScreenwrightExhibitComponent/ftSignaturePad/signature_pad/point.ts
+++ /dev/null
@@ -1,63 +0,0 @@
-import type { BasicPoint } from "./type";
-
-/**
- * 点类,实现了BasicPoint接口,提供点操作的方法
- */
-class Point implements BasicPoint {
- x: number;
- y: number;
- pressure: number;
- time: number;
-
- /**
- * 创建一个新的点实例
- * @param x - X坐标值
- * @param y - Y坐标值
- * @param pressure - 压力值
- * @param time - 时间戳
- */
- constructor(x: number, y: number, pressure?: number, time?: number) {
- if (isNaN(x) || isNaN(y)) {
- throw new Error(`Point is invalid: (${x}, ${y})`);
- }
- this.x = +x;
- this.y = +y;
- this.pressure = pressure || 0;
- this.time = time || Date.now();
- }
-
- /**
- * 计算当前点到目标点的距离
- * @param start - 目标点
- * @returns 两点之间的欧氏距离
- */
- distanceTo(start: BasicPoint): number {
- return Math.sqrt(Math.pow(this.x - start.x, 2) + Math.pow(this.y - start.y, 2));
- }
-
- /**
- * 判断当前点与另一个点是否相等
- * @param other - 待比较的点
- * @returns 如果两点所有属性都相等,则返回true
- */
- equals(other: BasicPoint): boolean {
- return (
- this.x === other.x &&
- this.y === other.y &&
- this.pressure === (other.pressure || 0) &&
- this.time === (other.time || 0)
- );
- }
-
- /**
- * 计算从起始点到当前点的速度
- * @param start - 起始点
- * @returns 速度值 (距离/时间)
- */
- velocityFrom(start: BasicPoint): number {
- return start.time && this.time !== start.time ? this.distanceTo(start) / (this.time - start.time) : 0;
- }
-}
-
-export default Point;
-export type { BasicPoint };
diff --git a/packages/material/src/components/ScreenwrightExhibitComponent/ftSignaturePad/signature_pad/signature_event_target.ts b/packages/material/src/components/ScreenwrightExhibitComponent/ftSignaturePad/signature_pad/signature_event_target.ts
deleted file mode 100644
index be60b8a8..00000000
--- a/packages/material/src/components/ScreenwrightExhibitComponent/ftSignaturePad/signature_pad/signature_event_target.ts
+++ /dev/null
@@ -1,60 +0,0 @@
-/**
- * 签名事件目标类,封装事件处理功能
- */
-class SignatureEventTarget {
- private _et: EventTarget | Document;
-
- /**
- * 创建一个新的事件目标实例
- */
- constructor() {
- try {
- this._et = new EventTarget();
- } catch (_a) {
- this._et = document;
- }
- }
-
- /**
- * 添加事件监听器
- * @param type - 事件类型
- * @param listener - 事件监听器
- * @param options - 事件监听选项
- */
- addEventListener(
- type: string,
- listener: EventListenerOrEventListenerObject | null,
- options?: boolean | AddEventListenerOptions
- ): void {
- if (listener) {
- this._et.addEventListener(type, listener, options);
- }
- }
-
- /**
- * 分发事件
- * @param event - 要分发的事件
- * @returns 事件是否被取消
- */
- dispatchEvent(event: Event): boolean {
- return this._et.dispatchEvent(event);
- }
-
- /**
- * 移除事件监听器
- * @param type - 事件类型
- * @param callback - 事件回调
- * @param options - 事件监听选项
- */
- removeEventListener(
- type: string,
- callback: EventListenerOrEventListenerObject | null,
- options?: boolean | EventListenerOptions
- ): void {
- if (callback) {
- this._et.removeEventListener(type, callback, options);
- }
- }
-}
-
-export default SignatureEventTarget;
diff --git a/packages/material/src/components/ScreenwrightExhibitComponent/ftSignaturePad/signature_pad/signature_pad.ts b/packages/material/src/components/ScreenwrightExhibitComponent/ftSignaturePad/signature_pad/signature_pad.ts
deleted file mode 100644
index 5f4eb707..00000000
--- a/packages/material/src/components/ScreenwrightExhibitComponent/ftSignaturePad/signature_pad/signature_pad.ts
+++ /dev/null
@@ -1,863 +0,0 @@
-// @ts-check
-import Bezier from "./bezier";
-import Point from "./point";
-import SignatureEventTarget from "./signature_event_target";
-import throttle from "./throttle";
-import type { FromDataOptions, Options, PointGroup, PointGroupOptions, SignatureEvent, ToSVGOptions } from "./type";
-
-class SignaturePad extends SignatureEventTarget {
- /** 画布元素 */
- canvas: HTMLCanvasElement;
-
- /** 画布上下文 */
- _ctx: CanvasRenderingContext2D | null;
-
- /** 是否正在绘制笔画 */
- _drawingStroke: boolean;
-
- /** 画布是否为空 */
- _isEmpty: boolean;
-
- /** 最后的点集合 */
- _lastPoints: Point[];
-
- /** 数据集合 */
- _data: PointGroup[];
-
- /** 最后的速度 */
- _lastVelocity: number;
-
- /** 最后的宽度 */
- _lastWidth: number;
-
- /** 笔画移动更新函数 */
- _strokeMoveUpdate: (event: SignatureEvent) => void;
-
- /**
- * 处理鼠标按下事件
- * @param event - 鼠标事件
- */
- _handleMouseDown = (event: Event) => {
- const mouseEvent = event as MouseEvent;
- if (!this._isLeftButtonPressed(mouseEvent, true) || this._drawingStroke) {
- return;
- }
- this._strokeBegin(this._pointerEventToSignatureEvent(mouseEvent));
- };
-
- /**
- * 处理鼠标移动事件
- * @param event - 鼠标事件
- */
- _handleMouseMove = (event: Event) => {
- const mouseEvent = event as MouseEvent;
- if (!this._isLeftButtonPressed(mouseEvent, true) || !this._drawingStroke) {
- this._strokeEnd(this._pointerEventToSignatureEvent(mouseEvent), false);
- return;
- }
- this._strokeMoveUpdate(this._pointerEventToSignatureEvent(mouseEvent));
- };
-
- /**
- * 处理鼠标抬起事件
- * @param event - 鼠标事件
- */
- _handleMouseUp = (event: Event) => {
- const mouseEvent = event as MouseEvent;
- if (this._isLeftButtonPressed(mouseEvent)) {
- return;
- }
- this._strokeEnd(this._pointerEventToSignatureEvent(mouseEvent));
- };
-
- /**
- * 处理触摸开始事件
- * @param event - 触摸事件
- */
- _handleTouchStart = (event: Event) => {
- const touchEvent = event as TouchEvent;
- if (touchEvent.targetTouches.length !== 1 || this._drawingStroke) {
- return;
- }
- if (touchEvent.cancelable) {
- touchEvent.preventDefault();
- }
- this._strokeBegin(this._touchEventToSignatureEvent(touchEvent));
- };
-
- /**
- * 处理触摸移动事件
- * @param event - 触摸事件
- */
- _handleTouchMove = (event: Event) => {
- const touchEvent = event as TouchEvent;
- if (touchEvent.targetTouches.length !== 1) {
- return;
- }
- if (touchEvent.cancelable) {
- touchEvent.preventDefault();
- }
- if (!this._drawingStroke) {
- this._strokeEnd(this._touchEventToSignatureEvent(touchEvent), false);
- return;
- }
- this._strokeMoveUpdate(this._touchEventToSignatureEvent(touchEvent));
- };
-
- /**
- * 处理触摸结束事件
- * @param event - 触摸事件
- */
- _handleTouchEnd = (event: Event) => {
- const touchEvent = event as TouchEvent;
- if (touchEvent.targetTouches.length !== 0) {
- return;
- }
- if (touchEvent.cancelable) {
- touchEvent.preventDefault();
- }
- this.canvas.removeEventListener("touchmove", this._handleTouchMove);
- this._strokeEnd(this._touchEventToSignatureEvent(touchEvent));
- };
-
- /**
- * 处理指针按下事件
- * @param event - 指针事件
- */
- _handlePointerDown = (event: Event) => {
- const pointerEvent = event as PointerEvent;
- if (!pointerEvent.isPrimary || !this._isLeftButtonPressed(pointerEvent) || this._drawingStroke) {
- return;
- }
- pointerEvent.preventDefault();
- this._strokeBegin(this._pointerEventToSignatureEvent(pointerEvent));
- };
-
- /**
- * 处理指针移动事件
- * @param event - 指针事件
- */
- _handlePointerMove = (event: Event) => {
- const pointerEvent = event as PointerEvent;
- if (!pointerEvent.isPrimary) {
- return;
- }
- if (!this._isLeftButtonPressed(pointerEvent, true) || !this._drawingStroke) {
- this._strokeEnd(this._pointerEventToSignatureEvent(pointerEvent), false);
- return;
- }
- pointerEvent.preventDefault();
- this._strokeMoveUpdate(this._pointerEventToSignatureEvent(pointerEvent));
- };
-
- /**
- * 处理指针抬起事件
- * @param event - 指针事件
- */
- _handlePointerUp = (event: Event) => {
- const pointerEvent = event as PointerEvent;
- if (!pointerEvent.isPrimary || this._isLeftButtonPressed(pointerEvent)) {
- return;
- }
- pointerEvent.preventDefault();
- this._strokeEnd(this._pointerEventToSignatureEvent(pointerEvent));
- };
- /** 缩放比例 */
- scale: number;
-
- /** 速度过滤权重 */
- velocityFilterWeight: number;
-
- /** 最小宽度 */
- minWidth: number;
-
- /** 最大宽度 */
- maxWidth: number;
-
- /** 节流时间 */
- throttle: number;
-
- /** 最小距离 */
- minDistance: number;
-
- /** 点的大小 */
- dotSize: number;
-
- /** 画笔颜色 */
- penColor: string;
-
- /** 背景颜色 */
- backgroundColor: string;
-
- /** 全局合成操作 */
- compositeOperation: GlobalCompositeOperation;
-
- /** Canvas上下文选项 */
- canvasContextOptions: CanvasRenderingContext2DSettings;
-
- /**
- * 创建一个新的签名板实例
- * @param canvas - Canvas元素
- * @param options - 签名板选项
- */
- constructor(canvas: HTMLCanvasElement, options: Options = {}) {
- super();
- this.canvas = canvas;
- this._drawingStroke = false;
- this._isEmpty = true;
- this._lastPoints = [];
- this._data = [];
- this._lastVelocity = 0;
- this._lastWidth = 0;
-
- this.velocityFilterWeight = options.velocityFilterWeight || 0.7;
- this.minWidth = options.minWidth || 0.5;
- this.maxWidth = options.maxWidth || 2.5;
- this.throttle = options.throttle ?? 16;
- this.scale = options.scale || 1;
- this.minDistance = options.minDistance ?? 5;
- this.dotSize = options.dotSize || 0;
- this.penColor = options.penColor || "black";
- this.backgroundColor = options.backgroundColor || "rgba(0,0,0,0)";
- this.compositeOperation = options.compositeOperation || "source-over";
- this.canvasContextOptions = options.canvasContextOptions ?? {};
-
- // 创建节流函数
- this._strokeMoveUpdate = this.throttle
- ? throttle(this._strokeUpdate.bind(this), this.throttle)
- : this._strokeUpdate.bind(this);
-
- this._ctx = canvas.getContext("2d", this.canvasContextOptions);
- this.clear();
- this.on();
- }
-
- /**
- * 清除画布内容
- */
- clear(): void {
- const { _ctx: ctx, canvas } = this;
- if (ctx) {
- if (canvas.width === 0 || canvas.height === 0) return;
- ctx.fillStyle = this.backgroundColor;
-
- ctx.clearRect(0, 0, canvas.width, canvas.height);
- ctx.fillRect(0, 0, canvas.width, canvas.height);
- }
- this._data = [];
- this._reset(this._getPointGroupOptions());
- this._isEmpty = true;
- }
-
- /**
- * 从DataURL加载图像到画布
- * @param dataUrl - 数据URL
- * @param options - 加载选项
- * @returns Promise对象
- */
- fromDataURL(
- dataUrl: string,
- options: {
- ratio?: number;
- width?: number;
- height?: number;
- xOffset?: number;
- yOffset?: number;
- } = {}
- ): Promise {
- return new Promise((resolve, reject) => {
- const image = new Image();
- const ratio = options.ratio || window.devicePixelRatio || 1;
- const width = options.width || this.canvas.width / ratio;
- const height = options.height || this.canvas.height / ratio;
- const xOffset = options.xOffset || 0;
- const yOffset = options.yOffset || 0;
- this._reset(this._getPointGroupOptions());
- image.onload = (res) => {
- if (this._ctx) {
- this._ctx.drawImage(image, xOffset, yOffset, width, height);
- }
- resolve(res);
- };
- image.onerror = (error) => {
- reject(error);
- };
- image.crossOrigin = "anonymous";
- image.src = dataUrl;
- this._isEmpty = false;
- });
- }
-
- /**
- * 将画布内容转换为DataURL
- * @param type - 图像类型
- * @param encoderOptions - 编码选项
- * @returns DataURL字符串
- */
- toDataURL(type: "image/png" | "image/svg+xml" = "image/png", encoderOptions?: number | ToSVGOptions): string {
- switch (type) {
- case "image/svg+xml":
- if (typeof encoderOptions !== "object") {
- encoderOptions = undefined;
- }
- return `data:image/svg+xml;base64,${btoa(this.toSVG(encoderOptions))}`;
- default:
- if (typeof encoderOptions !== "number") {
- encoderOptions = undefined;
- }
-
- return this.canvas.toDataURL(type, encoderOptions);
- }
- }
-
- /**
- * 启用签名板
- */
- on(): void {
- this.canvas.style.touchAction = "none";
- // 使用标准属性替代msTouchAction
- this.canvas.style.touchAction = "none";
- this.canvas.style.userSelect = "none";
- const isIOS = /Macintosh/.test(navigator.userAgent) && "ontouchstart" in document;
- if (window.PointerEvent && !isIOS) {
- this._handlePointerEvents();
- } else {
- this._handleMouseEvents();
- if ("ontouchstart" in window) {
- this._handleTouchEvents();
- }
- }
- }
-
- /**
- * 禁用签名板
- */
- off(): void {
- this.canvas.style.touchAction = "auto";
- // 使用标准属性替代msTouchAction
- this.canvas.style.touchAction = "auto";
- this.canvas.style.userSelect = "auto";
- this.canvas.removeEventListener("pointerdown", this._handlePointerDown);
- this.canvas.removeEventListener("mousedown", this._handleMouseDown);
- this.canvas.removeEventListener("touchstart", this._handleTouchStart);
- this._removeMoveUpEventListeners();
- }
-
- /**
- * 获取监听器函数
- * @private
- * @returns 监听器函数对象
- */
- _getListenerFunctions(): {
- addEventListener: (type: string, listener: EventListenerOrEventListenerObject) => void;
- removeEventListener: (type: string, listener: EventListenerOrEventListenerObject) => void;
- } {
- const canvasWindow =
- window.document === this.canvas.ownerDocument
- ? window
- : (this.canvas.ownerDocument.defaultView ?? this.canvas.ownerDocument);
- return {
- addEventListener: canvasWindow.addEventListener.bind(canvasWindow),
- removeEventListener: canvasWindow.removeEventListener.bind(canvasWindow)
- };
- }
-
- /**
- * 移除移动和抬起事件监听器
- * @private
- */
- _removeMoveUpEventListeners(): void {
- const { removeEventListener } = this._getListenerFunctions();
- removeEventListener("pointermove", this._handlePointerMove);
- removeEventListener("pointerup", this._handlePointerUp);
- removeEventListener("mousemove", this._handleMouseMove);
- removeEventListener("mouseup", this._handleMouseUp);
- removeEventListener("touchmove", this._handleTouchMove);
- removeEventListener("touchend", this._handleTouchEnd);
- }
-
- /**
- * 检查画布是否为空
- * @returns 如果画布为空则返回true
- */
- isEmpty(): boolean {
- return this._isEmpty;
- }
-
- /**
- * 从点组数据加载签名
- * @param pointGroups - 点组数据
- * @param options - 加载选项
- */
- fromData(pointGroups: PointGroup[], options: FromDataOptions = { clear: true }): void {
- const { clear = true } = options;
- if (clear) {
- this.clear();
- }
-
- this._fromData(pointGroups, this._drawCurve.bind(this), this._drawDot.bind(this));
- this._data = this._data.concat(pointGroups);
- }
-
- /**
- * 将签名转换为点组数据
- * @returns 点组数据
- */
- toData(): PointGroup[] {
- return this._data;
- }
-
- /**
- * 检查是否按下鼠标左键
- * @private
- * @param event - 鼠标事件
- * @param only - 是否只检查左键
- * @returns 如果按下左键则返回true
- */
- _isLeftButtonPressed(event: MouseEvent | PointerEvent, only?: boolean): boolean {
- if (only) {
- return event.buttons === 1;
- }
- return (event.buttons & 1) === 1;
- }
-
- /**
- * 将指针事件转换为签名事件
- * @private
- * @param event - 指针事件
- * @returns 签名事件
- */
- _pointerEventToSignatureEvent(event: PointerEvent | MouseEvent): SignatureEvent {
- return {
- event: event,
- type: event.type,
- x: event.clientX,
- y: event.clientY,
- pressure: "pressure" in event ? event.pressure : 0
- };
- }
-
- /**
- * 将触摸事件转换为签名事件
- * @private
- * @param event - 触摸事件
- * @returns 签名事件
- */
- _touchEventToSignatureEvent(event: TouchEvent): SignatureEvent {
- const touch = event.changedTouches[0];
- return {
- event: event,
- type: event.type,
- x: touch.clientX,
- y: touch.clientY,
- pressure: touch.force || 0.5
- };
- }
-
- /**
- * 获取点组选项
- * @private
- * @param group - 点组
- * @returns 点组选项
- */
- _getPointGroupOptions(group?: PointGroup): PointGroupOptions {
- return {
- penColor: group && "penColor" in group ? group.penColor : this.penColor,
- dotSize: group && "dotSize" in group ? group.dotSize : this.dotSize,
- minWidth: group && "minWidth" in group ? group.minWidth : this.minWidth,
- maxWidth: group && "maxWidth" in group ? group.maxWidth : this.maxWidth,
- velocityFilterWeight:
- group && "velocityFilterWeight" in group ? group.velocityFilterWeight : this.velocityFilterWeight,
- compositeOperation: group && "compositeOperation" in group ? group.compositeOperation : this.compositeOperation
- };
- }
-
- /**
- * 开始笔画
- * @private
- * @param event - 签名事件
- */
- _strokeBegin(event: SignatureEvent): void {
- const cancelled = !this.dispatchEvent(new CustomEvent("beginStroke", { detail: event, cancelable: true }));
- if (cancelled) {
- return;
- }
- const { addEventListener } = this._getListenerFunctions();
- switch (event.event.type) {
- case "mousedown":
- addEventListener("mousemove", this._handleMouseMove);
- addEventListener("mouseup", this._handleMouseUp);
- break;
- case "touchstart":
- addEventListener("touchmove", this._handleTouchMove);
- addEventListener("touchend", this._handleTouchEnd);
- break;
- case "pointerdown":
- addEventListener("pointermove", this._handlePointerMove);
- addEventListener("pointerup", this._handlePointerUp);
- break;
- }
- this._drawingStroke = true;
- const pointGroupOptions = this._getPointGroupOptions();
- const newPointGroup: PointGroup = { ...pointGroupOptions, points: [] };
- this._data.push(newPointGroup);
- this._reset(pointGroupOptions);
- this._strokeUpdate(event);
- }
-
- /**
- * 更新笔画
- * @private
- * @param event - 签名事件
- */
- _strokeUpdate(event: SignatureEvent): void {
- if (!this._drawingStroke) {
- return;
- }
- if (this._data.length === 0) {
- this._strokeBegin(event);
- return;
- }
- this.dispatchEvent(new CustomEvent("beforeUpdateStroke", { detail: event }));
- const point = this._createPoint(event.x, event.y, event.pressure);
- const lastPointGroup = this._data[this._data.length - 1];
- const lastPoints = lastPointGroup.points;
- const lastPoint = lastPoints.length > 0 && lastPoints[lastPoints.length - 1];
- const isLastPointTooClose = lastPoint ? point.distanceTo(lastPoint) <= this.minDistance : false;
- const pointGroupOptions = this._getPointGroupOptions(lastPointGroup);
- if (!lastPoint || !(lastPoint && isLastPointTooClose)) {
- const curve = this._addPoint(point, pointGroupOptions);
- if (!lastPoint) {
- this._drawDot(point, pointGroupOptions);
- } else if (curve) {
- this._drawCurve(curve, pointGroupOptions);
- }
- lastPoints.push({
- time: point.time,
- x: point.x,
- y: point.y,
- pressure: point.pressure
- });
- }
- this.dispatchEvent(new CustomEvent("afterUpdateStroke", { detail: event }));
- }
-
- /**
- * 结束笔画
- * @private
- * @param event - 签名事件
- * @param shouldUpdate - 是否应该更新
- */
- _strokeEnd(event: SignatureEvent, shouldUpdate = true): void {
- this._removeMoveUpEventListeners();
- if (!this._drawingStroke) {
- return;
- }
- if (shouldUpdate) {
- this._strokeUpdate(event);
- }
- this._drawingStroke = false;
- this.dispatchEvent(new CustomEvent("endStroke", { detail: event }));
- }
-
- /**
- * 处理指针事件
- * @private
- */
- _handlePointerEvents(): void {
- this._drawingStroke = false;
- this.canvas.addEventListener("pointerdown", this._handlePointerDown);
- }
-
- /**
- * 处理鼠标事件
- * @private
- */
- _handleMouseEvents(): void {
- this._drawingStroke = false;
- this.canvas.addEventListener("mousedown", this._handleMouseDown);
- }
-
- /**
- * 处理触摸事件
- * @private
- */
- _handleTouchEvents(): void {
- this.canvas.addEventListener("touchstart", this._handleTouchStart);
- }
-
- /**
- * 重置签名板
- * @private
- * @param options - 点组选项
- */
- _reset(options: PointGroupOptions): void {
- this._lastPoints = [];
- this._lastVelocity = 0;
- this._lastWidth = (options.minWidth + options.maxWidth) / 2;
- if (this._ctx) {
- this._ctx.fillStyle = options.penColor;
- this._ctx.globalCompositeOperation = options.compositeOperation;
- }
- }
-
- /**
- * 创建点
- * @private
- * @param x - X坐标
- * @param y - Y坐标
- * @param pressure - 压力值
- * @returns 点实例
- */
- _createPoint(x: number, y: number, pressure: number): Point {
- const rect = this.canvas.getBoundingClientRect();
-
- const newX = (x - rect.left) / this.scale;
- const newY = (y - rect.top) / this.scale;
- return new Point(newX, newY, pressure, new Date().getTime());
- }
-
- /**
- * 添加点
- * @private
- * @param point - 要添加的点
- * @param options - 点组选项
- * @returns 贝塞尔曲线或null
- */
- _addPoint(point: Point, options: PointGroupOptions): Bezier | null {
- const { _lastPoints } = this;
- _lastPoints.push(point);
- if (_lastPoints.length > 2) {
- if (_lastPoints.length === 3) {
- _lastPoints.unshift(_lastPoints[0]);
- }
- const widths = this._calculateCurveWidths(_lastPoints[1], _lastPoints[2], options);
- const curve = Bezier.fromPoints(_lastPoints, widths);
- _lastPoints.shift();
- return curve;
- }
- return null;
- }
-
- /**
- * 计算曲线宽度
- * @private
- * @param startPoint - 起始点
- * @param endPoint - 终止点
- * @param options - 点组选项
- * @returns 宽度对象
- */
- _calculateCurveWidths(
- startPoint: Point,
- endPoint: Point,
- options: PointGroupOptions
- ): {
- start: number;
- end: number;
- } {
- const velocity =
- options.velocityFilterWeight * endPoint.velocityFrom(startPoint) +
- (1 - options.velocityFilterWeight) * this._lastVelocity;
- const newWidth = this._strokeWidth(velocity, options);
- const widths = {
- end: newWidth,
- start: this._lastWidth
- };
- this._lastVelocity = velocity;
- this._lastWidth = newWidth;
- return widths;
- }
-
- /**
- * 计算笔画宽度
- * @private
- * @param velocity - 速度值
- * @param options - 点组选项
- * @returns 宽度值
- */
- _strokeWidth(velocity: number, options: PointGroupOptions): number {
- return Math.max(options.maxWidth / (velocity + 1), options.minWidth);
- }
-
- /**
- * 绘制曲线段
- * @private
- * @param x - X坐标
- * @param y - Y坐标
- * @param width - 宽度
- */
- _drawCurveSegment(x: number, y: number, width: number): void {
- if (!this._ctx) return;
-
- this._ctx.moveTo(x, y);
- this._ctx.arc(x, y, width, 0, 2 * Math.PI, false);
- this._isEmpty = false;
- }
-
- /**
- * 绘制曲线
- * @private
- * @param curve - 贝塞尔曲线
- * @param options - 点组选项
- */
- _drawCurve(curve: Bezier, options: PointGroupOptions): void {
- if (!this._ctx) return;
-
- const ctx = this._ctx;
- const widthDelta = curve.endWidth - curve.startWidth;
- const drawSteps = Math.ceil(curve.length()) * 2;
- ctx.beginPath();
- ctx.fillStyle = options.penColor;
-
- for (let i = 0; i < drawSteps; i += 1) {
- const t = i / drawSteps;
- const tt = t * t;
- const ttt = tt * t;
- const u = 1.0 - t;
- const uu = u * u;
- const uuu = uu * u;
-
- let x = uuu * curve.startPoint.x;
- x += 3 * uu * t * curve.control1.x;
- x += 3 * u * tt * curve.control2.x;
- x += ttt * curve.endPoint.x;
-
- let y = uuu * curve.startPoint.y;
- y += 3 * uu * t * curve.control1.y;
- y += 3 * u * tt * curve.control2.y;
- y += ttt * curve.endPoint.y;
-
- const width = Math.min(curve.startWidth + ttt * widthDelta, options.maxWidth);
- this._drawCurveSegment(x, y, width);
- }
-
- ctx.closePath();
- ctx.fill();
- }
-
- /**
- * 绘制点
- * @private
- * @param point - 点
- * @param options - 点组选项
- */
- _drawDot(point: Point, options: PointGroupOptions): void {
- if (!this._ctx) return;
-
- const ctx = this._ctx;
- const width = options.dotSize > 0 ? options.dotSize : (options.minWidth + options.maxWidth) / 2;
-
- ctx.beginPath();
- this._drawCurveSegment(point.x, point.y, width);
- ctx.closePath();
- ctx.fillStyle = options.penColor;
- ctx.fill();
- }
-
- /**
- * 从数据加载签名的内部方法
- * @private
- * @param pointGroups - 点组数据
- * @param drawCurve - 绘制曲线的函数
- * @param drawDot - 绘制点的函数
- */
- _fromData(
- pointGroups: PointGroup[],
- drawCurve: (curve: Bezier, options: PointGroupOptions) => void,
- drawDot: (point: Point, options: PointGroupOptions) => void
- ): void {
- for (const group of pointGroups) {
- const { points } = group;
- const pointGroupOptions = this._getPointGroupOptions(group);
- if (points.length > 1) {
- for (let j = 0; j < points.length; j += 1) {
- const basicPoint = points[j];
-
- const point = new Point(basicPoint.x, basicPoint.y, basicPoint.pressure, basicPoint.time);
- if (j === 0) {
- this._reset(pointGroupOptions);
- drawDot(point, pointGroupOptions);
- }
-
- const curve = this._addPoint(point, pointGroupOptions);
- if (curve) {
- drawCurve(curve, pointGroupOptions);
- }
- }
- } else {
- this._reset(pointGroupOptions);
- drawDot(new Point(points[0].x, points[0].y, points[0].pressure, points[0].time), pointGroupOptions);
- }
- }
- }
-
- /**
- * 将签名转换为SVG
- * @param options - SVG选项
- * @returns SVG字符串
- */
- toSVG(options: ToSVGOptions = { includeBackgroundColor: false }): string {
- const { includeBackgroundColor = false } = options;
- const pointGroups = this._data;
- const ratio = Math.max(window.devicePixelRatio || 1, 1);
- const minX = 0;
- const minY = 0;
- const maxX = this.canvas.width / ratio;
- const maxY = this.canvas.height / ratio;
-
- const svg = document.createElementNS("http://www.w3.org/2000/svg", "svg");
- svg.setAttribute("xmlns", "http://www.w3.org/2000/svg");
- svg.setAttribute("xmlns:xlink", "http://www.w3.org/1999/xlink");
- svg.setAttribute("viewBox", `${minX} ${minY} ${maxX} ${maxY}`);
- svg.setAttribute("width", maxX.toString());
- svg.setAttribute("height", maxY.toString());
-
- if (includeBackgroundColor && this.backgroundColor) {
- const rect = document.createElementNS("http://www.w3.org/2000/svg", "rect");
- rect.setAttribute("width", "100%");
- rect.setAttribute("height", "100%");
- rect.setAttribute("fill", this.backgroundColor);
- svg.appendChild(rect);
- }
-
- this._fromData(
- pointGroups,
- (curve: Bezier, options: PointGroupOptions) => {
- const { penColor } = options;
- const path = document.createElementNS("http://www.w3.org/2000/svg", "path");
- if (
- !isNaN(curve.control1.x) &&
- !isNaN(curve.control1.y) &&
- !isNaN(curve.control2.x) &&
- !isNaN(curve.control2.y)
- ) {
- const attr =
- `M ${curve.startPoint.x.toFixed(3)},${curve.startPoint.y.toFixed(3)} ` +
- `C ${curve.control1.x.toFixed(3)},${curve.control1.y.toFixed(3)} ` +
- `${curve.control2.x.toFixed(3)},${curve.control2.y.toFixed(3)} ` +
- `${curve.endPoint.x.toFixed(3)},${curve.endPoint.y.toFixed(3)}`;
- path.setAttribute("d", attr);
- path.setAttribute("stroke-width", (curve.endWidth * 2.25).toFixed(3));
- path.setAttribute("stroke", penColor);
- path.setAttribute("fill", "none");
- path.setAttribute("stroke-linecap", "round");
- svg.appendChild(path);
- }
- },
- (point: Point, options: PointGroupOptions) => {
- const { penColor, dotSize, minWidth, maxWidth } = options;
- const circle = document.createElementNS("http://www.w3.org/2000/svg", "circle");
- const size = dotSize > 0 ? dotSize : (minWidth + maxWidth) / 2;
- circle.setAttribute("r", size.toString());
- circle.setAttribute("cx", point.x.toString());
- circle.setAttribute("cy", point.y.toString());
- circle.setAttribute("fill", penColor);
- svg.appendChild(circle);
- }
- );
-
- return svg.outerHTML;
- }
-}
-
-export default SignaturePad;
diff --git a/packages/material/src/components/ScreenwrightExhibitComponent/ftSignaturePad/signature_pad/throttle.ts b/packages/material/src/components/ScreenwrightExhibitComponent/ftSignaturePad/signature_pad/throttle.ts
deleted file mode 100644
index 676fbda2..00000000
--- a/packages/material/src/components/ScreenwrightExhibitComponent/ftSignaturePad/signature_pad/throttle.ts
+++ /dev/null
@@ -1,57 +0,0 @@
-type ThrottleFunction = any>(
- fn: T,
- wait?: number
-) => (...args: Parameters) => ReturnType;
-
-/**
- * 函数节流,限制函数的执行频率
- * @param fn - 要节流的函数
- * @param wait - 节流等待时间(毫秒)
- * @returns 节流后的函数
- */
-const throttle: ThrottleFunction = (fn, wait = 250) => {
- let previous = 0;
- let timeout: number | null = null;
- let result: any;
- let storedContext: any = null;
- let storedArgs: any[];
-
- /**
- * 延迟执行函数
- * @private
- */
- const later = () => {
- previous = Date.now();
- timeout = null;
- result = fn.apply(storedContext, storedArgs);
- if (!timeout) {
- storedContext = null;
- storedArgs = [];
- }
- };
-
- return function wrapper(this: any, ...args: Parameters): ReturnType {
- const now = Date.now();
- const remaining = wait - (now - previous);
- storedContext = this;
- storedArgs = args;
-
- if (remaining <= 0 || remaining > wait) {
- if (timeout) {
- clearTimeout(timeout);
- timeout = null;
- }
- previous = now;
- result = fn.apply(storedContext, storedArgs);
- if (!timeout) {
- storedContext = null;
- storedArgs = [];
- }
- } else if (!timeout) {
- timeout = window.setTimeout(later, remaining);
- }
- return result;
- };
-};
-
-export default throttle;
diff --git a/packages/material/src/components/ScreenwrightExhibitComponent/ftSignaturePad/signature_pad/type.ts b/packages/material/src/components/ScreenwrightExhibitComponent/ftSignaturePad/signature_pad/type.ts
deleted file mode 100644
index 1dd03a78..00000000
--- a/packages/material/src/components/ScreenwrightExhibitComponent/ftSignaturePad/signature_pad/type.ts
+++ /dev/null
@@ -1,359 +0,0 @@
-/**
- * @interface BasicPoint
- * @description 基础点对象,表示二维平面上的一个点及其压力和时间属性
- */
-export interface BasicPoint {
- /** X坐标值 */
- x: number;
- /** Y坐标值 */
- y: number;
- /** 压力值,用于触摸设备 */
- pressure: number;
- /** 时间戳,记录点创建的时间 */
- time: number;
-}
-
-/**
- * @class Point
- * @description 点类,实现了BasicPoint接口,提供点操作的方法
- */
-export declare class Point implements BasicPoint {
- /** X坐标值 */
- x: number;
- /** Y坐标值 */
- y: number;
- /** 压力值,用于触摸设备 */
- pressure: number;
- /** 时间戳,记录点创建的时间 */
- time: number;
-
- /**
- * @constructor
- * @param {number} x - X坐标值
- * @param {number} y - Y坐标值
- * @param {number} [pressure] - 压力值,默认为0
- * @param {number} [time] - 时间戳,默认为当前时间
- */
- constructor(x: number, y: number, pressure?: number, time?: number);
-
- /**
- * @method distanceTo
- * @description 计算当前点到目标点的距离
- * @param {BasicPoint} start - 目标点
- * @returns {number} 两点之间的欧氏距离
- */
- distanceTo(start: BasicPoint): number;
-
- /**
- * @method equals
- * @description 判断当前点与另一个点是否相等
- * @param {BasicPoint} other - 待比较的点
- * @returns {boolean} 如果两点所有属性都相等,则返回true
- */
- equals(other: BasicPoint): boolean;
-
- /**
- * @method velocityFrom
- * @description 计算从起始点到当前点的速度
- * @param {BasicPoint} start - 起始点
- * @returns {number} 速度值 (距离/时间)
- */
- velocityFrom(start: BasicPoint): number;
-}
-
-/**
- * @class Bezier
- * @description 贝塞尔曲线类,用于平滑签名轨迹
- */
-export declare class Bezier {
- /** 起始点 */
- startPoint: Point;
- /** 控制点2 */
- control2: BasicPoint;
- /** 控制点1 */
- control1: BasicPoint;
- /** 终止点 */
- endPoint: Point;
- /** 起始宽度 */
- startWidth: number;
- /** 终止宽度 */
- endWidth: number;
-
- /**
- * @static
- * @method fromPoints
- * @description 从点集合创建贝塞尔曲线
- * @param {Point[]} points - 点集合
- * @param {{start: number, end: number}} widths - 曲线起始和终止宽度
- * @returns {Bezier} 贝塞尔曲线实例
- */
- static fromPoints(
- points: Point[],
- widths: {
- start: number;
- end: number;
- }
- ): Bezier;
-
- /**
- * @private
- * @static
- * @method calculateControlPoints
- * @description 计算贝塞尔曲线的控制点
- */
- private static calculateControlPoints;
-
- /**
- * @constructor
- * @param {Point} startPoint - 起始点
- * @param {BasicPoint} control2 - 控制点2
- * @param {BasicPoint} control1 - 控制点1
- * @param {Point} endPoint - 终止点
- * @param {number} startWidth - 起始宽度
- * @param {number} endWidth - 终止宽度
- */
- constructor(
- startPoint: Point,
- control2: BasicPoint,
- control1: BasicPoint,
- endPoint: Point,
- startWidth: number,
- endWidth: number
- );
-
- /**
- * @method length
- * @description 计算贝塞尔曲线的近似长度
- * @returns {number} 曲线长度
- */
- length(): number;
-
- /**
- * @private
- * @method point
- * @description 计算贝塞尔曲线上的点
- */
- private point;
-}
-
-/**
- * @class SignatureEventTarget
- * @description 签名事件目标类,封装事件处理功能
- */
-export declare class SignatureEventTarget {
- /** 事件目标实例 */
- private _et;
-
- /**
- * @constructor
- */
- constructor();
-
- /**
- * @method addEventListener
- * @description 添加事件监听器
- * @param {string} type - 事件类型
- * @param {EventListenerOrEventListenerObject | null} listener - 事件监听器
- * @param {boolean | AddEventListenerOptions} [options] - 事件监听选项
- */
- addEventListener(
- type: string,
- listener: EventListenerOrEventListenerObject | null,
- options?: boolean | AddEventListenerOptions
- ): void;
-
- /**
- * @method dispatchEvent
- * @description 分发事件
- * @param {Event} event - 要分发的事件
- * @returns {boolean} 事件是否被取消
- */
- dispatchEvent(event: Event): boolean;
-
- /**
- * @method removeEventListener
- * @description 移除事件监听器
- * @param {string} type - 事件类型
- * @param {EventListenerOrEventListenerObject | null} callback - 事件回调
- * @param {boolean | EventListenerOptions} [options] - 事件监听选项
- */
- removeEventListener(
- type: string,
- callback: EventListenerOrEventListenerObject | null,
- options?: boolean | EventListenerOptions
- ): void;
-}
-
-/**
- * @interface SignatureEvent
- * @description 签名事件接口,封装签名相关事件数据
- */
-export interface SignatureEvent {
- /** 原始事件对象 */
- event: MouseEvent | TouchEvent | PointerEvent;
- /** 事件类型 */
- type: string;
- /** X坐标 */
- x: number;
- /** Y坐标 */
- y: number;
- /** 压力值 */
- pressure: number;
-}
-
-/**
- * @interface FromDataOptions
- * @description 从数据加载签名的选项
- */
-export interface FromDataOptions {
- /** 是否清除现有内容 */
- clear?: boolean;
-}
-
-/**
- * @interface ToSVGOptions
- * @description 转换为SVG的选项
- */
-export interface ToSVGOptions {
- /** 是否包含背景颜色 */
- includeBackgroundColor?: boolean;
-}
-
-/**
- * @interface PointGroupOptions
- * @description 点组的选项
- */
-export interface PointGroupOptions {
- /** 点的大小 */
- dotSize: number;
- /** 最小宽度 */
- minWidth: number;
- /** 最大宽度 */
- maxWidth: number;
- /** 画笔颜色 */
- penColor: string;
- /** 速度过滤权重 */
- velocityFilterWeight: number;
-
- /**
- * 线条的全局合成操作
- * 默认值: 'source-over'
- * @see https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation
- */
- compositeOperation: GlobalCompositeOperation;
-}
-
-/**
- * @interface Options
- * @description 签名板选项
- */
-export interface Options extends Partial {
- /** 最小距离,小于此距离的点将被忽略 */
- minDistance?: number;
- /** 背景颜色 */
- backgroundColor?: string;
- /** 节流时间 */
- throttle?: number;
- /** 缩放 */
- scale?: number;
- /** Canvas上下文选项 */
- canvasContextOptions?: Partial;
-}
-
-/**
- * @interface PointGroup
- * @description 点组,表示一组点及其绘制选项
- */
-export interface PointGroup extends PointGroupOptions {
- /** 点集合 */
- points: BasicPoint[];
-}
-
-/**
- * @interface ActionControlsConfig
- * @description 操作控制配置项
- */
-export interface ActionControlsConfig {
- /** 是否显示导出按钮 */
- export: boolean;
- /** 是否显示清除按钮 */
- clear: boolean;
- /** 是否显示撤销按钮 */
- undo: boolean;
- /** 是否显示重做按钮 */
- redo: boolean;
-}
-
-/**
- * @interface ConfigControlsConfig
- * @description 配置控制配置项
- */
-export interface ConfigControlsConfig {
- /** 是否显示画笔颜色控制 */
- penColor: boolean;
- /** 是否显示背景颜色控制 */
- backgroundColor: boolean;
- /** 是否显示线条宽度控制 */
- lineWidth: boolean;
-}
-
-export interface ExportConfig {
- apiUrl: string;
- method: "POST" | "GET";
- headers: Array<{
- key: string;
- value: string;
- }>;
- body: Array<{
- key: string;
- value: string;
- }>;
-}
-
-/**
- * @interface Option
- * @description 签名板完整配置项
- */
-export interface Option {
- /** 画笔颜色 */ penColor: string;
- /** 最小线宽 */
- minWidth: number;
- /** 最大线宽 */
- maxWidth?: number;
- /** 点大小 */
- dotSize?: number;
- /** 速度过滤权重 */
- velocityFilterWeight: number;
- /** 最小距离 */
- minDistance: number;
- /** 背景颜色 */
- backgroundColor: string;
- /** 节流时间 */
- throttle: number;
- /** 操作控制配置 */
- actionControls: ActionControlsConfig;
- /** 导出类型 */
- exportType: "systemInterface" | "customInterface";
- /** 配置控制配置 */
- configControls: ConfigControlsConfig;
- /** 导出配置 */
- exportConfig: ExportConfig;
-}
-
-/**
- * @function throttle
- * @description 函数节流,限制函数的执行频率
- * @param {Function} fn - 要节流的函数
- * @param {number} [wait=250] - 节流等待时间(毫秒)
- * @returns {Function} 节流后的函数
- */
-export declare function throttle(fn: (...args: any[]) => any, wait?: number): (this: any, ...args: any[]) => any;
-
-export interface Data {
- penWidth: number;
- dotSize: number;
-}
-
-export interface DataChart {
- penWidth: number;
-}
diff --git a/packages/material/src/components/ScreenwrightExhibitComponent/ftSignaturePad/useSignature.ts b/packages/material/src/components/ScreenwrightExhibitComponent/ftSignaturePad/useSignature.ts
deleted file mode 100644
index d0ff8c49..00000000
--- a/packages/material/src/components/ScreenwrightExhibitComponent/ftSignaturePad/useSignature.ts
+++ /dev/null
@@ -1,442 +0,0 @@
-import {
- BaseName,
- request,
- setMinioUrl,
- useBaseData,
-} from "@screenwright/composables";
-import type { ComponentType } from "@screenwright/types";
-import axios from "axios";
-import { ElMessage } from "element-plus";
-import { computed, ref, shallowRef } from "vue";
-
-import type { AdvanceSignaturePad } from "./AdvanceSignaturePad";
-
-interface ExportConfig {
- apiUrl: string;
- method: "POST" | "GET" | "PUT" | "DELETE";
- headers: Array<{ key: string; value: string }>;
- body: Array<{ key: string; value: string }>;
-}
-
-interface ActionControls {
- export: boolean;
- clear: boolean;
- undo: boolean;
- redo: boolean;
-}
-
-interface ConfigControls {
- penColor: boolean;
- backgroundColor: boolean;
- lineWidth: boolean;
-}
-
-interface SignatureOptions {
- scale: number;
- throttle: number;
- minWidth: number;
- dotSize: number;
- penColor: string;
- velocityFilterWeight: number;
- minDistance: number;
- backgroundColor: string;
- actionControls: ActionControls;
- configControls: ConfigControls;
- exportType: "systemInterface" | "base64" | "blob";
- exportConfig: ExportConfig;
- maxWidth?: number;
-}
-
-export const useSignature = (options: ComponentType) => {
- const { width, height, option, dataChart, encodes, handleEncode } =
- useBaseData(options);
-
- const containerWidth = ref(0);
- const containerHeight = ref(0);
- const initWidth = ref(0);
- const initHeight = ref(0);
- const advanceSignaturePad = shallowRef(null);
- const screenScale = ref(1);
- const container = ref(null);
- const encodeStatus = ref(false);
- const maxWidth = ref(0);
- const canUndo = ref(false);
- const canRedo = ref(false);
- const resizeObserver = ref(null);
- const defaultOptions = ref({
- scale: 1,
- throttle: 10,
- minWidth: 3,
- dotSize: 5,
- penColor: "#642cff",
- velocityFilterWeight: 0.2,
- minDistance: 5,
- backgroundColor: "rgba(0,0,0,0)",
- actionControls: {
- export: true,
- clear: true,
- undo: true,
- redo: true,
- },
- configControls: {
- penColor: true,
- backgroundColor: true,
- lineWidth: true,
- },
- exportType: "systemInterface",
- exportConfig: {
- apiUrl: "",
- method: "POST",
- headers: [],
- body: [],
- },
- });
-
- const componentOptions = computed(() => {
- return {
- ...defaultOptions.value,
- scale: screenScale.value,
- maxWidth: maxWidth.value,
- };
- });
-
- const maxWidthConfig = computed(() => {
- if (dataChart.value && dataChart.value.length > 0) {
- return dataChart.value[0].penWidth;
- } else {
- return null;
- }
- });
-
- const actionControlsConfig = computed(() => {
- return option.value && option.value.actionControls
- ? option.value.actionControls
- : {
- export: true,
- clear: true,
- undo: true,
- redo: true,
- };
- });
-
- const configControlsConfig = computed(() => {
- return option.value && option.value.configControls
- ? option.value.configControls
- : {
- penColor: true,
- backgroundColor: true,
- lineWidth: true,
- pointSize: true,
- };
- });
-
- const showOperationControls = computed(() => {
- const controls = actionControlsConfig.value;
- return controls.export || controls.clear || controls.undo || controls.redo;
- });
-
- const showConfigControls = computed(() => {
- const controls = configControlsConfig.value;
- return controls.penColor || controls.backgroundColor || controls.lineWidth;
- });
-
- // const canUndo = computed(() => {
- // console.log(advanceSignaturePad.value, "advanceSignaturePad.value")
- // // return advanceSignaturePad.value ? advanceSignaturePad.value.canUndo() : false
- // })
- // const canRedo = computed(() => {
- // console.log(advanceSignaturePad.value, "advanceSignaturePad.value")
- // return advanceSignaturePad.value ? advanceSignaturePad.value.canRedo() : false
- // })
- const renderWidth = computed(() => {
- return containerWidth.value > 0 ? containerWidth.value : initWidth.value;
- });
- const renderHeight = computed(() => {
- return containerHeight.value > 0 ? containerHeight.value : initHeight.value;
- });
-
- const getScaleValueFromContent = (content: HTMLDivElement) => {
- if (content) {
- // @ts-ignore
- const transformValue = /** @type {string} */ content.style.transform;
- const scaleMatch = transformValue.match(/scale\(([^)]+)\)/);
- return scaleMatch ? parseFloat(scaleMatch[1]) : 1;
- }
- return 1;
- };
- // 清除画布
- const clearCanvas = () => {
- if (!advanceSignaturePad.value) {
- return;
- }
- // Clear both the signature data and any loaded image
- advanceSignaturePad.value.clear();
- // Also clear the stored image URL and properties
- if (advanceSignaturePad.value.currentImageUrl) {
- advanceSignaturePad.value.currentImageUrl = null;
- advanceSignaturePad.value.currentImageProperties = null;
- }
- };
-
- const undoOperation = () => {
- if (!advanceSignaturePad.value) {
- return;
- }
- advanceSignaturePad.value.undo();
- canUndo.value = advanceSignaturePad.value
- ? advanceSignaturePad.value.canUndo()
- : false;
- canRedo.value = advanceSignaturePad.value
- ? advanceSignaturePad.value.canRedo()
- : false;
- };
-
- const redoOperation = () => {
- if (!advanceSignaturePad.value) {
- return;
- }
- advanceSignaturePad.value.redo();
- canUndo.value = advanceSignaturePad.value
- ? advanceSignaturePad.value.canUndo()
- : false;
- canRedo.value = advanceSignaturePad.value
- ? advanceSignaturePad.value.canRedo()
- : false;
- };
-
- const onTranslateImage = (info: any) => {
- const fullImageUrl = setMinioUrl(info.imageUrl);
- if (!advanceSignaturePad.value || !advanceSignaturePad.value.signaturePad) {
- return;
- }
-
- // Store the image URL for potential redraws (e.g., after canvas resize)
- advanceSignaturePad.value.currentImageUrl = fullImageUrl;
-
- // Create a new image element
- const image = new Image();
- // 设置跨域属性以避免canvas被污染
- image.crossOrigin = "anonymous";
-
- image.onload = () => {
- if (
- !advanceSignaturePad.value ||
- !advanceSignaturePad.value.signaturePad
- ) {
- return;
- }
-
- const canvas = advanceSignaturePad.value.signaturePad.canvas;
- const ctx = advanceSignaturePad.value.signaturePad._ctx;
- if (!ctx) {
- return;
- }
-
- // Calculate positions to center the image
- // const scale = componentOptions.value.scale || 1
- const maxWidth = canvas.width * 0.8; // Use 80% of canvas width
- const maxHeight = canvas.height * 0.8; // Use 80% of canvas height
-
- // Calculate scaled dimensions while maintaining aspect ratio
- let width = image.width;
- let height = image.height;
-
- if (width > maxWidth || height > maxHeight) {
- const ratio = Math.min(maxWidth / width, maxHeight / height);
- width *= ratio;
- height *= ratio;
- }
-
- // Calculate position to center the image
- const x = (canvas.width - width) / 2;
- const y = (canvas.height - height) / 2;
-
- // Save current data if there's any drawing
- // This preserves existing drawings and undo history
- const currentData = advanceSignaturePad.value.toData();
-
- // Draw background if set
- ctx.fillStyle = componentOptions.value.backgroundColor;
- ctx.fillRect(0, 0, canvas.width, canvas.height);
-
- // Draw the image centered
- ctx.drawImage(image, x, y, width, height);
-
- // Store image properties for redrawing
- // The image itself isn't added to the undo history
- advanceSignaturePad.value.currentImageProperties = {
- url: fullImageUrl,
- x,
- y,
- width,
- height,
- crossOrigin: "anonymous", // 保存crossOrigin属性
- };
-
- // Restore any drawing data without affecting undo history
- if (currentData.length > 0) {
- // Use fromData with clear:false to avoid affecting the undo stack
- advanceSignaturePad.value.fromData(currentData, { clear: false });
- }
-
- // Set isEmpty to false since we have an image
- if (advanceSignaturePad.value.signaturePad) {
- advanceSignaturePad.value.signaturePad._isEmpty = false;
- }
- };
-
- // 设置onerror处理,在加载失败时尝试不使用跨域加载
- image.onerror = () => {
- console.warn("Failed to load image with CORS. Attempting without CORS.");
- const fallbackImage = new Image();
- fallbackImage.onload = image.onload;
- fallbackImage.src = fullImageUrl;
- };
-
- image.src = fullImageUrl;
- };
-
- const processExportedImage = async (dataUrl: string) => {
- if (!advanceSignaturePad.value) {
- return;
- }
-
- const base64Data = dataUrl.split(",")[1];
- const binaryString = atob(base64Data);
- const bytes = new Uint8Array(binaryString.length);
- for (let i = 0; i < binaryString.length; i++) {
- bytes[i] = binaryString.charCodeAt(i);
- }
-
- // Create a blob and then a file from the binary data
- const blob = new Blob([bytes], { type: "image/png" });
- const file = new File(
- [blob],
- `${Date.now() + "-" + options.id}-signature.png`,
- { type: "image/png" },
- );
- if (encodes.value.length === 0) {
- advanceSignaturePad.value.clear();
- ElMessage.warning("签名板未绑定弹幕组件,无法导出签名");
- return;
- }
- const simpleBarrageId = parseInt(
- encodes.value[0].actions[0].component[0].replace(
- /\$component\(|(\))/g,
- "",
- ),
- );
-
- const formData = new FormData();
-
- // 系统接口
- if (componentOptions.value.exportType === "systemInterface") {
- /**
- * @type {SignaturePadSaveObj}
- */
- const dataToAppend = {
- name: `${Date.now() + "-" + options.id}-signature.png`,
- layerScrollId: simpleBarrageId,
- layerSignId: options.id,
- image: file,
- };
-
- Object.entries(dataToAppend).forEach(([key, value]) => {
- console.log(key, value);
-
- if (typeof value === "number") {
- formData.append(key, value.toString());
- } else {
- formData.append(key, value);
- }
- });
- try {
- const res: any = await request({
- url: `${BaseName.System}/sign/save`,
- method: "post",
- data: formData,
- });
-
- handleEncode({ signatureId: options.id, imageUrl: res.result.signUrl });
-
- advanceSignaturePad.value.clear();
- } catch (error) {
- console.error(error);
- }
-
- return;
- }
-
- // 自定义接口
- if (option.value.exportType === "customInterface") {
- const { apiUrl, method, headers, body } = option.value.exportConfig;
-
- body.forEach(({ key, value }: any) => {
- if (key === "") {
- return;
- }
-
- if (value === "${file}") {
- formData.append(key, file);
- } else {
- formData.append(key, value);
- }
- });
-
- try {
- const {
- data: {
- result: { signUrl },
- },
- } = await axios({
- headers: headers.map(({ key, value }: any) => ({ [key]: value })),
- url: apiUrl,
- method,
- data: formData,
- });
-
- handleEncode({ signatureId: options.id, imageUrl: signUrl });
- } catch (error) {
- console.error(error);
- }
- }
- };
-
- return {
- // 变量
- containerWidth,
- containerHeight,
- initWidth,
- initHeight,
- advanceSignaturePad,
- screenScale,
- container,
- encodeStatus,
- maxWidth,
- resizeObserver,
- defaultOptions,
- // 计算属性
- width,
- height,
- option,
- dataChart,
- componentOptions,
- maxWidthConfig,
- actionControlsConfig,
- configControlsConfig,
- showOperationControls,
- showConfigControls,
- canUndo,
- canRedo,
- renderWidth,
- renderHeight,
- encodes,
- getScaleValueFromContent,
- clearCanvas,
- undoOperation,
- redoOperation,
- processExportedImage,
- onTranslateImage,
- handleEncode,
- };
-};
diff --git a/packages/material/src/components/ScreenwrightExhibitComponent/index.ts b/packages/material/src/components/ScreenwrightExhibitComponent/index.ts
index 434cb1ed..2abe947e 100644
--- a/packages/material/src/components/ScreenwrightExhibitComponent/index.ts
+++ b/packages/material/src/components/ScreenwrightExhibitComponent/index.ts
@@ -1,22 +1,16 @@
import { ExhibitEnum } from "@screenwright/types";
import type { Component } from "vue";
-import ftFilter from "./ftFilter/index.vue";
-import ftParticles from "./ftParticles/index.vue";
-import ftSignaturePad from "./ftSignaturePad/index.vue";
+import swFilter from "./swFilter/index.vue";
+import swParticles from "./swParticles/index.vue";
import imagesList3d from "./imagesList3d/index.vue";
-import pdfjsViewer from "./pdfjsViewer/index.vue";
import ringIndicator3d from "./ringIndicator3d/index.vue";
import ringIndicator3dNew from "./ringIndicator3dNew/index.vue";
-import verticalCard from "./verticalCard/index.vue";
export const ScreenwrightExhibitComponentMap: Record = {
[ExhibitEnum.RingIndicator3d]: ringIndicator3d,
[ExhibitEnum.ringIndicator3dNew]: ringIndicator3dNew,
[ExhibitEnum.ImagesList3d]: imagesList3d,
- [ExhibitEnum.PdfjsViewer]: pdfjsViewer,
- [ExhibitEnum.FtParticles]: ftParticles,
- [ExhibitEnum.FtSignaturePad]: ftSignaturePad,
- [ExhibitEnum.FtFilter]: ftFilter,
- [ExhibitEnum.verticalCard]: verticalCard,
+ [ExhibitEnum.SwParticles]: swParticles,
+ [ExhibitEnum.SwFilter]: swFilter,
};
diff --git a/packages/material/src/components/ScreenwrightExhibitComponent/pdfjsViewer/index.vue b/packages/material/src/components/ScreenwrightExhibitComponent/pdfjsViewer/index.vue
deleted file mode 100644
index da778378..00000000
--- a/packages/material/src/components/ScreenwrightExhibitComponent/pdfjsViewer/index.vue
+++ /dev/null
@@ -1,114 +0,0 @@
-
-
-
-
-
-
- / {{ total }}
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/packages/material/src/components/ScreenwrightExhibitComponent/pdfjsViewer/usePdfViewer.ts b/packages/material/src/components/ScreenwrightExhibitComponent/pdfjsViewer/usePdfViewer.ts
deleted file mode 100644
index 5a0fa744..00000000
--- a/packages/material/src/components/ScreenwrightExhibitComponent/pdfjsViewer/usePdfViewer.ts
+++ /dev/null
@@ -1,514 +0,0 @@
-import { useBaseData } from "@screenwright/composables";
-import { setMinioUrl } from "@screenwright/composables";
-import type { ComponentType } from "@screenwright/types";
-import type { CSSProperties } from "vue";
-import { computed, nextTick, onMounted, ref, watch } from "vue";
-
-export const usePdfViewer = (options: ComponentType) => {
- const { width, height, option, dataChart } = useBaseData(options);
-
- const total = ref(1);
- const current = ref(1);
- const zoomScale = ref(1);
- const viewerAll = ref(null);
- const viewer = ref(null);
- const pdfCanvas = ref(null);
- let pdfDoc: any = null;
- let loadSeq = 0;
- let renderTask: { cancel: () => void; promise: Promise } | null = null;
- let suppressPageWatch = false;
-
- const viewerBackground = computed(() => {
- return {
- backgroundColor: option.value.backgroundColor,
- };
- });
-
- const pageStyle = computed(() => {
- return {
- color: option.value.fontColor,
- fontSize: `${option.value.fontSize || 16}px`,
- fontWeight: option.value.fontWeight,
- fontFamily: option.value.fontFamily,
- fontStyle: option.value.fontStyle,
- transform: `translate(${option.value.textTranslateX || 0}px, ${option.value.textTranslateY || 0}px)`,
- backgroundColor: option.value.backgroundColor,
- };
- });
-
- const viewBoxStyle = computed(() => {
- return {
- width: width.value + "px",
- height: height.value + "px",
- overflow: "auto",
- };
- });
-
- const clearCanvas = async () => {
- await nextTick();
- if (viewerAll.value === null || pdfCanvas.value === null) {
- return;
- }
- if (option.value.showAll) {
- viewerAll.value.replaceChildren();
- } else {
- const ctx = pdfCanvas.value.getContext("2d");
- if (ctx === null) {
- return;
- }
- ctx.clearRect(0, 0, width.value, height.value);
- }
- };
-
- const cancelRenderTask = () => {
- if (renderTask) {
- renderTask.cancel();
- renderTask = null;
- }
- };
-
- const renderPages = async () => {
- if (!pdfDoc) {
- return;
- }
-
- cancelRenderTask();
-
- if (option.value.showAll) {
- if (viewerAll.value === null) {
- return;
- }
- viewerAll.value.replaceChildren();
- const len = [...Array(total.value).keys()];
- for (const index of len) {
- const canvas = document.createElement("canvas");
- viewerAll.value.appendChild(canvas);
- const currentPage = index + 1;
- const page = await pdfDoc.getPage(currentPage);
- const viewport = page.getViewport({ scale: 1 });
- // 设置缩放比例 - 宽度为准
- zoomScale.value = width.value / viewport.width;
- const viewportScale = page.getViewport({ scale: zoomScale.value });
- const context = canvas.getContext("2d");
- canvas.id = "page_" + currentPage;
- canvas.style.marginBottom = "10px";
- canvas.width = viewportScale.width;
- canvas.height = viewportScale.height;
-
- const renderContext = {
- canvasContext: context,
- viewport: viewportScale,
- };
- await page.render(renderContext).promise;
- }
- return;
- }
-
- if (pdfCanvas.value === null) {
- return;
- }
-
- const page = await pdfDoc.getPage(current.value);
- const viewport = page.getViewport({ scale: 1 });
- // 设置缩放比例 - 宽度为准
- zoomScale.value = width.value / viewport.width;
- const viewportScale = page.getViewport({ scale: zoomScale.value });
- const canvas = pdfCanvas.value;
- const context = canvas.getContext("2d");
- if (!context) {
- return;
- }
-
- canvas.width = viewportScale.width;
- canvas.height = viewportScale.height;
-
- const renderContext = {
- canvasContext: context,
- viewport: viewportScale,
- };
- const task = page.render(renderContext);
- renderTask = task;
- await task.promise;
- renderTask = null;
- };
-
- const setScrollPage = async () => {
- await nextTick();
- if (viewerAll.value === null) {
- return;
- }
- const scrollPage = viewerAll.value.querySelector("#page_" + current.value);
- if (scrollPage === null) {
- return;
- }
- scrollPage.scrollIntoView({
- behavior: "smooth",
- block: "nearest",
- inline: "nearest",
- });
- };
-
- /** dataChart 可能是数组 [{ url }] 或直接对象 { url } */
- const resolveDataChartUrl = (chart: unknown): string | undefined => {
- if (chart == null) {
- return undefined;
- }
- if (Array.isArray(chart)) {
- const first = chart[0];
- if (first != null && typeof first === "object" && "url" in first) {
- const url = (first as { url?: unknown }).url;
- return typeof url === "string" ? url : undefined;
- }
- return undefined;
- }
- if (typeof chart === "object" && "url" in chart) {
- const url = (chart as { url?: unknown }).url;
- return typeof url === "string" ? url : undefined;
- }
- return undefined;
- };
-
- const loadPdf = async () => {
- const seq = ++loadSeq;
- const dataUrl = resolveDataChartUrl(dataChart.value);
- const hasDataUrl = Boolean(dataUrl);
- const PDFURL = hasDataUrl
- ? setMinioUrl(dataUrl!)
- : setMinioUrl(option.value.pdfUrl);
-
- if (!PDFURL) {
- cancelRenderTask();
- pdfDoc = null;
- await clearCanvas();
- return;
- }
-
- const pdfjsLib = (window as any).pdfjsLib;
- if (!pdfjsLib) {
- return;
- }
-
- try {
- cancelRenderTask();
- const loadingTask = pdfjsLib.getDocument(PDFURL);
- const doc = await loadingTask.promise;
- if (seq !== loadSeq) {
- return;
- }
-
- pdfDoc = doc;
- total.value = pdfDoc.numPages || 0;
-
- suppressPageWatch = true;
- if (option.value.current <= total.value) {
- current.value = option.value.current || 1;
- } else {
- current.value = 1;
- }
- suppressPageWatch = false;
-
- await renderPages();
- } catch (error) {
- if (seq === loadSeq) {
- console.error("PDF加载失败:", error);
- }
- }
- };
-
- const handlePageChange = async (currentPage: number) => {
- current.value = currentPage;
- await renderPages();
- setScrollPage();
- };
-
- const changePage = (type: string, value?: number) => {
- switch (type) {
- case "prev":
- if (current.value > 1) {
- current.value--;
- }
- break;
- case "next":
- if (current.value < total.value) {
- current.value++;
- }
- break;
- case "zoomOut":
- if (option.value.zoomValue < 0) {
- return;
- }
- option.value.zoomValue = parseFloat(
- (option.value.zoomValue - 0.2).toFixed(1),
- );
- break;
- case "zoomIn":
- option.value.zoomValue = parseFloat(
- (option.value.zoomValue + 0.2).toFixed(1),
- );
- break;
- default:
- if (value && value <= total.value) {
- current.value = value;
- }
- break;
- }
- };
-
- // 监听 showAll 变化
- watch(
- () => option.value.showAll,
- () => {
- renderPages();
- },
- );
-
- // 监听配置中的 current 变化
- watch(
- () => option.value.current,
- () => {
- if (option.value.current <= total.value) {
- current.value = option.value.current;
- renderPages();
- setScrollPage();
- }
- },
- );
-
- // 监听当前页码变化
- watch(
- () => current.value,
- (v) => {
- if (suppressPageWatch) {
- return;
- }
- if (v > total.value) {
- current.value = total.value;
- return;
- }
- if (option.value.showAll) {
- setScrollPage();
- } else {
- void renderPages();
- }
- },
- );
-
- // 监听 PDF URL 变化
- watch(
- () => option.value.pdfUrl,
- (v) => {
- if (resolveDataChartUrl(dataChart.value)) {
- return;
- }
- suppressPageWatch = true;
- current.value = 1;
- suppressPageWatch = false;
- if (v) {
- void loadPdf();
- } else {
- void clearCanvas();
- }
- },
- );
-
- // 监听宽度变化
- watch(
- () => width.value,
- () => {
- renderPages();
- },
- );
-
- // 监听高度变化
- watch(
- () => height.value,
- () => {
- renderPages();
- },
- );
-
- // 仅监听 dataChart 中的 url 变化,避免无关数据变动触发重复渲染
- watch(
- () => resolveDataChartUrl(dataChart.value),
- (url, oldUrl) => {
- if (url === oldUrl) {
- return;
- }
- suppressPageWatch = true;
- current.value = 1;
- suppressPageWatch = false;
- void loadPdf();
- },
- );
-
- // 初始化加载
- onMounted(() => {
- if ((window as any).pdfjsLib) {
- loadPdf();
- }
- });
-
- return {
- width,
- height,
- current,
- total,
- zoomScale,
- viewerBackground,
- option,
- pageStyle,
- viewBoxStyle,
- viewerAll,
- viewer,
- pdfCanvas,
- changePage,
- handlePageChange,
- loadPdf,
- renderPages,
- clearCanvas,
- setScrollPage,
- };
-};
-
-/**
- * 从 PDF 中获取指定页面的图片 URL
- * @param pdfUrl - PDF 文件 URL
- * @param pageNumber - 页码(从 1 开始)
- * @param options - 可选配置
- * @returns Promise 返回图片的 Data URL 或 Blob URL
- */
-export const getPdfPageAsImage = async (
- pdfUrl: string,
- pageNumber: number,
- options?: {
- scale?: number; // 缩放比例,默认为 1
- imageType?: "png" | "jpeg"; // 图片类型,默认为 png
- quality?: number; // 图片质量(仅 jpeg),0-1,默认 0.92
- outputType?: "dataUrl" | "blobUrl"; // 输出类型,默认 dataUrl
- maxWidth?: number; // 最大宽度,会自动计算 scale
- },
-): Promise => {
- const {
- scale = 1,
- imageType = "png",
- quality = 0.92,
- outputType = "dataUrl",
- maxWidth,
- } = options || {};
-
- // 确保 PDF.js 已加载
- const pdfjsLib = (window as any).pdfjsLib;
- if (!pdfjsLib) {
- throw new Error("PDF.js 未加载,请确保已引入 PDF.js 库");
- }
-
- try {
- // 处理 URL
- const url = setMinioUrl(pdfUrl);
-
- // 加载 PDF 文档
- const loadingTask = pdfjsLib.getDocument(url);
- const pdfDocument = await loadingTask.promise;
-
- // 检查页码是否有效
- if (pageNumber < 1 || pageNumber > pdfDocument.numPages) {
- throw new Error(
- `页码 ${pageNumber} 无效,PDF 共有 ${pdfDocument.numPages} 页`,
- );
- }
-
- // 获取指定页面
- const page = await pdfDocument.getPage(pageNumber);
-
- // 获取视口
- const viewport = page.getViewport({ scale: 1 });
-
- // 计算实际缩放比例
- let actualScale = scale;
- if (maxWidth && viewport.width * scale > maxWidth) {
- actualScale = maxWidth / viewport.width;
- }
-
- const scaledViewport = page.getViewport({ scale: actualScale });
-
- // 创建临时 canvas
- const canvas = document.createElement("canvas");
- const context = canvas.getContext("2d");
-
- if (!context) {
- throw new Error("无法创建 Canvas 上下文");
- }
-
- canvas.width = scaledViewport.width;
- canvas.height = scaledViewport.height;
-
- // 渲染页面
- const renderContext = {
- canvasContext: context,
- viewport: scaledViewport,
- };
-
- await page.render(renderContext).promise;
-
- // 转换为图片 URL
- if (outputType === "blobUrl") {
- return new Promise((resolve, reject) => {
- canvas.toBlob(
- (blob) => {
- if (blob) {
- const blobUrl = URL.createObjectURL(blob);
- resolve(blobUrl);
- } else {
- reject(new Error("无法创建 Blob"));
- }
- },
- `image/${imageType}`,
- imageType === "jpeg" ? quality : undefined,
- );
- });
- } else {
- // dataUrl
- const mimeType = imageType === "jpeg" ? "image/jpeg" : "image/png";
- return canvas.toDataURL(
- mimeType,
- imageType === "jpeg" ? quality : undefined,
- );
- }
- } catch (error) {
- console.error("获取 PDF 页面图片失败:", error);
- throw error;
- }
-};
-
-/**
- * 批量获取 PDF 多个页面的图片 URL
- * @param pdfUrl - PDF 文件 URL
- * @param pageNumbers - 页码数组(从 1 开始)
- * @param options - 可选配置
- * @returns Promise 返回图片 URL 数组
- */
-export const getPdfPagesAsImages = async (
- pdfUrl: string,
- pageNumbers: number[],
- options?: {
- scale?: number;
- imageType?: "png" | "jpeg";
- quality?: number;
- outputType?: "dataUrl" | "blobUrl";
- maxWidth?: number;
- },
-): Promise => {
- const results: string[] = [];
-
- for (const pageNumber of pageNumbers) {
- try {
- const imageUrl = await getPdfPageAsImage(pdfUrl, pageNumber, options);
- results.push(imageUrl);
- } catch (error) {
- console.error(`获取第 ${pageNumber} 页失败:`, error);
- results.push(""); // 失败时推入空字符串
- }
- }
-
- return results;
-};
diff --git a/packages/material/src/components/ScreenwrightExhibitComponent/ftFilter/index.vue b/packages/material/src/components/ScreenwrightExhibitComponent/swFilter/index.vue
similarity index 100%
rename from packages/material/src/components/ScreenwrightExhibitComponent/ftFilter/index.vue
rename to packages/material/src/components/ScreenwrightExhibitComponent/swFilter/index.vue
diff --git a/packages/material/src/components/ScreenwrightExhibitComponent/ftParticles/index.vue b/packages/material/src/components/ScreenwrightExhibitComponent/swParticles/index.vue
similarity index 96%
rename from packages/material/src/components/ScreenwrightExhibitComponent/ftParticles/index.vue
rename to packages/material/src/components/ScreenwrightExhibitComponent/swParticles/index.vue
index 798cc135..6b267fa7 100644
--- a/packages/material/src/components/ScreenwrightExhibitComponent/ftParticles/index.vue
+++ b/packages/material/src/components/ScreenwrightExhibitComponent/swParticles/index.vue
@@ -41,7 +41,7 @@ watch(
onMounted(async () => {
// 设置事件监听
addEvent({
- [`${ExhibitEnum.FtParticles}-${props.element.id}`]: {
+ [`${ExhibitEnum.SwParticles}-${props.element.id}`]: {
particlesReStart: () => {
if (particlesInstance.value) {
initParticles();
diff --git a/packages/material/src/components/ScreenwrightExhibitComponent/ftParticles/particles.ts b/packages/material/src/components/ScreenwrightExhibitComponent/swParticles/particles.ts
similarity index 100%
rename from packages/material/src/components/ScreenwrightExhibitComponent/ftParticles/particles.ts
rename to packages/material/src/components/ScreenwrightExhibitComponent/swParticles/particles.ts
diff --git a/packages/material/src/components/ScreenwrightExhibitComponent/ftParticles/useParticles.ts b/packages/material/src/components/ScreenwrightExhibitComponent/swParticles/useParticles.ts
similarity index 100%
rename from packages/material/src/components/ScreenwrightExhibitComponent/ftParticles/useParticles.ts
rename to packages/material/src/components/ScreenwrightExhibitComponent/swParticles/useParticles.ts
diff --git a/packages/material/src/components/ScreenwrightExhibitComponent/utils/markdownView.vue b/packages/material/src/components/ScreenwrightExhibitComponent/utils/markdownView.vue
index 78fb2946..f9ef0d0b 100644
--- a/packages/material/src/components/ScreenwrightExhibitComponent/utils/markdownView.vue
+++ b/packages/material/src/components/ScreenwrightExhibitComponent/utils/markdownView.vue
@@ -11,6 +11,7 @@
-
-
diff --git a/packages/material/src/components/ScreenwrightExhibitComponent/verticalCard/components/CanvasImg.vue b/packages/material/src/components/ScreenwrightExhibitComponent/verticalCard/components/CanvasImg.vue
deleted file mode 100644
index 25af9804..00000000
--- a/packages/material/src/components/ScreenwrightExhibitComponent/verticalCard/components/CanvasImg.vue
+++ /dev/null
@@ -1,270 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/packages/material/src/components/ScreenwrightExhibitComponent/verticalCard/components/Carousel3d.vue b/packages/material/src/components/ScreenwrightExhibitComponent/verticalCard/components/Carousel3d.vue
deleted file mode 100644
index 39817333..00000000
--- a/packages/material/src/components/ScreenwrightExhibitComponent/verticalCard/components/Carousel3d.vue
+++ /dev/null
@@ -1,500 +0,0 @@
-
-
-
-
-
-
-
diff --git a/packages/material/src/components/ScreenwrightExhibitComponent/verticalCard/components/Controls.vue b/packages/material/src/components/ScreenwrightExhibitComponent/verticalCard/components/Controls.vue
deleted file mode 100644
index 2f399a2f..00000000
--- a/packages/material/src/components/ScreenwrightExhibitComponent/verticalCard/components/Controls.vue
+++ /dev/null
@@ -1,132 +0,0 @@
-
-
-
-
-
-
-
diff --git a/packages/material/src/components/ScreenwrightExhibitComponent/verticalCard/components/Slide.vue b/packages/material/src/components/ScreenwrightExhibitComponent/verticalCard/components/Slide.vue
deleted file mode 100644
index 9590cc13..00000000
--- a/packages/material/src/components/ScreenwrightExhibitComponent/verticalCard/components/Slide.vue
+++ /dev/null
@@ -1,164 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/packages/material/src/components/ScreenwrightExhibitComponent/verticalCard/components/SpinnerItem.vue b/packages/material/src/components/ScreenwrightExhibitComponent/verticalCard/components/SpinnerItem.vue
deleted file mode 100644
index 50f475c0..00000000
--- a/packages/material/src/components/ScreenwrightExhibitComponent/verticalCard/components/SpinnerItem.vue
+++ /dev/null
@@ -1,127 +0,0 @@
-
-
-
-
-
-
-
diff --git a/packages/material/src/components/ScreenwrightExhibitComponent/verticalCard/components/autoplay.js b/packages/material/src/components/ScreenwrightExhibitComponent/verticalCard/components/autoplay.js
deleted file mode 100644
index 94d2c18a..00000000
--- a/packages/material/src/components/ScreenwrightExhibitComponent/verticalCard/components/autoplay.js
+++ /dev/null
@@ -1,66 +0,0 @@
-const autoplay = {
- props: {
- /**
- * Flag to enable autoplay
- */
- autoplay: {
- type: Boolean,
- default: false
- },
- /**
- * Time elapsed before next slide
- */
- autoplayTimeout: {
- type: Number,
- default: 2000
- },
- /**
- * Flag to pause autoplay on hover
- */
- autoplayHoverPause: {
- type: Boolean,
- default: true
- }
- },
- data() {
- return {
- autoplayInterval: null
- };
- },
- destroyed() {
- if (!this.process_server) {
- this.pauseAutoplay();
-
- this.$el.removeEventListener("mouseenter", this.pauseAutoplay);
- this.$el.removeEventListener("mouseleave", this.startAutoplay);
- }
- },
- methods: {
- pauseAutoplay() {
- if (this.autoplayInterval) {
- this.autoplayInterval = clearInterval(this.autoplayInterval);
- }
- },
- startAutoplay() {
- if (this.autoplay) {
- this.autoplayInterval = setInterval(() => {
- if (this.dir === "ltr") {
- this.goPrev();
- } else {
- this.goNext();
- }
- }, this.autoplayTimeout);
- }
- }
- },
- mounted() {
- if (!this.process_server && this.autoplayHoverPause) {
- this.$el.addEventListener("mouseenter", this.pauseAutoplay);
- this.$el.addEventListener("mouseleave", this.startAutoplay);
-
- this.startAutoplay();
- }
- }
-};
-
-export default autoplay;
diff --git a/packages/material/src/components/ScreenwrightExhibitComponent/verticalCard/index.vue b/packages/material/src/components/ScreenwrightExhibitComponent/verticalCard/index.vue
deleted file mode 100644
index f635a8fc..00000000
--- a/packages/material/src/components/ScreenwrightExhibitComponent/verticalCard/index.vue
+++ /dev/null
@@ -1,431 +0,0 @@
-
-
-
-
-
-
diff --git a/packages/material/src/components/ScreenwrightExhibitComponent/verticalCard/useAnimationDom.ts b/packages/material/src/components/ScreenwrightExhibitComponent/verticalCard/useAnimationDom.ts
deleted file mode 100644
index 4b46be47..00000000
--- a/packages/material/src/components/ScreenwrightExhibitComponent/verticalCard/useAnimationDom.ts
+++ /dev/null
@@ -1,166 +0,0 @@
-import { useEvent } from "@screenwright/composables";
-import type { ComponentType } from "@screenwright/types";
-import { EventTypeEnum } from "@screenwright/types";
-import { computed, ref } from "vue";
-
-import { SimpleAnimationController } from "./utils";
-
-export const useAnimationDom = () => {
- const { handleEventAndCallbackEvent } = useEvent();
- const controller = new SimpleAnimationController();
- const isDownAndScaleStep = ref([
- false, // 下滑
- ]);
- const isDownAndScaleComplete = ref([false, false]); // 下滑+展开/收起
- const setIsDownAndScaleStep = () => {
- isDownAndScaleStep.value[0] = false;
- };
- const setIsDownAndScaleComplete = () => {
- isDownAndScaleComplete.value[0] = false;
- };
- const isEndDown = computed(() => {
- return isDownAndScaleStep.value.every((v) => Boolean(v));
- });
- const isDownAndScale = computed(() => {
- return isDownAndScaleComplete.value.every((v) => Boolean(v));
- });
- const downAndScale = (
- el: HTMLElement | null,
- cardItem: any,
- element: ComponentType,
- ) => {
- return new Promise((resolve) => {
- if (!el) {
- resolve(false);
- return;
- }
-
- const animationSequence = [
- { name: "moveDown", wait: 2000 }, // 对应原生第一个动画的wait
- ];
- const animInstance = controller.createSequence(el, animationSequence);
- animInstance.on("moveDown", () => {
- // console.log("✅ 第一阶段(moveDown)完成:下滑更柔和");
- isDownAndScaleStep.value[0] = true;
- handleEventAndCallbackEvent({
- id: element.id,
- triggerType: EventTypeEnum.CardDropEnd,
- events: element.events,
- throwValue: cardItem,
- });
- resolve(true);
- });
- });
- };
-
- const setExpandClip = (
- el: HTMLElement | null,
- cardItem: any,
- element: ComponentType,
- ) => {
- return new Promise((resolve) => {
- if (!el) {
- resolve(false);
- return;
- }
- console.log("✅ 第二阶段(expandClip)开始", el);
- console.log(cardItem, "cardItemcardItemcardItem");
- handleEventAndCallbackEvent({
- id: element.id,
- triggerType: EventTypeEnum.CardBeforeExpand,
- events: element.events,
- throwValue: cardItem,
- });
- const animationSequence = [
- { name: "expandClip", wait: 2000 }, // 对应原生第二个动画的wait
- ];
- isDownAndScaleComplete.value[0] = false;
- const animInstance = controller.createSequence(
- el,
- animationSequence,
- false,
- );
- animInstance.on("expandClip", () => {
- isDownAndScaleComplete.value[0] = true;
- handleEventAndCallbackEvent({
- id: element.id,
- triggerType: EventTypeEnum.CardEndExpand,
- events: element.events,
- throwValue: cardItem,
- });
- resolve(true);
- console.log("✅ 第二阶段(expandClip)完成");
- });
- });
- };
-
- const setShrinkClip = (
- el: HTMLElement | null,
- cardItem: any,
- element: ComponentType,
- ) => {
- return new Promise((resolve) => {
- if (!el) {
- resolve(false);
- return;
- }
- handleEventAndCallbackEvent({
- id: element.id,
- triggerType: EventTypeEnum.CardStartCollapse,
- events: element.events,
- throwValue: cardItem,
- });
- const animationSequence = [
- { name: "shrinkClip", wait: 2000 }, // 对应原生第二个动画的wait
- ];
- const animInstance = controller.createSequence(el, animationSequence);
- isDownAndScaleComplete.value[1] = false;
- animInstance.on("shrinkClip", () => {
- isDownAndScaleComplete.value[1] = true;
- handleEventAndCallbackEvent({
- id: element.id,
- triggerType: EventTypeEnum.CardEndCollapse,
- events: element.events,
- throwValue: cardItem,
- });
- resolve(true);
- console.log("✅ 第三阶段(expandClip)完成");
- });
- });
- };
-
- // const scrollAndScale = (el: HTMLElement | null) => {
- // return new Promise((resolve) => {
- // if (!el) {
- // resolve(false);
- // return;
- // }
- // const animationSequence = [
- // { name: "expandClip", wait: 2000 }, // 对应原生第二个动画的wait
- // { name: "shrinkClip", wait: 0 } // 最后一个动画无需等待
- // ];
- // const animInstance = controller.createSequence(el, animationSequence);
- // animInstance
- // .on("expandClip", () => {
- // isDownAndScaleComplete.value[0] = true;
- // console.log("✅ 第二阶段(expandClip)完成");
- // })
- // .on("shrinkClip", () => {
- // isDownAndScaleComplete.value[1] = true;
- // console.log("✅ 第三阶段(shrinkClip)完成");
- // });
- // });
- // };
- return {
- downAndScale,
- // scrollAndScale,
- setExpandClip,
- setShrinkClip,
- isEndDown,
- isDownAndScale,
- isDownAndScaleStep,
- isDownAndScaleComplete,
- setIsDownAndScaleStep,
- setIsDownAndScaleComplete,
- };
-};
diff --git a/packages/material/src/components/ScreenwrightExhibitComponent/verticalCard/useVerticalCard.ts b/packages/material/src/components/ScreenwrightExhibitComponent/verticalCard/useVerticalCard.ts
deleted file mode 100644
index 2a1cace0..00000000
--- a/packages/material/src/components/ScreenwrightExhibitComponent/verticalCard/useVerticalCard.ts
+++ /dev/null
@@ -1,429 +0,0 @@
-import { useBaseData } from "@screenwright/composables";
-import { setMinioUrl } from "@screenwright/composables";
-import { uuid } from "@screenwright/core";
-import type { ComponentType } from "@screenwright/types";
-import { cloneDeep } from "lodash-es";
-import { computed, nextTick, onUnmounted, ref } from "vue";
-
-import { useAnimationDom } from "./useAnimationDom";
-
-export const useVerticalCard = (element: ComponentType) => {
- const uid = ref(uuid());
- const mouseHover = ref(false);
- const styleList = ref([]);
- const timer = ref(null);
- const activeSpinnerIndex = ref(-1); // 高亮项
- const dataChartItemList = ref([]); // 数据列表
- const reseting = ref(false); // 是否重置中,解决滚动一半时配置改变,标牌会交叉滚动回到初始位置问题
- const clickClockwise = ref(false); // 点击标牌旋转-属性-点击子项切换时是否顺时针转
- const transitionTime = computed(
- () => `${reseting.value ? 0 : option.value.globalConfig.transitionTime}s`,
- );
- const { setExpandClip, setShrinkClip, isDownAndScale } = useAnimationDom();
- const {
- width,
- height,
- dataChart,
- option,
- styleSizeName,
- componentClasses,
- handleEventAndCallbackEvent,
- } = useBaseData(element);
-
- const mouseleave = () => {
- mouseHover.value = false;
- };
- const mouseenter = () => {
- mouseHover.value = true;
- };
-
- const setBaseStyle = () => {
- styleList.value = [];
- const cardList = cloneDeep(option.value.cardList);
- const meanVal =
- cardList
- .map((item: any) => item.defaultObj.width)
- .reduce((a: any, b: any) => a + b, 0) / cardList.length;
- // 如果是偶数,则补一个空值(因为这个布局要奇数展示)
- if (cardList.length % 2 === 0) {
- cardList.push(0);
- }
- for (let index = 0; index < cardList.length; index++) {
- const cardItem = cardList[index];
- if (cardItem === 0) {
- continue;
- }
-
- const key =
- index === activeSpinnerIndex.value ? "activeObj" : "defaultObj";
- let itemObj: Record = {};
- console.log(cardItem[key].width, "cardItem[key].width");
- itemObj = {
- // width: `${cardItem[key].width}px`,
- // height: `${cardItem[key].height}px`,
- width: `600px`,
- height: `300px`,
- markOpacity: `${cardItem[key].markOpacity / 100}`,
- // background: `url(${
- // dataChartItemList.value?.[index]?.url || setMinioUrl(cardItem.backgroundImg)
- // }) 50% 50% / 100% 100% no-repeat`,
- // background: 'url("http://127.0.0.1:60034/version-test/assets/defaultImg/verticalCard2.jpg")',
- titleStyle: {
- show: cardItem[key].titleShow,
- width: `${cardItem[key].titleWidth}px`,
- height: `${cardItem[key].titleHeight}px`,
- fontFamily: `${cardItem[key].titleFontFamily}`,
- fontSize: `${cardItem[key].titleFontSize}px`,
- lineHeight: `${cardItem[key].titleLineHeight}px`,
- letterSpacing: `${cardItem[key].titleLetterSpacing}px`,
- color: `${cardItem[key].titleColor}`,
- fontStyle: `${cardItem[key].titleFontStyle}`,
- fontWeight: `${cardItem[key].titleFontWeight}`,
- left: `${cardItem[key].titleOffsetLeft}px`,
- top: `${cardItem[key].titleOffsetTop}px`,
- },
- textStyle: {
- show: cardItem[key].textShow,
- width: `${cardItem[key].textWidth}px`,
- height: `${cardItem[key].textHeight}px`,
- fontFamily: `${cardItem[key].textFontFamily}`,
- fontSize: `${cardItem[key].textFontSize}px`,
- lineHeight: `${cardItem[key].textLineHeight}px`,
- letterSpacing: `${cardItem[key].textLetterSpacing}px`,
- color: `${cardItem[key].textColor}`,
- fontStyle: `${cardItem[key].textFontStyle}`,
- fontWeight: `${cardItem[key].textFontWeight}`,
- left: `${cardItem[key].textOffsetLeft}px`,
- top: `${cardItem[key].textOffsetTop}px`,
- },
- };
- const midVal = (cardList.length + 1) / 2;
- let angle;
- if (index === 0) {
- angle = 0;
- } else {
- // 右边
- if (index + 1 <= midVal) {
- angle = (90 / (midVal - 1)) * index;
- } else {
- // 左边
- angle = -(90 / (midVal - 1)) * (cardList.length - index);
- }
- }
-
- const cWidth = width.value - meanVal;
- // 中点右边
- const x = (cWidth || 0) * (angle / 90);
- let y;
- if (angle === 0) {
- y = cWidth || 0;
- } else if (angle < 0) {
- y = (cWidth || 0) + x;
- } else {
- y = (cWidth || 0) - x;
- }
- // x会从负边正/从正变负,而y最小是0,此时如果y从0变成别的数,会导致部分卡片会翻转一下
- if (y === 0) {
- y = 1;
- }
- itemObj["transform"] =
- `translate(-50%, -50%) matrix3d(1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, ${x}, 0, ${y}, 1)`;
- itemObj["-moz-transform"] =
- `translate(-50%, -50%) matrix3d(1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, ${x}, 0, ${y}, 1)`;
- itemObj["-webkit-transform"] =
- `translate(-50%, -50%) matrix3d(1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, ${x}, 0, ${y}, 1)`;
- if (cardItem === 0) {
- itemObj.isNullVal = true;
- }
- styleList.value.push(itemObj);
- }
- };
-
- // 旋转动画
- const roateAnimate = (
- isClick = false,
- clockwise = option.value.globalConfig.rotateDirection,
- transformStyleList = styleList.value.map((sl: any) => sl.transform),
- ) => {
- // 点击时跳过
- return new Promise((resolve) => {
- if (!isClick) {
- if (option.value.globalConfig.hoverPause && mouseHover.value) {
- return;
- }
- }
-
- if (!transformStyleList?.length) {
- return;
- }
-
- // 顺时针
- if (clockwise) {
- transformStyleList.unshift(
- transformStyleList[transformStyleList.length - 1],
- );
- transformStyleList.pop();
- if (activeSpinnerIndex.value < transformStyleList.length - 1) {
- activeSpinnerIndex.value++;
- } else {
- activeSpinnerIndex.value = 0;
- }
- } else {
- // 逆时针
- transformStyleList.push(transformStyleList[0]);
- transformStyleList = transformStyleList.slice(1);
- if (activeSpinnerIndex.value > 0) {
- activeSpinnerIndex.value--;
- } else {
- activeSpinnerIndex.value = transformStyleList.length - 1;
- }
- }
-
- // 设置高亮项和其他项样式
- setBaseStyle();
- transformStyleList?.map((ts: any, tsIndex: number) => {
- styleList.value[tsIndex]["transform"] = ts;
- styleList.value[tsIndex]["-moz-transform"] = ts;
- styleList.value[tsIndex]["-webkit-transform"] = ts;
- });
- console.log(activeSpinnerIndex.value, " rotaactiveSpinnerIndex.value");
- resolve(true);
- });
- };
-
- // 控制按钮点击
- const handleControlClick = async (type: string) => {
- let clickIndex = -1;
- switch (type) {
- case "l":
- if (activeSpinnerIndex.value === 0) {
- clickIndex = styleList.value.length - 1;
- } else {
- clickIndex = cloneDeep(activeSpinnerIndex.value - 1);
- }
- break;
- case "r": {
- if (activeSpinnerIndex.value === styleList.value.length - 1) {
- clickIndex = 0;
- } else {
- clickIndex = cloneDeep(activeSpinnerIndex.value + 1);
- }
-
- break;
- }
- }
- if (clickIndex !== -1) {
- console.log("🚀 ~ handleControlClick ~ clickIndex:", clickIndex);
- await handleClickSpinner(null, null, clickIndex);
- }
- };
- // 1. 声明全局防抖变量(放在函数外部,组件/模块作用域)
- let spinTimerList: number[] = []; // 存储旋转动画的定时器ID
- let clickDelayTimer: number | null = null; // 存储2秒等待的定时器ID
- let lastClickIndex: number | null = null; // 记录最后一次点击的索引
- // 新增:存储当前执行中的Promise回调,用于取消之前的Promise
- let currentAnimationPromise: {
- resolve: () => void;
- reject: (reason: any) => void;
- } | null = null;
-
- // 点击轮播项 - 改造为返回Promise的函数
- const handleClickSpinner = async (
- e: Event | null,
- item: any,
- index: number,
- ): Promise => {
- // 封装为Promise,让外部可以监听动画结束
- // eslint-disable-next-line no-async-promise-executor
- return new Promise(async (resolve, reject) => {
- try {
- // 1. 取消之前的所有定时器和未完成的Promise
- spinTimerList.forEach((timer) => clearTimeout(timer));
- spinTimerList = [];
-
- // 清除2秒等待的定时器
- if (clickDelayTimer) {
- clearTimeout(clickDelayTimer);
- clickDelayTimer = null;
- }
-
- // 拒绝之前未完成的Promise
- if (currentAnimationPromise) {
- currentAnimationPromise.reject("新的点击操作取消了之前的动画");
- currentAnimationPromise = null;
- }
-
- // 记录当前Promise的回调,用于后续取消
- currentAnimationPromise = { resolve, reject };
-
- // 记录最后一次点击的索引
- lastClickIndex = index;
-
- // 计算旋转数量
- let spinNum;
- const differenceVal = Math.abs(activeSpinnerIndex.value - index);
- if (differenceVal > styleList.value.length / 2) {
- spinNum = styleList.value.length - differenceVal;
- } else {
- spinNum = differenceVal;
- }
-
- // 执行旋转动画
- if (spinNum) {
- const spinSpeed = option.value.globalConfig.transitionTime / spinNum;
- for (let i = 0; i < spinNum; i++) {
- setTimeout(
- () => {
- roateAnimate(true, clickClockwise.value);
-
- // 如果是最后一次旋转,更新激活索引
- if (i === spinNum - 1) {
- activeSpinnerIndex.value = index;
- }
- },
- spinSpeed * 1000 * i,
- );
- }
- }
-
- // 获取卡片信息
- const cardInfo = dataChartItemList.value.length
- ? dataChartItemList.value?.[index]
- : {
- title: option.value.cardList[index]?.titleContent,
- text: option.value.cardList[index]?.textContent,
- url: option.value.cardList[index]?.backgroundImg,
- };
- console.log("🚀 ~ handleClickSpinner ~ cardInfo:", cardInfo);
-
- await nextTick();
-
- // 2秒延迟后执行展开/收缩动画
- clickDelayTimer = setTimeout(async () => {
- try {
- // 关键校验:只有当前索引是最后一次点击的索引,才执行动画
- if (lastClickIndex !== index) {
- reject(
- `索引不匹配,取消动画执行(当前:${index}, 最后点击:${lastClickIndex})`,
- );
- currentAnimationPromise = null;
- return;
- }
-
- console.log(index, " index"); // 仅最后一次点击会打印
- const targetEle = document.getElementById(`spinner-item-${index}`);
-
- if (targetEle) {
- // 执行展开和收缩动画(等待动画完成)
- await setExpandClip(
- targetEle,
- option.value.cardList[index],
- element,
- );
- await setShrinkClip(
- targetEle,
- option.value.cardList[index],
- element,
- );
- console.log("这个时候结束了~~");
- console.log(isDownAndScale.value, "isDownAndScale.value");
- }
-
- // 动画全部完成,resolve Promise
- resolve();
- console.log(`索引${index}的动画已全部完成`);
- } catch (error) {
- // 动画执行过程中出错,reject Promise
- reject(error);
- } finally {
- // 清空状态
- lastClickIndex = null;
- currentAnimationPromise = null;
- }
- }, 2000) as unknown as number; // 适配TS类型
- } catch (error) {
- // 捕获同步代码的错误
- reject(error);
- currentAnimationPromise = null;
- }
- });
- };
-
- // 辅助函数:取消所有动画(可选,用于组件卸载等场景)
- const cancelAllSpinnerAnimation = () => {
- // 清除所有定时器
- spinTimerList.forEach((timer) => clearTimeout(timer));
- if (clickDelayTimer) {
- clearTimeout(clickDelayTimer);
- }
-
- // 拒绝未完成的Promise
- if (currentAnimationPromise) {
- currentAnimationPromise.reject("主动取消了所有动画");
- currentAnimationPromise = null;
- }
-
- // 重置状态
- spinTimerList = [];
- clickDelayTimer = null;
- lastClickIndex = null;
- };
-
- const init = () => {
- activeSpinnerIndex.value = 0;
- if (timer.value) {
- clearInterval(timer.value);
- }
- timer.value = null;
- setBaseStyle();
- // if (option.value && option.value.globalConfig && option.value.globalConfig.autoPlay) {
- // timer.value = setInterval(
- // () => {
- // roateAnimate();
- // },
- // (option.value.globalConfig.intervalTime + option.value.globalConfig.transitionTime) * 1000
- // );
- // }
- setTimeout(() => {
- reseting.value = false;
- }, 200);
- };
-
- const getControlButtonProps = (direction: string) => ({
- offsetLeftOrRight: option.value.globalConfig.controlBtnOffsetLeftOrRight,
- offsetTop: option.value.globalConfig.controlBtnOffsetTop,
- width: option.value.globalConfig.controlBtnWidth,
- height: option.value.globalConfig.controlBtnHeight,
- bgImage: setMinioUrl(
- option.value.globalConfig[`controlBtn${direction.toUpperCase()}Bg`],
- ),
- });
- onUnmounted(() => {
- cancelAllSpinnerAnimation();
- });
-
- return {
- width,
- height,
- dataChart,
- option,
- styleSizeName,
- componentClasses,
- handleEventAndCallbackEvent,
- uid,
- reseting,
- timer,
- clickClockwise,
- styleList,
- activeSpinnerIndex,
- dataChartItemList,
- transitionTime,
- mouseenter,
- mouseleave,
- init,
- handleControlClick,
- handleClickSpinner,
- getControlButtonProps,
- roateAnimate,
- };
-};
diff --git a/packages/material/src/components/ScreenwrightExhibitComponent/verticalCard/utils.ts b/packages/material/src/components/ScreenwrightExhibitComponent/verticalCard/utils.ts
deleted file mode 100644
index 24570d9b..00000000
--- a/packages/material/src/components/ScreenwrightExhibitComponent/verticalCard/utils.ts
+++ /dev/null
@@ -1,260 +0,0 @@
-/**
- * 动画完成回调类型
- */
-type AnimationCompleteCallback = () => void;
-
-/**
- * 极简动画序列类(最终适配版:on绑定自动单次触发,兼容业务侧写法 + 新增【是否删除旧动画样式】配置)
- */
-export class SimpleAnimationSequence {
- private el: HTMLElement;
- private sequence: { name: string; wait: number }[];
- private currentIndex = 0;
- private isDestroyed = false;
- // 存储回调(区分单次/多次,但on绑定自动转为单次)
- private callbacks = new Map<
- string,
- {
- normal: AnimationCompleteCallback[];
- once: AnimationCompleteCallback[];
- }
- >();
- // 缓存绑定后的事件处理函数(关键:确保removeEventListener生效)
- private boundAnimationEnd: (e: AnimationEvent) => void;
- // 标记每个动画是否已触发过回调(防止重复触发)
- private animTriggered = new Set();
- // ========== 【修改点1】新增:是否移除旧动画样式的开关,默认true ==========
- private removeOldAnimClass: boolean;
-
- // ========== 【修改点2】构造函数新增第三个参数,设置默认值true ==========
- constructor(el: HTMLElement, sequence: { name: string; wait: number }[], removeOldAnimClass: boolean = true) {
- if (!el) throw new Error("必须传入有效DOM元素");
- if (!sequence.length) throw new Error("动画序列不能为空");
-
- this.el = el;
- this.sequence = sequence;
- this.removeOldAnimClass = removeOldAnimClass; // 赋值开关参数
- // 缓存绑定后的函数(确保引用唯一)
- this.boundAnimationEnd = this.handleAnimationEnd.bind(this);
- // 正确绑定事件
- this.el.addEventListener("animationend", this.boundAnimationEnd);
- this.startCurrent();
- }
-
- /**
- * 适配业务侧:on绑定自动转为「单次触发」(核心修改)
- * 业务侧写on,底层自动按once逻辑处理,触发一次后移除
- */
- on(animName: string, callback: AnimationCompleteCallback): this {
- this.validateInstanceState();
- this.validateCallback(callback);
-
- const key = animName.trim();
- // 初始化回调容器
- if (!this.callbacks.has(key)) {
- this.callbacks.set(key, { normal: [], once: [] });
- }
- // 核心:将on绑定的回调直接加入once队列(自动单次触发)
- const onceCallbacks = this.callbacks.get(key)!.once;
- if (!onceCallbacks.includes(callback)) {
- onceCallbacks.push(callback);
- }
- return this;
- }
-
- /**
- * 保留once方法(原生单次触发,和on效果一致,兼容扩展)
- */
- once(animName: string, callback: AnimationCompleteCallback): this {
- this.validateInstanceState();
- this.validateCallback(callback);
-
- const key = animName.trim();
- if (!this.callbacks.has(key)) {
- this.callbacks.set(key, { normal: [], once: [] });
- }
- const onceCallbacks = this.callbacks.get(key)!.once;
- if (!onceCallbacks.includes(callback)) {
- onceCallbacks.push(callback);
- }
- return this;
- }
-
- /**
- * 移除指定回调
- */
- off(animName: string, callback?: AnimationCompleteCallback): this {
- this.validateInstanceState();
- const key = animName.trim();
- if (!this.callbacks.has(key)) return this;
-
- const callbacks = this.callbacks.get(key)!;
- if (callback) {
- callbacks.normal = callbacks.normal.filter((cb) => cb !== callback);
- callbacks.once = callbacks.once.filter((cb) => cb !== callback);
- } else {
- callbacks.normal = [];
- callbacks.once = [];
- }
- return this;
- }
-
- /**
- * 触发回调(核心:每个动画仅触发一次 + 自动清理)
- */
- private triggerCallback(animName: string) {
- const key = animName.trim();
- // 1. 每个动画仅触发一次回调(通过animTriggered标记)
- if (this.animTriggered.has(key)) return;
- this.animTriggered.add(key);
-
- if (!this.callbacks.has(key)) return;
-
- const { normal, once } = this.callbacks.get(key)!;
- // 执行所有回调(normal已被on方法转为once,实际只执行once队列)
- normal.forEach(this.executeCallback);
- once.forEach(this.executeCallback);
-
- // 2. 触发后立即清空所有回调(彻底防止重复)
- this.callbacks.set(key, { normal: [], once: [] });
- }
-
- /**
- * 执行单个回调(错误捕获)
- */
- private executeCallback(callback: AnimationCompleteCallback) {
- try {
- callback();
- } catch (err) {
- console.error(`执行动画回调失败:`, err);
- }
- }
-
- /**
- * 校验实例状态(已销毁则抛错)
- */
- private validateInstanceState() {
- if (this.isDestroyed) throw new Error("SimpleAnimationSequence 实例已销毁");
- }
-
- /**
- * 校验回调类型
- */
- private validateCallback(callback: unknown) {
- if (typeof callback !== "function") throw new Error("回调必须是函数类型");
- }
-
- private startCurrent() {
- if (this.isDestroyed || this.currentIndex >= this.sequence.length) return;
- const current = this.sequence[this.currentIndex];
-
- // ========== 【修改点3】核心逻辑:根据开关判断是否移除旧动画样式 ==========
- if (this.removeOldAnimClass) {
- this.el.classList.remove(current.name);
- }
-
- // ✅ 强制重绘逻辑【保留不动】,无论是否删样式,都要保证动画能触发
- void this.el.offsetWidth;
-
- // 添加动画类(不变)
- this.el.classList.add(current.name);
- console.log(`启动动画:${current.name},是否移除旧样式:${this.removeOldAnimClass}`);
- }
-
- /**
- * 核心:修复动画end事件处理(实例隔离 + 严格匹配 + 自动销毁)
- */
- private handleAnimationEnd(e: AnimationEvent) {
- if (this.isDestroyed) return;
- // 1. 实例隔离:确保事件目标是当前元素(防止冒泡)
- if (e.target !== this.el) return;
- // 2. 严格匹配当前实例的当前动画名
- const currentAnim = this.sequence[this.currentIndex]?.name;
- if (e.animationName !== currentAnim) return;
-
- const animName = e.animationName;
- console.log(`✅ ${animName} 动画结束(当前实例)`);
-
- // 触发回调(仅一次)
- this.triggerCallback(animName);
-
- // 序列结束判断
- if (this.currentIndex + 1 >= this.sequence.length) {
- // ✅ 【强制移除】动画结束必删当前样式,不受开关控制,防止残留
- if (this.removeOldAnimClass) {
- this.el.classList.remove(animName);
- this.destroy();
- }
-
- return;
- }
-
- // 执行下一个动画
- setTimeout(() => {
- if (this.isDestroyed) return;
- if (this.removeOldAnimClass) {
- this.el.classList.remove(animName);
- }
- this.currentIndex++;
- this.startCurrent();
- }, this.sequence[this.currentIndex].wait);
- }
-
- /**
- * 修复:正确移除事件监听 + 清理所有资源
- */
- destroy() {
- if (this.isDestroyed) return;
- this.isDestroyed = true;
- // 移除事件监听(使用缓存的绑定函数)
- this.el.removeEventListener("animationend", this.boundAnimationEnd);
- // ✅ 【强制移除】销毁时必删所有动画样式,不受开关控制,兜底防残留
- this.sequence.forEach((item) => this.el.classList.remove(item.name));
- // 清空所有回调和标记
- this.callbacks.clear();
- this.animTriggered.clear();
- this.currentIndex = 0;
- }
-}
-
-/**
- * 极简控制器(最终适配版:增强实例管理 + 透传【是否删除旧动画样式】参数)
- */
-export class SimpleAnimationController {
- private instances = new Set();
-
- // ========== 【修改点4】控制器新增第三个参数,透传给实例,默认true ==========
- createSequence(el: HTMLElement, sequence: { name: string; wait: number }[], removeOldAnimClass: boolean = true) {
- // 1. 创建新实例前,先销毁该元素的旧实例(关键:避免同一元素多个实例)
- this.destroySequenceByEl(el);
- // 透传开关参数给动画序列实例
- const instance = new SimpleAnimationSequence(el, sequence, removeOldAnimClass);
- this.instances.add(instance);
- // 2. 监听实例销毁,自动从控制器移除(防止内存泄漏)
- const originalDestroy = instance.destroy;
- instance.destroy = () => {
- originalDestroy.call(instance);
- this.instances.delete(instance);
- };
- return instance;
- }
-
- /**
- * 新增:根据元素销毁对应实例(避免同一元素多个实例)
- */
- destroySequenceByEl(el: HTMLElement) {
- for (const inst of this.instances) {
- // @ts-ignore 临时访问私有属性(仅用于匹配元素)
- if (inst.el === el) {
- inst.destroy();
- this.instances.delete(inst);
- break;
- }
- }
- }
-
- destroyAll() {
- this.instances.forEach((inst) => inst.destroy());
- this.instances.clear();
- }
-}
diff --git a/packages/material/src/components/ScreenwrightExtendsComponent/SimpleBarrage/api.ts b/packages/material/src/components/ScreenwrightExtendsComponent/SimpleBarrage/api.ts
deleted file mode 100644
index d9c9ff56..00000000
--- a/packages/material/src/components/ScreenwrightExtendsComponent/SimpleBarrage/api.ts
+++ /dev/null
@@ -1,33 +0,0 @@
-import { BaseName, request } from "@screenwright/composables";
-
-// 弹幕签名列表接口:原 app `@/api/visual` 的 simpleBarrageList,物料化后就近重建,
-// 走 @screenwright/composables 的 http 端口(token/baseURL/loading 等横切关注点由 app 注入的 request 处理)。
-const systemBase = BaseName.System;
-
-export interface SimpleBarrageListParams {
- size: number;
- layerScrollId: string | number;
- [key: string]: unknown;
-}
-
-interface SimpleBarrageRecord {
- signUrl: string;
- [key: string]: unknown;
-}
-
-interface SimpleBarrageListResult {
- result: {
- records: SimpleBarrageRecord[];
- };
-}
-
-export const simpleBarrageList = (
- data: SimpleBarrageListParams,
- showLoading = true,
-) =>
- request({
- url: `${systemBase}/sign/list`,
- method: "post",
- data,
- showLoading,
- });
diff --git a/packages/material/src/components/ScreenwrightExtendsComponent/SimpleBarrage/components/BarrageContainer.vue b/packages/material/src/components/ScreenwrightExtendsComponent/SimpleBarrage/components/BarrageContainer.vue
deleted file mode 100644
index f6de68e5..00000000
--- a/packages/material/src/components/ScreenwrightExtendsComponent/SimpleBarrage/components/BarrageContainer.vue
+++ /dev/null
@@ -1,362 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/packages/material/src/components/ScreenwrightExtendsComponent/SimpleBarrage/components/BarrageSignatureImage.vue b/packages/material/src/components/ScreenwrightExtendsComponent/SimpleBarrage/components/BarrageSignatureImage.vue
deleted file mode 100644
index 1d0c834f..00000000
--- a/packages/material/src/components/ScreenwrightExtendsComponent/SimpleBarrage/components/BarrageSignatureImage.vue
+++ /dev/null
@@ -1,199 +0,0 @@
-
-
-
-
![signature]()
-
-
-
-
-
-
-
diff --git a/packages/material/src/components/ScreenwrightExtendsComponent/SimpleBarrage/index.vue b/packages/material/src/components/ScreenwrightExtendsComponent/SimpleBarrage/index.vue
deleted file mode 100644
index 31512417..00000000
--- a/packages/material/src/components/ScreenwrightExtendsComponent/SimpleBarrage/index.vue
+++ /dev/null
@@ -1,255 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/packages/material/src/components/ScreenwrightExtendsComponent/SimpleBarrage/type.ts b/packages/material/src/components/ScreenwrightExtendsComponent/SimpleBarrage/type.ts
deleted file mode 100644
index 7bca104b..00000000
--- a/packages/material/src/components/ScreenwrightExtendsComponent/SimpleBarrage/type.ts
+++ /dev/null
@@ -1,151 +0,0 @@
-type ImportConfig = {
- apiUrl: string;
- method: "POST" | "GET";
- headers: Array<{
- key: string;
- value: string;
- }>;
- body: Array<{
- key: string;
- value: string;
- }>;
-};
-
-/** @description 图片填充方式 */
-type FitType = "none" | "fill" | "scale-down" | "cover" | "contain";
-
-/** @description 文本阴影配置 */
-interface TextShadow {
- /** @description 阴影颜色 */
- color: string;
- /** @description X轴偏移 */
- x: number;
- /** @description Y轴偏移 */
- y: number;
- /** @description 模糊半径 */
- blur: number;
-}
-
-/** @description 文本样式配置 */
-export interface TextStyle {
- /** @description 样式名称 */
- name: string;
- /** @description 字体颜色 */
- fontColor: string;
- /** @description 字体大小 */
- fontSize: number;
- /** @description 字体族 */
- fontFamily: string;
- /** @description 字间距 */
- letterSpacing: number;
- /** @description 是否加粗 */
- fontWeight: boolean;
- /** @description 是否斜体 */
- fontStyle: boolean;
- /** @description 是否启用文本阴影 */
- isTextShadow: boolean;
- /** @description 文本阴影配置 */
- textShadow: TextShadow;
- backgroundImage: string;
-}
-
-/** @description 当前选项的类型定义 */
-export interface Option {
- /** @description 弹幕行数 */
- lineNum: number;
- /** @description 弹幕速度 (0-1) */
- speed: number;
- /** @description 是否自动循环 */
- loop: boolean;
- /** @description 是否支持悬停 */
- isHover: boolean;
- /** @description 文本样式列表 */
- stylesList: TextStyle[];
- /** @description 图片适应方式 */
- imageObjectFit: FitType;
- /** @description 图片最小高度 */
- imageMinHeight: number;
- /** @description 图片最大高度 */
- imageMaxHeight: number;
- /** @description 导入类型 */
- importType: "systemInterface" | "customInterface";
- /** @description 导入配置 */
- importConfig: ImportConfig;
- /** @description 图片宽度 */
- imageWidth: number;
- /** @description 图片高度 */
- imageHeight: number;
- textBoxBorderRadius: number;
- textBoxPadding: [number, number, number, number];
- /** @description 缩放比例 */
- scale: number;
-}
-
-export type DataItem = {
- /** @description 弹幕文本 */
- text: string;
-
- /** @description 类型 */
- type?: "text" | "image";
-};
-
-export interface SimpleBarrageListParams {
- /**
- * 每页显示条数,默认 10
- */
- size?: number;
-
- /**
- * 当前页,默认1
- */
- current?: number;
-
- /**
- * 名称
- */
- name?: string;
-
- /**
- * 备注
- */
- remark?: string;
-
- /**
- * 关联弹幕组件id
- */
- layerScrollId?: number;
-
- /**
- * 关联签名版组件id
- */
- layerSignId?: number;
-}
-
-export interface PaginationResult {
- records: T[];
- total: number;
- size: number;
- current: number;
- orders: any[];
- optimizeCountSql: boolean;
- searchCount: boolean;
- maxLimit: null | number;
- countId: null | number;
- pages: number;
-}
-
-export interface DataFilterItem {
- createdBy: string;
- createdTime: string;
- updatedBy: string;
- updatedTime: string;
- id: number;
- userId: number;
- name: string;
- layerScrollId: number;
- layerSignId: number;
- sort: number | null;
- signUrl: string;
- status: number | null;
- remark: string | null;
-}
diff --git a/packages/material/src/components/ScreenwrightExtendsComponent/SimpleBarrage/utils/index.ts b/packages/material/src/components/ScreenwrightExtendsComponent/SimpleBarrage/utils/index.ts
deleted file mode 100644
index d3d50034..00000000
--- a/packages/material/src/components/ScreenwrightExtendsComponent/SimpleBarrage/utils/index.ts
+++ /dev/null
@@ -1,431 +0,0 @@
-import { setMinioUrl } from "@screenwright/composables";
-import { has, isArray } from "lodash-es";
-
-import type { Option } from "../type";
-
-/** @description 自定义HTML元素类型,包含弹幕相关属性 */
-export interface CustomHTMLDivElement extends HTMLDivElement {
- timer: number | null;
- distance: number;
-}
-
-/** @description 文本阴影配置 */
-export interface TextShadow {
- /** @description 阴影颜色 */
- color: string;
- /** @description X轴偏移 */
- x: number;
- /** @description Y轴偏移 */
- y: number;
- /** @description 模糊半径 */
- blur: number;
-}
-
-/** @description 文本样式配置 */
-export interface TextStyle {
- /** @description 样式名称 */
- name: string;
- /** @description 字体颜色 */
- fontColor: string;
- /** @description 字体大小 */
- fontSize: number;
- /** @description 字体族 */
- fontFamily: string;
- /** @description 字间距 */
- letterSpacing: number;
- /** @description 是否加粗 */
- fontWeight: boolean;
- /** @description 是否斜体 */
- fontStyle: boolean;
- /** @description 是否启用文本阴影 */
- isTextShadow: boolean;
- /** @description 文本阴影配置 */
- textShadow: TextShadow;
- /** @description 背景图片 */
- backgroundImage: string;
-}
-
-/** @description 文本配置接口 */
-export interface TextConfig {
- text: string;
- position?: string;
- top?: number;
- left?: number;
- width?: number;
- isTextShadow?: boolean;
- borderRadius?: number;
- padding?: [number, number, number, number];
- textStyle: TextStyle;
-}
-
-/** @description 网格位置参数接口 */
-export interface GridPositionParams {
- domWidth: number;
- fontSize: number;
- width: number;
- height: number;
- lineNum: number;
- barrageGrid: Array>;
- type?: "text" | "image";
- imageSpacing?: number;
-}
-
-/** @description 网格单元格接口 */
-export interface GridCell {
- row: number;
- col: number;
- width?: number;
- top?: number;
- left?: number;
-}
-
-/** @description 图片元素配置接口 */
-export interface ImageElementConfig {
- position?: string;
- imageUrl: string;
- top?: number;
- left?: number;
- width?: number;
- height?: number;
- objectFit?: string;
-}
-
-/**
- * 创建文本元素
- * @param config 文本配置
- * @param isForCalc 是否仅用于计算
- * @returns 自定义HTML元素
- */
-export function createTextElement(
- config: TextConfig,
- isForCalc = false,
-): CustomHTMLDivElement {
- const { text, position, top, left, width, isTextShadow, textStyle } = config;
- const {
- fontColor,
- fontSize,
- fontFamily,
- letterSpacing,
- fontWeight,
- fontStyle,
- // padding,
- textShadow,
- backgroundImage,
- } = textStyle;
- // console.log("createTextElement", textStyle);
-
- const div = document.createElement("div") as CustomHTMLDivElement;
- div.innerHTML = text;
- div.style.position = position || "absolute";
- div.style.display = "inline-block";
- div.style.fontSize = fontSize + "px";
- div.style.fontFamily = fontFamily;
- div.style.letterSpacing = letterSpacing + "px";
- div.style.fontWeight = fontWeight ? "bold" : "normal";
- div.style.fontStyle = fontStyle ? "italic" : "";
- div.style.whiteSpace = "nowrap";
- div.style.padding =
- has(config, "padding") && isArray(config.padding)
- ? `${config.padding[0]}px ${config.padding[1]}px ${config.padding[2]}px ${config.padding[3]}px`
- : "8px 16px";
-
- div.style.borderRadius = (config.borderRadius || 0) + "px";
- div.style.backgroundSize = "100% 100%";
- div.style.backgroundImage = `url(${setMinioUrl(backgroundImage)})`;
- if (isTextShadow && textShadow) {
- div.style.textShadow = `${textShadow.x}px ${textShadow.y}px ${textShadow.blur}px ${textShadow.color}`;
- }
-
- if (!isForCalc) {
- div.style.color = fontColor;
- div.style.transform = "translate3d(0px, 0, 0px)";
- if (typeof top === "number") {
- div.style.top = top + "px";
- }
- if (typeof left === "number") {
- div.style.left = left + "px";
- }
- if (typeof width === "number") {
- div.style.width = width + "px";
- }
- div.distance = 0;
- div.timer = null;
- }
-
- return div;
-}
-
-/**
- * 计算文本宽度
- * @param config 文本配置
- * @returns 文本宽度
- */
-export function calculateTextWidth(config: TextConfig): number {
- const div = createTextElement(config, true);
- document.body.appendChild(div);
- const rect = div.getBoundingClientRect();
- document.body.removeChild(div);
- return Math.ceil(rect.width);
-}
-
-/**
- * 计算网格位置
- * @param params 网格位置参数
- * @returns 网格位置信息
- */
-export function calculateGridPosition(params: GridPositionParams): GridCell {
- const {
- domWidth,
- fontSize,
- width,
- height,
- lineNum,
- barrageGrid,
- type = "text",
- imageSpacing = 200, // 默认图片间距
- } = params;
-
- let colPosition: GridCell[] = [];
-
- for (let i = 0, l = barrageGrid.length; i < l; i++) {
- const _colPosition = barrageGrid[i].filter((item) => !item.width);
- if (_colPosition.length > 0) {
- colPosition = _colPosition;
- break;
- }
- }
-
- if (!colPosition?.length) {
- return { row: 0, col: 0 };
- }
-
- const labelSpacing = 20;
- const gridPosition =
- colPosition[Math.floor(Math.random() * colPosition.length)];
-
- if (!gridPosition) {
- return { row: 0, col: 0 };
- }
-
- const result: GridCell = {
- row: gridPosition.row,
- col: gridPosition.col,
- width: domWidth,
- top: 0,
- left: 0,
- };
-
- const perHeight = Math.floor(height / lineNum);
- result.top =
- gridPosition.col * perHeight + Math.floor(perHeight / 2) - fontSize / 2;
-
- if (type === "image") {
- const randomSpacing = Math.floor(+Math.random() * imageSpacing);
-
- if (gridPosition.row === 0) {
- result.left = width + randomSpacing;
- } else {
- const prevCell = barrageGrid[gridPosition.row - 1]?.[gridPosition.col];
- const prevLeft = prevCell?.left || 0;
- const prevWidth = prevCell?.width || 0;
- result.left = prevLeft + prevWidth + randomSpacing;
- }
- } else {
- // 文字使用基于字体大小的动态间距
- if (gridPosition.row === 0) {
- result.left = width + Math.ceil(fontSize * labelSpacing * Math.random());
- } else {
- const prevCell = barrageGrid[gridPosition.row - 1]?.[gridPosition.col];
- const prevLeft = prevCell?.left || 0;
- const prevWidth = prevCell?.width || 0;
- result.left =
- domWidth +
- prevLeft +
- prevWidth +
- Math.ceil(fontSize * labelSpacing * Math.random());
- }
- }
-
- return result;
-}
-
-/**
- * 执行弹幕动画
- * @param element 弹幕元素
- * @param speed 移动速度
- * @param maxWidth 最大宽度
- * @param loop 是否循环
- * @param onComplete 动画完成回调
- */
-export function animateBarrage(
- element: CustomHTMLDivElement,
- speed: number,
- maxWidth: number,
- loop: boolean,
- onComplete: () => void,
-): void {
- element.distance = element.distance - 10 * speed;
- element.style.transform = `translate3d(${element.distance}px, 0, 0px)`;
- if (element.timer) {
- cancelAnimationFrame(element.timer);
- }
-
- if (
- Math.abs(element.distance) < maxWidth &&
- Math.abs(element.distance) > -maxWidth
- ) {
- element.timer = requestAnimationFrame(() => {
- animateBarrage(element, speed, maxWidth, loop, onComplete);
- });
- return;
- }
-
- if (loop) {
- element.distance = 0;
- element.style.transform = `translate3d(${element.distance}px, 0, 0px)`;
- onComplete();
- return;
- }
-
- if (Math.abs(element.distance) < -maxWidth) {
- element.parentNode?.removeChild(element);
- onComplete();
- }
-}
-
-/**
- * 清理弹幕元素
- * @param element 弹幕元素
- */
-export function cleanupBarrageElement(element: CustomHTMLDivElement): void {
- if (element.timer) {
- cancelAnimationFrame(element.timer);
- }
- element.onclick = null;
- element.parentNode?.removeChild(element);
-}
-
-/**
- * 创建图片元素
- * @param config 图片配置参数
- * @returns 自定义HTML元素
- */
-export function createImageElement(
- config: ImageElementConfig,
-): CustomHTMLDivElement {
- const { position, imageUrl, top, left, width, height, objectFit } = config;
-
- const div = document.createElement("div") as CustomHTMLDivElement;
- div.style.position = position || "absolute";
- if (typeof top === "number") {
- div.style.top = top + "px";
- }
- if (typeof left === "number") {
- div.style.left = left + "px";
- }
- if (typeof width === "number") {
- div.style.width = width + "px";
- }
- if (typeof height === "number") {
- div.style.height = height + "px";
- }
- div.style.overflow = "hidden";
-
- const img = document.createElement("img");
- img.src = setMinioUrl(imageUrl);
- img.style.width = "100%";
- img.style.height = "100%";
- img.style.objectFit = objectFit || "cover";
-
- div.appendChild(img);
- return div;
-}
-
-/**
- * 计算图片宽度
- * @param height 图片高度
- * @returns 图片宽度
- */
-export function calculateImageWidth(height: number): number {
- // 假设图片宽高比为 16:9
- return Math.ceil(height * (16 / 9));
-}
-
-/**
- * 创建图片弹幕元素
- * @param config 图片配置
- * @returns 自定义HTML元素
- */
-export function createBarrageImageElement(
- config: ImageElementConfig,
-): CustomHTMLDivElement {
- const {
- position,
- imageUrl,
- top,
- left,
- width,
- height,
- objectFit = "cover",
- } = config;
-
- const div = document.createElement("div") as CustomHTMLDivElement;
- div.style.position = position || "absolute";
- div.style.display = "inline-block";
- div.style.transform = "translate3d(0px, 0, 0px)";
-
- if (typeof top === "number") {
- div.style.top = top + "px";
- }
- if (typeof left === "number") {
- div.style.left = left + "px";
- }
- if (typeof width === "number") {
- div.style.width = width + "px";
- }
- if (typeof height === "number") {
- div.style.height = height + "px";
- }
-
- const img = document.createElement("img");
- img.src = setMinioUrl(imageUrl);
- img.style.width = "100%";
- img.style.height = "100%";
- img.style.objectFit = objectFit;
-
- div.appendChild(img);
- div.distance = 0;
- div.timer = null;
-
- return div;
-}
-
-/**
- * 计算图片弹幕尺寸
- * @param containerHeight 容器高度
- * @param lineNum 行数
- * @param options 配置选项
- * @returns 图片尺寸
- */
-export function calculateBarrageImageSize(
- containerHeight: number,
- lineNum: number,
- options?: Pick
diff --git a/packages/material/src/editor-ui/textComponent/textGlobal/ftcollectionGlobal.vue b/packages/material/src/editor-ui/textComponent/textGlobal/swcollectionGlobal.vue
similarity index 86%
rename from packages/material/src/editor-ui/textComponent/textGlobal/ftcollectionGlobal.vue
rename to packages/material/src/editor-ui/textComponent/textGlobal/swcollectionGlobal.vue
index 15816632..08481677 100644
--- a/packages/material/src/editor-ui/textComponent/textGlobal/ftcollectionGlobal.vue
+++ b/packages/material/src/editor-ui/textComponent/textGlobal/swcollectionGlobal.vue
@@ -15,8 +15,8 @@
diff --git a/packages/material/src/editor-ui/textComponent/textRowConfig/customTableListRowConfig.vue b/packages/material/src/editor-ui/textComponent/textRowConfig/customTableListRowConfig.vue
index 0e31c0e2..76943f26 100644
--- a/packages/material/src/editor-ui/textComponent/textRowConfig/customTableListRowConfig.vue
+++ b/packages/material/src/editor-ui/textComponent/textRowConfig/customTableListRowConfig.vue
@@ -8,8 +8,8 @@
diff --git a/packages/material/src/editor-ui/textComponent/textRowConfig/ftScrollRowConfig.vue b/packages/material/src/editor-ui/textComponent/textRowConfig/ftScrollRowConfig.vue
deleted file mode 100644
index 04572cca..00000000
--- a/packages/material/src/editor-ui/textComponent/textRowConfig/ftScrollRowConfig.vue
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/packages/material/src/editor-ui/textComponent/textRowConfig/ftProgressRowConfig.vue b/packages/material/src/editor-ui/textComponent/textRowConfig/swProgressRowConfig.vue
similarity index 100%
rename from packages/material/src/editor-ui/textComponent/textRowConfig/ftProgressRowConfig.vue
rename to packages/material/src/editor-ui/textComponent/textRowConfig/swProgressRowConfig.vue
diff --git a/packages/material/src/editor-ui/textComponent/textRowConfig/swScrollRowConfig.vue b/packages/material/src/editor-ui/textComponent/textRowConfig/swScrollRowConfig.vue
new file mode 100644
index 00000000..db07ff9e
--- /dev/null
+++ b/packages/material/src/editor-ui/textComponent/textRowConfig/swScrollRowConfig.vue
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
diff --git a/packages/material/src/editor-ui/textComponent/textSeries/ftTextWordCloudSeries.vue b/packages/material/src/editor-ui/textComponent/textSeries/swTextWordCloudSeries.vue
similarity index 100%
rename from packages/material/src/editor-ui/textComponent/textSeries/ftTextWordCloudSeries.vue
rename to packages/material/src/editor-ui/textComponent/textSeries/swTextWordCloudSeries.vue
diff --git a/packages/material/src/editor-ui/textComponent/textSeries/ftcollectionSeries.vue b/packages/material/src/editor-ui/textComponent/textSeries/swcollectionSeries.vue
similarity index 100%
rename from packages/material/src/editor-ui/textComponent/textSeries/ftcollectionSeries.vue
rename to packages/material/src/editor-ui/textComponent/textSeries/swcollectionSeries.vue
diff --git a/packages/material/src/editor-ui/textComponent/textSpecifiedStyle/ftText2SpecifiedStyle.vue b/packages/material/src/editor-ui/textComponent/textSpecifiedStyle/swText2SpecifiedStyle.vue
similarity index 100%
rename from packages/material/src/editor-ui/textComponent/textSpecifiedStyle/ftText2SpecifiedStyle.vue
rename to packages/material/src/editor-ui/textComponent/textSpecifiedStyle/swText2SpecifiedStyle.vue
diff --git a/packages/material/src/editor-ui/textComponent/textTitle/ftcollectionTitle.vue b/packages/material/src/editor-ui/textComponent/textTitle/swcollectionTitle.vue
similarity index 100%
rename from packages/material/src/editor-ui/textComponent/textTitle/ftcollectionTitle.vue
rename to packages/material/src/editor-ui/textComponent/textTitle/swcollectionTitle.vue
diff --git a/packages/material/src/exhibit.ts b/packages/material/src/exhibit.ts
index 04c229c5..69c3b0f7 100644
--- a/packages/material/src/exhibit.ts
+++ b/packages/material/src/exhibit.ts
@@ -1,6 +1,5 @@
export { ScreenwrightExhibitComponentMap as component } from "./components/ScreenwrightExhibitComponent";
export { default as markdownView } from "./components/ScreenwrightExhibitComponent/utils/markdownView.vue";
-export { getPdfPageAsImage } from "./components/ScreenwrightExhibitComponent/pdfjsViewer/usePdfViewer";
export { ExhibitConfigComponent as editor, optionType } from "./editor-ui/exhibitComponent/index";
// 展项渲染/配置面板内的通用子项,供 app 内未物料化的组件(数字人、AI 图表、弹幕、状态动画属性编辑等)复用
diff --git a/packages/material/src/index.ts b/packages/material/src/index.ts
index 94a94932..50457925 100644
--- a/packages/material/src/index.ts
+++ b/packages/material/src/index.ts
@@ -1,5 +1,4 @@
export { ScreenwrightEchartsMap } from "./components/ScreenwrightEcharts";
-export { ScreenwrightTextComponent } from "./components/ScreenwrightText";
export { ScreenwrightExhibitComponentMap } from "./components/ScreenwrightExhibitComponent";
export { ScreenwrightIndicatorMap } from "./components/ScreenwrightIndicator";
export { ScreenwrightInteractiveMap } from "./components/ScreenwrightInteractive";
@@ -17,6 +16,7 @@ export {
isSupportedFlv,
isSupportedHls,
} from "./components/ScreenwrightMedia/utils";
+export { ScreenwrightTextComponent } from "./components/ScreenwrightText";
export {
optionType as chartOptionType,
ScreenwrightEchartsConfigComponent,
@@ -39,10 +39,9 @@ export {
} from "./editor-ui/mediaComponent/index";
export {
type ConfigTab,
- ScreenwrightTextConfigComponent,
optionType,
+ ScreenwrightTextConfigComponent,
} from "./editor-ui/textComponent/index";
export { materialPlugin } from "./materialPlugin";
export { setMinioUrl } from "./minioUrl";
export { recorderCore } from "./recorderCore";
-export { initRegisterFte, type RegisterFteFn } from "./registerFte";
diff --git a/packages/material/src/recorderCore.ts b/packages/material/src/recorderCore.ts
index 0d96a289..c91a7091 100644
--- a/packages/material/src/recorderCore.ts
+++ b/packages/material/src/recorderCore.ts
@@ -1,6 +1,6 @@
-// recorder-core 是第三方 UMD 录音库(https://github.com/xiangyuecn/Recorder),无类型声明。
-// ftVoiceControl 组件与主包 AIChartBox 均需使用,统一从 @screenwright/material 导出,避免反向依赖主包内部路径。
-// 以 namespace 形式导出,与 ftVoiceControl / AIChartBox 既有的 `import * as X` + `X.default` 用法一致;
-// 运行时取值方式:`recorderCore.default || window.RecorderIns`。
-// @ts-ignore - UMD 模块无类型声明
-export * as recorderCore from "./components/ScreenwrightInteractive/components/ftVoiceControl/recorder-core.js";
+// recorder-core 的官方 ESM 入口;使用它可避免引入项目内的 UMD 副本。
+// 虽然该库仍会向 window 挂载 Recorder 以兼容传统调用,但业务代码只使用此模块导出。
+import Recorder from "recorder-core/src/recorder-core.js.esm.js";
+
+export const recorderCore = Recorder;
+export default Recorder;
diff --git a/packages/material/src/registerFte.ts b/packages/material/src/registerSwe.ts
similarity index 100%
rename from packages/material/src/registerFte.ts
rename to packages/material/src/registerSwe.ts
diff --git a/packages/material/src/types/recorder-core.d.ts b/packages/material/src/types/recorder-core.d.ts
new file mode 100644
index 00000000..15a348bc
--- /dev/null
+++ b/packages/material/src/types/recorder-core.d.ts
@@ -0,0 +1,5 @@
+declare module "recorder-core/src/recorder-core.js.esm.js" {
+ const Recorder: any;
+
+ export default Recorder;
+}
diff --git a/packages/material/vite.config.ts b/packages/material/vite.config.ts
index 83d1a0f7..38286111 100644
--- a/packages/material/vite.config.ts
+++ b/packages/material/vite.config.ts
@@ -40,6 +40,7 @@ export default defineConfig({
"@screenwright/core",
"@screenwright/types",
"@screenwright/composables",
+ "recorder-core/src/recorder-core.js.esm.js",
"echarts-liquidfill",
"echarts-wordcloud",
"echarts-gl",
diff --git a/packages/types/src/schemas/components/extends/simple-barrage.ts b/packages/types/src/schemas/components/extends/simple-barrage.ts
deleted file mode 100644
index c3d2c325..00000000
--- a/packages/types/src/schemas/components/extends/simple-barrage.ts
+++ /dev/null
@@ -1,60 +0,0 @@
-import { z } from "zod";
-
-/**
- * 弹幕组件 (simple-barrage)
- * 扩展
- *
- * ## 数据结构
- * 数据字段:
- * - `text` - 弹幕文本内容
- */
-
-// 单个数据项的 Schema
-const simpleBarrageDataItemSchema = z.object({
- text: z.string().describe("弹幕文本内容")
-});
-
-export const simpleBarrageDataSchema = z.array(simpleBarrageDataItemSchema);
-export type simpleBarrageData = z.infer;
-
-// 弹幕样式项 Schema
-const simpleBarrageStyleItemSchema = z.object({
- name: z.string().describe("样式名称"),
- fontSize: z.number().describe("字号"),
- fontWeight: z.boolean().describe("是否加粗"),
- fontStyle: z.boolean().describe("是否斜体"),
- letterSpacing: z.number().describe("字间距"),
- fontFamily: z.string().describe("字体"),
- fontColor: z.string().describe("字体颜色"),
- isTextShadow: z.boolean().describe("是否显示文字阴影"),
- textShadow: z.object({
- x: z.number().describe("阴影X偏移"),
- y: z.number().describe("阴影Y偏移"),
- blur: z.number().describe("阴影模糊度"),
- color: z.string().describe("阴影颜色"),
- extend: z.number().describe("阴影扩展")
- }).describe("文字阴影配置")
-});
-
-export const simpleBarrageOptionSchema = z.object({
- imageWidth: z.number().describe("弹幕区域宽度"),
- imageHeight: z.number().describe("弹幕区域高度"),
- imageMinHeight: z.number().describe("弹幕最小高度"),
- imageMaxHeight: z.number().describe("弹幕最大高度"),
- imageObjectFit: z.string().describe("弹幕内容适配方式"),
- scale: z.number().describe("缩放比例"),
- importType: z.string().describe("数据导入类型(systemInterface/custom)"),
- importConfig: z.object({
- apiUrl: z.string().describe("接口地址"),
- method: z.string().describe("请求方法"),
- body: z.array(z.unknown()).describe("请求体参数"),
- headers: z.array(z.unknown()).describe("请求头参数")
- }).describe("自定义接口导入配置"),
- loop: z.boolean().describe("是否循环播放弹幕"),
- lineNum: z.number().describe("弹幕轨道行数"),
- isHover: z.boolean().describe("鼠标悬停时是否暂停"),
- speed: z.number().describe("弹幕滚动速度"),
- stylesList: z.array(simpleBarrageStyleItemSchema).describe("弹幕样式列表,可配置多种弹幕样式随机分配")
-});
-
-export type simpleBarrageOption = z.infer;
diff --git a/packages/types/src/schemas/components/index.ts b/packages/types/src/schemas/components/index.ts
index 8904b9b6..725282b9 100644
--- a/packages/types/src/schemas/components/index.ts
+++ b/packages/types/src/schemas/components/index.ts
@@ -44,16 +44,15 @@ export * from "./echart/echarttreemap";
export * from "./echart/echartzebra";
export * from "./echart/echartzebra2";
export * from "./echart/echartzebraBarAndLine";
+export * from "./extends/fullScreenSwitch";
+export * from "./extends/pageReload";
+export * from "./extends/simple-particle";
+export * from "./extends/simpleStar";
export * from "./extends/sw-dataContainer";
export * from "./extends/sw-digital-human";
export * from "./extends/sw-mask-layer";
export * from "./extends/sw-unreal-engine";
export * from "./extends/sw-weather";
-export * from "./extends/fullScreenSwitch";
-export * from "./extends/pageReload";
-export * from "./extends/simple-barrage";
-export * from "./extends/simple-particle";
-export * from "./extends/simpleStar";
export * from "./extends/ue-peer-streaming";
export * from "./extends/ue-pixel-streaming";
export * from "./extends/ue-vessel";
@@ -62,16 +61,21 @@ export * from "./indicator/echartliquidFill";
export * from "./indicator/echartprogress";
export * from "./indicator/echartring";
export * from "./indicator/echartwordcloud";
-export * from "./indicator/swdynamicratio";
-export * from "./indicator/swFlopPerformance";
export * from "./indicator/iconRatio";
export * from "./indicator/rank-progress";
export * from "./indicator/rasterProgressBar";
export * from "./indicator/sortRatioBar";
+export * from "./indicator/swdynamicratio";
+export * from "./indicator/swFlopPerformance";
export * from "./interactive/formCheckbox";
export * from "./interactive/formNavMenu";
export * from "./interactive/formSlider";
export * from "./interactive/formSwitch";
+export * from "./interactive/multi-subtabs";
+export * from "./interactive/pointTimeline";
+export * from "./interactive/roll-subtabs";
+export * from "./interactive/scrollPicker";
+export * from "./interactive/subtabs";
export * from "./interactive/sw-mutual";
export * from "./interactive/sw-search";
export * from "./interactive/sw-voice-control";
@@ -83,11 +87,6 @@ export * from "./interactive/swPageQuery";
export * from "./interactive/swPageTurning";
export * from "./interactive/swSingleSelectedLegend";
export * from "./interactive/swTimerShaft";
-export * from "./interactive/multi-subtabs";
-export * from "./interactive/pointTimeline";
-export * from "./interactive/roll-subtabs";
-export * from "./interactive/scrollPicker";
-export * from "./interactive/subtabs";
export * from "./media/ctVideoPanel";
export * from "./media/sw-embed-audio";
export * from "./media/sw-open-video";
diff --git a/packages/types/src/schemas/components/propSchemaMap.ts b/packages/types/src/schemas/components/propSchemaMap.ts
index 3250171f..3ba2e4f2 100644
--- a/packages/types/src/schemas/components/propSchemaMap.ts
+++ b/packages/types/src/schemas/components/propSchemaMap.ts
@@ -32,16 +32,15 @@ import { echarttreemapDataSchema, echarttreemapOptionSchema } from "./echart/ech
import { echartzebraDataSchema, echartzebraOptionSchema } from "./echart/echartzebra";
import { echartzebra2DataSchema, echartzebra2OptionSchema } from "./echart/echartzebra2";
import { echartzebraBarAndLineDataSchema, echartzebraBarAndLineOptionSchema } from "./echart/echartzebraBarAndLine";
+import { fullScreenSwitchDataSchema, fullScreenSwitchOptionSchema } from "./extends/fullScreenSwitch";
+import { pageReloadDataSchema, pageReloadOptionSchema } from "./extends/pageReload";
+import { simpleParticleDataSchema, simpleParticleOptionSchema } from "./extends/simple-particle";
+import { simpleStarDataSchema, simpleStarOptionSchema } from "./extends/simpleStar";
import { swDataContainerDataSchema, swDataContainerOptionSchema } from "./extends/sw-dataContainer";
import { swDigitalHumanDataSchema, swDigitalHumanOptionSchema } from "./extends/sw-digital-human";
import { swMaskLayerDataSchema, swMaskLayerOptionSchema } from "./extends/sw-mask-layer";
import { swUnrealEngineDataSchema, swUnrealEngineOptionSchema } from "./extends/sw-unreal-engine";
import { swWeatherDataSchema, swWeatherOptionSchema } from "./extends/sw-weather";
-import { fullScreenSwitchDataSchema, fullScreenSwitchOptionSchema } from "./extends/fullScreenSwitch";
-import { pageReloadDataSchema, pageReloadOptionSchema } from "./extends/pageReload";
-import { simpleBarrageDataSchema, simpleBarrageOptionSchema } from "./extends/simple-barrage";
-import { simpleParticleDataSchema, simpleParticleOptionSchema } from "./extends/simple-particle";
-import { simpleStarDataSchema, simpleStarOptionSchema } from "./extends/simpleStar";
import { uePeerStreamingDataSchema, uePeerStreamingOptionSchema } from "./extends/ue-peer-streaming";
import { uePixelStreamingDataSchema, uePixelStreamingOptionSchema } from "./extends/ue-pixel-streaming";
import { ueVesselDataSchema, ueVesselOptionSchema } from "./extends/ue-vessel";
@@ -50,16 +49,21 @@ import { echartLiquidFillDataSchema, echartLiquidFillOptionSchema } from "./indi
import { echartprogressDataSchema, echartprogressOptionSchema } from "./indicator/echartprogress";
import { echartRingDataSchema, echartRingOptionSchema } from "./indicator/echartring";
import { echartWordcloudDataSchema, echartWordcloudOptionSchema } from "./indicator/echartwordcloud";
-import { ftdynamicratioDataSchema, ftdynamicratioOptionSchema } from "./indicator/swdynamicratio";
-import { swFlopPerformanceDataSchema, swFlopPerformanceOptionSchema } from "./indicator/swFlopPerformance";
import { iconRatioDataSchema, iconRatioOptionSchema } from "./indicator/iconRatio";
import { rankProgressDataSchema, rankProgressOptionSchema } from "./indicator/rank-progress";
import { rasterProgressBarDataSchema, rasterProgressBarOptionSchema } from "./indicator/rasterProgressBar";
import { sortRatioBarDataSchema, sortRatioBarOptionSchema } from "./indicator/sortRatioBar";
+import { ftdynamicratioDataSchema, ftdynamicratioOptionSchema } from "./indicator/swdynamicratio";
+import { swFlopPerformanceDataSchema, swFlopPerformanceOptionSchema } from "./indicator/swFlopPerformance";
import { formCheckboxDataSchema, formCheckboxOptionSchema } from "./interactive/formCheckbox";
import { formNavMenuDataSchema, formNavMenuOptionSchema } from "./interactive/formNavMenu";
import { formSliderDataSchema, formSliderOptionSchema } from "./interactive/formSlider";
import { formSwitchDataSchema, formSwitchOptionSchema } from "./interactive/formSwitch";
+import { multiSubtabsDataSchema, multiSubtabsOptionSchema } from "./interactive/multi-subtabs";
+import { pointTimelineDataSchema, pointTimelineOptionSchema } from "./interactive/pointTimeline";
+import { rollSubtabsDataSchema, rollSubtabsOptionSchema } from "./interactive/roll-subtabs";
+import { scrollPickerDataSchema, scrollPickerOptionSchema } from "./interactive/scrollPicker";
+import { subtabsDataSchema, subtabsOptionSchema } from "./interactive/subtabs";
import { swMutualDataSchema, swMutualOptionSchema } from "./interactive/sw-mutual";
import { swSearchDataSchema, swSearchOptionSchema } from "./interactive/sw-search";
import { swVoiceControlDataSchema, swVoiceControlOptionSchema } from "./interactive/sw-voice-control";
@@ -74,11 +78,6 @@ import {
swSingleSelectedLegendOptionSchema
} from "./interactive/swSingleSelectedLegend";
import { swTimerShaftDataSchema, swTimerShaftOptionSchema } from "./interactive/swTimerShaft";
-import { multiSubtabsDataSchema, multiSubtabsOptionSchema } from "./interactive/multi-subtabs";
-import { pointTimelineDataSchema, pointTimelineOptionSchema } from "./interactive/pointTimeline";
-import { rollSubtabsDataSchema, rollSubtabsOptionSchema } from "./interactive/roll-subtabs";
-import { scrollPickerDataSchema, scrollPickerOptionSchema } from "./interactive/scrollPicker";
-import { subtabsDataSchema, subtabsOptionSchema } from "./interactive/subtabs";
import { ctVideoPanelDataSchema, ctVideoPanelOptionSchema } from "./media/ctVideoPanel";
import { swEmbedAudioDataSchema, swEmbedAudioOptionSchema } from "./media/sw-embed-audio";
import { swOpenVideoDataSchema, swOpenVideoOptionSchema } from "./media/sw-open-video";
@@ -204,7 +203,6 @@ export const componentPropSchemaMap = {
"sw-weather": { data: swWeatherDataSchema, option: swWeatherOptionSchema },
fullScreenSwitch: { data: fullScreenSwitchDataSchema, option: fullScreenSwitchOptionSchema },
pageReload: { data: pageReloadDataSchema, option: pageReloadOptionSchema },
- "simple-barrage": { data: simpleBarrageDataSchema, option: simpleBarrageOptionSchema },
"simple-particle": { data: simpleParticleDataSchema, option: simpleParticleOptionSchema },
simpleStar: { data: simpleStarDataSchema, option: simpleStarOptionSchema },
"ue-peer-streaming": { data: uePeerStreamingDataSchema, option: uePeerStreamingOptionSchema },
diff --git a/packages/types/src/schemas/event-action-condition.ts b/packages/types/src/schemas/event-action-condition.ts
index d9ab0411..bcbd7a56 100644
--- a/packages/types/src/schemas/event-action-condition.ts
+++ b/packages/types/src/schemas/event-action-condition.ts
@@ -323,7 +323,6 @@ export const ActionSchema: z.ZodSchema = z.object({
/** 事件选择模型集合 */
option: z.record(z.string(), z.any()).optional().describe("事件选择模型集合"),
/** 当前页码 */
- currentpage: z.number().optional().describe("当前页码"),
/** 译文转换 */
translation: z.string().optional().describe("译文转换"),
/** 2.5D 地图标牌选中状态切换配置 */
diff --git a/packages/types/src/schemas/parsed-components/extends/simple-barrage.json b/packages/types/src/schemas/parsed-components/extends/simple-barrage.json
deleted file mode 100644
index aaea57e5..00000000
--- a/packages/types/src/schemas/parsed-components/extends/simple-barrage.json
+++ /dev/null
@@ -1,177 +0,0 @@
-{
- "meta": {
- "id": 94,
- "name": "弹幕组件",
- "prop": "simple-barrage",
- "componentName": "simple-barrage",
- "first_level_menu": "扩展",
- "second_level_menu": "",
- "thumbnail": "/img/barrage.02171652.gif"
- },
- "config": {
- "title": "弹幕组件",
- "name": "弹幕组件",
- "display": true,
- "icon": "icon-tabs",
- "img": "/img/barrage.02171652.gif",
- "callbackArgs": [],
- "events": [],
- "dataSource": {},
- "loadAnimation": {
- "type": "none",
- "opacityOpen": false,
- "timingFunction": "linear",
- "direction": "right",
- "duration": 1000,
- "delay": 0
- },
- "component": {
- "width": 450,
- "height": 500,
- "name": "simple-barrage",
- "prop": "simple-barrage"
- },
- "cbArgs": [],
- "listenArgs": [],
- "dataFormatter": "(data, callbackArgs) => {\r\n return data\r\n}",
- "dataType": 0,
- "data": [
- {
- "text": "Screenwright"
- },
- {
- "text": "让数据价值看得见"
- },
- {
- "text": "让数据内容用得着"
- },
- {
- "text": "看见数字化的无限可能"
- },
- {
- "text": "凡拓数字孪生可视化 映射万千物理世界"
- },
- {
- "text": "数字孪生,对物理世界的感知与管理"
- },
- {
- "text": "可视化的原则是准确清晰️又美观"
- },
- {
- "text": "Screenwright 数字孪生可视化搭建平台"
- },
- {
- "text": "体现数据之美"
- }
- ],
- "dataRemark": [
- {
- "key": "text",
- "map": "text",
- "decription": "文本"
- }
- ],
- "unitPavenType": "",
- "option": {
- "imageWidth": 400,
- "imageHeight": 400,
- "imageMinHeight": 20,
- "imageMaxHeight": 20,
- "imageObjectFit": "none",
- "scale": 1.3,
- "importType": "systemInterface",
- "importConfig": {
- "apiUrl": "",
- "method": "POST",
- "body": [],
- "headers": []
- },
- "loop": true,
- "lineNum": 5,
- "isHover": false,
- "speed": 0.2,
- "stylesList": [
- {
- "name": "样式1",
- "fontSize": 16,
- "fontWeight": false,
- "fontStyle": false,
- "letterSpacing": 0,
- "fontFamily": "sans-serif",
- "fontColor": "rgba(3,169,244,1)",
- "isTextShadow": false,
- "textShadow": {
- "x": 0,
- "y": 0,
- "blur": 0,
- "color": "rgba(255, 255, 255, 1)",
- "extend": 0
- }
- },
- {
- "name": "样式2",
- "fontSize": 16,
- "fontWeight": false,
- "fontStyle": false,
- "letterSpacing": 0,
- "fontFamily": "sans-serif",
- "fontColor": "rgba(103, 58, 183, 1)",
- "isTextShadow": false,
- "textShadow": {
- "x": 0,
- "y": 0,
- "blur": 0,
- "color": "rgba(255, 255, 255, 1)",
- "extend": 0
- }
- },
- {
- "name": "样式3",
- "fontSize": 16,
- "fontWeight": false,
- "fontStyle": false,
- "letterSpacing": 0,
- "fontFamily": "sans-serif",
- "fontColor": "rgba(255, 152, 0, 1)",
- "isTextShadow": false,
- "textShadow": {
- "x": 0,
- "y": 0,
- "blur": 0,
- "color": "rgba(255, 255, 255, 1)",
- "extend": 0
- }
- }
- ]
- }
- },
- "template": [
- {
- "text": "Screenwright"
- },
- {
- "text": "让数据价值看得见"
- },
- {
- "text": "让数据内容用得着"
- },
- {
- "text": "看见数字化的无限可能"
- },
- {
- "text": "凡拓数字孪生可视化 映射万千物理世界"
- },
- {
- "text": "数字孪生,对物理世界的感知与管理"
- },
- {
- "text": "可视化的原则是准确清晰️又美观"
- },
- {
- "text": "Screenwright 数字孪生可视化搭建平台"
- },
- {
- "text": "体现数据之美"
- }
- ]
-}
\ No newline at end of file
diff --git a/packages/types/src/schemas/parsed-components/pdfjs-viewer.json b/packages/types/src/schemas/parsed-components/pdfjs-viewer.json
deleted file mode 100644
index e9e7e708..00000000
--- a/packages/types/src/schemas/parsed-components/pdfjs-viewer.json
+++ /dev/null
@@ -1,66 +0,0 @@
-{
- "meta": {
- "id": 119,
- "name": "PDF容器v1",
- "prop": "pdfjs-viewer",
- "componentName": "pdfjs-viewer",
- "first_level_menu": "展项",
- "second_level_menu": "",
- "thumbnail": "/img/pdfjs-viewer.20241203.gif"
- },
- "config": {
- "title": "PDF容器v1",
- "name": "PDF容器v1",
- "display": true,
- "icon": "icon-video",
- "img": "/img/pdfjs-viewer.20241203.gif",
- "callbackArgs": [],
- "events": [],
- "loadAnimation": {
- "type": "none",
- "opacityOpen": false,
- "timingFunction": "linear",
- "direction": "right",
- "duration": 1000,
- "delay": 0
- },
- "time": 30,
- "dataType": 0,
- "dataMethod": "get",
- "dataSource": {},
- "requestHeader": "{}",
- "requestBody": "{}",
- "crossOrigin": false,
- "needCookie": false,
- "autoRefresh": false,
- "dataQuery": "",
- "isLock": false,
- "data": [],
- "dataRemark": [],
- "listenArgs": [],
- "cbArgs": [],
- "dataFormatter": "(data, callbackArgs) => {\r\n return data\r\n}",
- "component": {
- "width": 500,
- "height": 570,
- "name": "pdfjs-viewer",
- "prop": "pdfjs-viewer"
- },
- "option": {
- "showAll": false,
- "showPage": true,
- "current": 1,
- "zoomValue": 1.2,
- "fontSize": 12,
- "fontWeight": "",
- "fontStyle": "",
- "fontFamily": "sans-serif",
- "fontColor": "rgba(255, 255, 255, 1)",
- "textTranslateX": 0,
- "textTranslateY": 0,
- "backgroundColor": "rgba(0, 0, 0, 0.5)",
- "pdfUrl": "version-test/assets/defaultImg/default.pdf"
- }
- },
- "template": []
-}
\ No newline at end of file
diff --git a/packages/types/src/schemas/parsed-components/sw-signaturePad.json b/packages/types/src/schemas/parsed-components/sw-signaturePad.json
deleted file mode 100644
index a1d413fe..00000000
--- a/packages/types/src/schemas/parsed-components/sw-signaturePad.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "meta": {
- "id": 128,
- "name": "签名板",
- "prop": "sw-signaturePad",
- "componentName": "sw-signaturePad",
- "first_level_menu": "展项",
- "second_level_menu": "",
- "thumbnail": "/img/default.1026.png"
- },
- "config": {
- "title": "签名板",
- "name": "签名板",
- "display": true,
- "icon": "icon-video",
- "img": "/img/ft-particles.gif",
- "callbackArgs": [],
- "events": [],
- "loadAnimation": {
- "type": "none",
- "opacityOpen": false,
- "timingFunction": "linear",
- "direction": "right",
- "duration": 1000,
- "delay": 0
- },
- "top": 0,
- "left": 0,
- "time": 30,
- "dataType": 0,
- "dataMethod": "get",
- "dataSource": {},
- "requestHeader": "{}",
- "requestBody": "{}",
- "crossOrigin": false,
- "needCookie": false,
- "autoRefresh": false,
- "dataQuery": "",
- "isLock": false,
- "data": [
- {
- "penWidth": 10
- }
- ],
- "dataRemark": [],
- "listenArgs": [],
- "cbArgs": [],
- "dataFormatter": "(data, callbackArgs) => {\r\n return data\r\n}",
- "component": {
- "width": 1920,
- "height": 1080,
- "name": "sw-signaturePad",
- "prop": "sw-signaturePad"
- },
- "option": {
- "exportType": "systemInterface",
- "penColor": "#642cff",
- "dotSize": "8",
- "minWidth": 3,
- "velocityFilterWeight": 0.2,
- "minDistance": 5,
- "backgroundColor": "rgba(0,0,0,0)",
- "throttle": 10,
- "actionControls": {
- "export": true,
- "clear": true,
- "undo": true,
- "redo": true
- },
- "configControls": {
- "penColor": true,
- "backgroundColor": true,
- "lineWidth": true
- },
- "exportConfig": {
- "apiUrl": "",
- "method": "POST",
- "body": [],
- "headers": []
- }
- }
- },
- "template": []
-}
\ No newline at end of file
diff --git a/packages/types/src/schemas/parsed-components/verticalCard.json b/packages/types/src/schemas/parsed-components/verticalCard.json
deleted file mode 100644
index b0679268..00000000
--- a/packages/types/src/schemas/parsed-components/verticalCard.json
+++ /dev/null
@@ -1,536 +0,0 @@
-{
- "meta": {
- "id": 149,
- "name": "垂直卡片",
- "prop": "verticalCard",
- "componentName": "vertical-card",
- "first_level_menu": "展项",
- "second_level_menu": "",
- "thumbnail": "/img/verticalCard-default.20251231.png"
- },
- "config": {
- "title": "垂直卡片",
- "name": "垂直卡片",
- "display": true,
- "icon": "icon-scatter",
- "img": "/img/verticalCard-default.20251231.png",
- "callbackArgs": [],
- "events": [],
- "loadAnimation": {
- "type": "none",
- "opacityOpen": false,
- "timingFunction": "linear",
- "direction": "right",
- "duration": 1000,
- "delay": 0
- },
- "dataType": 0,
- "dataSource": {},
- "requestHeader": {},
- "requestBody": {},
- "crossOrigin": false,
- "needCookie": false,
- "autoRefresh": false,
- "dataQuery": "",
- "isLock": false,
- "dataMethod": "get",
- "path": "",
- "time": 30,
- "url": "",
- "data": [],
- "dataRemark": [],
- "openFilter": false,
- "listenArgs": [],
- "cbArgs": [],
- "dataFormatter": "(data, callbackArgs) => {\r\n return data\r\n}",
- "component": {
- "width": 1920,
- "height": 1080,
- "name": "vertical-card",
- "prop": "verticalCard"
- },
- "option": {
- "globalConfig": {
- "autoplay": true,
- "autoplayTimeout": 2000,
- "autoplayHoverPause": false,
- "perspective": 35,
- "display": 5,
- "loop": true,
- "animationSpeed": 500,
- "dir": "rtl",
- "space": 400,
- "width": 400,
- "height": 700,
- "startIndex": 0,
- "controlsVisible": false,
- "controlBtnRBg": "version-test/assets/newSystemAssets/箭头/箭头05.png",
- "controlBtnLBg": "version-test/assets/newSystemAssets/箭头/箭头06.png",
- "blur": 10
- },
- "cardList": [
- {
- "tabsName": "卡片1",
- "titleContent": "夏日田野",
- "textContent": "生活是一幅绚丽多彩的画卷,即使遇到挫折和困难,也请记得抬头看看身边的美丽风景。放宽心态,用一颗平和的心去面对生活的起起落落,你会发现,即便是在黑暗中,也有闪烁的星光指引着前行的方向。",
- "backgroundImg": "version-test/assets/defaultImg/verticalCard1.jpg",
- "coverImg": "version-test/assets/defaultImg/verticalCard1.jpg",
- "defaultObj": {
- "markOpacity": 30,
- "width": 400,
- "height": 700,
- "titleShow": true,
- "titleWidth": 200,
- "titleHeight": 100,
- "titleFontFamily": "Source Han Sans CN-Normal, Source Han Sans CN",
- "titleFontSize": 44,
- "titleLineHeight": 40,
- "titleLetterSpacing": 4,
- "titleColor": "rgba(255,255,255,1.00)",
- "titleFontStyle": "normal",
- "titleFontWeight": "normal",
- "titleOffsetLeft": 100,
- "titleOffsetTop": 580,
- "textShow": false,
- "textWidth": 300,
- "textHeight": 150,
- "textFontFamily": "Source Han Sans CN-Normal, Source Han Sans CN",
- "textFontSize": 20,
- "textLineHeight": 30,
- "textLetterSpacing": 2,
- "textColor": "rgba(255,255,255,1.00)",
- "textFontStyle": "normal",
- "textFontWeight": "normal",
- "textOffsetLeft": 50,
- "textOffsetTop": 100
- },
- "activeObj": {
- "markOpacity": 0,
- "width": 400,
- "height": 700,
- "titleShow": true,
- "titleWidth": 200,
- "titleHeight": 100,
- "titleFontFamily": "Source Han Sans CN-Normal, Source Han Sans CN",
- "titleFontSize": 44,
- "titleLineHeight": 40,
- "titleLetterSpacing": 4,
- "titleColor": "rgba(255,255,255,1.00)",
- "titleFontStyle": "normal",
- "titleFontWeight": "normal",
- "titleOffsetLeft": 100,
- "titleOffsetTop": 580,
- "textShow": true,
- "textWidth": 300,
- "textHeight": 150,
- "textFontFamily": "Source Han Sans CN-Normal, Source Han Sans CN",
- "textFontSize": 20,
- "textLineHeight": 30,
- "textLetterSpacing": 2,
- "textColor": "rgba(255,255,255,1.00)",
- "textFontStyle": "normal",
- "textFontWeight": "normal",
- "textOffsetLeft": 50,
- "textOffsetTop": 100
- }
- },
- {
- "tabsName": "卡片2",
- "titleContent": "海边日落",
- "textContent": "生活是一幅绚丽多彩的画卷,即使遇到挫折和困难,也请记得抬头看看身边的美丽风景。放宽心态,用一颗平和的心去面对生活的起起落落,你会发现,即便是在黑暗中,也有闪烁的星光指引着前行的方向。",
- "backgroundImg": "version-test/assets/defaultImg/verticalCard2.jpg",
- "coverImg": "version-test/assets/defaultImg/verticalCard2.jpg",
- "defaultObj": {
- "markOpacity": 30,
- "width": 400,
- "height": 700,
- "titleShow": true,
- "titleWidth": 200,
- "titleHeight": 100,
- "titleFontFamily": "Source Han Sans CN-Normal, Source Han Sans CN",
- "titleFontSize": 44,
- "titleLineHeight": 40,
- "titleLetterSpacing": 4,
- "titleColor": "rgba(255,255,255,1.00)",
- "titleFontStyle": "normal",
- "titleFontWeight": "normal",
- "titleOffsetLeft": 100,
- "titleOffsetTop": 580,
- "textShow": false,
- "textWidth": 300,
- "textHeight": 150,
- "textFontFamily": "Source Han Sans CN-Normal, Source Han Sans CN",
- "textFontSize": 20,
- "textLineHeight": 30,
- "textLetterSpacing": 2,
- "textColor": "rgba(255,255,255,1.00)",
- "textFontStyle": "normal",
- "textFontWeight": "normal",
- "textOffsetLeft": 50,
- "textOffsetTop": 100
- },
- "activeObj": {
- "markOpacity": 0,
- "width": 400,
- "height": 700,
- "titleShow": true,
- "titleWidth": 200,
- "titleHeight": 100,
- "titleFontFamily": "Source Han Sans CN-Normal, Source Han Sans CN",
- "titleFontSize": 44,
- "titleLineHeight": 40,
- "titleLetterSpacing": 4,
- "titleColor": "rgba(255,255,255,1.00)",
- "titleFontStyle": "normal",
- "titleFontWeight": "normal",
- "titleOffsetLeft": 100,
- "titleOffsetTop": 580,
- "textShow": true,
- "textWidth": 300,
- "textHeight": 150,
- "textFontFamily": "Source Han Sans CN-Normal, Source Han Sans CN",
- "textFontSize": 20,
- "textLineHeight": 30,
- "textLetterSpacing": 2,
- "textColor": "rgba(255,255,255,1.00)",
- "textFontStyle": "normal",
- "textFontWeight": "normal",
- "textOffsetLeft": 50,
- "textOffsetTop": 100
- }
- },
- {
- "tabsName": "卡片3",
- "titleContent": "小桥流水",
- "textContent": "生活是一幅绚丽多彩的画卷,即使遇到挫折和困难,也请记得抬头看看身边的美丽风景。放宽心态,用一颗平和的心去面对生活的起起落落,你会发现,即便是在黑暗中,也有闪烁的星光指引着前行的方向。",
- "backgroundImg": "version-test/assets/defaultImg/verticalCard3.jpg",
- "coverImg": "version-test/assets/defaultImg/verticalCard3.jpg",
- "defaultObj": {
- "markOpacity": 30,
- "width": 400,
- "height": 700,
- "titleShow": true,
- "titleWidth": 200,
- "titleHeight": 100,
- "titleFontFamily": "Source Han Sans CN-Normal, Source Han Sans CN",
- "titleFontSize": 44,
- "titleLineHeight": 40,
- "titleLetterSpacing": 4,
- "titleColor": "rgba(255,255,255,1.00)",
- "titleFontStyle": "normal",
- "titleFontWeight": "normal",
- "titleOffsetLeft": 100,
- "titleOffsetTop": 580,
- "textShow": false,
- "textWidth": 300,
- "textHeight": 150,
- "textFontFamily": "Source Han Sans CN-Normal, Source Han Sans CN",
- "textFontSize": 20,
- "textLineHeight": 30,
- "textLetterSpacing": 2,
- "textColor": "rgba(255,255,255,1.00)",
- "textFontStyle": "normal",
- "textFontWeight": "normal",
- "textOffsetLeft": 50,
- "textOffsetTop": 100
- },
- "activeObj": {
- "markOpacity": 0,
- "width": 400,
- "height": 700,
- "titleShow": true,
- "titleWidth": 200,
- "titleHeight": 100,
- "titleFontFamily": "Source Han Sans CN-Normal, Source Han Sans CN",
- "titleFontSize": 44,
- "titleLineHeight": 40,
- "titleLetterSpacing": 4,
- "titleColor": "rgba(255,255,255,1.00)",
- "titleFontStyle": "normal",
- "titleFontWeight": "normal",
- "titleOffsetLeft": 100,
- "titleOffsetTop": 580,
- "textShow": true,
- "textWidth": 300,
- "textHeight": 150,
- "textFontFamily": "Source Han Sans CN-Normal, Source Han Sans CN",
- "textFontSize": 20,
- "textLineHeight": 30,
- "textLetterSpacing": 2,
- "textColor": "rgba(255,255,255,1.00)",
- "textFontStyle": "normal",
- "textFontWeight": "normal",
- "textOffsetLeft": 50,
- "textOffsetTop": 100
- }
- },
- {
- "tabsName": "卡片4",
- "titleContent": "梯田江边",
- "textContent": "生活是一幅绚丽多彩的画卷,即使遇到挫折和困难,也请记得抬头看看身边的美丽风景。放宽心态,用一颗平和的心去面对生活的起起落落,你会发现,即便是在黑暗中,也有闪烁的星光指引着前行的方向。",
- "backgroundImg": "version-test/assets/defaultImg/verticalCard4.jpg",
- "coverImg": "version-test/assets/defaultImg/verticalCard4.jpg",
- "defaultObj": {
- "markOpacity": 30,
- "width": 400,
- "height": 700,
- "titleShow": true,
- "titleWidth": 200,
- "titleHeight": 100,
- "titleFontFamily": "Source Han Sans CN-Normal, Source Han Sans CN",
- "titleFontSize": 44,
- "titleLineHeight": 40,
- "titleLetterSpacing": 4,
- "titleColor": "rgba(255,255,255,1.00)",
- "titleFontStyle": "normal",
- "titleFontWeight": "normal",
- "titleOffsetLeft": 100,
- "titleOffsetTop": 580,
- "textShow": false,
- "textWidth": 300,
- "textHeight": 150,
- "textFontFamily": "Source Han Sans CN-Normal, Source Han Sans CN",
- "textFontSize": 20,
- "textLineHeight": 30,
- "textLetterSpacing": 2,
- "textColor": "rgba(255,255,255,1.00)",
- "textFontStyle": "normal",
- "textFontWeight": "normal",
- "textOffsetLeft": 50,
- "textOffsetTop": 100
- },
- "activeObj": {
- "markOpacity": 0,
- "width": 400,
- "height": 700,
- "titleShow": true,
- "titleWidth": 200,
- "titleHeight": 100,
- "titleFontFamily": "Source Han Sans CN-Normal, Source Han Sans CN",
- "titleFontSize": 44,
- "titleLineHeight": 40,
- "titleLetterSpacing": 4,
- "titleColor": "rgba(255,255,255,1.00)",
- "titleFontStyle": "normal",
- "titleFontWeight": "normal",
- "titleOffsetLeft": 100,
- "titleOffsetTop": 580,
- "textShow": true,
- "textWidth": 300,
- "textHeight": 150,
- "textFontFamily": "Source Han Sans CN-Normal, Source Han Sans CN",
- "textFontSize": 20,
- "textLineHeight": 30,
- "textLetterSpacing": 2,
- "textColor": "rgba(255,255,255,1.00)",
- "textFontStyle": "normal",
- "textFontWeight": "normal",
- "textOffsetLeft": 50,
- "textOffsetTop": 100
- }
- },
- {
- "tabsName": "卡片5",
- "titleContent": "车水马龙",
- "textContent": "生活是一幅绚丽多彩的画卷,即使遇到挫折和困难,也请记得抬头看看身边的美丽风景。放宽心态,用一颗平和的心去面对生活的起起落落,你会发现,即便是在黑暗中,也有闪烁的星光指引着前行的方向。",
- "backgroundImg": "version-test/assets/defaultImg/verticalCard5.jpg",
- "coverImg": "version-test/assets/defaultImg/verticalCard5.jpg",
- "defaultObj": {
- "markOpacity": 30,
- "width": 400,
- "height": 700,
- "titleShow": true,
- "titleWidth": 200,
- "titleHeight": 100,
- "titleFontFamily": "Source Han Sans CN-Normal, Source Han Sans CN",
- "titleFontSize": 44,
- "titleLineHeight": 40,
- "titleLetterSpacing": 4,
- "titleColor": "rgba(255,255,255,1.00)",
- "titleFontStyle": "normal",
- "titleFontWeight": "normal",
- "titleOffsetLeft": 100,
- "titleOffsetTop": 580,
- "textShow": false,
- "textWidth": 300,
- "textHeight": 150,
- "textFontFamily": "Source Han Sans CN-Normal, Source Han Sans CN",
- "textFontSize": 20,
- "textLineHeight": 30,
- "textLetterSpacing": 2,
- "textColor": "rgba(255,255,255,1.00)",
- "textFontStyle": "normal",
- "textFontWeight": "normal",
- "textOffsetLeft": 50,
- "textOffsetTop": 100
- },
- "activeObj": {
- "markOpacity": 0,
- "width": 400,
- "height": 700,
- "titleShow": true,
- "titleWidth": 200,
- "titleHeight": 100,
- "titleFontFamily": "Source Han Sans CN-Normal, Source Han Sans CN",
- "titleFontSize": 44,
- "titleLineHeight": 40,
- "titleLetterSpacing": 4,
- "titleColor": "rgba(255,255,255,1.00)",
- "titleFontStyle": "normal",
- "titleFontWeight": "normal",
- "titleOffsetLeft": 100,
- "titleOffsetTop": 580,
- "textShow": true,
- "textWidth": 300,
- "textHeight": 150,
- "textFontFamily": "Source Han Sans CN-Normal, Source Han Sans CN",
- "textFontSize": 20,
- "textLineHeight": 30,
- "textLetterSpacing": 2,
- "textColor": "rgba(255,255,255,1.00)",
- "textFontStyle": "normal",
- "textFontWeight": "normal",
- "textOffsetLeft": 50,
- "textOffsetTop": 100
- }
- },
- {
- "tabsName": "卡片6",
- "titleContent": "海边灯塔",
- "textContent": "生活是一幅绚丽多彩的画卷,即使遇到挫折和困难,也请记得抬头看看身边的美丽风景。放宽心态,用一颗平和的心去面对生活的起起落落,你会发现,即便是在黑暗中,也有闪烁的星光指引着前行的方向。",
- "backgroundImg": "version-test/assets/defaultImg/verticalCard6.jpg",
- "coverImg": "version-test/assets/defaultImg/verticalCard6.jpg",
- "defaultObj": {
- "markOpacity": 30,
- "width": 400,
- "height": 700,
- "titleShow": true,
- "titleWidth": 200,
- "titleHeight": 100,
- "titleFontFamily": "Source Han Sans CN-Normal, Source Han Sans CN",
- "titleFontSize": 44,
- "titleLineHeight": 40,
- "titleLetterSpacing": 4,
- "titleColor": "rgba(255,255,255,1.00)",
- "titleFontStyle": "normal",
- "titleFontWeight": "normal",
- "titleOffsetLeft": 100,
- "titleOffsetTop": 580,
- "textShow": false,
- "textWidth": 300,
- "textHeight": 150,
- "textFontFamily": "Source Han Sans CN-Normal, Source Han Sans CN",
- "textFontSize": 20,
- "textLineHeight": 30,
- "textLetterSpacing": 2,
- "textColor": "rgba(255,255,255,1.00)",
- "textFontStyle": "normal",
- "textFontWeight": "normal",
- "textOffsetLeft": 50,
- "textOffsetTop": 100
- },
- "activeObj": {
- "markOpacity": 0,
- "width": 400,
- "height": 700,
- "titleShow": true,
- "titleWidth": 200,
- "titleHeight": 100,
- "titleFontFamily": "Source Han Sans CN-Normal, Source Han Sans CN",
- "titleFontSize": 44,
- "titleLineHeight": 40,
- "titleLetterSpacing": 4,
- "titleColor": "rgba(255,255,255,1.00)",
- "titleFontStyle": "normal",
- "titleFontWeight": "normal",
- "titleOffsetLeft": 100,
- "titleOffsetTop": 580,
- "textShow": true,
- "textWidth": 300,
- "textHeight": 150,
- "textFontFamily": "Source Han Sans CN-Normal, Source Han Sans CN",
- "textFontSize": 20,
- "textLineHeight": 30,
- "textLetterSpacing": 2,
- "textColor": "rgba(255,255,255,1.00)",
- "textFontStyle": "normal",
- "textFontWeight": "normal",
- "textOffsetLeft": 50,
- "textOffsetTop": 100
- }
- },
- {
- "tabsName": "卡片7",
- "titleContent": "日落星河",
- "textContent": "生活是一幅绚丽多彩的画卷,即使遇到挫折和困难,也请记得抬头看看身边的美丽风景。放宽心态,用一颗平和的心去面对生活的起起落落,你会发现,即便是在黑暗中,也有闪烁的星光指引着前行的方向。",
- "backgroundImg": "version-test/assets/defaultImg/verticalCard7.jpg",
- "coverImg": "version-test/assets/defaultImg/verticalCard7.jpg",
- "defaultObj": {
- "markOpacity": 30,
- "width": 400,
- "height": 700,
- "titleShow": true,
- "titleWidth": 200,
- "titleHeight": 100,
- "titleFontFamily": "Source Han Sans CN-Normal, Source Han Sans CN",
- "titleFontSize": 44,
- "titleLineHeight": 40,
- "titleLetterSpacing": 4,
- "titleColor": "rgba(255,255,255,1.00)",
- "titleFontStyle": "normal",
- "titleFontWeight": "normal",
- "titleOffsetLeft": 100,
- "titleOffsetTop": 580,
- "textShow": false,
- "textWidth": 300,
- "textHeight": 150,
- "textFontFamily": "Source Han Sans CN-Normal, Source Han Sans CN",
- "textFontSize": 20,
- "textLineHeight": 30,
- "textLetterSpacing": 2,
- "textColor": "rgba(255,255,255,1.00)",
- "textFontStyle": "normal",
- "textFontWeight": "normal",
- "textOffsetLeft": 50,
- "textOffsetTop": 100
- },
- "activeObj": {
- "markOpacity": 0,
- "width": 400,
- "height": 700,
- "titleShow": true,
- "titleWidth": 200,
- "titleHeight": 100,
- "titleFontFamily": "Source Han Sans CN-Normal, Source Han Sans CN",
- "titleFontSize": 44,
- "titleLineHeight": 40,
- "titleLetterSpacing": 4,
- "titleColor": "rgba(255,255,255,1.00)",
- "titleFontStyle": "normal",
- "titleFontWeight": "normal",
- "titleOffsetLeft": 100,
- "titleOffsetTop": 580,
- "textShow": true,
- "textWidth": 300,
- "textHeight": 150,
- "textFontFamily": "Source Han Sans CN-Normal, Source Han Sans CN",
- "textFontSize": 20,
- "textLineHeight": 30,
- "textLetterSpacing": 2,
- "textColor": "rgba(255,255,255,1.00)",
- "textFontStyle": "normal",
- "textFontWeight": "normal",
- "textOffsetLeft": 50,
- "textOffsetTop": 100
- }
- }
- ],
- "refresh": true
- },
- "left": 0,
- "top": 0,
- "showSubComponent": false,
- "parentDynamicPanelId": []
- },
- "template": []
-}
\ No newline at end of file
diff --git a/packages/types/src/templates/index.ts b/packages/types/src/templates/index.ts
index 9ec24f1e..533524fd 100644
--- a/packages/types/src/templates/index.ts
+++ b/packages/types/src/templates/index.ts
@@ -101,11 +101,6 @@ const delayOnlyActions = new Set([
ActionTypeEnum.VoiceControlStop,
ActionTypeEnum.prevPage,
ActionTypeEnum.nextPage,
- ActionTypeEnum.OnExport,
- ActionTypeEnum.OnClear,
- ActionTypeEnum.OnRedo,
- ActionTypeEnum.OnUndo,
- ActionTypeEnum.Signature,
ActionTypeEnum.TurnOnPatrol,
ActionTypeEnum.PausePatrol,
ActionTypeEnum.RestartPatrol,
@@ -113,7 +108,6 @@ const delayOnlyActions = new Set([
ActionTypeEnum.toNextStatus,
ActionTypeEnum.MouseEnter,
ActionTypeEnum.MouseLeave,
- ActionTypeEnum.OnTranslateImage
]);
/**
@@ -315,10 +309,6 @@ export const createTemplateAction = (actionType: ActionTypeEnum): Partial {
videoStartTime: 0,
videoEndTime: 0,
option: {},
- currentpage: 1,
translation: "zh"
};
};
diff --git a/packages/types/src/types/action.ts b/packages/types/src/types/action.ts
index 9cc2b0f3..00c3500f 100644
--- a/packages/types/src/types/action.ts
+++ b/packages/types/src/types/action.ts
@@ -280,39 +280,6 @@ export enum ActionTypeEnum {
*/
nextPage = "nextPage",
- /**
- * @description 导出
- */
- OnExport = "onExport",
-
- /**
- * @description 清除
- */
- OnClear = "onClear",
-
- /**
- * @description 重做
- */
- OnRedo = "onRedo",
-
- /**
- * @description 撤销
- */
- OnUndo = "onUndo",
-
- /**
- * @description 转换图像
- */
- OnTranslateImage = "onTranslateImage",
-
- /**
- * @description 签名
- */
- Signature = "signature",
- /**
- * @description 跳转页码
- */
- JumpPage = "jumpPage",
/**
* @description 轮巡开启
*/
@@ -372,7 +339,7 @@ export const Action2ComponentType: Record;
- /** @description 当前页码 */
- currentpage?: number;
-
/** @description 译文转换 */
translation?: string;
}
diff --git a/packages/types/src/types/component-event.ts b/packages/types/src/types/component-event.ts
index 08d40991..fd0cd2c4 100644
--- a/packages/types/src/types/component-event.ts
+++ b/packages/types/src/types/component-event.ts
@@ -127,7 +127,7 @@ interface RollSubtabsEvents {
}
interface FtMutualEvents {
- [key: `${InteractiveEnum.FtMutual}-${string}`]: {
+ [key: `${InteractiveEnum.SwMutual}-${string}`]: {
/**
* @description 点击事件
*/
@@ -136,7 +136,7 @@ interface FtMutualEvents {
}
interface FtLegendEvents {
- [key: `${InteractiveEnum.FtLegend}-${string}`]: {
+ [key: `${InteractiveEnum.SwLegend}-${string}`]: {
/**
* @description 点击事件
*/
@@ -145,7 +145,7 @@ interface FtLegendEvents {
}
interface FtSearchEvents {
- [key: `${InteractiveEnum.FtSearch}-${string}`]: {
+ [key: `${InteractiveEnum.SwSearch}-${string}`]: {
/**
* @description 点击事件
*/
@@ -154,7 +154,7 @@ interface FtSearchEvents {
}
interface FtCustomSelectEvents {
- [key: `${InteractiveEnum.FtCustomSelect}-${string}`]: {
+ [key: `${InteractiveEnum.SwCustomSelect}-${string}`]: {
/**
* @description 点击事件
*/
@@ -163,7 +163,7 @@ interface FtCustomSelectEvents {
}
interface FtVoiveControlEvents {
- [key: `${InteractiveEnum.FtVoiceControl}-${string}`]: {
+ [key: `${InteractiveEnum.SwVoiceControl}-${string}`]: {
/**
* @description 点击事件
*/
@@ -172,7 +172,7 @@ interface FtVoiveControlEvents {
}
interface FtPageQueryEvents {
- [key: `${InteractiveEnum.FtPageQuery}-${string}`]: {
+ [key: `${InteractiveEnum.SwPageQuery}-${string}`]: {
/**
* @description 点击事件
*/
@@ -182,7 +182,7 @@ interface FtPageQueryEvents {
}
interface FtCascaderEvents {
- [key: `${InteractiveEnum.FtCascader}-${string}`]: {
+ [key: `${InteractiveEnum.SwCascader}-${string}`]: {
/**
* @description 点击事件
*/
@@ -191,7 +191,7 @@ interface FtCascaderEvents {
}
interface FtSingleSelectedLegendEvents {
- [key: `${InteractiveEnum.FtSingleSelectedLegend}-${string}`]: {
+ [key: `${InteractiveEnum.SwSingleSelectedLegend}-${string}`]: {
/**
* @description 点击事件
*/
@@ -209,7 +209,7 @@ interface FormNavMenuEvents {
}
interface FtTimerShaftEvents {
- [key: `${InteractiveEnum.FtTimerShaft}-${string}`]: {
+ [key: `${InteractiveEnum.SwTimerShaft}-${string}`]: {
/**
* @description 点击事件
*/
@@ -238,7 +238,7 @@ interface PointTimelineEvents {
}
interface FtPageTurningEvents {
- [key: `${InteractiveEnum.FtPageTurning}-${string}`]: {
+ [key: `${InteractiveEnum.SwPageTurning}-${string}`]: {
/**
* @description 点击事件
*/
@@ -247,7 +247,7 @@ interface FtPageTurningEvents {
}
interface FtDateTimePickerEvents {
- [key: `${InteractiveEnum.FtDateTimePicker}-${string}`]: {
+ [key: `${InteractiveEnum.SwDateTimePicker}-${string}`]: {
/**
* @description 点击事件
*/
@@ -256,7 +256,7 @@ interface FtDateTimePickerEvents {
}
interface FtProgressEvents {
- [key: `${TextEnum.FtProgress}-${string}`]: {
+ [key: `${TextEnum.SwProgress}-${string}`]: {
/**
* @description 点击事件
*/
@@ -265,7 +265,7 @@ interface FtProgressEvents {
}
interface FtTextWordCloudEvents {
- [key: `${TextEnum.FtTextWordCloud}-${string}`]: {
+ [key: `${TextEnum.SwTextWordCloud}-${string}`]: {
/**
* @description 点击事件
*/
@@ -285,7 +285,7 @@ interface CtVideoPanelEvents {
}
interface FtScrollEvents {
- [key: `${TextEnum.FtScroll}-${string}`]: {
+ [key: `${TextEnum.SwScroll}-${string}`]: {
/**
* @description 点击事件
*/
@@ -294,7 +294,7 @@ interface FtScrollEvents {
}
interface FtSwiperCardEvents {
- [key: `${MediaEnum.FtSwiperCard}-${string}`]: {
+ [key: `${MediaEnum.SwSwiperCard}-${string}`]: {
/**
* @description 点击事件
*/
@@ -366,7 +366,7 @@ interface ftParticlesEvents {
/**
* 空间粒子init方法
*/
- [key: `${ExhibitEnum.FtParticles}-${number}`]: {
+ [key: `${ExhibitEnum.SwParticles}-${number}`]: {
particlesReStart: () => void;
};
}
@@ -500,7 +500,7 @@ interface EchartscalePieEvents {
}
interface FtUnrealEngineEvents {
- [key: `${ExtendsEnum.FtUnrealEngine}-${string}`]: {
+ [key: `${ExtendsEnum.SwUnrealEngine}-${string}`]: {
setupBlueprintData: (throwValue: any) => void;
sendMessageToUe: (funName: string, data: any) => void;
switchBlueprintTab: (key: string, info: any) => void;
@@ -508,7 +508,7 @@ interface FtUnrealEngineEvents {
}
interface FtVideoEvents {
- [key: `${MediaEnum.FtVideo}-${string}`]: {
+ [key: `${MediaEnum.SwVideo}-${string}`]: {
handleClick: (throwValue: any) => void;
/**
* 视频播放
@@ -562,7 +562,7 @@ interface FtVideoEvents {
}
// 数字人自定义事件
interface ftDigitalHumanEvents {
- [key: `${ExtendsEnum.FtDigitalHuman}-${number}`]: {
+ [key: `${ExtendsEnum.SwDigitalHuman}-${number}`]: {
sendMsgToHuman: (message: string, type: "chat" | "echo") => void;
startWebRTC: (toStart: boolean) => void;
};
@@ -578,27 +578,12 @@ interface ftVuePartEvents {
};
}
-interface FtSimpleBarrageEvents {
- [key: `${ExtendsEnum.SimpleBarrage}-${number}`]: {
- onSignaturePadSave: ({ imageUrl }: { imageUrl: string }) => void;
- handleClick: () => void;
- };
-}
-
interface PageReloadEvents {
[key: `${ExtendsEnum.PageReload}-${number}`]: {
handleClick: () => void;
};
}
-// pdf事件
-interface pdfEvents {
- [key: `${ExhibitEnum.PdfjsViewer}-${number}`]: {
- handlePrevClick: (type: string) => void;
- handleNextClick: (type: string) => void;
- handlePageChange: (currentPage: number) => void;
- };
-}
interface scrollPickerEvents {
[key: `${InteractiveEnum.ScrollPicker}-${number}`]: {
handleClick: (actionSelect: { label: string; value: string; s: string }) => void;
@@ -611,17 +596,6 @@ interface ImagesList3dEvents {
};
}
-interface FtSignaturePad {
- [key: `${ExhibitEnum.FtSignaturePad}-${number}`]: {
- onExport: () => void;
- onClear: () => void;
- onRedo: () => void;
- onUndo: () => void;
- onTranslateImage: () => void;
- };
-}
-
-
export type TotalPanelEventMap = DynamicPanelEvents &
ThreeSceneEvents &
IndustrySceneEvents &
@@ -673,7 +647,6 @@ export type TotalPanelEventMap = DynamicPanelEvents &
FtVideoEvents &
ftDigitalHumanEvents &
ftVuePartEvents &
- FtSimpleBarrageEvents &
PageReloadEvents &
FtUnrealEngineEvents &
videoProgressEvents;
@@ -730,11 +703,8 @@ export type toAddEvent =
| FtVideoEvents
| ftDigitalHumanEvents
| ftVuePartEvents
- | FtSimpleBarrageEvents
| PageReloadEvents
- | pdfEvents
| scrollPickerEvents
| ImagesList3dEvents
- | FtSignaturePad
| FtUnrealEngineEvents
| videoProgressEvents;
diff --git a/packages/types/src/types/componentProp/exhibit.ts b/packages/types/src/types/componentProp/exhibit.ts
index f24a594c..ef573be8 100644
--- a/packages/types/src/types/componentProp/exhibit.ts
+++ b/packages/types/src/types/componentProp/exhibit.ts
@@ -14,16 +14,10 @@ export enum ExhibitEnum {
ringIndicator3dNew = "ringIndicator3dNew",
/** 3D图片列表 */
ImagesList3d = "imagesList3d",
- /** PDF查看器 */
- PdfjsViewer = "pdfjs-viewer",
/** 空间粒子 */
- FtParticles = "sw-particles",
- /** 签名板 */
- FtSignaturePad = "sw-signaturePad",
+ SwParticles = "sw-particles",
/** 滤镜组件 */
- FtFilter = "sw-filter",
- /** 垂直卡片 */
- verticalCard = "verticalCard"
+ SwFilter = "sw-filter",
}
/** @deprecated 使用 ExhibitEnum 代替 */
diff --git a/packages/types/src/types/componentProp/extends.ts b/packages/types/src/types/componentProp/extends.ts
index 912c8f55..5394ab08 100644
--- a/packages/types/src/types/componentProp/extends.ts
+++ b/packages/types/src/types/componentProp/extends.ts
@@ -13,11 +13,11 @@ export enum ExtendsEnum {
/** UE容器 */
UeVessel = "ue-vessel",
/** 虚幻引擎 */
- FtUnrealEngine = "sw-unreal-engine",
+ SwUnrealEngine = "sw-unreal-engine",
/** UE像素流 */
UePixelStreaming = "ue-pixel-streaming",
/** 数字人 */
- FtDigitalHuman = "sw-digital-human",
+ SwDigitalHuman = "sw-digital-human",
/** 闪点组件 */
SimpleStar = "simpleStar",
/** 全屏切换 */
@@ -26,14 +26,12 @@ export enum ExtendsEnum {
PageReload = "pageReload",
/** 上升粒子 */
SimpleParticle = "simple-particle",
- /** 弹幕 */
- SimpleBarrage = "simple-barrage",
/** 数据容器 */
- FtDataContainer = "sw-dataContainer",
+ SwDataContainer = "sw-dataContainer",
/** 天气 */
- FtWeather = "sw-weather",
+ SwWeather = "sw-weather",
/** 遮罩层 */
- FtMaskLayer = "sw-mask-layer",
+ SwMaskLayer = "sw-mask-layer"
}
/**
@@ -43,7 +41,7 @@ export enum ExtendsEnum {
export enum ExtendsChildComponentEnum {
/** UE子组件 */
UeVessel_UeMessageReceiver = "ue-vessel-child",
- FtUnrealEngine_UeMessageReceiver = "sw-unreal-engine-child",
+ SwUnrealEngine_UeMessageReceiver = "sw-unreal-engine-child",
UePixelStreaming_UeMessageReceiver = "ue-pixel-streaming-child",
UePeerStreaming_UeMessageReceiver = "ue-peer-streaming-child"
}
diff --git a/packages/types/src/types/componentProp/indicator.ts b/packages/types/src/types/componentProp/indicator.ts
index dbde543d..650c72d9 100644
--- a/packages/types/src/types/componentProp/indicator.ts
+++ b/packages/types/src/types/componentProp/indicator.ts
@@ -15,9 +15,9 @@ export enum IndicatorEnum {
/** 排序比例条 */
SortRatioBar = "sortRatioBar",
/** 动态占比 */
- FtDynamicRatio = "swdynamicratio",
+ SwDynamicRatio = "swdynamicratio",
/** 翻牌器 */
- FtFlopPerformance = "swFlopPerformance",
+ SwFlopPerformance = "swFlopPerformance",
/** 环形图 */
EchartRing = "echartring",
/** 排名进度条 */
diff --git a/packages/types/src/types/componentProp/interactive.ts b/packages/types/src/types/componentProp/interactive.ts
index 361e4477..138d9f68 100644
--- a/packages/types/src/types/componentProp/interactive.ts
+++ b/packages/types/src/types/componentProp/interactive.ts
@@ -9,7 +9,7 @@
*/
export enum InteractiveEnum {
/** 语音控制 */
- FtVoiceControl = "sw-voice-control",
+ SwVoiceControl = "sw-voice-control",
/** 复选框 */
FormCheckbox = "formCheckbox",
/** 导航菜单 */
@@ -27,27 +27,27 @@ export enum InteractiveEnum {
/** 滚动子标签 */
RollSubtabs = "roll-subtabs",
/** 级联选择器 */
- FtCascader = "swCascader",
+ SwCascader = "swCascader",
/** 单选图例 */
- FtSingleSelectedLegend = "swSingleSelectedLegend",
+ SwSingleSelectedLegend = "swSingleSelectedLegend",
/** 日期时间选择器 */
- FtDateTimePicker = "swDateTimePicker",
+ SwDateTimePicker = "swDateTimePicker",
/** 自定义选择器 */
- FtCustomSelect = "swCustomSelect",
+ SwCustomSelect = "swCustomSelect",
/** 图例 */
- FtLegend = "swLegend",
+ SwLegend = "swLegend",
/** 分页查询 */
- FtPageQuery = "swPageQuery",
+ SwPageQuery = "swPageQuery",
/** 翻页 */
- FtPageTurning = "swPageTurning",
+ SwPageTurning = "swPageTurning",
/** 子标签页 */
Subtabs = "subtabs",
/** 互斥组件 */
- FtMutual = "sw-mutual",
+ SwMutual = "sw-mutual",
/** 搜索 */
- FtSearch = "sw-search",
+ SwSearch = "sw-search",
/** 时间轴 */
- FtTimerShaft = "swTimerShaft",
+ SwTimerShaft = "swTimerShaft",
/** 视频进度条 */
videoProgress = "videoProgress"
}
diff --git a/packages/types/src/types/componentProp/media.ts b/packages/types/src/types/componentProp/media.ts
index 9f480410..e8426928 100644
--- a/packages/types/src/types/componentProp/media.ts
+++ b/packages/types/src/types/componentProp/media.ts
@@ -9,23 +9,23 @@
*/
export enum MediaEnum {
/** 轮播卡片 */
- FtSwiperCard = "swSwiperCard",
+ SwSwiperCard = "swSwiperCard",
/** 嵌入音频 */
- FtEmbedAudio = "sw-embed-audio",
+ SwEmbedAudio = "sw-embed-audio",
/** iframe */
- FtIframe = "swiframe",
+ SwIframe = "swiframe",
/** 图片 */
- FtImg = "swimg",
+ SwImg = "swimg",
/** 视频播放器 */
- FtOpenVideo = "sw-open-video",
+ SwOpenVideo = "sw-open-video",
/** 图片边框 */
- FtImgBorder = "swimgBorder",
+ SwImgBorder = "swimgBorder",
/** 轮播图 */
- FtSwiper = "swswiper",
+ SwSwiper = "swswiper",
/** 轮播图V3 */
- FtSwiperV3 = "swSwiperV3",
+ SwSwiperV3 = "swSwiperV3",
/** 视频 */
- FtVideo = "swvideo",
+ SwVideo = "swvideo",
/** 视频面板 */
CtVideoPanel = "ctVideoPanel"
}
diff --git a/packages/types/src/types/componentProp/text.ts b/packages/types/src/types/componentProp/text.ts
index 50e5c1a1..256bf15c 100644
--- a/packages/types/src/types/componentProp/text.ts
+++ b/packages/types/src/types/componentProp/text.ts
@@ -11,25 +11,25 @@ export enum TextEnum {
/** 自定义折叠面板 */
CustomCollapse = "customCollapse",
/** 富文本 */
- FtRichtext = "swRichtext",
+ SwRichtext = "swRichtext",
/** 集合组件 */
- FtCollection = "swcollection",
+ SwCollection = "swcollection",
/** 自定义表格列表 */
CustomTableList = "customTableList",
/** 文本词云 */
- FtTextWordCloud = "swTextWordCloud",
+ SwTextWordCloud = "swTextWordCloud",
/** 多行文本 */
- FtMultiLine = "swmultiLine",
+ SwMultiLine = "swmultiLine",
/** 基础文本 */
- FtText = "swtext",
+ SwText = "swtext",
/** 进度条 */
- FtProgress = "swProgress",
+ SwProgress = "swProgress",
/** 日期时间 */
- FtDatetime = "swdatetime",
+ SwDatetime = "swdatetime",
/** 文本2 */
- FtText2 = "swText2",
+ SwText2 = "swText2",
/** 滚动文本 */
- FtScroll = "swScroll"
+ SwScroll = "swScroll"
}
/** @deprecated 使用 TextEnum 代替 */
diff --git a/packages/types/src/types/event.ts b/packages/types/src/types/event.ts
index 16f80ea5..fa74287c 100644
--- a/packages/types/src/types/event.ts
+++ b/packages/types/src/types/event.ts
@@ -124,11 +124,6 @@ export enum EventTypeEnum {
*/
Controls = "controls",
- /**
- * @description 签名提交
- */
- SignatureSubmit = "signatureSubmit",
-
/**
* @description 视频控制
*/
@@ -138,30 +133,10 @@ export enum EventTypeEnum {
* @description 无事件
*/
None = "",
- /**
- * @description 卡片下落结束
- */
- CardDropEnd = "cardDropEnd",
- /**
- * @description 卡片开始展开前
- */
- CardBeforeExpand = "cardBeforeExpand",
- /**
- * @description 卡片开始展开结束
- */
- CardEndExpand = "cardEndExpand",
- /**
- * @description 卡片开始收缩
- */
- CardStartCollapse = "cardStartCollapse",
- /**
- * @description 卡片收缩结束
- */
- CardEndCollapse = "cardEndCollapse",
/**
* @description 滚动结束
*/
- ScrollEnd = "scrollEnd",
+ ScrollEnd = "scrollEnd"
}
export enum EncodeEventTypeEnum {
@@ -178,12 +153,7 @@ export enum EncodeEventTypeEnum {
/**
* @description 视频控制
*/
- VideoControls = "videocontrols",
-
- /**
- * @description 签名提交
- */
- SignatureSubmit = "signatureSubmit"
+ VideoControls = "videocontrols"
}
/**
@@ -210,7 +180,7 @@ const getDataChangeFilterComponentType = () => {
export const Event2ComponentType: Record = {
[EventTypeEnum.None]: [],
[EventTypeEnum.DataChange]: getDataChangeFilterComponentType(),
- [EventTypeEnum.Change]: [interactiveEnum.FtSearch],
+ [EventTypeEnum.Change]: [interactiveEnum.SwSearch],
[EventTypeEnum.Click]: [
BarEchartEnum.echartbar,
BarEchartEnum.echartstripBar,
@@ -234,54 +204,54 @@ export const Event2ComponentType: Record = {
interactiveEnum.Subtabs,
interactiveEnum.MultiSubtabs,
interactiveEnum.RollSubtabs,
- interactiveEnum.FtMutual,
- interactiveEnum.FtLegend,
- interactiveEnum.FtSearch,
- interactiveEnum.FtCustomSelect,
- interactiveEnum.FtPageQuery,
- interactiveEnum.FtCascader,
- interactiveEnum.FtSingleSelectedLegend,
+ interactiveEnum.SwMutual,
+ interactiveEnum.SwLegend,
+ interactiveEnum.SwSearch,
+ interactiveEnum.SwCustomSelect,
+ interactiveEnum.SwPageQuery,
+ interactiveEnum.SwCascader,
+ interactiveEnum.SwSingleSelectedLegend,
interactiveEnum.FormNavMenu,
- interactiveEnum.FtTimerShaft,
+ interactiveEnum.SwTimerShaft,
interactiveEnum.PointTimeline,
- interactiveEnum.FtPageTurning,
- interactiveEnum.FtDateTimePicker,
+ interactiveEnum.SwPageTurning,
+ interactiveEnum.SwDateTimePicker,
interactiveEnum.ScrollPicker,
- textEnum.FtProgress,
- textEnum.FtTextWordCloud,
+ textEnum.SwProgress,
+ textEnum.SwTextWordCloud,
mediaEnum.CtVideoPanel,
- textEnum.FtScroll,
- mediaEnum.FtSwiperCard,
+ textEnum.SwScroll,
+ mediaEnum.SwSwiperCard,
textEnum.CustomTableList,
ExhibitEnum.ImagesList3d,
sceneEnum.EchartcommonMap,
sceneEnum.EchartGlmap,
- textEnum.FtCollection,
+ textEnum.SwCollection,
ThirdPartEnum.VuePart,
ExhibitEnum.RingIndicator3d,
ExhibitEnum.ringIndicator3dNew,
interactiveEnum.videoProgress
],
- [EventTypeEnum.ContextmenuClick]: [interactiveEnum.FtMutual],
- [EventTypeEnum.Ended]: [mediaEnum.FtVideo, mediaEnum.FtOpenVideo],
- [EventTypeEnum.Controls]: [mediaEnum.FtVideo],
+ [EventTypeEnum.ContextmenuClick]: [interactiveEnum.SwMutual],
+ [EventTypeEnum.Ended]: [mediaEnum.SwVideo, mediaEnum.SwOpenVideo],
+ [EventTypeEnum.Controls]: [mediaEnum.SwVideo],
[EventTypeEnum.MouseEnter]: [
interactiveEnum.Subtabs,
interactiveEnum.MultiSubtabs,
interactiveEnum.RollSubtabs,
- interactiveEnum.FtMutual,
- interactiveEnum.FtCustomSelect
+ interactiveEnum.SwMutual,
+ interactiveEnum.SwCustomSelect
],
[EventTypeEnum.MouseLeave]: [
interactiveEnum.Subtabs,
interactiveEnum.MultiSubtabs,
interactiveEnum.RollSubtabs,
- interactiveEnum.FtMutual,
- interactiveEnum.FtCustomSelect
+ interactiveEnum.SwMutual,
+ interactiveEnum.SwCustomSelect
],
[EventTypeEnum.UeToFunEvent]: [
extendsChildComponentEnum.UeVessel_UeMessageReceiver,
- extendsChildComponentEnum.FtUnrealEngine_UeMessageReceiver,
+ extendsChildComponentEnum.SwUnrealEngine_UeMessageReceiver,
extendsChildComponentEnum.UePeerStreaming_UeMessageReceiver,
extendsChildComponentEnum.UePixelStreaming_UeMessageReceiver
// "ue-pixel-streaming-child", // TODO: 待添加组件
@@ -336,13 +306,7 @@ export const Event2ComponentType: Record = {
sceneEnum.IndustryScene
// "threescene" // TODO: 待添加组件
],
- [EventTypeEnum.SignatureSubmit]: [ExhibitEnum.FtSignaturePad],
- [EventTypeEnum.VideoControls]: [mediaEnum.FtVideo],
- [EventTypeEnum.CardDropEnd]: [ExhibitEnum.verticalCard],
- [EventTypeEnum.CardBeforeExpand]: [ExhibitEnum.verticalCard],
- [EventTypeEnum.CardEndExpand]: [ExhibitEnum.verticalCard],
- [EventTypeEnum.CardStartCollapse]: [ExhibitEnum.verticalCard],
- [EventTypeEnum.CardEndCollapse]: [ExhibitEnum.verticalCard],
+ [EventTypeEnum.VideoControls]: [mediaEnum.SwVideo],
[EventTypeEnum.ScrollEnd]: [PanelEnum.dynamicPanel]
};
@@ -379,12 +343,6 @@ export const EventList: { label: string; value: EventTypeEnum }[] = [
{ label: "场景初始化结束", value: EventTypeEnum.AfterSceneInit },
{ label: "场景切换状态结束", value: EventTypeEnum.AfterUpdateState },
{ label: "鼠标点击模型子节点", value: EventTypeEnum.ModelNodeClick },
- { label: "签名提交", value: EventTypeEnum.SignatureSubmit },
- { label: "卡片滑落结束", value: EventTypeEnum.CardDropEnd },
- { label: "卡片开始展开前", value: EventTypeEnum.CardBeforeExpand },
- { label: "卡片展开结束", value: EventTypeEnum.CardEndExpand },
- { label: "卡片开始收缩", value: EventTypeEnum.CardStartCollapse },
- { label: "卡片收缩结束", value: EventTypeEnum.CardEndCollapse },
{ label: "滚动结束", value: EventTypeEnum.ScrollEnd }
];
@@ -393,8 +351,7 @@ export const EventList: { label: string; value: EventTypeEnum }[] = [
*/
export const EncodeEventList: { label: string; value: EncodeEventTypeEnum | EventTypeEnum }[] = [
{ label: "鼠标点击", value: EncodeEventTypeEnum.Click },
- { label: "视频控制", value: EncodeEventTypeEnum.VideoControls },
- { label: "签名提交", value: EncodeEventTypeEnum.SignatureSubmit }
+ { label: "视频控制", value: EncodeEventTypeEnum.VideoControls }
];
/**
@@ -425,25 +382,25 @@ export const EncodeEvent2ComponentType: Record=16.0.0}
@@ -9265,6 +9460,9 @@ packages:
resolution: {integrity: sha512-weP+BZ8MVNnlCm8c0Qdc1WSWq4Qn7I+9CJGm7Qali6g44e/PUzbjNqJX5NJ9ljlNMosfJvg1fKEGILklK9cwnw==}
engines: {node: '>=18'}
+ orderedmap@2.1.1:
+ resolution: {integrity: sha512-TvAWxi0nDe1j/rtMcWcIj94+Ffe6n7zhow33h40SKxmsmozs6dz/e+EajymfoFcHd7sxNn8yHM8839uixMOV6g==}
+
own-keys@1.0.1:
resolution: {integrity: sha512-qFOyK5PjiWZd+QQIh+1jhdb9LpxTF0qs7Pm8o5QHYZ0M3vKqSqzsZaEB6oWlxZ+q2sJBMI/Ktgd2N5ZwQoRHfg==}
engines: {node: '>= 0.4'}
@@ -9830,6 +10028,45 @@ packages:
property-information@7.1.0:
resolution: {integrity: sha512-TwEZ+X+yCJmYfL7TPUOcvBZ4QfoT5YenQiJuX//0th53DE6w0xxLEtfK3iyryQFddXuvkIk51EEgrJQ0WJkOmQ==}
+ prosemirror-changeset@2.4.2:
+ resolution: {integrity: sha512-ViYrjMSg3YFiXwIhKaluu+/mi3Yrxt6AR8ri14ulTaGcZtXO1CThl7A2gv79qx5fQnOw8woKwyBU2u+9PVCm3w==}
+
+ prosemirror-commands@1.7.2:
+ resolution: {integrity: sha512-q6Q6szxqdu9Xd6EcdKsqXghu5nQdZTpB4Q9yd04WRc7/jt763e/rT60Owh0L1GYY+T46o5rD+9lEN36dZS43tw==}
+
+ prosemirror-dropcursor@1.8.3:
+ resolution: {integrity: sha512-FoYbsJR8gK+DGlqhNoE29Loa38eIZPzQRIb1VMaDNBoo4OLP6vVof/jR8qFY/6XvUd6Dhug8MDCHl2a/h8RTfQ==}
+
+ prosemirror-gapcursor@1.4.1:
+ resolution: {integrity: sha512-pMdYaEnjNMSwl11yjEGtgTmLkR08m/Vl+Jj443167p9eB3HVQKhYCc4gmHVDsLPODfZfjr/MmirsdyZziXbQKw==}
+
+ prosemirror-history@1.5.0:
+ resolution: {integrity: sha512-zlzTiH01eKA55UAf1MEjtssJeHnGxO0j4K4Dpx+gnmX9n+SHNlDqI2oO1Kv1iPN5B1dm5fsljCfqKF9nFL6HRg==}
+
+ prosemirror-inputrules@1.5.1:
+ resolution: {integrity: sha512-7wj4uMjKaXWAQ1CDgxNzNtR9AlsuwzHfdFH1ygEHA2KHF2DOEaXl1CJfNPAKCg9qNEh4rum975QLaCiQPyY6Fw==}
+
+ prosemirror-keymap@1.2.3:
+ resolution: {integrity: sha512-4HucRlpiLd1IPQQXNqeo81BGtkY8Ai5smHhKW9jjPKRc2wQIxksg7Hl1tTI2IfT2B/LgX6bfYvXxEpJl7aKYKw==}
+
+ prosemirror-model@1.25.11:
+ resolution: {integrity: sha512-QWg9RhnpLlogAmp3p96uEFrE5txQpFynd4vhBAELkwgOCWQs/X0yCzB3/hrHqiPwf91RG5KyWq6553zs9JqIOQ==}
+
+ prosemirror-schema-list@1.5.1:
+ resolution: {integrity: sha512-927lFx/uwyQaGwJxLWCZRkjXG0p48KpMj6ueoYiu4JX05GGuGcgzAy62dfiV8eFZftgyBUvLx76RsMe20fJl+Q==}
+
+ prosemirror-state@1.4.4:
+ resolution: {integrity: sha512-6jiYHH2CIGbCfnxdHbXZ12gySFY/fz/ulZE333G6bPqIZ4F+TXo9ifiR86nAHpWnfoNjOb3o5ESi7J8Uz1jXHw==}
+
+ prosemirror-tables@1.8.5:
+ resolution: {integrity: sha512-V/0cDCsHKHe/tfWkeCmthNUcEp1IVO3p6vwN8XtwE9PZQLAZJigbw3QoraAdfJPir4NKJtNvOB8oYGKRl+t0Dw==}
+
+ prosemirror-transform@1.12.1:
+ resolution: {integrity: sha512-t4F5615FycnCqsX7ShTUs8+jfnwcf46kuFRvSl/3qFx2QTZ4DjgowesLHQXcFP7G//TjesqZG3WtgL7vdyVJyA==}
+
+ prosemirror-view@1.42.3:
+ resolution: {integrity: sha512-oTN7EtH+CpwxU9NrwEYWd0UZ4JUx7l048l5A2Xppm4p/60isZYLnth9QVQmC3VRIvdrIWCxwZSd+Uz791G31/w==}
+
proto-list@1.2.4:
resolution: {integrity: sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA==}
@@ -9992,6 +10229,9 @@ packages:
resolution: {integrity: sha512-dEWRjcINDu/F4l2dYx57ugBtD7HV9KXESyxhzw/MqWLeglJrsjJKqACPyUPg+6AF8mIgm+Zi0dZ3ACoIg+QtpA==}
engines: {node: '>= 4'}
+ recorder-core@1.3.26070800:
+ resolution: {integrity: sha512-92kxhXi9SVjo1mYtGIreXA/d/Mdgvr/iTbjhJ1BRpEzX1Eq/aqQ1eRXFQmnMJ+BmPJaQVXTw1K694yra0bOnEA==}
+
redent@4.0.0:
resolution: {integrity: sha512-tYkDkVVtYkSVhuQ4zBgfvciymHaeuel+zFKXShfDnFP5SyVEP7qo70Rf1jTOTCx3vGNAbnEi/xFkcfQVMIBWag==}
engines: {node: '>=12'}
@@ -10203,6 +10443,9 @@ packages:
engines: {node: '>=18.0.0', npm: '>=8.0.0'}
hasBin: true
+ rope-sequence@1.3.4:
+ resolution: {integrity: sha512-UT5EDe2cu2E/6O4igUr5PSFs23nvvukicWHx6GnOPlHAiiYbzNuCRQCuiUdHJQcqKalLKlrYJnjY0ySGsXNQXQ==}
+
router@2.2.0:
resolution: {integrity: sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==}
engines: {node: '>= 18'}
@@ -11839,6 +12082,9 @@ packages:
peerDependencies:
vue: ^3.0.1
+ w3c-keyname@2.2.8:
+ resolution: {integrity: sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ==}
+
w3c-xmlserializer@5.0.0:
resolution: {integrity: sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==}
engines: {node: '>=18'}
@@ -15940,6 +16186,188 @@ snapshots:
optionalDependencies:
tinymce: 5.10.9
+ '@tiptap/core@3.31.3(@tiptap/pm@3.31.3)':
+ dependencies:
+ '@tiptap/pm': 3.31.3
+
+ '@tiptap/extension-blockquote@3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))(@tiptap/pm@3.31.3)':
+ dependencies:
+ '@tiptap/core': 3.31.3(@tiptap/pm@3.31.3)
+ '@tiptap/pm': 3.31.3
+
+ '@tiptap/extension-bold@3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))':
+ dependencies:
+ '@tiptap/core': 3.31.3(@tiptap/pm@3.31.3)
+
+ '@tiptap/extension-bubble-menu@3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))(@tiptap/pm@3.31.3)':
+ dependencies:
+ '@floating-ui/dom': 1.7.6
+ '@tiptap/core': 3.31.3(@tiptap/pm@3.31.3)
+ '@tiptap/pm': 3.31.3
+ optional: true
+
+ '@tiptap/extension-bullet-list@3.31.3(@tiptap/extension-list@3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))(@tiptap/pm@3.31.3))':
+ dependencies:
+ '@tiptap/extension-list': 3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))(@tiptap/pm@3.31.3)
+
+ '@tiptap/extension-code-block@3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))(@tiptap/pm@3.31.3)':
+ dependencies:
+ '@tiptap/core': 3.31.3(@tiptap/pm@3.31.3)
+ '@tiptap/pm': 3.31.3
+
+ '@tiptap/extension-code@3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))':
+ dependencies:
+ '@tiptap/core': 3.31.3(@tiptap/pm@3.31.3)
+
+ '@tiptap/extension-color@3.31.3(@tiptap/extension-text-style@3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3)))':
+ dependencies:
+ '@tiptap/extension-text-style': 3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))
+
+ '@tiptap/extension-document@3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))':
+ dependencies:
+ '@tiptap/core': 3.31.3(@tiptap/pm@3.31.3)
+
+ '@tiptap/extension-dropcursor@3.31.3(@tiptap/extensions@3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))(@tiptap/pm@3.31.3))':
+ dependencies:
+ '@tiptap/extensions': 3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))(@tiptap/pm@3.31.3)
+
+ '@tiptap/extension-floating-menu@3.31.3(@floating-ui/dom@1.7.6)(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))(@tiptap/pm@3.31.3)':
+ dependencies:
+ '@floating-ui/dom': 1.7.6
+ '@tiptap/core': 3.31.3(@tiptap/pm@3.31.3)
+ '@tiptap/pm': 3.31.3
+ optional: true
+
+ '@tiptap/extension-font-family@3.31.3(@tiptap/extension-text-style@3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3)))':
+ dependencies:
+ '@tiptap/extension-text-style': 3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))
+
+ '@tiptap/extension-gapcursor@3.31.3(@tiptap/extensions@3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))(@tiptap/pm@3.31.3))':
+ dependencies:
+ '@tiptap/extensions': 3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))(@tiptap/pm@3.31.3)
+
+ '@tiptap/extension-hard-break@3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))':
+ dependencies:
+ '@tiptap/core': 3.31.3(@tiptap/pm@3.31.3)
+
+ '@tiptap/extension-heading@3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))':
+ dependencies:
+ '@tiptap/core': 3.31.3(@tiptap/pm@3.31.3)
+
+ '@tiptap/extension-horizontal-rule@3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))(@tiptap/pm@3.31.3)':
+ dependencies:
+ '@tiptap/core': 3.31.3(@tiptap/pm@3.31.3)
+ '@tiptap/pm': 3.31.3
+
+ '@tiptap/extension-italic@3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))':
+ dependencies:
+ '@tiptap/core': 3.31.3(@tiptap/pm@3.31.3)
+
+ '@tiptap/extension-link@3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))(@tiptap/pm@3.31.3)':
+ dependencies:
+ '@tiptap/core': 3.31.3(@tiptap/pm@3.31.3)
+ '@tiptap/pm': 3.31.3
+ linkifyjs: 4.3.3
+
+ '@tiptap/extension-list-item@3.31.3(@tiptap/extension-list@3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))(@tiptap/pm@3.31.3))':
+ dependencies:
+ '@tiptap/extension-list': 3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))(@tiptap/pm@3.31.3)
+
+ '@tiptap/extension-list-keymap@3.31.3(@tiptap/extension-list@3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))(@tiptap/pm@3.31.3))':
+ dependencies:
+ '@tiptap/extension-list': 3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))(@tiptap/pm@3.31.3)
+
+ '@tiptap/extension-list@3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))(@tiptap/pm@3.31.3)':
+ dependencies:
+ '@tiptap/core': 3.31.3(@tiptap/pm@3.31.3)
+ '@tiptap/pm': 3.31.3
+
+ '@tiptap/extension-ordered-list@3.31.3(@tiptap/extension-list@3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))(@tiptap/pm@3.31.3))':
+ dependencies:
+ '@tiptap/extension-list': 3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))(@tiptap/pm@3.31.3)
+
+ '@tiptap/extension-paragraph@3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))':
+ dependencies:
+ '@tiptap/core': 3.31.3(@tiptap/pm@3.31.3)
+
+ '@tiptap/extension-strike@3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))':
+ dependencies:
+ '@tiptap/core': 3.31.3(@tiptap/pm@3.31.3)
+
+ '@tiptap/extension-text-align@3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))':
+ dependencies:
+ '@tiptap/core': 3.31.3(@tiptap/pm@3.31.3)
+
+ '@tiptap/extension-text-style@3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))':
+ dependencies:
+ '@tiptap/core': 3.31.3(@tiptap/pm@3.31.3)
+
+ '@tiptap/extension-text@3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))':
+ dependencies:
+ '@tiptap/core': 3.31.3(@tiptap/pm@3.31.3)
+
+ '@tiptap/extension-underline@3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))':
+ dependencies:
+ '@tiptap/core': 3.31.3(@tiptap/pm@3.31.3)
+
+ '@tiptap/extensions@3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))(@tiptap/pm@3.31.3)':
+ dependencies:
+ '@tiptap/core': 3.31.3(@tiptap/pm@3.31.3)
+ '@tiptap/pm': 3.31.3
+
+ '@tiptap/pm@3.31.3':
+ dependencies:
+ prosemirror-changeset: 2.4.2
+ prosemirror-commands: 1.7.2
+ prosemirror-dropcursor: 1.8.3
+ prosemirror-gapcursor: 1.4.1
+ prosemirror-history: 1.5.0
+ prosemirror-inputrules: 1.5.1
+ prosemirror-keymap: 1.2.3
+ prosemirror-model: 1.25.11
+ prosemirror-schema-list: 1.5.1
+ prosemirror-state: 1.4.4
+ prosemirror-tables: 1.8.5
+ prosemirror-transform: 1.12.1
+ prosemirror-view: 1.42.3
+
+ '@tiptap/starter-kit@3.31.3':
+ dependencies:
+ '@tiptap/core': 3.31.3(@tiptap/pm@3.31.3)
+ '@tiptap/extension-blockquote': 3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))(@tiptap/pm@3.31.3)
+ '@tiptap/extension-bold': 3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))
+ '@tiptap/extension-bullet-list': 3.31.3(@tiptap/extension-list@3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))(@tiptap/pm@3.31.3))
+ '@tiptap/extension-code': 3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))
+ '@tiptap/extension-code-block': 3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))(@tiptap/pm@3.31.3)
+ '@tiptap/extension-document': 3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))
+ '@tiptap/extension-dropcursor': 3.31.3(@tiptap/extensions@3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))(@tiptap/pm@3.31.3))
+ '@tiptap/extension-gapcursor': 3.31.3(@tiptap/extensions@3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))(@tiptap/pm@3.31.3))
+ '@tiptap/extension-hard-break': 3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))
+ '@tiptap/extension-heading': 3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))
+ '@tiptap/extension-horizontal-rule': 3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))(@tiptap/pm@3.31.3)
+ '@tiptap/extension-italic': 3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))
+ '@tiptap/extension-link': 3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))(@tiptap/pm@3.31.3)
+ '@tiptap/extension-list': 3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))(@tiptap/pm@3.31.3)
+ '@tiptap/extension-list-item': 3.31.3(@tiptap/extension-list@3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))(@tiptap/pm@3.31.3))
+ '@tiptap/extension-list-keymap': 3.31.3(@tiptap/extension-list@3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))(@tiptap/pm@3.31.3))
+ '@tiptap/extension-ordered-list': 3.31.3(@tiptap/extension-list@3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))(@tiptap/pm@3.31.3))
+ '@tiptap/extension-paragraph': 3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))
+ '@tiptap/extension-strike': 3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))
+ '@tiptap/extension-text': 3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))
+ '@tiptap/extension-underline': 3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))
+ '@tiptap/extensions': 3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))(@tiptap/pm@3.31.3)
+ '@tiptap/pm': 3.31.3
+
+ '@tiptap/vue-3@3.31.3(@floating-ui/dom@1.7.6)(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))(@tiptap/pm@3.31.3)(vue@3.5.21(typescript@5.9.2))':
+ dependencies:
+ '@floating-ui/dom': 1.7.6
+ '@tiptap/core': 3.31.3(@tiptap/pm@3.31.3)
+ '@tiptap/pm': 3.31.3
+ vue: 3.5.21(typescript@5.9.2)
+ optionalDependencies:
+ '@tiptap/extension-bubble-menu': 3.31.3(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))(@tiptap/pm@3.31.3)
+ '@tiptap/extension-floating-menu': 3.31.3(@floating-ui/dom@1.7.6)(@tiptap/core@3.31.3(@tiptap/pm@3.31.3))(@tiptap/pm@3.31.3)
+
'@trivago/prettier-plugin-sort-imports@4.3.0(@vue/compiler-sfc@3.5.25)(prettier@3.6.2)':
dependencies:
'@babel/generator': 7.17.7
@@ -20078,6 +20506,8 @@ snapshots:
lines-and-columns@1.2.4: {}
+ linkifyjs@4.3.3: {}
+
lint-staged@13.2.2:
dependencies:
chalk: 5.2.0
@@ -20869,7 +21299,7 @@ snapshots:
nested-error-stacks@2.1.1: {}
- next@16.2.10(@babel/core@7.29.7)(@opentelemetry/api@1.9.0)(react-dom@19.2.7(react@19.2.7))(react@19.2.7)(sass@1.93.2):
+ next@16.2.10(@babel/core@8.0.1)(@opentelemetry/api@1.9.0)(react-dom@19.2.7(react@19.2.7))(react@19.2.7)(sass@1.93.2):
dependencies:
'@next/env': 16.2.10
'@swc/helpers': 0.5.15
@@ -20878,7 +21308,7 @@ snapshots:
postcss: 8.4.31
react: 19.2.7
react-dom: 19.2.7(react@19.2.7)
- styled-jsx: 5.1.6(@babel/core@7.29.7)(react@19.2.7)
+ styled-jsx: 5.1.6(@babel/core@8.0.1)(react@19.2.7)
optionalDependencies:
'@next/swc-darwin-arm64': 16.2.10
'@next/swc-darwin-x64': 16.2.10
@@ -21104,6 +21534,8 @@ snapshots:
string-width: 7.2.0
strip-ansi: 7.1.2
+ orderedmap@2.1.1: {}
+
own-keys@1.0.1:
dependencies:
get-intrinsic: 1.3.0
@@ -21593,6 +22025,80 @@ snapshots:
property-information@7.1.0: {}
+ prosemirror-changeset@2.4.2:
+ dependencies:
+ prosemirror-transform: 1.12.1
+
+ prosemirror-commands@1.7.2:
+ dependencies:
+ prosemirror-model: 1.25.11
+ prosemirror-state: 1.4.4
+ prosemirror-transform: 1.12.1
+
+ prosemirror-dropcursor@1.8.3:
+ dependencies:
+ prosemirror-state: 1.4.4
+ prosemirror-transform: 1.12.1
+ prosemirror-view: 1.42.3
+
+ prosemirror-gapcursor@1.4.1:
+ dependencies:
+ prosemirror-keymap: 1.2.3
+ prosemirror-model: 1.25.11
+ prosemirror-state: 1.4.4
+ prosemirror-view: 1.42.3
+
+ prosemirror-history@1.5.0:
+ dependencies:
+ prosemirror-state: 1.4.4
+ prosemirror-transform: 1.12.1
+ prosemirror-view: 1.42.3
+ rope-sequence: 1.3.4
+
+ prosemirror-inputrules@1.5.1:
+ dependencies:
+ prosemirror-state: 1.4.4
+ prosemirror-transform: 1.12.1
+
+ prosemirror-keymap@1.2.3:
+ dependencies:
+ prosemirror-state: 1.4.4
+ w3c-keyname: 2.2.8
+
+ prosemirror-model@1.25.11:
+ dependencies:
+ orderedmap: 2.1.1
+
+ prosemirror-schema-list@1.5.1:
+ dependencies:
+ prosemirror-model: 1.25.11
+ prosemirror-state: 1.4.4
+ prosemirror-transform: 1.12.1
+
+ prosemirror-state@1.4.4:
+ dependencies:
+ prosemirror-model: 1.25.11
+ prosemirror-transform: 1.12.1
+ prosemirror-view: 1.42.3
+
+ prosemirror-tables@1.8.5:
+ dependencies:
+ prosemirror-keymap: 1.2.3
+ prosemirror-model: 1.25.11
+ prosemirror-state: 1.4.4
+ prosemirror-transform: 1.12.1
+ prosemirror-view: 1.42.3
+
+ prosemirror-transform@1.12.1:
+ dependencies:
+ prosemirror-model: 1.25.11
+
+ prosemirror-view@1.42.3:
+ dependencies:
+ prosemirror-model: 1.25.11
+ prosemirror-state: 1.4.4
+ prosemirror-transform: 1.12.1
+
proto-list@1.2.4: {}
protobufjs@7.6.5:
@@ -21800,6 +22306,8 @@ snapshots:
tiny-invariant: 1.3.3
tslib: 2.8.1
+ recorder-core@1.3.26070800: {}
+
redent@4.0.0:
dependencies:
indent-string: 5.0.0
@@ -22118,6 +22626,8 @@ snapshots:
'@rollup/rollup-win32-x64-msvc': 4.62.4
fsevents: 2.3.3
+ rope-sequence@1.3.4: {}
+
router@2.2.0:
dependencies:
debug: 4.4.3
@@ -22789,12 +23299,12 @@ snapshots:
dependencies:
inline-style-parser: 0.2.7
- styled-jsx@5.1.6(@babel/core@7.29.7)(react@19.2.7):
+ styled-jsx@5.1.6(@babel/core@8.0.1)(react@19.2.7):
dependencies:
client-only: 0.0.1
react: 19.2.7
optionalDependencies:
- '@babel/core': 7.29.7
+ '@babel/core': 8.0.1
stylelint-config-html@1.1.0(postcss-html@1.8.0)(stylelint@15.11.0(typescript@5.9.2)):
dependencies:
@@ -24035,6 +24545,8 @@ snapshots:
sortablejs: 1.14.0
vue: 3.5.21(typescript@5.9.2)
+ w3c-keyname@2.2.8: {}
+
w3c-xmlserializer@5.0.0:
dependencies:
xml-name-validator: 5.0.0
diff --git a/servers/server/agent-workspace/skills/executor/sw-component-schema/references/component-base-events.md b/servers/server/agent-workspace/skills/executor/sw-component-schema/references/component-base-events.md
index cc140b25..5b255f47 100644
--- a/servers/server/agent-workspace/skills/executor/sw-component-schema/references/component-base-events.md
+++ b/servers/server/agent-workspace/skills/executor/sw-component-schema/references/component-base-events.md
@@ -113,7 +113,6 @@ encodes?: EncodeEventSchema[] // 加密事件列表(可选)
sceneChildComponent?: { nameList, childComponentInfoList, visible },
videoStartTime?: number,
videoEndTime?: number,
- currentpage?: number,
option?: Record, // 事件选择模型集合
setBroadcastId?: string | null,
screenThemeId?: number,
diff --git a/servers/server/agent-workspace/skills/executor/sw-component-schema/references/components/extends/simple-barrage.md b/servers/server/agent-workspace/skills/executor/sw-component-schema/references/components/extends/simple-barrage.md
deleted file mode 100644
index b26d0d98..00000000
--- a/servers/server/agent-workspace/skills/executor/sw-component-schema/references/components/extends/simple-barrage.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# 弹幕组件 (simple-barrage)
-
-## dataChart 数据格式
-
-| 字段 | 类型 | 说明 |
-|------|------|------|
-| text | string | 弹幕文本内容 |
-
-## option 字段说明
-
-| 字段 | 类型 | 默认值 | 说明 |
-|------|------|--------|------|
-| imageWidth | number | 400 | 弹幕区域宽度 |
-| imageHeight | number | 400 | 弹幕区域高度 |
-| imageMinHeight | number | 20 | 弹幕最小高度 |
-| imageMaxHeight | number | 20 | 弹幕最大高度 |
-| imageObjectFit | string | "none" | 弹幕内容适配方式 |
-| scale | number | 1.3 | 缩放比例 |
-| importType | string | "systemInterface" | 数据导入类型(systemInterface/custom) |
-| importConfig.apiUrl | string | "" | 接口地址 |
-| importConfig.method | string | "POST" | 请求方法 |
-| importConfig.body | array | [] | 请求体参数 |
-| importConfig.headers | array | [] | 请求头参数 |
-| loop | boolean | true | 是否循环播放弹幕 |
-| lineNum | number | 5 | 弹幕轨道行数 |
-| isHover | boolean | false | 鼠标悬停时是否暂停 |
-| speed | number | 0.2 | 弹幕滚动速度 |
-| stylesList | array | [...] | 弹幕样式列表(name/fontSize/fontWeight/fontStyle/letterSpacing/fontFamily/fontColor/isTextShadow/textShadow) |
diff --git a/servers/server/agent-workspace/skills/executor/sw-data-flow/references/callback-chain.md b/servers/server/agent-workspace/skills/executor/sw-data-flow/references/callback-chain.md
index 57781a31..f07f1811 100644
--- a/servers/server/agent-workspace/skills/executor/sw-data-flow/references/callback-chain.md
+++ b/servers/server/agent-workspace/skills/executor/sw-data-flow/references/callback-chain.md
@@ -195,7 +195,7 @@ public handleCallback({ sourceComponent, throwValue }) {
| `dataChange` 实际抛了 | 组件(路径相对 `packages/material/src/components/`) |
|---|---|
| 组件对象 `props.element` | scrollTable、ctVideoPanel、ftSwiperCard、openVideo、ftvideo `useFtVideo.ts:680` |
-| 整个数组 | customTableList、ftProgresstable、ftTextWordCloud、ftcollection、ringIndicator3d(New)、verticalCard、ftvideo `useFtVideo.ts:332,603`、formNavMenu `useNavMenu.ts:254,291` |
+| 整个数组 | customTableList、ftProgresstable、ftTextWordCloud、ftcollection、ringIndicator3d(New)、ftvideo `useFtVideo.ts:332,603`、formNavMenu `useNavMenu.ts:254,291` |
| 非数据值 | ftTimerShaft 抛 `option.value`;ftVoiceControl 抛字符串;formNavMenu `:389` 抛 `defaultActive` 字符串 |
其余组件(全部 echart、ft-dataContainer、各类选项卡 / 表单 / 图例等)都符合契约,按 data schema 取 key 即可。
diff --git a/servers/server/agent-workspace/skills/executor/sw-event-interaction/references/action-config-map.md b/servers/server/agent-workspace/skills/executor/sw-event-interaction/references/action-config-map.md
index ea23bd01..cce4897e 100644
--- a/servers/server/agent-workspace/skills/executor/sw-event-interaction/references/action-config-map.md
+++ b/servers/server/agent-workspace/skills/executor/sw-event-interaction/references/action-config-map.md
@@ -27,9 +27,7 @@
| `updateConfig` | [action/update-config.md](action/update-config.md) | 更新组件配置 |
| `sendUe4Msg` / `sendUe4MsgStatic` | [action/ue4.md](action/ue4.md) | 向 UE4 发送消息 |
| `sendAIManMsgStatic` | [action/ai-man.md](action/ai-man.md) | 向数字人发送消息 |
-| `jumpPage` | [action/jump-page.md](action/jump-page.md) | 跳转页码 |
| `prevPage` / `nextPage` | [action/prev-next-page.md](action/prev-next-page.md) | 上一页 / 下一页 |
-| `onExport` / `onClear` / `onRedo` / `onUndo` / `signature` | [action/signature-pad.md](action/signature-pad.md) | 签名板操作 |
| `turnOnPatrol` / `pausePatrol` / `restartPatrol` | [action/patrol.md](action/patrol.md) | 轮巡控制 |
| `convertTranslation` | [action/translation.md](action/translation.md) | 译文转换 |
diff --git a/servers/server/agent-workspace/skills/executor/sw-event-interaction/references/action-types.md b/servers/server/agent-workspace/skills/executor/sw-event-interaction/references/action-types.md
index 03966ee9..1c54fb3c 100644
--- a/servers/server/agent-workspace/skills/executor/sw-event-interaction/references/action-types.md
+++ b/servers/server/agent-workspace/skills/executor/sw-event-interaction/references/action-types.md
@@ -52,13 +52,6 @@
{ "value": "voiceControlStop", "label": "麦克风结束", "group": "语音" },
{ "value": "prevPage", "label": "上一页", "group": "分页" },
{ "value": "nextPage", "label": "下一页", "group": "分页" },
- { "value": "jumpPage", "label": "跳转页码", "group": "分页" },
- { "value": "onExport", "label": "导出", "group": "签名板" },
- { "value": "onClear", "label": "清除", "group": "签名板" },
- { "value": "onRedo", "label": "重做", "group": "签名板" },
- { "value": "onUndo", "label": "撤销", "group": "签名板" },
- { "value": "onTranslateImage", "label": "传递图片", "group": "签名板" },
- { "value": "signature", "label": "签名", "group": "签名板" },
{ "value": "turnOnPatrol", "label": "轮巡开启", "group": "轮巡" },
{ "value": "pausePatrol", "label": "轮巡暂停", "group": "轮巡" },
{ "value": "restartPatrol", "label": "轮巡重启", "group": "轮巡" },
diff --git a/servers/server/agent-workspace/skills/executor/sw-event-interaction/references/action/jump-page.md b/servers/server/agent-workspace/skills/executor/sw-event-interaction/references/action/jump-page.md
deleted file mode 100644
index 21830157..00000000
--- a/servers/server/agent-workspace/skills/executor/sw-event-interaction/references/action/jump-page.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# jumpPage — 跳转页码
-
-适用于 PDF 阅读器等分页组件,跳转到指定页码。
-
-## 字段
-
-| 字段路径 | 类型 | 说明 |
-|---------|------|------|
-| `currentpage` | number | 当前页码(目标页码) |
-| `animation.delay` | number (ms) | 动画延迟时间(毫秒) |
diff --git a/servers/server/agent-workspace/skills/executor/sw-event-interaction/references/action/signature-pad.md b/servers/server/agent-workspace/skills/executor/sw-event-interaction/references/action/signature-pad.md
deleted file mode 100644
index 8bfd14e7..00000000
--- a/servers/server/agent-workspace/skills/executor/sw-event-interaction/references/action/signature-pad.md
+++ /dev/null
@@ -1,15 +0,0 @@
-# 签名板操作
-
-以下签名板操作均只需设置 `animation.delay`(动画延迟时间,毫秒):
-
-- `onExport` — 导出签名
-- `onClear` — 清除签名
-- `onRedo` — 重做
-- `onUndo` — 撤销
-- `signature` — 签名
-
-## 字段
-
-| 字段路径 | 类型 | 说明 |
-|---------|------|------|
-| `animation.delay` | number (ms) | 动画延迟时间(毫秒) |
diff --git a/servers/server/agent-workspace/skills/executor/sw-event-interaction/references/event-types.md b/servers/server/agent-workspace/skills/executor/sw-event-interaction/references/event-types.md
index 7dbfb8c2..1829c6fb 100644
--- a/servers/server/agent-workspace/skills/executor/sw-event-interaction/references/event-types.md
+++ b/servers/server/agent-workspace/skills/executor/sw-event-interaction/references/event-types.md
@@ -106,41 +106,11 @@
"label": "视频控制(未知事件)",
"note": "仅适用于 ft-video"
},
- {
- "value": "signatureSubmit",
- "label": "签名提交",
- "note": "仅适用于 ft-signature-pad"
- },
{
"value": "videocontrols",
"label": "视频控制",
"note": "仅适用于 ft-video"
},
- {
- "value": "cardDropEnd",
- "label": "卡片滑落结束",
- "note": "仅适用于 verticalCard"
- },
- {
- "value": "cardBeforeExpand",
- "label": "卡片开始展开前",
- "note": "仅适用于 verticalCard"
- },
- {
- "value": "cardEndExpand",
- "label": "卡片展开结束",
- "note": "仅适用于 verticalCard"
- },
- {
- "value": "cardStartCollapse",
- "label": "卡片开始收缩",
- "note": "仅适用于 verticalCard"
- },
- {
- "value": "cardEndCollapse",
- "label": "卡片收缩结束",
- "note": "仅适用于 verticalCard"
- },
{
"value": "scrollEnd",
"label": "滚动结束",
diff --git a/servers/server/scripts/modules-data.json b/servers/server/scripts/modules-data.json
index 322298ea..0e5c9841 100644
--- a/servers/server/scripts/modules-data.json
+++ b/servers/server/scripts/modules-data.json
@@ -1,4 +1,4 @@
-[
+[
{
"id": 1,
"user_id": null,
@@ -1410,23 +1410,6 @@
"template": "[]",
"status": 1
},
- {
- "id": 94,
- "user_id": null,
- "type": 0,
- "java_script": "{\"title\":\"弹幕组件\",\"name\":\"弹幕组件\",\"display\":true,\"icon\":\"icon-tabs\",\"img\":\"/img/barrage.02171652.gif\",\"callbackArgs\":[],\"events\":[],\"dataSource\":{},\"loadAnimation\":{\"type\":\"none\",\"opacityOpen\":false,\"timingFunction\":\"linear\",\"direction\":\"right\",\"duration\":1000,\"delay\":0},\"component\":{\"width\":450,\"height\":500,\"name\":\"simple-barrage\",\"prop\":\"simple-barrage\"},\"cbArgs\":[],\"listenArgs\":[],\"dataFormatter\":\"(data, callbackArgs) => {\\r\\n return data\\r\\n}\",\"dataType\":0,\"data\":[{\"text\":\"Screenwright\"},{\"text\":\"让数据价值看得见\"},{\"text\":\"让数据内容用得着\"},{\"text\":\"看见数字化的无限可能\"},{\"text\":\"凡拓数字孪生可视化 映射万千物理世界\"},{\"text\":\"数字孪生,对物理世界的感知与管理\"},{\"text\":\"可视化的原则是准确清晰️又美观\"},{\"text\":\"Screenwright 数字孪生可视化搭建平台\"},{\"text\":\"体现数据之美\"}],\"dataRemark\":[{\"key\":\"text\",\"map\":\"text\",\"decription\":\"文本\"}],\"unitPavenType\":\"\",\"option\":{\"imageWidth\":400,\"imageHeight\":400,\"imageMinHeight\":20,\"imageMaxHeight\":20,\"imageObjectFit\":\"none\",\"scale\":1.3,\"importType\":\"systemInterface\",\"importConfig\":{\"apiUrl\":\"\",\"method\":\"POST\",\"body\":[],\"headers\":[]},\"loop\":true,\"lineNum\":5,\"isHover\":false,\"speed\":0.2,\"stylesList\":[{\"name\":\"样式1\",\"fontSize\":16,\"fontWeight\":false,\"fontStyle\":false,\"letterSpacing\":0,\"fontFamily\":\"sans-serif\",\"fontColor\":\"rgba(3,169,244,1)\",\"isTextShadow\":false,\"textShadow\":{\"x\":0,\"y\":0,\"blur\":0,\"color\":\"rgba(255, 255, 255, 1)\",\"extend\":0}},{\"name\":\"样式2\",\"fontSize\":16,\"fontWeight\":false,\"fontStyle\":false,\"letterSpacing\":0,\"fontFamily\":\"sans-serif\",\"fontColor\":\"rgba(103, 58, 183, 1)\",\"isTextShadow\":false,\"textShadow\":{\"x\":0,\"y\":0,\"blur\":0,\"color\":\"rgba(255, 255, 255, 1)\",\"extend\":0}},{\"name\":\"样式3\",\"fontSize\":16,\"fontWeight\":false,\"fontStyle\":false,\"letterSpacing\":0,\"fontFamily\":\"sans-serif\",\"fontColor\":\"rgba(255, 152, 0, 1)\",\"isTextShadow\":false,\"textShadow\":{\"x\":0,\"y\":0,\"blur\":0,\"color\":\"rgba(255, 255, 255, 1)\",\"extend\":0}}]}}",
- "level": 0,
- "second_level_menu": "",
- "first_level_menu": "扩展",
- "name": "弹幕组件",
- "thumbnail": "/img/barrage.02171652.gif",
- "created_by": "admin",
- "created_time": "2023-05-31T12:34:27.000Z",
- "updated_by": "system",
- "updated_time": "2026-01-24T16:33:51.000Z",
- "template": "[{\"text\":\"Screenwright\"},{\"text\":\"让数据价值看得见\"},{\"text\":\"让数据内容用得着\"},{\"text\":\"看见数字化的无限可能\"},{\"text\":\"凡拓数字孪生可视化 映射万千物理世界\"},{\"text\":\"数字孪生,对物理世界的感知与管理\"},{\"text\":\"可视化的原则是准确清晰️又美观\"},{\"text\":\"Screenwright 数字孪生可视化搭建平台\"},{\"text\":\"体现数据之美\"}]",
- "status": 1
- },
{
"id": 95,
"user_id": null,
@@ -1720,7 +1703,7 @@
"id": 113,
"user_id": null,
"type": 0,
- "java_script": "{\"title\":\"富文本\",\"name\":\"富文本\",\"display\":true,\"icon\":\"icon-banner\",\"img\":\"/img/ftRichtext.dbc58503.png\",\"loadAnimation\":{\"type\":\"none\",\"opacityOpen\":false,\"timingFunction\":\"linear\",\"direction\":\"right\",\"duration\":1000,\"delay\":0},\"top\":0,\"left\":0,\"dataMethod\":\"get\",\"dataType\":0,\"dataSource\":{},\"requestHeader\":\"{}\",\"requestBody\":\"{}\",\"crossOrigin\":false,\"needCookie\":false,\"autoRefresh\":false,\"dataQuery\":\"\",\"isLock\":false,\"sql\":\"SELECT * FROM\",\"time\":30,\"url\":\"\",\"cbArgs\":[],\"encodes\":[],\"events\":[],\"data\":[{\"value\":\"\"}],\"dataRemark\":[{\"key\":\"value\",\"map\":\"value\",\"decription\":\"文本\"}],\"listenArgs\":[],\"dataFormatter\":\"(data, callbackArgs) => {\\r\\n return data\\r\\n}\",\"component\":{\"width\":316,\"height\":268,\"name\":\"swRichtext\",\"prop\":\"swRichtext\"},\"option\":{\"content\":\"凡拓Screenwright大屏应用编辑器是数字孪生零代码平台的关键组成,助力用户轻松构建魅力大屏。用户可便捷地将三维场景与图表、柱状图等联动,创造信息丰富、引人入胜的大屏应用。通过简单的拖拉拽操作,用户能快速布置元素,实现动态、互动和多媒体内容的精彩展示,满足个性化需求。
\",\"textAnimationTiming\":50,\"textAnimationDelay\":0,\"textAnimationType\":\"\",\"startScroll\":false,\"scrollLoop\":false,\"scrollInterval\":10}}",
+ "java_script": "{\"title\":\"富文本\",\"name\":\"富文本\",\"display\":true,\"icon\":\"icon-banner\",\"img\":\"/img/ftRichtext.dbc58503.png\",\"loadAnimation\":{\"type\":\"none\",\"opacityOpen\":false,\"timingFunction\":\"linear\",\"direction\":\"right\",\"duration\":1000,\"delay\":0},\"top\":0,\"left\":0,\"dataMethod\":\"get\",\"dataType\":0,\"dataSource\":{},\"requestHeader\":\"{}\",\"requestBody\":\"{}\",\"crossOrigin\":false,\"needCookie\":false,\"autoRefresh\":false,\"dataQuery\":\"\",\"isLock\":false,\"sql\":\"SELECT * FROM\",\"time\":30,\"url\":\"\",\"cbArgs\":[],\"encodes\":[],\"events\":[],\"data\":[{\"value\":\"\"}],\"dataRemark\":[{\"key\":\"value\",\"map\":\"value\",\"decription\":\"文本\"}],\"listenArgs\":[],\"dataFormatter\":\"(data, callbackArgs) => {\\r\\n return data\\r\\n}\",\"component\":{\"width\":316,\"height\":268,\"name\":\"swRichtext\",\"prop\":\"swRichtext\"},\"option\":{\"content\":\"ScreenWright 是 AI 原生 的数据大屏与 BI 编辑器。描述需求或提交 Figma 链接,Agent 自动生成可继续编辑的大屏。拖拽 76+ 组件,连接数据源并配置筛选、事件和动画联动。支持 模板复用与静态包导出,让创意快速上线。
\",\"textAnimationTiming\":50,\"textAnimationDelay\":0,\"textAnimationType\":\"\",\"startScroll\":false,\"scrollLoop\":false,\"scrollInterval\":10}}",
"level": 1,
"second_level_menu": "",
"first_level_menu": "文字",
@@ -1767,23 +1750,6 @@
"template": "[{\"value\":\"我是一个标题\"}]",
"status": 1
},
- {
- "id": 119,
- "user_id": null,
- "type": 0,
- "java_script": "{\"title\":\"PDF容器v1\",\"name\":\"PDF容器v1\",\"display\":true,\"icon\":\"icon-video\",\"img\":\"/img/pdfjs-viewer.20241203.gif\",\"callbackArgs\":[],\"events\":[],\"loadAnimation\":{\"type\":\"none\",\"opacityOpen\":false,\"timingFunction\":\"linear\",\"direction\":\"right\",\"duration\":1000,\"delay\":0},\"time\":30,\"dataType\":0,\"dataMethod\":\"get\",\"dataSource\":{},\"requestHeader\":\"{}\",\"requestBody\":\"{}\",\"crossOrigin\":false,\"needCookie\":false,\"autoRefresh\":false,\"dataQuery\":\"\",\"isLock\":false,\"data\":[],\"dataRemark\":[],\"listenArgs\":[],\"cbArgs\":[],\"dataFormatter\":\"(data, callbackArgs) => {\\r\\n return data\\r\\n}\",\"component\":{\"width\":500,\"height\":570,\"name\":\"pdfjs-viewer\",\"prop\":\"pdfjs-viewer\"},\"option\":{\"showAll\":false,\"showPage\":true,\"current\":1,\"zoomValue\":1.2,\"fontSize\":12,\"fontWeight\":\"\",\"fontStyle\":\"\",\"fontFamily\":\"sans-serif\",\"fontColor\":\"rgba(255, 255, 255, 1)\",\"textTranslateX\":0,\"textTranslateY\":0,\"backgroundColor\":\"rgba(0, 0, 0, 0.5)\",\"pdfUrl\":\"version-test/assets/defaultImg/default.pdf\"}}",
- "level": 0,
- "second_level_menu": "",
- "first_level_menu": "展项",
- "name": "PDF容器v1",
- "thumbnail": "/img/pdfjs-viewer.20241203.gif",
- "created_by": "admin",
- "created_time": "2022-07-23T09:55:32.000Z",
- "updated_by": "system",
- "updated_time": "2026-01-24T16:33:52.000Z",
- "template": "[]",
- "status": 1
- },
{
"id": 126,
"user_id": null,
@@ -1800,25 +1766,7 @@
"updated_time": "2022-07-23T09:55:32.000Z",
"template": "[]",
"status": 1
- },
- {
- "id": 128,
- "user_id": null,
- "type": 0,
- "java_script": "{\"title\":\"签名板\",\"name\":\"签名板\",\"display\":true,\"icon\":\"icon-video\",\"img\":\"/img/ft-particles.gif\",\"callbackArgs\":[],\"events\":[],\"loadAnimation\":{\"type\":\"none\",\"opacityOpen\":false,\"timingFunction\":\"linear\",\"direction\":\"right\",\"duration\":1000,\"delay\":0},\"top\":0,\"left\":0,\"time\":30,\"dataType\":0,\"dataMethod\":\"get\",\"dataSource\":{},\"requestHeader\":\"{}\",\"requestBody\":\"{}\",\"crossOrigin\":false,\"needCookie\":false,\"autoRefresh\":false,\"dataQuery\":\"\",\"isLock\":false,\"data\":[{\"penWidth\":10}],\"dataRemark\":[],\"listenArgs\":[],\"cbArgs\":[],\"dataFormatter\":\"(data, callbackArgs) => {\\r\\n return data\\r\\n}\",\"component\":{\"width\":1920,\"height\":1080,\"name\":\"sw-signaturePad\",\"prop\":\"sw-signaturePad\"},\"option\":{\"exportType\":\"systemInterface\",\"penColor\":\"#642cff\",\"dotSize\":\"8\",\"minWidth\":3,\"velocityFilterWeight\":0.2,\"minDistance\":5,\"backgroundColor\":\"rgba(0,0,0,0)\",\"throttle\":10,\"actionControls\":{\"export\":true,\"clear\":true,\"undo\":true,\"redo\":true},\"configControls\":{\"penColor\":true,\"backgroundColor\":true,\"lineWidth\":true},\"exportConfig\":{\"apiUrl\":\"\",\"method\":\"POST\",\"body\":[],\"headers\":[]}}}",
- "level": 0,
- "second_level_menu": "",
- "first_level_menu": "展项",
- "name": "签名板",
- "thumbnail": "/img/default.1026.png",
- "created_by": "admin",
- "created_time": "2022-07-23T09:55:32.000Z",
- "updated_by": "admin",
- "updated_time": "2022-07-23T09:55:32.000Z",
- "template": "[]",
- "status": 1
- },
- {
+ }, {
"id": 141,
"user_id": null,
"type": 0,
@@ -1869,23 +1817,6 @@
"template": "{\"name\":\"中华人民共和国\",\"adcode\":\"100000\"}",
"status": 1
},
- {
- "id": 149,
- "user_id": null,
- "type": 0,
- "java_script": "{\"title\":\"垂直卡片\",\"name\":\"垂直卡片\",\"display\":true,\"icon\":\"icon-scatter\",\"img\":\"/img/verticalCard-default.20251231.png\",\"callbackArgs\":[],\"events\":[],\"loadAnimation\":{\"type\":\"none\",\"opacityOpen\":false,\"timingFunction\":\"linear\",\"direction\":\"right\",\"duration\":1000,\"delay\":0},\"dataType\":0,\"dataSource\":{},\"requestHeader\":{},\"requestBody\":{},\"crossOrigin\":false,\"needCookie\":false,\"autoRefresh\":false,\"dataQuery\":\"\",\"isLock\":false,\"dataMethod\":\"get\",\"path\":\"\",\"time\":30,\"url\":\"\",\"data\":[],\"dataRemark\":[],\"openFilter\":false,\"listenArgs\":[],\"cbArgs\":[],\"dataFormatter\":\"(data, callbackArgs) => {\\r\\n return data\\r\\n}\",\"component\":{\"width\":1920,\"height\":1080,\"name\":\"vertical-card\",\"prop\":\"verticalCard\"},\"option\":{\"globalConfig\":{\"autoplay\":true,\"autoplayTimeout\":2000,\"autoplayHoverPause\":false,\"perspective\":35,\"display\":5,\"loop\":true,\"animationSpeed\":500,\"dir\":\"rtl\",\"space\":400,\"width\":400,\"height\":700,\"startIndex\":0,\"controlsVisible\":false,\"controlBtnRBg\":\"version-test/assets/newSystemAssets/箭头/箭头05.png\",\"controlBtnLBg\":\"version-test/assets/newSystemAssets/箭头/箭头06.png\",\"blur\":10},\"cardList\":[{\"tabsName\":\"卡片1\",\"titleContent\":\"夏日田野\",\"textContent\":\"生活是一幅绚丽多彩的画卷,即使遇到挫折和困难,也请记得抬头看看身边的美丽风景。放宽心态,用一颗平和的心去面对生活的起起落落,你会发现,即便是在黑暗中,也有闪烁的星光指引着前行的方向。\",\"backgroundImg\":\"version-test/assets/defaultImg/verticalCard1.jpg\",\"coverImg\":\"version-test/assets/defaultImg/verticalCard1.jpg\",\"defaultObj\":{\"markOpacity\":30,\"width\":400,\"height\":700,\"titleShow\":true,\"titleWidth\":200,\"titleHeight\":100,\"titleFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"titleFontSize\":44,\"titleLineHeight\":40,\"titleLetterSpacing\":4,\"titleColor\":\"rgba(255,255,255,1.00)\",\"titleFontStyle\":\"normal\",\"titleFontWeight\":\"normal\",\"titleOffsetLeft\":100,\"titleOffsetTop\":580,\"textShow\":false,\"textWidth\":300,\"textHeight\":150,\"textFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"textFontSize\":20,\"textLineHeight\":30,\"textLetterSpacing\":2,\"textColor\":\"rgba(255,255,255,1.00)\",\"textFontStyle\":\"normal\",\"textFontWeight\":\"normal\",\"textOffsetLeft\":50,\"textOffsetTop\":100},\"activeObj\":{\"markOpacity\":0,\"width\":400,\"height\":700,\"titleShow\":true,\"titleWidth\":200,\"titleHeight\":100,\"titleFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"titleFontSize\":44,\"titleLineHeight\":40,\"titleLetterSpacing\":4,\"titleColor\":\"rgba(255,255,255,1.00)\",\"titleFontStyle\":\"normal\",\"titleFontWeight\":\"normal\",\"titleOffsetLeft\":100,\"titleOffsetTop\":580,\"textShow\":true,\"textWidth\":300,\"textHeight\":150,\"textFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"textFontSize\":20,\"textLineHeight\":30,\"textLetterSpacing\":2,\"textColor\":\"rgba(255,255,255,1.00)\",\"textFontStyle\":\"normal\",\"textFontWeight\":\"normal\",\"textOffsetLeft\":50,\"textOffsetTop\":100}},{\"tabsName\":\"卡片2\",\"titleContent\":\"海边日落\",\"textContent\":\"生活是一幅绚丽多彩的画卷,即使遇到挫折和困难,也请记得抬头看看身边的美丽风景。放宽心态,用一颗平和的心去面对生活的起起落落,你会发现,即便是在黑暗中,也有闪烁的星光指引着前行的方向。\",\"backgroundImg\":\"version-test/assets/defaultImg/verticalCard2.jpg\",\"coverImg\":\"version-test/assets/defaultImg/verticalCard2.jpg\",\"defaultObj\":{\"markOpacity\":30,\"width\":400,\"height\":700,\"titleShow\":true,\"titleWidth\":200,\"titleHeight\":100,\"titleFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"titleFontSize\":44,\"titleLineHeight\":40,\"titleLetterSpacing\":4,\"titleColor\":\"rgba(255,255,255,1.00)\",\"titleFontStyle\":\"normal\",\"titleFontWeight\":\"normal\",\"titleOffsetLeft\":100,\"titleOffsetTop\":580,\"textShow\":false,\"textWidth\":300,\"textHeight\":150,\"textFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"textFontSize\":20,\"textLineHeight\":30,\"textLetterSpacing\":2,\"textColor\":\"rgba(255,255,255,1.00)\",\"textFontStyle\":\"normal\",\"textFontWeight\":\"normal\",\"textOffsetLeft\":50,\"textOffsetTop\":100},\"activeObj\":{\"markOpacity\":0,\"width\":400,\"height\":700,\"titleShow\":true,\"titleWidth\":200,\"titleHeight\":100,\"titleFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"titleFontSize\":44,\"titleLineHeight\":40,\"titleLetterSpacing\":4,\"titleColor\":\"rgba(255,255,255,1.00)\",\"titleFontStyle\":\"normal\",\"titleFontWeight\":\"normal\",\"titleOffsetLeft\":100,\"titleOffsetTop\":580,\"textShow\":true,\"textWidth\":300,\"textHeight\":150,\"textFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"textFontSize\":20,\"textLineHeight\":30,\"textLetterSpacing\":2,\"textColor\":\"rgba(255,255,255,1.00)\",\"textFontStyle\":\"normal\",\"textFontWeight\":\"normal\",\"textOffsetLeft\":50,\"textOffsetTop\":100}},{\"tabsName\":\"卡片3\",\"titleContent\":\"小桥流水\",\"textContent\":\"生活是一幅绚丽多彩的画卷,即使遇到挫折和困难,也请记得抬头看看身边的美丽风景。放宽心态,用一颗平和的心去面对生活的起起落落,你会发现,即便是在黑暗中,也有闪烁的星光指引着前行的方向。\",\"backgroundImg\":\"version-test/assets/defaultImg/verticalCard3.jpg\",\"coverImg\":\"version-test/assets/defaultImg/verticalCard3.jpg\",\"defaultObj\":{\"markOpacity\":30,\"width\":400,\"height\":700,\"titleShow\":true,\"titleWidth\":200,\"titleHeight\":100,\"titleFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"titleFontSize\":44,\"titleLineHeight\":40,\"titleLetterSpacing\":4,\"titleColor\":\"rgba(255,255,255,1.00)\",\"titleFontStyle\":\"normal\",\"titleFontWeight\":\"normal\",\"titleOffsetLeft\":100,\"titleOffsetTop\":580,\"textShow\":false,\"textWidth\":300,\"textHeight\":150,\"textFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"textFontSize\":20,\"textLineHeight\":30,\"textLetterSpacing\":2,\"textColor\":\"rgba(255,255,255,1.00)\",\"textFontStyle\":\"normal\",\"textFontWeight\":\"normal\",\"textOffsetLeft\":50,\"textOffsetTop\":100},\"activeObj\":{\"markOpacity\":0,\"width\":400,\"height\":700,\"titleShow\":true,\"titleWidth\":200,\"titleHeight\":100,\"titleFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"titleFontSize\":44,\"titleLineHeight\":40,\"titleLetterSpacing\":4,\"titleColor\":\"rgba(255,255,255,1.00)\",\"titleFontStyle\":\"normal\",\"titleFontWeight\":\"normal\",\"titleOffsetLeft\":100,\"titleOffsetTop\":580,\"textShow\":true,\"textWidth\":300,\"textHeight\":150,\"textFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"textFontSize\":20,\"textLineHeight\":30,\"textLetterSpacing\":2,\"textColor\":\"rgba(255,255,255,1.00)\",\"textFontStyle\":\"normal\",\"textFontWeight\":\"normal\",\"textOffsetLeft\":50,\"textOffsetTop\":100}},{\"tabsName\":\"卡片4\",\"titleContent\":\"梯田江边\",\"textContent\":\"生活是一幅绚丽多彩的画卷,即使遇到挫折和困难,也请记得抬头看看身边的美丽风景。放宽心态,用一颗平和的心去面对生活的起起落落,你会发现,即便是在黑暗中,也有闪烁的星光指引着前行的方向。\",\"backgroundImg\":\"version-test/assets/defaultImg/verticalCard4.jpg\",\"coverImg\":\"version-test/assets/defaultImg/verticalCard4.jpg\",\"defaultObj\":{\"markOpacity\":30,\"width\":400,\"height\":700,\"titleShow\":true,\"titleWidth\":200,\"titleHeight\":100,\"titleFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"titleFontSize\":44,\"titleLineHeight\":40,\"titleLetterSpacing\":4,\"titleColor\":\"rgba(255,255,255,1.00)\",\"titleFontStyle\":\"normal\",\"titleFontWeight\":\"normal\",\"titleOffsetLeft\":100,\"titleOffsetTop\":580,\"textShow\":false,\"textWidth\":300,\"textHeight\":150,\"textFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"textFontSize\":20,\"textLineHeight\":30,\"textLetterSpacing\":2,\"textColor\":\"rgba(255,255,255,1.00)\",\"textFontStyle\":\"normal\",\"textFontWeight\":\"normal\",\"textOffsetLeft\":50,\"textOffsetTop\":100},\"activeObj\":{\"markOpacity\":0,\"width\":400,\"height\":700,\"titleShow\":true,\"titleWidth\":200,\"titleHeight\":100,\"titleFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"titleFontSize\":44,\"titleLineHeight\":40,\"titleLetterSpacing\":4,\"titleColor\":\"rgba(255,255,255,1.00)\",\"titleFontStyle\":\"normal\",\"titleFontWeight\":\"normal\",\"titleOffsetLeft\":100,\"titleOffsetTop\":580,\"textShow\":true,\"textWidth\":300,\"textHeight\":150,\"textFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"textFontSize\":20,\"textLineHeight\":30,\"textLetterSpacing\":2,\"textColor\":\"rgba(255,255,255,1.00)\",\"textFontStyle\":\"normal\",\"textFontWeight\":\"normal\",\"textOffsetLeft\":50,\"textOffsetTop\":100}},{\"tabsName\":\"卡片5\",\"titleContent\":\"车水马龙\",\"textContent\":\"生活是一幅绚丽多彩的画卷,即使遇到挫折和困难,也请记得抬头看看身边的美丽风景。放宽心态,用一颗平和的心去面对生活的起起落落,你会发现,即便是在黑暗中,也有闪烁的星光指引着前行的方向。\",\"backgroundImg\":\"version-test/assets/defaultImg/verticalCard5.jpg\",\"coverImg\":\"version-test/assets/defaultImg/verticalCard5.jpg\",\"defaultObj\":{\"markOpacity\":30,\"width\":400,\"height\":700,\"titleShow\":true,\"titleWidth\":200,\"titleHeight\":100,\"titleFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"titleFontSize\":44,\"titleLineHeight\":40,\"titleLetterSpacing\":4,\"titleColor\":\"rgba(255,255,255,1.00)\",\"titleFontStyle\":\"normal\",\"titleFontWeight\":\"normal\",\"titleOffsetLeft\":100,\"titleOffsetTop\":580,\"textShow\":false,\"textWidth\":300,\"textHeight\":150,\"textFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"textFontSize\":20,\"textLineHeight\":30,\"textLetterSpacing\":2,\"textColor\":\"rgba(255,255,255,1.00)\",\"textFontStyle\":\"normal\",\"textFontWeight\":\"normal\",\"textOffsetLeft\":50,\"textOffsetTop\":100},\"activeObj\":{\"markOpacity\":0,\"width\":400,\"height\":700,\"titleShow\":true,\"titleWidth\":200,\"titleHeight\":100,\"titleFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"titleFontSize\":44,\"titleLineHeight\":40,\"titleLetterSpacing\":4,\"titleColor\":\"rgba(255,255,255,1.00)\",\"titleFontStyle\":\"normal\",\"titleFontWeight\":\"normal\",\"titleOffsetLeft\":100,\"titleOffsetTop\":580,\"textShow\":true,\"textWidth\":300,\"textHeight\":150,\"textFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"textFontSize\":20,\"textLineHeight\":30,\"textLetterSpacing\":2,\"textColor\":\"rgba(255,255,255,1.00)\",\"textFontStyle\":\"normal\",\"textFontWeight\":\"normal\",\"textOffsetLeft\":50,\"textOffsetTop\":100}},{\"tabsName\":\"卡片6\",\"titleContent\":\"海边灯塔\",\"textContent\":\"生活是一幅绚丽多彩的画卷,即使遇到挫折和困难,也请记得抬头看看身边的美丽风景。放宽心态,用一颗平和的心去面对生活的起起落落,你会发现,即便是在黑暗中,也有闪烁的星光指引着前行的方向。\",\"backgroundImg\":\"version-test/assets/defaultImg/verticalCard6.jpg\",\"coverImg\":\"version-test/assets/defaultImg/verticalCard6.jpg\",\"defaultObj\":{\"markOpacity\":30,\"width\":400,\"height\":700,\"titleShow\":true,\"titleWidth\":200,\"titleHeight\":100,\"titleFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"titleFontSize\":44,\"titleLineHeight\":40,\"titleLetterSpacing\":4,\"titleColor\":\"rgba(255,255,255,1.00)\",\"titleFontStyle\":\"normal\",\"titleFontWeight\":\"normal\",\"titleOffsetLeft\":100,\"titleOffsetTop\":580,\"textShow\":false,\"textWidth\":300,\"textHeight\":150,\"textFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"textFontSize\":20,\"textLineHeight\":30,\"textLetterSpacing\":2,\"textColor\":\"rgba(255,255,255,1.00)\",\"textFontStyle\":\"normal\",\"textFontWeight\":\"normal\",\"textOffsetLeft\":50,\"textOffsetTop\":100},\"activeObj\":{\"markOpacity\":0,\"width\":400,\"height\":700,\"titleShow\":true,\"titleWidth\":200,\"titleHeight\":100,\"titleFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"titleFontSize\":44,\"titleLineHeight\":40,\"titleLetterSpacing\":4,\"titleColor\":\"rgba(255,255,255,1.00)\",\"titleFontStyle\":\"normal\",\"titleFontWeight\":\"normal\",\"titleOffsetLeft\":100,\"titleOffsetTop\":580,\"textShow\":true,\"textWidth\":300,\"textHeight\":150,\"textFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"textFontSize\":20,\"textLineHeight\":30,\"textLetterSpacing\":2,\"textColor\":\"rgba(255,255,255,1.00)\",\"textFontStyle\":\"normal\",\"textFontWeight\":\"normal\",\"textOffsetLeft\":50,\"textOffsetTop\":100}},{\"tabsName\":\"卡片7\",\"titleContent\":\"日落星河\",\"textContent\":\"生活是一幅绚丽多彩的画卷,即使遇到挫折和困难,也请记得抬头看看身边的美丽风景。放宽心态,用一颗平和的心去面对生活的起起落落,你会发现,即便是在黑暗中,也有闪烁的星光指引着前行的方向。\",\"backgroundImg\":\"version-test/assets/defaultImg/verticalCard7.jpg\",\"coverImg\":\"version-test/assets/defaultImg/verticalCard7.jpg\",\"defaultObj\":{\"markOpacity\":30,\"width\":400,\"height\":700,\"titleShow\":true,\"titleWidth\":200,\"titleHeight\":100,\"titleFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"titleFontSize\":44,\"titleLineHeight\":40,\"titleLetterSpacing\":4,\"titleColor\":\"rgba(255,255,255,1.00)\",\"titleFontStyle\":\"normal\",\"titleFontWeight\":\"normal\",\"titleOffsetLeft\":100,\"titleOffsetTop\":580,\"textShow\":false,\"textWidth\":300,\"textHeight\":150,\"textFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"textFontSize\":20,\"textLineHeight\":30,\"textLetterSpacing\":2,\"textColor\":\"rgba(255,255,255,1.00)\",\"textFontStyle\":\"normal\",\"textFontWeight\":\"normal\",\"textOffsetLeft\":50,\"textOffsetTop\":100},\"activeObj\":{\"markOpacity\":0,\"width\":400,\"height\":700,\"titleShow\":true,\"titleWidth\":200,\"titleHeight\":100,\"titleFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"titleFontSize\":44,\"titleLineHeight\":40,\"titleLetterSpacing\":4,\"titleColor\":\"rgba(255,255,255,1.00)\",\"titleFontStyle\":\"normal\",\"titleFontWeight\":\"normal\",\"titleOffsetLeft\":100,\"titleOffsetTop\":580,\"textShow\":true,\"textWidth\":300,\"textHeight\":150,\"textFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"textFontSize\":20,\"textLineHeight\":30,\"textLetterSpacing\":2,\"textColor\":\"rgba(255,255,255,1.00)\",\"textFontStyle\":\"normal\",\"textFontWeight\":\"normal\",\"textOffsetLeft\":50,\"textOffsetTop\":100}}],\"refresh\":true},\"left\":0,\"top\":0,\"showSubComponent\":false,\"parentDynamicPanelId\":[]}",
- "level": 0,
- "second_level_menu": "",
- "first_level_menu": "展项",
- "name": "垂直卡片",
- "thumbnail": "/img/verticalCard-default.20251231.png",
- "created_by": "admin",
- "created_time": "2023-05-31T12:34:27.000Z",
- "updated_by": "admin",
- "updated_time": "2024-06-17T10:56:29.000Z",
- "template": "[]",
- "status": 1
- },
{
"id": 152,
"user_id": null,
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/78-EUC-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/78-EUC-H.bcmap
deleted file mode 100644
index 2655fc70..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/78-EUC-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/78-EUC-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/78-EUC-V.bcmap
deleted file mode 100644
index f1ed8538..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/78-EUC-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/78-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/78-H.bcmap
deleted file mode 100644
index 39e89d33..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/78-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/78-RKSJ-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/78-RKSJ-H.bcmap
deleted file mode 100644
index e4167cb5..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/78-RKSJ-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/78-RKSJ-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/78-RKSJ-V.bcmap
deleted file mode 100644
index 50b1646e..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/78-RKSJ-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/78-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/78-V.bcmap
deleted file mode 100644
index d7af99b5..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/78-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/78ms-RKSJ-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/78ms-RKSJ-H.bcmap
deleted file mode 100644
index 37077d01..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/78ms-RKSJ-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/78ms-RKSJ-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/78ms-RKSJ-V.bcmap
deleted file mode 100644
index acf23231..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/78ms-RKSJ-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/83pv-RKSJ-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/83pv-RKSJ-H.bcmap
deleted file mode 100644
index 2359bc52..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/83pv-RKSJ-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/90ms-RKSJ-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/90ms-RKSJ-H.bcmap
deleted file mode 100644
index af829382..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/90ms-RKSJ-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/90ms-RKSJ-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/90ms-RKSJ-V.bcmap
deleted file mode 100644
index 780549de..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/90ms-RKSJ-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/90msp-RKSJ-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/90msp-RKSJ-H.bcmap
deleted file mode 100644
index bfd3119c..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/90msp-RKSJ-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/90msp-RKSJ-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/90msp-RKSJ-V.bcmap
deleted file mode 100644
index 25ef14ab..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/90msp-RKSJ-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/90pv-RKSJ-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/90pv-RKSJ-H.bcmap
deleted file mode 100644
index 02f713bb..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/90pv-RKSJ-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/90pv-RKSJ-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/90pv-RKSJ-V.bcmap
deleted file mode 100644
index d08e0cc5..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/90pv-RKSJ-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Add-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Add-H.bcmap
deleted file mode 100644
index 59442aca..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Add-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Add-RKSJ-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Add-RKSJ-H.bcmap
deleted file mode 100644
index a3065e44..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Add-RKSJ-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Add-RKSJ-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Add-RKSJ-V.bcmap
deleted file mode 100644
index 040014cf..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Add-RKSJ-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Add-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Add-V.bcmap
deleted file mode 100644
index 2f816d32..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Add-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-CNS1-0.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-CNS1-0.bcmap
deleted file mode 100644
index 88ec04af..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-CNS1-0.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-CNS1-1.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-CNS1-1.bcmap
deleted file mode 100644
index 03a50147..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-CNS1-1.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-CNS1-2.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-CNS1-2.bcmap
deleted file mode 100644
index 2aa95141..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-CNS1-2.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-CNS1-3.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-CNS1-3.bcmap
deleted file mode 100644
index 86d8b8c7..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-CNS1-3.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-CNS1-4.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-CNS1-4.bcmap
deleted file mode 100644
index f50fc6c1..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-CNS1-4.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-CNS1-5.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-CNS1-5.bcmap
deleted file mode 100644
index 6caf4a83..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-CNS1-5.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-CNS1-6.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-CNS1-6.bcmap
deleted file mode 100644
index b77fb070..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-CNS1-6.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-CNS1-UCS2.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-CNS1-UCS2.bcmap
deleted file mode 100644
index 69d79a2c..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-CNS1-UCS2.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-GB1-0.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-GB1-0.bcmap
deleted file mode 100644
index 36101083..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-GB1-0.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-GB1-1.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-GB1-1.bcmap
deleted file mode 100644
index 707bb106..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-GB1-1.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-GB1-2.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-GB1-2.bcmap
deleted file mode 100644
index f7648cc3..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-GB1-2.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-GB1-3.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-GB1-3.bcmap
deleted file mode 100644
index 85214589..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-GB1-3.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-GB1-4.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-GB1-4.bcmap
deleted file mode 100644
index e40c63ab..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-GB1-4.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-GB1-5.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-GB1-5.bcmap
deleted file mode 100644
index d7623b50..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-GB1-5.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-GB1-UCS2.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-GB1-UCS2.bcmap
deleted file mode 100644
index 75865259..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-GB1-UCS2.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-Japan1-0.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-Japan1-0.bcmap
deleted file mode 100644
index f0e94ec1..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-Japan1-0.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-Japan1-1.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-Japan1-1.bcmap
deleted file mode 100644
index dad42c5a..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-Japan1-1.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-Japan1-2.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-Japan1-2.bcmap
deleted file mode 100644
index 090819a0..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-Japan1-2.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-Japan1-3.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-Japan1-3.bcmap
deleted file mode 100644
index 087dfc15..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-Japan1-3.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-Japan1-4.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-Japan1-4.bcmap
deleted file mode 100644
index 46aa9bff..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-Japan1-4.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-Japan1-5.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-Japan1-5.bcmap
deleted file mode 100644
index 5b4b65cc..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-Japan1-5.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-Japan1-6.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-Japan1-6.bcmap
deleted file mode 100644
index e77d699a..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-Japan1-6.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-Japan1-UCS2.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-Japan1-UCS2.bcmap
deleted file mode 100644
index 128a1410..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-Japan1-UCS2.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-Korea1-0.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-Korea1-0.bcmap
deleted file mode 100644
index cef1a998..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-Korea1-0.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-Korea1-1.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-Korea1-1.bcmap
deleted file mode 100644
index 11ffa36d..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-Korea1-1.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-Korea1-2.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-Korea1-2.bcmap
deleted file mode 100644
index 3172308c..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-Korea1-2.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-Korea1-UCS2.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-Korea1-UCS2.bcmap
deleted file mode 100644
index f3371c0c..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Adobe-Korea1-UCS2.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/B5-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/B5-H.bcmap
deleted file mode 100644
index beb4d228..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/B5-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/B5-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/B5-V.bcmap
deleted file mode 100644
index 2d4f87d5..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/B5-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/B5pc-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/B5pc-H.bcmap
deleted file mode 100644
index ce001316..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/B5pc-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/B5pc-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/B5pc-V.bcmap
deleted file mode 100644
index 73b99ff2..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/B5pc-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/CNS-EUC-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/CNS-EUC-H.bcmap
deleted file mode 100644
index 61d1d0cb..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/CNS-EUC-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/CNS-EUC-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/CNS-EUC-V.bcmap
deleted file mode 100644
index 1a393a51..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/CNS-EUC-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/CNS1-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/CNS1-H.bcmap
deleted file mode 100644
index f738e218..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/CNS1-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/CNS1-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/CNS1-V.bcmap
deleted file mode 100644
index 9c3169f0..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/CNS1-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/CNS2-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/CNS2-H.bcmap
deleted file mode 100644
index c89b3527..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/CNS2-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/CNS2-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/CNS2-V.bcmap
deleted file mode 100644
index 7588cec8..00000000
--- a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/CNS2-V.bcmap
+++ /dev/null
@@ -1,3 +0,0 @@
-àRCopyright 1990-2009 Adobe Systems Incorporated.
-All rights reserved.
-See ./LICENSEáCNS2-H
\ No newline at end of file
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/ETHK-B5-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/ETHK-B5-H.bcmap
deleted file mode 100644
index cb29415d..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/ETHK-B5-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/ETHK-B5-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/ETHK-B5-V.bcmap
deleted file mode 100644
index f09aec63..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/ETHK-B5-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/ETen-B5-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/ETen-B5-H.bcmap
deleted file mode 100644
index c2d77462..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/ETen-B5-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/ETen-B5-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/ETen-B5-V.bcmap
deleted file mode 100644
index 89bff159..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/ETen-B5-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/ETenms-B5-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/ETenms-B5-H.bcmap
deleted file mode 100644
index a7d69db5..00000000
--- a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/ETenms-B5-H.bcmap
+++ /dev/null
@@ -1,3 +0,0 @@
-àRCopyright 1990-2009 Adobe Systems Incorporated.
-All rights reserved.
-See ./LICENSEá ETen-B5-H` ^
\ No newline at end of file
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/ETenms-B5-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/ETenms-B5-V.bcmap
deleted file mode 100644
index adc5d618..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/ETenms-B5-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/EUC-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/EUC-H.bcmap
deleted file mode 100644
index e92ea5b3..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/EUC-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/EUC-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/EUC-V.bcmap
deleted file mode 100644
index 7a7c1832..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/EUC-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Ext-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Ext-H.bcmap
deleted file mode 100644
index 3b5cde44..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Ext-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Ext-RKSJ-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Ext-RKSJ-H.bcmap
deleted file mode 100644
index ea4d2d97..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Ext-RKSJ-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Ext-RKSJ-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Ext-RKSJ-V.bcmap
deleted file mode 100644
index 3457c277..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Ext-RKSJ-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Ext-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Ext-V.bcmap
deleted file mode 100644
index 4999ca40..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Ext-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GB-EUC-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GB-EUC-H.bcmap
deleted file mode 100644
index e39908b9..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GB-EUC-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GB-EUC-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GB-EUC-V.bcmap
deleted file mode 100644
index d5be5446..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GB-EUC-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GB-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GB-H.bcmap
deleted file mode 100644
index 39189c54..00000000
--- a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GB-H.bcmap
+++ /dev/null
@@ -1,4 +0,0 @@
-àRCopyright 1990-2009 Adobe Systems Incorporated.
-All rights reserved.
-See ./LICENSE!!�º]aX!!]`�21�> �p�z�$]‚�"R‚d�-Uƒ7�*„
4„%�+ „Z „{�/…%…<�9K…b�1]†.�"‡‰`]‡,�"]ˆ
-�"]ˆh�"]‰F�"]Š$�"]‹�"]‹`�"]Œ>�"]��"]�z�"]ŽX�"]�6�"]��"]�r�"]‘P�"]’.�"]“�"]“j�"]”H�"]•&�"]–�"]–b�"]—@�"]˜�"]˜|�"]™Z�"]š8�"]›�"]›t�"]œR�"]�0�"]ž�"]žl�"]ŸJ�"] (�"]¡�"]¡d�"]¢B�"]£ �"X£~�']¤W�"]¥5�"]¦�"]¦q�"]§O�"]¨-�"]©�"]©i�"]ªG�"]«%�"]¬�"]¬a�"]?�"]®�"]®{�"]¯Y�"]°7�"]±�"]±s�"]²Q�"]³/�"]´
�"]´k�"]µI�"]¶'�"]·�"]·c�"]¸A�"]¹�"]¹}�"]º[�"]»9
\ No newline at end of file
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GB-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GB-V.bcmap
deleted file mode 100644
index 31083451..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GB-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GBK-EUC-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GBK-EUC-H.bcmap
deleted file mode 100644
index 05fff7e8..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GBK-EUC-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GBK-EUC-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GBK-EUC-V.bcmap
deleted file mode 100644
index 0cdf6bed..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GBK-EUC-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GBK2K-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GBK2K-H.bcmap
deleted file mode 100644
index 46f6ba59..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GBK2K-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GBK2K-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GBK2K-V.bcmap
deleted file mode 100644
index d9a94798..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GBK2K-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GBKp-EUC-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GBKp-EUC-H.bcmap
deleted file mode 100644
index 5cb0af68..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GBKp-EUC-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GBKp-EUC-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GBKp-EUC-V.bcmap
deleted file mode 100644
index bca93b8e..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GBKp-EUC-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GBT-EUC-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GBT-EUC-H.bcmap
deleted file mode 100644
index 4b4e2d32..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GBT-EUC-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GBT-EUC-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GBT-EUC-V.bcmap
deleted file mode 100644
index 38f70669..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GBT-EUC-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GBT-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GBT-H.bcmap
deleted file mode 100644
index 8437ac33..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GBT-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GBT-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GBT-V.bcmap
deleted file mode 100644
index 697ab4a8..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GBT-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GBTpc-EUC-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GBTpc-EUC-H.bcmap
deleted file mode 100644
index f6e50e89..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GBTpc-EUC-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GBTpc-EUC-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GBTpc-EUC-V.bcmap
deleted file mode 100644
index 6c0d71a2..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GBTpc-EUC-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GBpc-EUC-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GBpc-EUC-H.bcmap
deleted file mode 100644
index c9edf67c..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GBpc-EUC-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GBpc-EUC-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GBpc-EUC-V.bcmap
deleted file mode 100644
index 31450c97..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/GBpc-EUC-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/H.bcmap
deleted file mode 100644
index 7b24ea46..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/HKdla-B5-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/HKdla-B5-H.bcmap
deleted file mode 100644
index 7d30c050..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/HKdla-B5-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/HKdla-B5-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/HKdla-B5-V.bcmap
deleted file mode 100644
index 78946940..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/HKdla-B5-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/HKdlb-B5-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/HKdlb-B5-H.bcmap
deleted file mode 100644
index d829a231..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/HKdlb-B5-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/HKdlb-B5-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/HKdlb-B5-V.bcmap
deleted file mode 100644
index 2b572b50..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/HKdlb-B5-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/HKgccs-B5-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/HKgccs-B5-H.bcmap
deleted file mode 100644
index 971a4f23..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/HKgccs-B5-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/HKgccs-B5-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/HKgccs-B5-V.bcmap
deleted file mode 100644
index d353ca25..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/HKgccs-B5-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/HKm314-B5-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/HKm314-B5-H.bcmap
deleted file mode 100644
index 576dc011..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/HKm314-B5-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/HKm314-B5-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/HKm314-B5-V.bcmap
deleted file mode 100644
index 0e96d0e2..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/HKm314-B5-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/HKm471-B5-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/HKm471-B5-H.bcmap
deleted file mode 100644
index 11d170c7..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/HKm471-B5-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/HKm471-B5-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/HKm471-B5-V.bcmap
deleted file mode 100644
index 54959bf9..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/HKm471-B5-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/HKscs-B5-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/HKscs-B5-H.bcmap
deleted file mode 100644
index 6ef7857a..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/HKscs-B5-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/HKscs-B5-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/HKscs-B5-V.bcmap
deleted file mode 100644
index 1fb2fa2a..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/HKscs-B5-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Hankaku.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Hankaku.bcmap
deleted file mode 100644
index 4b8ec7fc..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Hankaku.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Hiragana.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Hiragana.bcmap
deleted file mode 100644
index 17e983e7..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Hiragana.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/KSC-EUC-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/KSC-EUC-H.bcmap
deleted file mode 100644
index a45c65f0..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/KSC-EUC-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/KSC-EUC-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/KSC-EUC-V.bcmap
deleted file mode 100644
index 0e7b21f0..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/KSC-EUC-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/KSC-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/KSC-H.bcmap
deleted file mode 100644
index b9b22b67..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/KSC-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/KSC-Johab-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/KSC-Johab-H.bcmap
deleted file mode 100644
index 2531ffcf..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/KSC-Johab-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/KSC-Johab-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/KSC-Johab-V.bcmap
deleted file mode 100644
index 367ceb22..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/KSC-Johab-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/KSC-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/KSC-V.bcmap
deleted file mode 100644
index 6ae2f0b6..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/KSC-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/KSCms-UHC-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/KSCms-UHC-H.bcmap
deleted file mode 100644
index a8d4240e..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/KSCms-UHC-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/KSCms-UHC-HW-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/KSCms-UHC-HW-H.bcmap
deleted file mode 100644
index 8b4ae18f..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/KSCms-UHC-HW-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/KSCms-UHC-HW-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/KSCms-UHC-HW-V.bcmap
deleted file mode 100644
index b655dbcf..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/KSCms-UHC-HW-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/KSCms-UHC-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/KSCms-UHC-V.bcmap
deleted file mode 100644
index 21f97f65..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/KSCms-UHC-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/KSCpc-EUC-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/KSCpc-EUC-H.bcmap
deleted file mode 100644
index e06f361e..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/KSCpc-EUC-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/KSCpc-EUC-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/KSCpc-EUC-V.bcmap
deleted file mode 100644
index f3c9113f..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/KSCpc-EUC-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Katakana.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Katakana.bcmap
deleted file mode 100644
index 524303c4..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Katakana.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/LICENSE b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/LICENSE
deleted file mode 100644
index b1ad168a..00000000
--- a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/LICENSE
+++ /dev/null
@@ -1,36 +0,0 @@
-%%Copyright: -----------------------------------------------------------
-%%Copyright: Copyright 1990-2009 Adobe Systems Incorporated.
-%%Copyright: All rights reserved.
-%%Copyright:
-%%Copyright: Redistribution and use in source and binary forms, with or
-%%Copyright: without modification, are permitted provided that the
-%%Copyright: following conditions are met:
-%%Copyright:
-%%Copyright: Redistributions of source code must retain the above
-%%Copyright: copyright notice, this list of conditions and the following
-%%Copyright: disclaimer.
-%%Copyright:
-%%Copyright: Redistributions in binary form must reproduce the above
-%%Copyright: copyright notice, this list of conditions and the following
-%%Copyright: disclaimer in the documentation and/or other materials
-%%Copyright: provided with the distribution.
-%%Copyright:
-%%Copyright: Neither the name of Adobe Systems Incorporated nor the names
-%%Copyright: of its contributors may be used to endorse or promote
-%%Copyright: products derived from this software without specific prior
-%%Copyright: written permission.
-%%Copyright:
-%%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
-%%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
-%%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-%%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-%%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
-%%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-%%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
-%%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-%%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-%%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-%%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-%%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-%%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-%%Copyright: -----------------------------------------------------------
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/NWP-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/NWP-H.bcmap
deleted file mode 100644
index afc5e4b0..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/NWP-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/NWP-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/NWP-V.bcmap
deleted file mode 100644
index bb5785e3..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/NWP-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/RKSJ-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/RKSJ-H.bcmap
deleted file mode 100644
index fb8d298e..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/RKSJ-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/RKSJ-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/RKSJ-V.bcmap
deleted file mode 100644
index a2555a6c..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/RKSJ-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Roman.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Roman.bcmap
deleted file mode 100644
index f896dcf1..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/Roman.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniCNS-UCS2-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniCNS-UCS2-H.bcmap
deleted file mode 100644
index d5db27c5..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniCNS-UCS2-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniCNS-UCS2-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniCNS-UCS2-V.bcmap
deleted file mode 100644
index 1dc9b7a2..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniCNS-UCS2-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniCNS-UTF16-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniCNS-UTF16-H.bcmap
deleted file mode 100644
index 961afefb..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniCNS-UTF16-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniCNS-UTF16-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniCNS-UTF16-V.bcmap
deleted file mode 100644
index df0cffe8..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniCNS-UTF16-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniCNS-UTF32-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniCNS-UTF32-H.bcmap
deleted file mode 100644
index 1ab18a14..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniCNS-UTF32-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniCNS-UTF32-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniCNS-UTF32-V.bcmap
deleted file mode 100644
index ad14662e..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniCNS-UTF32-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniCNS-UTF8-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniCNS-UTF8-H.bcmap
deleted file mode 100644
index 83c6bd7c..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniCNS-UTF8-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniCNS-UTF8-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniCNS-UTF8-V.bcmap
deleted file mode 100644
index 22a27e4d..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniCNS-UTF8-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniGB-UCS2-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniGB-UCS2-H.bcmap
deleted file mode 100644
index 5bd6228c..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniGB-UCS2-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniGB-UCS2-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniGB-UCS2-V.bcmap
deleted file mode 100644
index 53c534b7..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniGB-UCS2-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniGB-UTF16-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniGB-UTF16-H.bcmap
deleted file mode 100644
index b95045b4..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniGB-UTF16-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniGB-UTF16-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniGB-UTF16-V.bcmap
deleted file mode 100644
index 51f023e0..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniGB-UTF16-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniGB-UTF32-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniGB-UTF32-H.bcmap
deleted file mode 100644
index f0dbd14f..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniGB-UTF32-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniGB-UTF32-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniGB-UTF32-V.bcmap
deleted file mode 100644
index ce9c30a9..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniGB-UTF32-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniGB-UTF8-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniGB-UTF8-H.bcmap
deleted file mode 100644
index 982ca462..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniGB-UTF8-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniGB-UTF8-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniGB-UTF8-V.bcmap
deleted file mode 100644
index f78020dd..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniGB-UTF8-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS-UCS2-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS-UCS2-H.bcmap
deleted file mode 100644
index 7daf56af..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS-UCS2-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS-UCS2-HW-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS-UCS2-HW-H.bcmap
deleted file mode 100644
index ac9975c5..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS-UCS2-HW-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS-UCS2-HW-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS-UCS2-HW-V.bcmap
deleted file mode 100644
index 3da0a1c6..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS-UCS2-HW-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS-UCS2-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS-UCS2-V.bcmap
deleted file mode 100644
index c50b9ddf..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS-UCS2-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS-UTF16-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS-UTF16-H.bcmap
deleted file mode 100644
index 67613446..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS-UTF16-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS-UTF16-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS-UTF16-V.bcmap
deleted file mode 100644
index 70bf90c0..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS-UTF16-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS-UTF32-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS-UTF32-H.bcmap
deleted file mode 100644
index 7a83d53a..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS-UTF32-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS-UTF32-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS-UTF32-V.bcmap
deleted file mode 100644
index 7a871353..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS-UTF32-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS-UTF8-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS-UTF8-H.bcmap
deleted file mode 100644
index 9f0334ca..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS-UTF8-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS-UTF8-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS-UTF8-V.bcmap
deleted file mode 100644
index 808a94f0..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS-UTF8-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS2004-UTF16-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS2004-UTF16-H.bcmap
deleted file mode 100644
index d768bf81..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS2004-UTF16-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS2004-UTF16-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS2004-UTF16-V.bcmap
deleted file mode 100644
index 3d5bf6fb..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS2004-UTF16-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS2004-UTF32-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS2004-UTF32-H.bcmap
deleted file mode 100644
index 09eee10d..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS2004-UTF32-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS2004-UTF32-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS2004-UTF32-V.bcmap
deleted file mode 100644
index 6c546001..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS2004-UTF32-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS2004-UTF8-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS2004-UTF8-H.bcmap
deleted file mode 100644
index 1b1a64f5..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS2004-UTF8-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS2004-UTF8-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS2004-UTF8-V.bcmap
deleted file mode 100644
index 994aa9ef..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJIS2004-UTF8-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJISPro-UCS2-HW-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJISPro-UCS2-HW-V.bcmap
deleted file mode 100644
index 643f921b..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJISPro-UCS2-HW-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJISPro-UCS2-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJISPro-UCS2-V.bcmap
deleted file mode 100644
index c148f67f..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJISPro-UCS2-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJISPro-UTF8-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJISPro-UTF8-V.bcmap
deleted file mode 100644
index 1849d809..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJISPro-UTF8-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJISX0213-UTF32-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJISX0213-UTF32-H.bcmap
deleted file mode 100644
index a83a677c..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJISX0213-UTF32-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJISX0213-UTF32-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJISX0213-UTF32-V.bcmap
deleted file mode 100644
index f527248a..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJISX0213-UTF32-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJISX02132004-UTF32-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJISX02132004-UTF32-H.bcmap
deleted file mode 100644
index e1a988dc..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJISX02132004-UTF32-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJISX02132004-UTF32-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJISX02132004-UTF32-V.bcmap
deleted file mode 100644
index 47e054a9..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniJISX02132004-UTF32-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniKS-UCS2-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniKS-UCS2-H.bcmap
deleted file mode 100644
index b5b94852..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniKS-UCS2-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniKS-UCS2-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniKS-UCS2-V.bcmap
deleted file mode 100644
index 026adcaa..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniKS-UCS2-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniKS-UTF16-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniKS-UTF16-H.bcmap
deleted file mode 100644
index fd4e66e8..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniKS-UTF16-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniKS-UTF16-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniKS-UTF16-V.bcmap
deleted file mode 100644
index 075efb70..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniKS-UTF16-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniKS-UTF32-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniKS-UTF32-H.bcmap
deleted file mode 100644
index 769d2142..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniKS-UTF32-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniKS-UTF32-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniKS-UTF32-V.bcmap
deleted file mode 100644
index bdab208b..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniKS-UTF32-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniKS-UTF8-H.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniKS-UTF8-H.bcmap
deleted file mode 100644
index 6ff8674a..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniKS-UTF8-H.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniKS-UTF8-V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniKS-UTF8-V.bcmap
deleted file mode 100644
index 8dfa76a5..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/UniKS-UTF8-V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/V.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/V.bcmap
deleted file mode 100644
index fdec9906..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/V.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/WP-Symbol.bcmap b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/WP-Symbol.bcmap
deleted file mode 100644
index 46729bbf..00000000
Binary files a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/cmaps/WP-Symbol.bcmap and /dev/null differ
diff --git a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/pdf_viewer.min.js b/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/pdf_viewer.min.js
deleted file mode 100644
index 45eeca8c..00000000
--- a/servers/server/src/lib/process-manager/static-server/public/cdn/pdfjs/pdf_viewer.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("pdfjs-dist/web/pdf_viewer",[],t):"object"==typeof exports?exports["pdfjs-dist/web/pdf_viewer"]=t():e["pdfjs-dist/web/pdf_viewer"]=e.pdfjsViewer=t()}(globalThis,()=>(()=>{"use strict";var i=[,(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultXfaLayerFactory=t.DefaultTextLayerFactory=t.DefaultStructTreeLayerFactory=t.DefaultAnnotationLayerFactory=t.DefaultAnnotationEditorLayerFactory=void 0;var s=i(2),u=i(5),g=i(4),p=i(6),n=i(8),o=i(9),a=i(10);t.DefaultAnnotationLayerFactory=class{createAnnotationLayerBuilder({pageDiv:e,pdfPage:t,annotationStorage:i=null,imageResourcesPath:n="",renderForms:a=!0,l10n:r=g.NullL10n,enableScripting:s=!1,hasJSActionsPromise:o=null,mouseState:l=null,fieldObjectsPromise:h=null,annotationCanvasMap:d=null,accessibilityManager:c=null}){return new u.AnnotationLayerBuilder({pageDiv:e,pdfPage:t,imageResourcesPath:n,renderForms:a,linkService:new p.SimpleLinkService,l10n:r,annotationStorage:i,enableScripting:s,hasJSActionsPromise:o,fieldObjectsPromise:h,mouseState:l,annotationCanvasMap:d,accessibilityManager:c})}};t.DefaultAnnotationEditorLayerFactory=class{createAnnotationEditorLayerBuilder({uiManager:e=null,pageDiv:t,pdfPage:i,accessibilityManager:n=null,l10n:a,annotationStorage:r=null}){return new s.AnnotationEditorLayerBuilder({uiManager:e,pageDiv:t,pdfPage:i,accessibilityManager:n,l10n:a,annotationStorage:r})}};t.DefaultStructTreeLayerFactory=class{createStructTreeLayerBuilder({pdfPage:e}){return new n.StructTreeLayerBuilder({pdfPage:e})}};t.DefaultTextLayerFactory=class{createTextLayerBuilder({textLayerDiv:e,pageIndex:t,viewport:i,enhanceTextSelection:n=!1,eventBus:a,highlighter:r,accessibilityManager:s=null}){return new o.TextLayerBuilder({textLayerDiv:e,pageIndex:t,viewport:i,enhanceTextSelection:n,eventBus:a,highlighter:r,accessibilityManager:s})}};t.DefaultXfaLayerFactory=class{createXfaLayerBuilder({pageDiv:e,pdfPage:t,annotationStorage:i=null}){return new a.XfaLayerBuilder({pageDiv:e,pdfPage:t,annotationStorage:i,linkService:new p.SimpleLinkService})}}},(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationEditorLayerBuilder=void 0;var n=i(3),a=i(4);t.AnnotationEditorLayerBuilder=class{#uiManager;constructor(e){this.pageDiv=e.pageDiv,this.pdfPage=e.pdfPage,this.annotationStorage=e.annotationStorage||null,this.accessibilityManager=e.accessibilityManager,this.l10n=e.l10n||a.NullL10n,this.annotationEditorLayer=null,this.div=null,this._cancelled=!1,this.#uiManager=e.uiManager}async render(e,t="display"){if("display"===t&&!this._cancelled){e=e.clone({dontFlip:!0});if(this.div)return this.annotationEditorLayer.update({viewport:e}),void this.show();this.div=document.createElement("div"),this.div.className="annotationEditorLayer",this.div.tabIndex=0,this.pageDiv.append(this.div),this.annotationEditorLayer=new n.AnnotationEditorLayer({uiManager:this.#uiManager,div:this.div,annotationStorage:this.annotationStorage,accessibilityManager:this.accessibilityManager,pageIndex:this.pdfPage._pageIndex,l10n:this.l10n,viewport:e});e={viewport:e,div:this.div,annotations:null,intent:t};this.annotationEditorLayer.render(e)}}cancel(){this._cancelled=!0,this.destroy()}hide(){this.div&&(this.div.hidden=!0)}show(){this.div&&(this.div.hidden=!1)}destroy(){this.div&&(this.pageDiv=null,this.annotationEditorLayer.destroy(),this.div.remove())}}},e=>{let t;t="undefined"!=typeof window&&window["pdfjs-dist/build/pdf"]?window["pdfjs-dist/build/pdf"]:require("../build/pdf.js"),e.exports=t},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NullL10n=void 0,t.fixupLangCode=function(e){return n[e?.toLowerCase()]||e},t.getL10nFallback=a;const i={of_pages:"of {{pagesCount}}",page_of_pages:"({{pageNumber}} of {{pagesCount}})",document_properties_kb:"{{size_kb}} KB ({{size_b}} bytes)",document_properties_mb:"{{size_mb}} MB ({{size_b}} bytes)",document_properties_date_string:"{{date}}, {{time}}",document_properties_page_size_unit_inches:"in",document_properties_page_size_unit_millimeters:"mm",document_properties_page_size_orientation_portrait:"portrait",document_properties_page_size_orientation_landscape:"landscape",document_properties_page_size_name_a3:"A3",document_properties_page_size_name_a4:"A4",document_properties_page_size_name_letter:"Letter",document_properties_page_size_name_legal:"Legal",document_properties_page_size_dimension_string:"{{width}} × {{height}} {{unit}} ({{orientation}})",document_properties_page_size_dimension_name_string:"{{width}} × {{height}} {{unit}} ({{name}}, {{orientation}})",document_properties_linearized_yes:"Yes",document_properties_linearized_no:"No",print_progress_percent:"{{progress}}%","toggle_sidebar.title":"Toggle Sidebar","toggle_sidebar_notification2.title":"Toggle Sidebar (document contains outline/attachments/layers)",additional_layers:"Additional Layers",page_landmark:"Page {{page}}",thumb_page_title:"Page {{page}}",thumb_page_canvas:"Thumbnail of Page {{page}}",find_reached_top:"Reached top of document, continued from bottom",find_reached_bottom:"Reached end of document, continued from top","find_match_count[one]":"{{current}} of {{total}} match","find_match_count[other]":"{{current}} of {{total}} matches","find_match_count_limit[one]":"More than {{limit}} match","find_match_count_limit[other]":"More than {{limit}} matches",find_not_found:"Phrase not found",error_version_info:"PDF.js v{{version}} (build: {{build}})",error_message:"Message: {{message}}",error_stack:"Stack: {{stack}}",error_file:"File: {{file}}",error_line:"Line: {{line}}",rendering_error:"An error occurred while rendering the page.",page_scale_width:"Page Width",page_scale_fit:"Page Fit",page_scale_auto:"Automatic Zoom",page_scale_actual:"Actual Size",page_scale_percent:"{{scale}}%",loading:"Loading…",loading_error:"An error occurred while loading the PDF.",invalid_file_error:"Invalid or corrupted PDF file.",missing_file_error:"Missing PDF file.",unexpected_response_error:"Unexpected server response.",printing_not_supported:"Warning: Printing is not fully supported by this browser.",printing_not_ready:"Warning: The PDF is not fully loaded for printing.",web_fonts_disabled:"Web fonts are disabled: unable to use embedded PDF fonts.",free_text_default_content:"Enter text…",editor_free_text_aria_label:"FreeText Editor",editor_ink_aria_label:"Ink Editor",editor_ink_canvas_aria_label:"User-created image"};function a(e,t){switch(e){case"find_match_count":e=`find_match_count[${1===t.total?"one":"other"}]`;break;case"find_match_count_limit":e=`find_match_count_limit[${1===t.limit?"one":"other"}]`}return i[e]||""}const n={en:"en-US",es:"es-ES",fy:"fy-NL",ga:"ga-IE",gu:"gu-IN",hi:"hi-IN",hy:"hy-AM",nb:"nb-NO",ne:"ne-NP",nn:"nn-NO",pa:"pa-IN",pt:"pt-PT",sv:"sv-SE",zh:"zh-CN"};t.NullL10n={async getLanguage(){return"en-us"},async getDirection(){return"ltr"},async get(e,t=null,i=a(e,t)){return i=i,(n=t)?i.replace(/\{\{\s*(\w+)\s*\}\}/g,(e,t)=>t in n?n[t]:"{{"+t+"}}"):i;var n},async translate(e){}}},(e,t,p)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationLayerBuilder=void 0;var r=p(3),p=p(4);t.AnnotationLayerBuilder=class{constructor({pageDiv:e,pdfPage:t,linkService:i,downloadManager:n,annotationStorage:a=null,imageResourcesPath:r="",renderForms:s=!0,l10n:o=p.NullL10n,enableScripting:l=!1,hasJSActionsPromise:h=null,fieldObjectsPromise:d=null,mouseState:c=null,annotationCanvasMap:u=null,accessibilityManager:g=null}){this.pageDiv=e,this.pdfPage=t,this.linkService=i,this.downloadManager=n,this.imageResourcesPath=r,this.renderForms=s,this.l10n=o,this.annotationStorage=a,this.enableScripting=l,this._hasJSActionsPromise=h,this._fieldObjectsPromise=d,this._mouseState=c,this._annotationCanvasMap=u,this._accessibilityManager=g,this.div=null,this._cancelled=!1}async render(e,t="display"){var[t,i=!1,n=null]=await Promise.all([this.pdfPage.getAnnotations({intent:t}),this._hasJSActionsPromise,this._fieldObjectsPromise]);if(!this._cancelled&&0!==t.length){const a={viewport:e.clone({dontFlip:!0}),div:this.div,annotations:t,page:this.pdfPage,imageResourcesPath:this.imageResourcesPath,renderForms:this.renderForms,linkService:this.linkService,downloadManager:this.downloadManager,annotationStorage:this.annotationStorage,enableScripting:this.enableScripting,hasJSActions:i,fieldObjects:n,mouseState:this._mouseState,annotationCanvasMap:this._annotationCanvasMap,accessibilityManager:this._accessibilityManager};this.div?r.AnnotationLayer.update(a):(this.div=document.createElement("div"),this.div.className="annotationLayer",this.pageDiv.append(this.div),a.div=this.div,r.AnnotationLayer.render(a),this.l10n.translate(this.div))}}cancel(){this._cancelled=!0}hide(){this.div&&(this.div.hidden=!0)}}},(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleLinkService=t.PDFLinkService=t.LinkTarget=void 0;var o=i(7);const s={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};function n(e,{url:t,target:i,rel:n,enabled:a=!0}={}){if(!t||"string"!=typeof t)throw new Error('A valid "url" parameter must provided.');t=(0,o.removeNullCharacters)(t);a?e.href=e.title=t:(e.href="",e.title="Disabled: "+t,e.onclick=()=>!1);let r="";switch(i){case s.NONE:break;case s.SELF:r="_self";break;case s.BLANK:r="_blank";break;case s.PARENT:r="_parent";break;case s.TOP:r="_top"}e.target=r,e.rel="string"==typeof n?n:"noopener noreferrer nofollow"}t.LinkTarget=s;class l{#pagesRefCache=new Map;constructor({eventBus:e,externalLinkTarget:t=null,externalLinkRel:i=null,ignoreDestinationZoom:n=!1}={}){this.eventBus=e,this.externalLinkTarget=t,this.externalLinkRel=i,this.externalLinkEnabled=!0,this._ignoreDestinationZoom=n,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null}setDocument(e,t=null){this.baseUrl=t,this.pdfDocument=e,this.#pagesRefCache.clear()}setViewer(e){this.pdfViewer=e}setHistory(e){this.pdfHistory=e}get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0}get page(){return this.pdfViewer.currentPageNumber}set page(e){this.pdfViewer.currentPageNumber=e}get rotation(){return this.pdfViewer.pagesRotation}set rotation(e){this.pdfViewer.pagesRotation=e}#goToDestinationHelper(t,i=null,n){const a=n[0];let e;if("object"==typeof a&&null!==a){if(!(e=this._cachedPageNumber(a)))return void this.pdfDocument.getPageIndex(a).then(e=>{this.cachePageRef(e+1,a),this.#goToDestinationHelper(t,i,n)}).catch(()=>{console.error(`PDFLinkService.#goToDestinationHelper: "${a}" is not `+`a valid page reference, for dest="${t}".`)})}else{if(!Number.isInteger(a))return void console.error(`PDFLinkService.#goToDestinationHelper: "${a}" is not `+`a valid destination reference, for dest="${t}".`);e=a+1}!e||e<1||e>this.pagesCount?console.error(`PDFLinkService.#goToDestinationHelper: "${e}" is not `+`a valid page number, for dest="${t}".`):(this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.push({namedDest:i,explicitDest:n,pageNumber:e})),this.pdfViewer.scrollPageIntoView({pageNumber:e,destArray:n,ignoreDestinationZoom:this._ignoreDestinationZoom}))}async goToDestination(i){if(this.pdfDocument){let e,t;t="string"==typeof i?(e=i,await this.pdfDocument.getDestination(i)):(e=null,await i),Array.isArray(t)?this.#goToDestinationHelper(i,e,t):console.error(`PDFLinkService.goToDestination: "${t}" is not `+`a valid destination array, for dest="${i}".`)}}goToPage(e){var t;this.pdfDocument&&(t="string"==typeof e&&this.pdfViewer.pageLabelToPageNumber(e)||0|e,Number.isInteger(t)&&0{Object.defineProperty(t,"__esModule",{value:!0}),t.animationStarted=t.VERTICAL_PADDING=t.UNKNOWN_SCALE=t.TextLayerMode=t.SpreadMode=t.SidebarView=t.ScrollMode=t.SCROLLBAR_PADDING=t.RenderingStates=t.RendererType=t.ProgressBar=t.PresentationModeState=t.OutputScale=t.MIN_SCALE=t.MAX_SCALE=t.MAX_AUTO_SCALE=t.DEFAULT_SCALE_VALUE=t.DEFAULT_SCALE_DELTA=t.DEFAULT_SCALE=t.AutoPrintRegExp=void 0,t.apiPageLayoutToViewerModes=function(e){let t=n.VERTICAL,i=a.NONE;switch(e){case"SinglePage":t=n.PAGE;break;case"OneColumn":break;case"TwoPageLeft":t=n.PAGE;case"TwoColumnLeft":i=a.ODD;break;case"TwoPageRight":t=n.PAGE;case"TwoColumnRight":i=a.EVEN}return{scrollMode:t,spreadMode:i}},t.apiPageModeToSidebarView=function(e){switch(e){case"UseNone":return i.NONE;case"UseThumbs":return i.THUMBS;case"UseOutlines":return i.OUTLINE;case"UseAttachments":return i.ATTACHMENTS;case"UseOC":return i.LAYERS}return i.NONE},t.approximateFraction=function(e){if(Math.floor(e)===e)return[e,1];var t=1/e;{if(8o}:function(e){return(e=e.div).offsetTop+e.clientTop+e.clientHeight>r});0g)break;P<=r||s<=v||y<=o||_>=l||(P=Math.max(0,r-v)+Math.max(0,P-s),y=Math.max(0,o-_)+Math.max(0,y-l),f=(f-P)/f*(P=(m-y)/m)*100|0,h.push({id:p.id,x:_,y:v,view:p,percent:f,widthPercent:100*P|0}),d.add(p.id))}var e=h[0],b=h.at(-1);i&&h.sort(function(e,t){var i=e.percent-t.percent;return.001>1;t(e[r])?a=r:n=1+r}return n}function w(t,i,e){if(t<2)return t;let n=i[t].div,a=n.offsetTop+n.clientTop;a>=e&&(n=i[t-1].div,a=n.offsetTop+n.clientTop);for(let e=t-2;0<=e&&!((n=i[e].div).offsetTop+n.clientTop+n.clientHeight<=a);--e)t=e;return t}function o(e){let t=Math.hypot(e.deltaX,e.deltaY);e=Math.atan2(e.deltaY,e.deltaX);return t=-.25*Math.PI{Object.defineProperty(t,"__esModule",{value:!0}),t.StructTreeLayerBuilder=void 0;const r={Document:null,DocumentFragment:null,Part:"group",Sect:"group",Div:"group",Aside:"note",NonStruct:"none",P:null,H:"heading",Title:null,FENote:"note",Sub:"group",Lbl:null,Span:null,Em:null,Strong:null,Link:"link",Annot:"note",Form:"form",Ruby:null,RB:null,RT:null,RP:null,Warichu:null,WT:null,WP:null,L:"list",LI:"listitem",LBody:null,Table:"table",TR:"row",TH:"columnheader",TD:"cell",THead:"columnheader",TBody:null,TFoot:null,Caption:null,Figure:"figure",Formula:null,Artifact:null},s=/^H(\d+)$/;t.StructTreeLayerBuilder=class{constructor({pdfPage:e}){this.pdfPage=e}render(e){return this._walk(e)}_setAttributes(e,t){void 0!==e.alt&&t.setAttribute("aria-label",e.alt),void 0!==e.id&&t.setAttribute("aria-owns",e.id),void 0!==e.lang&&t.setAttribute("lang",e.lang)}_walk(e){if(!e)return null;const t=document.createElement("span");if("role"in e){const n=e["role"];var i=n.match(s);i?(t.setAttribute("role","heading"),t.setAttribute("aria-level",i[1])):r[n]&&t.setAttribute("role",r[n])}if(this._setAttributes(e,t),e.children)if(1===e.children.length&&"id"in e.children[0])this._setAttributes(e.children[0],t);else for(const a of e.children)t.append(this._walk(a));return t}}},(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextLayerBuilder=void 0;var n=i(3);t.TextLayerBuilder=class{constructor({textLayerDiv:e,eventBus:t,pageIndex:i,viewport:n,highlighter:a=null,enhanceTextSelection:r=!1,accessibilityManager:s=null}){this.textLayerDiv=e,this.eventBus=t,this.textContent=null,this.textContentItemsStr=[],this.textContentStream=null,this.renderingDone=!1,this.pageNumber=i+1,this.viewport=n,this.textDivs=[],this.textLayerRenderTask=null,this.highlighter=a,this.enhanceTextSelection=r,this.accessibilityManager=s,this._bindMouse()}_finishRendering(){if(this.renderingDone=!0,!this.enhanceTextSelection){const e=document.createElement("div");e.className="endOfContent",this.textLayerDiv.append(e)}this.eventBus.dispatch("textlayerrendered",{source:this,pageNumber:this.pageNumber,numTextDivs:this.textDivs.length})}render(e=0){if((this.textContent||this.textContentStream)&&!this.renderingDone){this.cancel(),this.textDivs.length=0,this.highlighter?.setTextMapping(this.textDivs,this.textContentItemsStr),this.accessibilityManager?.setTextMapping(this.textDivs);const t=document.createDocumentFragment();this.textLayerRenderTask=(0,n.renderTextLayer)({textContent:this.textContent,textContentStream:this.textContentStream,container:t,viewport:this.viewport,textDivs:this.textDivs,textContentItemsStr:this.textContentItemsStr,timeout:e,enhanceTextSelection:this.enhanceTextSelection}),this.textLayerRenderTask.promise.then(()=>{this.textLayerDiv.append(t),this._finishRendering(),this.highlighter?.enable(),this.accessibilityManager?.enable()},function(e){})}}cancel(){this.textLayerRenderTask&&(this.textLayerRenderTask.cancel(),this.textLayerRenderTask=null),this.highlighter?.disable(),this.accessibilityManager?.disable()}setTextContentStream(e){this.cancel(),this.textContentStream=e}setTextContent(e){this.cancel(),this.textContent=e}_bindMouse(){const n=this.textLayerDiv;let a=null;n.addEventListener("mousedown",e=>{if(this.enhanceTextSelection&&this.textLayerRenderTask)return this.textLayerRenderTask.expandTextDivs(!0),void(a&&(clearTimeout(a),a=null));const t=n.querySelector(".endOfContent");var i;t&&(e.target!==n&&"none"!==window.getComputedStyle(t).getPropertyValue("-moz-user-select")&&(i=n.getBoundingClientRect(),e=Math.max(0,(e.pageY-i.top)/i.height),t.style.top=(100*e).toFixed(2)+"%"),t.classList.add("active"))}),n.addEventListener("mouseup",()=>{if(this.enhanceTextSelection&&this.textLayerRenderTask)a=setTimeout(()=>{this.textLayerRenderTask&&this.textLayerRenderTask.expandTextDivs(!1),a=null},300);else{const e=n.querySelector(".endOfContent");e&&(e.style.top="",e.classList.remove("active"))}})}}},(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XfaLayerBuilder=void 0;var a=i(3);t.XfaLayerBuilder=class{constructor({pageDiv:e,pdfPage:t,annotationStorage:i=null,linkService:n,xfaHtml:a=null}){this.pageDiv=e,this.pdfPage=t,this.annotationStorage=i,this.linkService=n,this.xfaHtml=a,this.div=null,this._cancelled=!1}render(i,n="display"){if("print"!==n)return this.pdfPage.getXfa().then(e=>{if(this._cancelled||!e)return{textDivs:[]};const t={viewport:i.clone({dontFlip:!0}),div:this.div,xfaHtml:e,annotationStorage:this.annotationStorage,linkService:this.linkService,intent:n};return this.div?a.XfaLayer.update(t):(this.div=document.createElement("div"),this.pageDiv.append(this.div),t.div=this.div,a.XfaLayer.render(t))}).catch(e=>{console.error(e)});{const t={viewport:i.clone({dontFlip:!0}),div:this.div,xfaHtml:this.xfaHtml,annotationStorage:this.annotationStorage,linkService:this.linkService,intent:n};var e=document.createElement("div"),e=(this.pageDiv.append(e),t.div=e,a.XfaLayer.render(t));return Promise.resolve(e)}}cancel(){this._cancelled=!0}hide(){this.div&&(this.div.hidden=!0)}}},(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFViewer=t.PDFSinglePageViewer=void 0;var n=i(7),i=i(12);class a extends i.BaseViewer{}t.PDFViewer=a;class r extends i.BaseViewer{_resetView(){super._resetView(),this._scrollMode=n.ScrollMode.PAGE,this._spreadMode=n.SpreadMode.NONE}set scrollMode(e){}_updateScrollMode(){}set spreadMode(e){}_updateSpreadMode(){}}t.PDFSinglePageViewer=r},(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PagesCountLimit=t.PDFPageViewBuffer=t.BaseViewer=void 0;var v=i(3),P=i(7),s=i(2),u=i(5),g=i(4),m=i(13),n=i(16),a=i(6),r=i(8),o=i(17),l=i(9),h=i(10);const d="enablePermissions",y={FORCE_SCROLL_MODE_PAGE:15e3,FORCE_LAZY_PAGE_INIT:7500,PAUSE_EAGER_PAGE_INIT:250};function b(e){return Object.values(v.AnnotationEditorType).includes(e)&&e!==v.AnnotationEditorType.DISABLE}t.PagesCountLimit=y;class c{#buf=new Set;#size=0;constructor(e){this.#size=e}push(e){const t=this.#buf;t.has(e)&&t.delete(e),t.add(e),t.size>this.#size&&this.#destroyFirstView()}resize(e,t=null){this.#size=e;const i=this.#buf;if(t){var n=i.size;let e=1;for(const a of i)if(t.has(a.id)&&(i.delete(a),i.add(a)),++e>n)break}for(;i.size>this.#size;)this.#destroyFirstView()}has(e){return this.#buf.has(e)}[Symbol.iterator](){return this.#buf.keys()}#destroyFirstView(){const e=this.#buf.keys().next().value;e?.destroy(),this.#buf.delete(e)}}t.PDFPageViewBuffer=c;t.BaseViewer=class p{#buffer=null;#annotationEditorMode=v.AnnotationEditorType.DISABLE;#annotationEditorUIManager=null;#annotationMode=v.AnnotationMode.ENABLE_FORMS;#enablePermissions=!1;#previousContainerHeight=0;#scrollModePageState=null;#onVisibilityChange=null;constructor(e){if(this.constructor===p)throw new Error("Cannot initialize BaseViewer.");var t="2.16.105";if(v.version!==t)throw new Error(`The API version "${v.version}" does not match the Viewer version "${t}".`);if(this.container=e.container,this.viewer=e.viewer||e.container.firstElementChild,"DIV"!==this.container?.tagName.toUpperCase()||"DIV"!==this.viewer?.tagName.toUpperCase())throw new Error("Invalid `container` and/or `viewer` option.");if(this.container.offsetParent&&"absolute"!==getComputedStyle(this.container).position)throw new Error("The `container` must be absolutely positioned.");this.eventBus=e.eventBus,this.linkService=e.linkService||new a.SimpleLinkService,this.downloadManager=e.downloadManager||null,this.findController=e.findController||null,this._scriptingManager=e.scriptingManager||null,this.removePageBorders=e.removePageBorders||!1,this.textLayerMode=e.textLayerMode??P.TextLayerMode.ENABLE,this.#annotationMode=e.annotationMode??v.AnnotationMode.ENABLE_FORMS,this.#annotationEditorMode=e.annotationEditorMode??v.AnnotationEditorType.DISABLE,this.imageResourcesPath=e.imageResourcesPath||"",this.enablePrintAutoRotate=e.enablePrintAutoRotate||!1,this.renderer=e.renderer||P.RendererType.CANVAS,this.useOnlyCssZoom=e.useOnlyCssZoom||!1,this.maxCanvasPixels=e.maxCanvasPixels,this.l10n=e.l10n||g.NullL10n,this.#enablePermissions=e.enablePermissions||!1,this.pageColors=e.pageColors||null,!this.pageColors||CSS.supports("color",this.pageColors.background)&&CSS.supports("color",this.pageColors.foreground)||((this.pageColors.background||this.pageColors.foreground)&&console.warn("BaseViewer: Ignoring `pageColors`-option, since the browser doesn't support the values used."),this.pageColors=null),this.defaultRenderingQueue=!e.renderingQueue,this.defaultRenderingQueue?(this.renderingQueue=new n.PDFRenderingQueue,this.renderingQueue.setViewer(this)):this.renderingQueue=e.renderingQueue,this.scroll=(0,P.watchScroll)(this.container,this._scrollUpdate.bind(this)),this.presentationModeState=P.PresentationModeState.UNKNOWN,this._onBeforeDraw=this._onAfterDraw=null,this._resetView(),this.removePageBorders&&this.viewer.classList.add("removePageBorders"),this.updateContainerHeightCss()}get pagesCount(){return this._pages.length}getPageView(e){return this._pages[e]}get pageViewsReady(){return!!this._pagesCapability.settled&&this._pages.every(function(e){return e?.pdfPage})}get renderForms(){return this.#annotationMode===v.AnnotationMode.ENABLE_FORMS}get enableScripting(){return!!this._scriptingManager}get currentPageNumber(){return this._currentPageNumber}set currentPageNumber(e){if(!Number.isInteger(e))throw new Error("Invalid page number.");this.pdfDocument&&!this._setCurrentPageNumber(e,!0)&&console.error(`currentPageNumber: "${e}" is not a valid page.`)}_setCurrentPageNumber(e,t=!1){if(this._currentPageNumber===e)return t&&this.#resetCurrentPageView(),!0;if(!(0{this.#onVisibilityChange=()=>{"hidden"===document.visibilityState&&(e(),document.removeEventListener("visibilitychange",this.#onVisibilityChange),this.#onVisibilityChange=null)},document.addEventListener("visibilitychange",this.#onVisibilityChange)});return Promise.race([this._onePageRenderedCapability.promise,e])}setDocument(g){if(this.pdfDocument&&(this.eventBus.dispatch("pagesdestroy",{source:this}),this._cancelRendering(),this._resetView(),this.findController&&this.findController.setDocument(null),this._scriptingManager&&this._scriptingManager.setDocument(null),this.#annotationEditorUIManager&&(this.#annotationEditorUIManager.destroy(),this.#annotationEditorUIManager=null)),this.pdfDocument=g){const p=g.isPureXfa,f=g.numPages;var e=g.getPage(1);const _=g.getOptionalContentConfig();var t,i=this.#enablePermissions?g.getPermissions():Promise.resolve();f>y.FORCE_SCROLL_MODE_PAGE&&(console.warn("Forcing PAGE-scrolling for performance reasons, given the length of the document."),t=this._scrollMode=P.ScrollMode.PAGE,this.eventBus.dispatch("scrollmodechanged",{source:this,mode:t})),this._pagesCapability.promise.then(()=>{this.eventBus.dispatch("pagesloaded",{source:this,pagesCount:f})},()=>{}),this._onBeforeDraw=e=>{(e=this._pages[e.pageNumber-1])&&this.#buffer.push(e)},this.eventBus._on("pagerender",this._onBeforeDraw),this._onAfterDraw=e=>{e.cssTransform||this._onePageRenderedCapability.settled||(this._onePageRenderedCapability.resolve({timestamp:e.timestamp}),this.eventBus._off("pagerendered",this._onAfterDraw),this._onAfterDraw=null,this.#onVisibilityChange&&(document.removeEventListener("visibilitychange",this.#onVisibilityChange),this.#onVisibilityChange=null))},this.eventBus._on("pagerendered",this._onAfterDraw),Promise.all([e,i]).then(([e,t])=>{if(g===this.pdfDocument){this._firstPageCapability.resolve(e),this._optionalContentConfigPromise=_;var{annotationEditorMode:t,annotationMode:i,textLayerMode:n}=this.#initializePermissions(t),a=(t!==v.AnnotationEditorType.DISABLE&&(p?console.warn("Warning: XFA-editing is not implemented."):b(t)?(this.#annotationEditorUIManager=new v.AnnotationEditorUIManager(this.container,this.eventBus),t!==v.AnnotationEditorType.NONE&&this.#annotationEditorUIManager.updateMode(t)):console.error("Invalid AnnotationEditor mode: "+t)),this._scrollMode===P.ScrollMode.PAGE?null:this.viewer),r=this.currentScale;const c=e.getViewport({scale:r*v.PixelsPerInch.PDF_TO_CSS_UNITS});var s=n===P.TextLayerMode.DISABLE||p?null:this,o=i!==v.AnnotationMode.DISABLE?this:null,l=p?this:null,h=this.#annotationEditorUIManager?this:null;for(let e=1;e<=f;++e){var d=new m.PDFPageView({container:a,eventBus:this.eventBus,id:e,scale:r,defaultViewport:c.clone(),optionalContentConfigPromise:_,renderingQueue:this.renderingQueue,textLayerFactory:s,textLayerMode:n,annotationLayerFactory:o,annotationMode:i,xfaLayerFactory:l,annotationEditorLayerFactory:h,textHighlighterFactory:this,structTreeLayerFactory:this,imageResourcesPath:this.imageResourcesPath,renderer:this.renderer,useOnlyCssZoom:this.useOnlyCssZoom,maxCanvasPixels:this.maxCanvasPixels,pageColors:this.pageColors,l10n:this.l10n});this._pages.push(d)}const u=this._pages[0];u&&(u.setPdfPage(e),this.linkService.cachePageRef(1,e.ref)),this._scrollMode===P.ScrollMode.PAGE?this.#ensurePageViewVisible():this._spreadMode!==P.SpreadMode.NONE&&this._updateSpreadMode(),this.#onePageRenderedOrForceFetch().then(async()=>{if(this.findController&&this.findController.setDocument(g),this._scriptingManager&&this._scriptingManager.setDocument(g),this.#annotationEditorUIManager&&this.eventBus.dispatch("annotationeditormodechanged",{source:this,mode:this.#annotationEditorMode}),g.loadingParams.disableAutoFetch||f>y.FORCE_LAZY_PAGE_INIT)this._pagesCapability.resolve();else{let n=f-1;if(n<=0)this._pagesCapability.resolve();else for(let i=2;i<=f;++i){var e=g.getPage(i).then(e=>{const t=this._pages[i-1];t.pdfPage||t.setPdfPage(e),this.linkService.cachePageRef(i,e.ref),0==--n&&this._pagesCapability.resolve()},e=>{console.error(`Unable to get page ${i} to initialize viewer`,e),0==--n&&this._pagesCapability.resolve()});i%y.PAUSE_EAGER_PAGE_INIT==0&&await e}}}),this.eventBus.dispatch("pagesinit",{source:this}),g.getMetadata().then(({info:e})=>{g===this.pdfDocument&&e.Language&&(this.viewer.lang=e.Language)}),this.defaultRenderingQueue&&this.update()}}).catch(e=>{console.error("Unable to initialize viewer",e),this._pagesCapability.reject(e)})}}setPageLabels(e){if(this.pdfDocument){e?Array.isArray(e)&&this.pdfDocument.numPages===e.length?this._pageLabels=e:(this._pageLabels=null,console.error("setPageLabels: Invalid page labels.")):this._pageLabels=null;for(let e=0,t=this._pages.length;e=t.previousPageNumber,t.previousPageNumber=e}_scrollUpdate(){0!==this.pagesCount&&this.update()}#scrollIntoView(e,t=null){var i,n,a,{div:e,id:r}=e;this._scrollMode===P.ScrollMode.PAGE&&(this._setCurrentPageNumber(r),this.#ensurePageViewVisible(),this.update()),t||this.isInPresentationMode||(i=(r=e.offsetLeft+e.clientLeft)+e.clientWidth,{scrollLeft:n,clientWidth:a}=this.container,(this._scrollMode===P.ScrollMode.HORIZONTAL||rthis.container.clientWidth}get isVerticalScrollbarEnabled(){return!this.isInPresentationMode&&this.container.scrollHeight>this.container.clientHeight}_getVisiblePages(){var e=this._scrollMode===P.ScrollMode.PAGE?this.#scrollModePageState.pages:this._pages,t=this._scrollMode===P.ScrollMode.HORIZONTAL,i=t&&this._isContainerRtl;return(0,P.getVisibleElements)({scrollEl:this.container,views:e,sortByVisibility:!0,horizontal:t,rtl:i})}isPageVisible(e){return!!this.pdfDocument&&(Number.isInteger(e)&&0{this.renderingQueue.renderView(n)}),!0)}createTextLayerBuilder({textLayerDiv:e,pageIndex:t,viewport:i,enhanceTextSelection:n=!1,eventBus:a,highlighter:r,accessibilityManager:s=null}){return new l.TextLayerBuilder({textLayerDiv:e,eventBus:a,pageIndex:t,viewport:i,enhanceTextSelection:!this.isInPresentationMode&&n,highlighter:r,accessibilityManager:s})}createTextHighlighter({pageIndex:e,eventBus:t}){return new o.TextHighlighter({eventBus:t,pageIndex:e,findController:this.isInPresentationMode?null:this.findController})}createAnnotationLayerBuilder({pageDiv:e,pdfPage:t,annotationStorage:i=this.pdfDocument?.annotationStorage,imageResourcesPath:n="",renderForms:a=!0,l10n:r=g.NullL10n,enableScripting:s=this.enableScripting,hasJSActionsPromise:o=this.pdfDocument?.hasJSActions(),mouseState:l=this._scriptingManager?.mouseState,fieldObjectsPromise:h=this.pdfDocument?.getFieldObjects(),annotationCanvasMap:d=null,accessibilityManager:c=null}){return new u.AnnotationLayerBuilder({pageDiv:e,pdfPage:t,annotationStorage:i,imageResourcesPath:n,renderForms:a,linkService:this.linkService,downloadManager:this.downloadManager,l10n:r,enableScripting:s,hasJSActionsPromise:o,mouseState:l,fieldObjectsPromise:h,annotationCanvasMap:d,accessibilityManager:c})}createAnnotationEditorLayerBuilder({uiManager:e=this.#annotationEditorUIManager,pageDiv:t,pdfPage:i,accessibilityManager:n=null,l10n:a,annotationStorage:r=this.pdfDocument?.annotationStorage}){return new s.AnnotationEditorLayerBuilder({uiManager:e,pageDiv:t,pdfPage:i,annotationStorage:r,accessibilityManager:n,l10n:a})}createXfaLayerBuilder({pageDiv:e,pdfPage:t,annotationStorage:i=this.pdfDocument?.annotationStorage}){return new h.XfaLayerBuilder({pageDiv:e,pdfPage:t,annotationStorage:i,linkService:this.linkService})}createStructTreeLayerBuilder({pdfPage:e}){return new r.StructTreeLayerBuilder({pdfPage:e})}get hasEqualPageSizes(){var i=this._pages[0];for(let e=1,t=this._pages.length;e(e=e.pdfPage.getViewport({scale:1}),!this.enablePrintAutoRotate||(0,P.isPortraitOrientation)(e)?{width:e.width,height:e.height,rotation:e.rotation}:{width:e.height,height:e.width,rotation:(e.rotation-90)%360}))}get optionalContentConfigPromise(){return this.pdfDocument?this._optionalContentConfigPromise||(console.error("optionalContentConfigPromise: Not initialized yet."),this.pdfDocument.getOptionalContentConfig()):Promise.resolve(null)}set optionalContentConfigPromise(e){if(!(e instanceof Promise))throw new Error("Invalid optionalContentConfigPromise: "+e);if(this.pdfDocument&&this._optionalContentConfigPromise){var t={optionalContentConfigPromise:this._optionalContentConfigPromise=e};for(const i of this._pages)i.update(t);this.update(),this.eventBus.dispatch("optionalcontentconfigchanged",{source:this,promise:e})}}get scrollMode(){return this._scrollMode}set scrollMode(e){if(this._scrollMode!==e){if(!(0,P.isValidScrollMode)(e))throw new Error("Invalid scroll mode: "+e);this.pagesCount>y.FORCE_SCROLL_MODE_PAGE||(this._previousScrollMode=this._scrollMode,this._scrollMode=e,this.eventBus.dispatch("scrollmodechanged",{source:this,mode:e}),this._updateScrollMode(this._currentPageNumber))}}_updateScrollMode(e=null){const t=this._scrollMode,i=this.viewer;i.classList.toggle("scrollHorizontal",t===P.ScrollMode.HORIZONTAL),i.classList.toggle("scrollWrapped",t===P.ScrollMode.WRAPPED),this.pdfDocument&&e&&(t===P.ScrollMode.PAGE?this.#ensurePageViewVisible():this._previousScrollMode===P.ScrollMode.PAGE&&this._updateSpreadMode(),this._currentScaleValue&&isNaN(this._currentScaleValue)&&this._setScale(this._currentScaleValue,!0),this._setCurrentPageNumber(e,!0),this.update())}get spreadMode(){return this._spreadMode}set spreadMode(e){if(this._spreadMode!==e){if(!(0,P.isValidSpreadMode)(e))throw new Error("Invalid spread mode: "+e);this._spreadMode=e,this.eventBus.dispatch("spreadmodechanged",{source:this,mode:e}),this._updateSpreadMode(this._currentPageNumber)}}_updateSpreadMode(e=null){if(this.pdfDocument){const a=this.viewer,r=this._pages;if(this._scrollMode===P.ScrollMode.PAGE)this.#ensurePageViewVisible();else if(a.textContent="",this._spreadMode===P.SpreadMode.NONE)for(const t of this._pages)a.append(t.div);else{var n=this._spreadMode-1;let i=null;for(let e=0,t=r.length;eP.MIN_SCALE;);this.currentScaleValue=t}updateContainerHeightCss(){var e=this.container.clientHeight;e!==this.#previousContainerHeight&&(this.#previousContainerHeight=e,P.docStyle.setProperty("--viewer-container-height",e+"px"))}get annotationEditorMode(){return this.#annotationEditorUIManager?this.#annotationEditorMode:v.AnnotationEditorType.DISABLE}set annotationEditorMode(e){if(!this.#annotationEditorUIManager)throw new Error("The AnnotationEditor is not enabled.");if(this.#annotationEditorMode!==e){if(!b(e))throw new Error("Invalid AnnotationEditor mode: "+e);this.pdfDocument&&(this.#annotationEditorMode=e,this.eventBus.dispatch("annotationeditormodechanged",{source:this,mode:e}),this.#annotationEditorUIManager.updateMode(e))}}set annotationEditorParams({type:e,value:t}){if(!this.#annotationEditorUIManager)throw new Error("The AnnotationEditor is not enabled.");this.#annotationEditorUIManager.updateParams(e,t)}refresh(){if(this.pdfDocument){var e={};for(const t of this._pages)t.update(e);this.update()}}}},(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFPageView=void 0;var c=i(3),u=i(7),n=i(14),r=i(4),d=i(15);const s=n.compatibilityParams.maxCanvasPixels||16777216;t.PDFPageView=class{#annotationMode=c.AnnotationMode.ENABLE_FORMS;#useThumbnailCanvas={initialOptionalContent:!0,regularAnnotations:!0};constructor(e){const t=e.container;var i=e.defaultViewport;this.id=e.id,this.renderingId="page"+this.id,this.pdfPage=null,this.pageLabel=null,this.rotation=0,this.scale=e.scale||u.DEFAULT_SCALE,this.viewport=i,this.pdfPageRotate=i.rotation,this._optionalContentConfigPromise=e.optionalContentConfigPromise||null,this.hasRestrictedScaling=!1,this.textLayerMode=e.textLayerMode??u.TextLayerMode.ENABLE,this.#annotationMode=e.annotationMode??c.AnnotationMode.ENABLE_FORMS,this.imageResourcesPath=e.imageResourcesPath||"",this.useOnlyCssZoom=e.useOnlyCssZoom||!1,this.maxCanvasPixels=e.maxCanvasPixels||s,this.pageColors=e.pageColors||null,this.eventBus=e.eventBus,this.renderingQueue=e.renderingQueue,this.textLayerFactory=e.textLayerFactory,this.annotationLayerFactory=e.annotationLayerFactory,this.annotationEditorLayerFactory=e.annotationEditorLayerFactory,this.xfaLayerFactory=e.xfaLayerFactory,this.textHighlighter=e.textHighlighterFactory?.createTextHighlighter({pageIndex:this.id-1,eventBus:this.eventBus}),this.structTreeLayerFactory=e.structTreeLayerFactory,this.renderer=e.renderer||u.RendererType.CANVAS,this.l10n=e.l10n||r.NullL10n,this.paintTask=null,this.paintedViewportMap=new WeakMap,this.renderingState=u.RenderingStates.INITIAL,this.resume=null,this._renderError=null,this._isStandalone=!this.renderingQueue?.hasViewer(),this._annotationCanvasMap=null,this.annotationLayer=null,this.annotationEditorLayer=null,this.textLayer=null,this.zoomLayer=null,this.xfaLayer=null,this.structTreeLayer=null;const n=document.createElement("div");if(n.className="page",n.style.width=Math.floor(this.viewport.width)+"px",n.style.height=Math.floor(this.viewport.height)+"px",n.setAttribute("data-page-number",this.id),n.setAttribute("role","region"),this.l10n.get("page_landmark",{page:this.id}).then(e=>{n.setAttribute("aria-label",e)}),this.div=n,t?.append(n),this._isStandalone){const a=e["optionalContentConfigPromise"];a&&a.then(e=>{a===this._optionalContentConfigPromise&&(this.#useThumbnailCanvas.initialOptionalContent=e.hasInitialVisibility)})}}setPdfPage(e){this.pdfPage=e,this.pdfPageRotate=e.rotate;var t=(this.rotation+this.pdfPageRotate)%360;this.viewport=e.getViewport({scale:this.scale*c.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:t}),this.reset()}destroy(){this.reset(),this.pdfPage&&this.pdfPage.cleanup()}async _renderAnnotationLayer(){let t=null;try{await this.annotationLayer.render(this.viewport,"display")}catch(e){console.error(`_renderAnnotationLayer: "${e}".`),t=e}finally{this.eventBus.dispatch("annotationlayerrendered",{source:this,pageNumber:this.id,error:t})}}async _renderAnnotationEditorLayer(){let t=null;try{await this.annotationEditorLayer.render(this.viewport,"display")}catch(e){console.error(`_renderAnnotationEditorLayer: "${e}".`),t=e}finally{this.eventBus.dispatch("annotationeditorlayerrendered",{source:this,pageNumber:this.id,error:t})}}async _renderXfaLayer(){let t=null;try{var e=await this.xfaLayer.render(this.viewport,"display");this.textHighlighter&&this._buildXfaTextContentItems(e.textDivs)}catch(e){console.error(`_renderXfaLayer: "${e}".`),t=e}finally{this.eventBus.dispatch("xfalayerrendered",{source:this,pageNumber:this.id,error:t})}}async _buildXfaTextContentItems(e){const t=[];for(const i of(await this.pdfPage.getTextContent()).items)t.push(i.str);this.textHighlighter.setTextMapping(e,t),this.textHighlighter.enable()}_resetZoomLayer(e=!1){if(this.zoomLayer){const t=this.zoomLayer.firstChild;this.paintedViewportMap.delete(t),t.width=0,t.height=0,e&&this.zoomLayer.remove(),this.zoomLayer=null}}reset({keepZoomLayer:e=!1,keepAnnotationLayer:t=!1,keepAnnotationEditorLayer:i=!1,keepXfaLayer:n=!1}={}){this.cancelRendering({keepAnnotationLayer:t,keepAnnotationEditorLayer:i,keepXfaLayer:n}),this.renderingState=u.RenderingStates.INITIAL;const a=this.div;a.style.width=Math.floor(this.viewport.width)+"px",a.style.height=Math.floor(this.viewport.height)+"px";var r=a.childNodes,s=e&&this.zoomLayer||null,o=t&&this.annotationLayer?.div||null,l=i&&this.annotationEditorLayer?.div||null,h=n&&this.xfaLayer?.div||null;for(let e=r.length-1;0<=e;e--){const d=r[e];switch(d){case s:case o:case l:case h:continue}d.remove()}a.removeAttribute("data-loaded"),o&&this.annotationLayer.hide(),l?this.annotationEditorLayer.hide():this.annotationEditorLayer?.destroy(),h&&this.xfaLayer.hide(),s||(this.canvas&&(this.paintedViewportMap.delete(this.canvas),this.canvas.width=0,this.canvas.height=0,delete this.canvas),this._resetZoomLayer()),this.svg&&(this.paintedViewportMap.delete(this.svg),delete this.svg),this.loadingIconDiv=document.createElement("div"),this.loadingIconDiv.className="loadingIcon notVisible",this._isStandalone&&this.toggleLoadingIconSpinner(!0),this.loadingIconDiv.setAttribute("role","img"),this.l10n.get("loading").then(e=>{this.loadingIconDiv?.setAttribute("aria-label",e)}),a.append(this.loadingIconDiv)}update({scale:e=0,rotation:t=null,optionalContentConfigPromise:i=null}){this.scale=e||this.scale,"number"==typeof t&&(this.rotation=t),i instanceof Promise&&(this._optionalContentConfigPromise=i).then(e=>{i===this._optionalContentConfigPromise&&(this.#useThumbnailCanvas.initialOptionalContent=e.hasInitialVisibility)});e=(this.rotation+this.pdfPageRotate)%360;if(this.viewport=this.viewport.clone({scale:this.scale*c.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:e}),this._isStandalone&&u.docStyle.setProperty("--scale-factor",this.viewport.scale),this.svg)return this.cssTransform({target:this.svg,redrawAnnotationLayer:!0,redrawAnnotationEditorLayer:!0,redrawXfaLayer:!0}),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now(),error:this._renderError});let n=!1;if(this.canvas&&0this.maxCanvasPixels&&(n=!0)),this.canvas){if(this.useOnlyCssZoom||this.hasRestrictedScaling&&n)return this.cssTransform({target:this.canvas,redrawAnnotationLayer:!0,redrawAnnotationEditorLayer:!0,redrawXfaLayer:!0}),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now(),error:this._renderError});this.zoomLayer||this.canvas.hidden||(this.zoomLayer=this.canvas.parentNode,this.zoomLayer.style.position="absolute")}this.zoomLayer&&this.cssTransform({target:this.zoomLayer.firstChild}),this.reset({keepZoomLayer:!0,keepAnnotationLayer:!0,keepAnnotationEditorLayer:!0,keepXfaLayer:!0})}cancelRendering({keepAnnotationLayer:e=!1,keepAnnotationEditorLayer:t=!1,keepXfaLayer:i=!1}={}){this.paintTask&&(this.paintTask.cancel(),this.paintTask=null),this.resume=null,this.textLayer&&(this.textLayer.cancel(),this.textLayer=null),!this.annotationLayer||e&&this.annotationLayer.div||(this.annotationLayer.cancel(),this.annotationLayer=null,this._annotationCanvasMap=null),!this.annotationEditorLayer||t&&this.annotationEditorLayer.div||(this.annotationEditorLayer.cancel(),this.annotationEditorLayer=null),!this.xfaLayer||i&&this.xfaLayer.div||(this.xfaLayer.cancel(),this.xfaLayer=null,this.textHighlighter?.disable()),this._onTextLayerRendered&&(this.eventBus._off("textlayerrendered",this._onTextLayerRendered),this._onTextLayerRendered=null)}cssTransform({target:n,redrawAnnotationLayer:e=!1,redrawAnnotationEditorLayer:t=!1,redrawXfaLayer:i=!1}){var a=this.viewport.width,r=this.viewport.height;const s=this.div;n.style.width=n.parentNode.style.width=s.style.width=Math.floor(a)+"px",n.style.height=n.parentNode.style.height=s.style.height=Math.floor(r)+"px";var o=this.viewport.rotation-this.paintedViewportMap.get(n).rotation,l=Math.abs(o);let h=1,d=1;if(90!==l&&270!==l||(h=r/a,d=a/r),n.style.transform=`rotate(${o}deg) scale(${h}, ${d})`,this.textLayer){l=this.textLayer.viewport,r=this.viewport.rotation-l.rotation,n=Math.abs(r);let e=a/l.width;90!==n&&270!==n||(e=a/l.height);const c=this.textLayer.textLayerDiv;let t,i;switch(n){case 0:t=i=0;break;case 90:t=0,i="-"+c.style.height;break;case 180:t="-"+c.style.width,i="-"+c.style.height;break;case 270:t="-"+c.style.width,i=0;break;default:console.error("Bad rotation value.")}c.style.transform=`rotate(${n}deg) `+`scale(${e}) `+`translate(${t}, ${i})`,c.style.transformOrigin="0% 0%"}e&&this.annotationLayer&&this._renderAnnotationLayer(),t&&this.annotationEditorLayer&&this._renderAnnotationEditorLayer(),i&&this.xfaLayer&&this._renderXfaLayer()}get width(){return this.viewport.width}get height(){return this.viewport.height}getPagePoint(e,t){return this.viewport.convertToPdfPoint(e,t)}toggleLoadingIconSpinner(e=!1){this.loadingIconDiv?.classList.toggle("notVisible",!e)}draw(){this.renderingState!==u.RenderingStates.INITIAL&&(console.error("Must be in new state before drawing"),this.reset());const{div:t,pdfPage:i}=this;if(!i)return this.renderingState=u.RenderingStates.FINISHED,this.loadingIconDiv&&(this.loadingIconDiv.remove(),delete this.loadingIconDiv),Promise.reject(new Error("pdfPage is not loaded"));this.renderingState=u.RenderingStates.RUNNING;const e=document.createElement("div"),n=(e.style.width=t.style.width,e.style.height=t.style.height,e.classList.add("canvasWrapper"),this.annotationLayer?.div||this.annotationEditorLayer?.div);n?n.before(e):t.append(e);let a=null;if(this.textLayerMode!==u.TextLayerMode.DISABLE&&this.textLayerFactory){this._accessibilityManager||=new d.TextAccessibilityManager;const h=document.createElement("div");h.className="textLayer",h.style.width=e.style.width,h.style.height=e.style.height,n?n.before(h):t.append(h),a=this.textLayerFactory.createTextLayerBuilder({textLayerDiv:h,pageIndex:this.id-1,viewport:this.viewport,enhanceTextSelection:this.textLayerMode===u.TextLayerMode.ENABLE_ENHANCE,eventBus:this.eventBus,highlighter:this.textHighlighter,accessibilityManager:this._accessibilityManager})}this.textLayer=a,this.#annotationMode!==c.AnnotationMode.DISABLE&&this.annotationLayerFactory&&(this._annotationCanvasMap||=new Map,this.annotationLayer||=this.annotationLayerFactory.createAnnotationLayerBuilder({pageDiv:t,pdfPage:i,imageResourcesPath:this.imageResourcesPath,renderForms:this.#annotationMode===c.AnnotationMode.ENABLE_FORMS,l10n:this.l10n,annotationCanvasMap:this._annotationCanvasMap,accessibilityManager:this._accessibilityManager})),this.xfaLayer?.div&&t.append(this.xfaLayer.div);let r=null;this.renderingQueue&&(r=e=>{if(!this.renderingQueue.isHighestPriority(this))return this.renderingState=u.RenderingStates.PAUSED,void(this.resume=()=>{this.renderingState=u.RenderingStates.RUNNING,e()});e()});const s=async(e=null)=>{if(o===this.paintTask&&(this.paintTask=null),e instanceof c.RenderingCancelledException)this._renderError=null;else if(this._renderError=e,this.renderingState=u.RenderingStates.FINISHED,this.loadingIconDiv&&(this.loadingIconDiv.remove(),delete this.loadingIconDiv),this._resetZoomLayer(!0),this.#useThumbnailCanvas.regularAnnotations=!o.separateAnnots,this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!1,timestamp:performance.now(),error:this._renderError}),e)throw e},o=this.renderer===u.RendererType.SVG?this.paintOnSvg(e):this.paintOnCanvas(e);o.onRenderContinue=r;var l=(this.paintTask=o).promise.then(()=>s(null).then(()=>{var e;a&&(e=i.streamTextContent({includeMarkedContent:!0}),a.setTextContentStream(e),a.render()),this.annotationLayer&&this._renderAnnotationLayer().then(()=>{this.annotationEditorLayerFactory&&(this.annotationEditorLayer||=this.annotationEditorLayerFactory.createAnnotationEditorLayerBuilder({pageDiv:t,pdfPage:i,l10n:this.l10n,accessibilityManager:this._accessibilityManager}),this._renderAnnotationEditorLayer())})}),function(e){return s(e)});return this.xfaLayerFactory&&(this.xfaLayer||=this.xfaLayerFactory.createXfaLayerBuilder({pageDiv:t,pdfPage:i}),this._renderXfaLayer()),this.structTreeLayerFactory&&this.textLayer&&this.canvas&&(this._onTextLayerRendered=e=>{e.pageNumber===this.id&&(this.eventBus._off("textlayerrendered",this._onTextLayerRendered),this._onTextLayerRendered=null,this.canvas&&this.pdfPage.getStructTree().then(e=>{if(e&&this.canvas){const t=this.structTreeLayer.render(e);t.classList.add("structTree"),this.canvas.append(t)}}))},this.eventBus._on("textlayerrendered",this._onTextLayerRendered),this.structTreeLayer=this.structTreeLayerFactory.createStructTreeLayerBuilder({pdfPage:i})),t.setAttribute("data-loaded",!0),this.eventBus.dispatch("pagerender",{source:this,pageNumber:this.id}),l}paintOnCanvas(e){const t=(0,c.createPromiseCapability)(),i={promise:t.promise,onRenderContinue(e){e()},cancel(){d.cancel()},get separateAnnots(){return d.separateAnnots}},n=this.viewport,a=document.createElement("canvas");a.setAttribute("role","presentation");let r=a.hidden=!0;function s(){r&&(a.hidden=!1,r=!1)}e.append(a);e=(this.canvas=a).getContext("2d",{alpha:!1});const o=this.outputScale=new u.OutputScale;this.useOnlyCssZoom&&(l=n.clone({scale:c.PixelsPerInch.PDF_TO_CSS_UNITS}),o.sx*=l.width/n.width,o.sy*=l.height/n.height),0l||o.sy>l?(o.sx=l,o.sy=l,this.hasRestrictedScaling=!0):this.hasRestrictedScaling=!1);var l=(0,u.approximateFraction)(o.sx),h=(0,u.approximateFraction)(o.sy),l=(a.width=(0,u.roundToDivide)(n.width*o.sx,l[0]),a.height=(0,u.roundToDivide)(n.height*o.sy,h[0]),a.style.width=(0,u.roundToDivide)(n.width,l[1])+"px",a.style.height=(0,u.roundToDivide)(n.height,h[1])+"px",this.paintedViewportMap.set(a,n),o.scaled?[o.sx,0,0,o.sy,0,0]:null),h={canvasContext:e,transform:l,viewport:this.viewport,annotationMode:this.#annotationMode,optionalContentConfigPromise:this._optionalContentConfigPromise,annotationCanvasMap:this._annotationCanvasMap,pageColors:this.pageColors};const d=this.pdfPage.render(h);return d.onContinue=function(e){s(),i.onRenderContinue?i.onRenderContinue(e):e()},d.promise.then(function(){s(),t.resolve()},function(e){s(),t.reject(e)}),i}paintOnSvg(i){let e=!1;const n=()=>{if(e)throw new c.RenderingCancelledException("Rendering cancelled, page "+this.id,"svg")},a=this.pdfPage,r=this.viewport.clone({scale:c.PixelsPerInch.PDF_TO_CSS_UNITS});return{promise:a.getOperatorList({annotationMode:this.#annotationMode}).then(e=>{n();const t=new c.SVGGraphics(a.commonObjs,a.objs);return t.getSVG(e,r).then(e=>{n(),this.svg=e,this.paintedViewportMap.set(e,r),e.style.width=i.style.width,e.style.height=i.style.height,this.renderingState=u.RenderingStates.FINISHED,i.append(e)})}),onRenderContinue(e){e()},cancel(){e=!0},get separateAnnots(){return!1}}}setPageLabel(e){this.pageLabel="string"==typeof e?e:null,null!==this.pageLabel?this.div.setAttribute("data-page-label",this.pageLabel):this.div.removeAttribute("data-page-label")}get thumbnailCanvas(){var{initialOptionalContent:e,regularAnnotations:t}=this.#useThumbnailCanvas;return e&&t?this.canvas:null}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.compatibilityParams=t.OptionKind=t.AppOptions=void 0;const s=Object.create(null);t.compatibilityParams=s;{var i=navigator.userAgent||"",n=navigator.platform||"",a=navigator.maxTouchPoints||1;const r=/Android/.test(i),d=/\b(iPad|iPhone|iPod)(?=;)/.test(i)||"MacIntel"===n&&1{Object.defineProperty(t,"__esModule",{value:!0}),t.TextAccessibilityManager=void 0;var s=i(7);class o{#enabled=!1;#textChildren=null;#textNodes=new Map;#waitingElements=new Map;setTextMapping(e){this.#textChildren=e}static#compareElementPositions(e,t){e=e.getBoundingClientRect(),t=t.getBoundingClientRect();if(0===e.width&&0===e.height)return 1;if(0===t.width&&0===t.height)return-1;var i=e.y,n=e.y+e.height,a=e.y+e.height/2,r=t.y,s=t.y+t.height,o=t.y+t.height/2;return a<=r&&n<=o?-1:o<=i&&s<=a?1:e.x+e.width/2-(t.x+t.width/2)}enable(){if(this.#enabled)throw new Error("TextAccessibilityManager is already enabled.");if(!this.#textChildren)throw new Error("Text divs and strings have not been set.");if(this.#enabled=!0,this.#textChildren=this.#textChildren.slice(),this.#textChildren.sort(o.#compareElementPositions),0e!==n).join(" "))?a.setAttribute("aria-owns",e):(a.removeAttribute("aria-owns"),a.setAttribute("role","presentation")))}}}else this.#waitingElements.delete(e)}#addIdToAriaOwns(e,t){const i=t.getAttribute("aria-owns");i?.includes(e)||t.setAttribute("aria-owns",i?i+" "+e:e),t.removeAttribute("role")}addPointerInTextLayer(t,e){var i,n,a=t["id"];a&&(this.#enabled?(e&&this.removePointerInTextLayer(t),(i=this.#textChildren)&&0!==i.length&&(n=(0,s.binarySearchFirstItem)(i,e=>o.#compareElementPositions(t,e)<0),n=Math.max(0,n-1),this.#addIdToAriaOwns(a,i[n]),this.#textNodes.set(a,n))):this.#waitingElements.set(t,e))}moveElementInDOM(e,t,i,n){if(this.addPointerInTextLayer(i,n),e.hasChildNodes()){const a=Array.from(e.childNodes).filter(e=>e!==t);if(0!==a.length){const r=i||t;n=(0,s.binarySearchFirstItem)(a,e=>o.#compareElementPositions(r,e)<0);0===n?a[0].before(t):a[n-1].after(t)}}else e.append(t)}}t.TextAccessibilityManager=o},(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFRenderingQueue=void 0;var n=i(3),a=i(7);t.PDFRenderingQueue=class{constructor(){this.pdfViewer=null,this.pdfThumbnailViewer=null,this.onIdle=null,this.highestPriorityPage=null,this.idleTimeout=null,this.printing=!1,this.isThumbnailViewEnabled=!1}setViewer(e){this.pdfViewer=e}setThumbnailViewer(e){this.pdfThumbnailViewer=e}isHighestPriority(e){return this.highestPriorityPage===e.renderingId}hasViewer(){return!!this.pdfViewer}renderHighestPriority(e){this.idleTimeout&&(clearTimeout(this.idleTimeout),this.idleTimeout=null),this.pdfViewer.forceRendering(e)||this.isThumbnailViewEnabled&&this.pdfThumbnailViewer?.forceRendering()||this.printing||this.onIdle&&(this.idleTimeout=setTimeout(this.onIdle.bind(this),3e4))}getHighestPriority(e,i,n,t=!1){var a=e.views,r=a.length;if(0===r)return null;for(let e=0;e{this.renderHighestPriority()}).catch(e=>{e instanceof n.RenderingCancelledException||console.error(`renderView: "${e}"`)})}return!0}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextHighlighter=void 0;t.TextHighlighter=class{constructor({findController:e,eventBus:t,pageIndex:i}){this.findController=e,this.matches=[],this.eventBus=t,this.pageIdx=i,this._onUpdateTextLayerMatches=null,this.textDivs=null,this.textContentItemsStr=null,this.enabled=!1}setTextMapping(e,t){this.textDivs=e,this.textContentItemsStr=t}enable(){if(!this.textDivs||!this.textContentItemsStr)throw new Error("Text divs and strings have not been set.");if(this.enabled)throw new Error("TextHighlighter is already enabled.");this.enabled=!0,this._onUpdateTextLayerMatches||(this._onUpdateTextLayerMatches=e=>{e.pageIndex!==this.pageIdx&&-1!==e.pageIndex||this._updateMatches()},this.eventBus._on("updatetextlayermatches",this._onUpdateTextLayerMatches)),this._updateMatches()}disable(){this.enabled&&(this.enabled=!1,this._onUpdateTextLayerMatches&&(this.eventBus._off("updatetextlayermatches",this._onUpdateTextLayerMatches),this._onUpdateTextLayerMatches=null))}_convertMatches(i,n){if(!i)return[];var a=this["textContentItemsStr"];let r=0,s=0;var o=a.length-1;const l=[];for(let t=0,e=i.length;t=s+a[r].length;)s+=a[r].length,r++;r===a.length&&console.error("Could not find a matching mapping");const h={begin:{divIdx:r,offset:e-s}};for(e+=n[t];r!==o&&e>s+a[r].length;)s+=a[r].length,r++;h.end={divIdx:r,offset:e-s},l.push(h)}return l}_renderMatches(a){if(0!==a.length){const{findController:p,pageIdx:f}=this,{textContentItemsStr:_,textDivs:v}=this;var r=f===p.selected.pageIdx,s=p.selected.matchIdx,t=p.state.highlightAll;let i=null;var o={divIdx:-1,offset:void 0};let e=s,n=e+1;if(t)e=0,n=a.length;else if(!r)return;for(let t=e;t{Object.defineProperty(t,"__esModule",{value:!0}),t.DownloadManager=void 0;var s=i(3);function n(e,t){const i=document.createElement("a");if(!i.click)throw new Error('DownloadManager: "a.click()" is not supported.');i.href=e,i.target="_parent","download"in i&&(i.download=t),(document.body||document.documentElement).append(i),i.click(),i.remove()}t.DownloadManager=class{constructor(){this._openBlobUrls=new WeakMap}downloadUrl(e,t){(0,s.createValidAbsoluteUrl)(e,"http://example.com")?n(e+"#pdfjs.action=download",t):console.error("downloadUrl - not a valid URL: "+e)}downloadData(e,t,i){n(URL.createObjectURL(new Blob([e],{type:i})),t)}openOrDownloadData(i,e,n){var a=(0,s.isPdfFile)(n),r=a?"application/pdf":"";if(a){let t=this._openBlobUrls.get(i);t||(t=URL.createObjectURL(new Blob([e],{type:r})),this._openBlobUrls.set(i,t)),a="?file="+encodeURIComponent(t+"#"+n);try{return window.open(a),!0}catch(e){console.error("openOrDownloadData: "+e),URL.revokeObjectURL(t),this._openBlobUrls.delete(i)}}return this.downloadData(e,n,r),!1}download(e,t,i){n(URL.createObjectURL(e),i)}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WaitOnType=t.EventBus=t.AutomationEventBus=void 0,t.waitOnEventOrTimeout=function({target:s,name:o,delay:l=0}){return new Promise(function(t,e){if("object"!=typeof s||!o||"string"!=typeof o||!(Number.isInteger(l)&&0<=l))throw new Error("waitOnEventOrTimeout - invalid parameters.");function i(e){s instanceof d?s._off(o,n):s.removeEventListener(o,n),r&&clearTimeout(r),t(e)}const n=i.bind(null,h.EVENT);s instanceof d?s._on(o,n):s.addEventListener(o,n);var a=i.bind(null,h.TIMEOUT);const r=setTimeout(a,l)})};const h={EVENT:"event",TIMEOUT:"timeout"};t.WaitOnType=h;class d{constructor(){this._listeners=Object.create(null)}on(e,t,i=null){this._on(e,t,{external:!0,once:i?.once})}off(e,t,i=null){this._off(e,t,{external:!0,once:i?.once})}dispatch(t,i){const n=this._listeners[t];if(n&&0!==n.length){let e;for(var{listener:a,external:r,once:s}of n.slice(0))s&&this._off(t,a),r?(e||=[]).push(a):a(i);if(e){for(const o of e)o(i);e=null}}}_on(e,t,i=null){const n=this._listeners[e]||=[];n.push({listener:t,external:!0===i?.external,once:!0===i?.once})}_off(e,i,t=0){const n=this._listeners[e];if(n)for(let e=0,t=n.length;e{Object.defineProperty(t,"__esModule",{value:!0}),t.GenericL10n=void 0,i(21);var a=i(4);const n=document.webL10n;t.GenericL10n=class{constructor(i){this._lang=i,this._ready=new Promise((e,t)=>{n.setLanguage((0,a.fixupLangCode)(i),()=>{e(n)})})}async getLanguage(){const e=await this._ready;return e.getLanguage()}async getDirection(){const e=await this._ready;return e.getDirection()}async get(e,t=null,i=(0,a.getL10nFallback)(e,t)){const n=await this._ready;return n.get(e,t,i)}async translate(e){const t=await this._ready;return t.translate(e)}}},()=>{function y(e,t,i){t=t||function(e){},i=i||function(){};var n=new XMLHttpRequest;n.open("GET",e,a),n.overrideMimeType&&n.overrideMimeType("text/plain; charset=utf-8"),n.onreadystatechange=function(){4==n.readyState&&(200==n.status||0===n.status?t(n.responseText):i())},n.onerror=i,n.ontimeout=i;try{n.send(null)}catch(e){i()}}function u(e,v,a,t){var m=e.replace(/[^\/]*$/,"")||"./";function i(e,t){var c={},i=/^\s*|\s*$/,u=/^\s*#|^\s*$/,g=/^\s*\[(.*)\]\s*$/,p=/^\s*@import\s+url\((.*)\)\s*$/i,f=/^([^=\s]*)\s*=\s*(.+)$/;function _(e,a,r){var s=e.replace(i,"").split(/[\r\n]+/),o="*",l=v.split("-",1)[0],h=!1,d="";!function e(){for(;;){if(!s.length)return void r();var t,i,n=s.shift();if(!u.test(n)){if(a){if(d=g.exec(n)){o=d[1].toLowerCase(),h="*"!==o&&o!==v&&o!==l;continue}if(h)continue;if(d=p.exec(n))return t=m+d[1],i=e,void y(t,function(e){_(e,!1,i)},function(){console.warn(t+" not found."),i()})}(n=n.match(f))&&3==n.length&&(c[n[1]]=(n=n[2]).lastIndexOf("\\")<0?n:n.replace(/\\\\/g,"\\").replace(/\\n/g,"\n").replace(/\\r/g,"\r").replace(/\\t/g,"\t").replace(/\\b/g,"\b").replace(/\\f/g,"\f").replace(/\\{/g,"{").replace(/\\}/g,"}").replace(/\\"/g,'"').replace(/\\'/g,"'"))}}}()}_(e,!0,function(){t(c)})}y(e,function(e){f+=e,i(e,function(e){for(var t in e){var i,n=t.lastIndexOf("."),n=0{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFindController=t.FindState=void 0;var h=i(7),r=i(3),s=i(23);const a={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3},m=(t.FindState=a,{"‐":"-","‘":"'","’":"'","‚":"'","‛":"'","“":'"',"”":'"',"„":'"',"‟":'"',"¼":"1/4","½":"1/2","¾":"3/4"}),d=new Set([12441,12442,2381,2509,2637,2765,2893,3021,3149,3277,3387,3388,3405,3530,3642,3770,3972,4153,4154,5908,5940,6098,6752,6980,7082,7083,7154,7155,11647,43014,43052,43204,43347,43456,43766,44013,3158,3953,3954,3962,3963,3964,3965,3968,3956]),n=[...d.values()].map(e=>String.fromCharCode(e)).join(""),o=/\p{M}+/gu,c=/([.*+?^${}()|[\]\\])|(\p{P})|(\s+)|(\p{M})|(\p{L})/gu,l=/([^\p{M}])\p{M}*$/u,u=/^\p{M}*([^\p{M}])/u,y=/[\uAC00-\uD7AF\uFA6C\uFACF-\uFAD1\uFAD5-\uFAD7]+/g,P=new Map;let b=null,E=null;function g(e){const h=[];let i;for(;null!==(i=y.exec(e));){let t=i["index"];for(const r of i[0]){let e=P.get(r);e||(e=r.normalize("NFD").length,P.set(r,e)),h.push([e,t++])}}let t;var n;t=0===h.length&&b?b:0{if(s-=f,i){var i=m[e],o=i.length;for(let e=1;e{var e,t;!this._pdfDocument||i&&this._pdfDocument!==i||(this.#extractText(),e=!this._highlightMatches,t=!!this._findTimeout,this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),n?this._dirtyMatch?this.#nextMatch():"again"===n?(this.#nextMatch(),e&&this._state.highlightAll&&this.#updateAllPages()):"highlightallchange"===n?(t?this.#nextMatch():this._highlightMatches=!0,this.#updateAllPages()):this.#nextMatch():this._findTimeout=setTimeout(()=>{this.#nextMatch(),this._findTimeout=null},250))})}}scrollMatchIntoView({element:e=null,selectedLeft:t=0,pageIndex:i=-1,matchIndex:n=-1}){this._scrollMatches&&e&&-1!==n&&n===this._selected.matchIdx&&-1!==i&&i===this._selected.pageIdx&&(this._scrollMatches=!1,h.scrollIntoView)(e,{top:-50,left:t+-400},!0)}#reset(){this._highlightMatches=!1,this._scrollMatches=!1,this._pdfDocument=null,this._pageMatches=[],this._pageMatchesLength=[],this._state=null,this._selected={pageIdx:-1,matchIdx:-1},this._offset={pageIdx:null,matchIdx:null,wrapped:!1},this._extractTextPromises=[],this._pageContents=[],this._pageDiffs=[],this._hasDiacritics=[],this._matchesCountTotal=0,this._pagesToSearch=null,this._pendingFindMatches=new Set,this._resumePageIdx=null,this._dirtyMatch=!1,clearTimeout(this._findTimeout),this._findTimeout=null,this._firstPageCapability=(0,r.createPromiseCapability)()}get#query(){return this._state.query!==this._rawQuery&&(this._rawQuery=this._state.query,[this._normalizedQuery]=g(this._state.query)),this._normalizedQuery}#shouldDirtyMatch(e){if(e.query!==this._state.query)return!0;switch(e.type){case"again":var t=this._selected.pageIdx+1;const i=this._linkService;return 1<=t&&t<=i.pagesCount&&t!==i.page&&!i.isPageVisible(t)?!0:!1;case"highlightallchange":return!1}return!0}#isEntireWord(e,t,i){let n=e.slice(0,t).match(l);if(n){var a=e.charCodeAt(t),r=n[1].charCodeAt(0);if((0,s.getCharacterType)(a)===(0,s.getCharacterType)(r))return!1}if(n=e.slice(t+i).match(u)){a=e.charCodeAt(t+i-1),r=n[1].charCodeAt(0);if((0,s.getCharacterType)(a)===(0,s.getCharacterType)(r))return!1}return!0}#calculateRegExpMatch(e,t,i,n){const a=[],r=[];for(var s,o,l=this._pageDiffs[i];null!==(s=e.exec(n));)t&&!this.#isEntireWord(n,s.index,s[0].length)||([s,o]=function(e,t,i){if(!e)return[t,i];const n=t,a=t+i;let r=(0,h.binarySearchFirstItem)(e,e=>e[0]>=n),s=(e[r][0]>n&&--r,(0,h.binarySearchFirstItem)(e,e=>e[0]>=a,r));return e[s][0]>a&&--s,[n+e[r][1],i+e[s][1]-e[r][1]]}(l,s.index,s[0].length),o&&(a.push(s),r.push(o)));this._pageMatches[i]=a,this._pageMatchesLength[i]=r}#convertToRegExpString(e,s){const o=this._state["matchDiacritics"];let l=!1;return(e=e.replace(c,(e,t,i,n,a,r)=>t?`[ ]*\\${t}[ ]*`:i?`[ ]*${i}[ ]*`:n?"[ ]+":o?a||r:a?d.has(a.charCodeAt(0))?a:"":s?(l=!0,r+"\\p{M}*"):r)).endsWith("[ ]*")&&(e=e.slice(0,e.length-"[ ]*".length)),o&&s&&(l=!0,e=`${e}(?=[${n}]|[^\\p{M}]|$)`),[l,e]}#calculateMatch(e){let t=this.#query;if(0!==t.length){var{caseSensitive:n,entireWord:a,phraseSearch:r}=this._state,s=this._pageContents[e];const o=this._hasDiacritics[e];let i=!1;if(r)[i,t]=this.#convertToRegExpString(t,o);else{const l=t.match(/\S+/g);l&&(t=l.sort().reverse().map(e=>{var[e,t]=this.#convertToRegExpString(e,o);return i||=e,`(${t})`}).join("|"))}r="g"+(i?"u":"")+(n?"":"i"),n=(t=new RegExp(t,r),this.#calculateRegExpMatch(t,a,e,s),this._state.highlightAll&&this.#updatePage(e),this._resumePageIdx===e&&(this._resumePageIdx=null,this.#nextPageMatch()),this._pageMatches[e].length);0this._pdfDocument.getPage(n+1).then(e=>e.getTextContent()).then(e=>{const t=[];for(const i of e.items)t.push(i.str),i.hasEOL&&t.push("\n");[this._pageContents[n],this._pageDiffs[n],this._hasDiacritics[n]]=g(t.join("")),a.resolve()},e=>{console.error("Unable to get text content for page "+(n+1),e),this._pageContents[n]="",this._pageDiffs[n]=null,this._hasDiacritics[n]=!1,a.resolve()}))}}}#updatePage(e){this._scrollMatches&&this._selected.pageIdx===e&&(this._linkService.page=e+1),this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:e})}#updateAllPages(){this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:-1})}#nextMatch(){var e=this._state.findPrevious,t=this._linkService.page-1,i=this._linkService.pagesCount;if(this._highlightMatches=!0,this._dirtyMatch){this._dirtyMatch=!1,this._selected.pageIdx=this._selected.matchIdx=-1,this._offset.pageIdx=t,this._offset.matchIdx=null,this._offset.wrapped=!1,this._resumePageIdx=null,this._pageMatches.length=0,this._pageMatchesLength.length=0,this._matchesCountTotal=0,this.#updateAllPages();for(let e=0;e{this._pendingFindMatches.delete(e),this.#calculateMatch(e)}))}if(""===this.#query)this.#updateUIState(a.FOUND);else if(!this._resumePageIdx){const n=this._offset;if(this._pagesToSearch=i,null!==n.matchIdx){t=this._pageMatches[n.pageIdx].length;if(!e&&n.matchIdx+1=i||t.pageIdx<0)&&(t.pageIdx=e?i-1:0,t.wrapped=!0)}#updateMatch(e=!1){let t=a.NOT_FOUND;var i=this._offset.wrapped;this._offset.wrapped=!1,e&&(e=this._selected.pageIdx,this._selected.pageIdx=this._offset.pageIdx,this._selected.matchIdx=this._offset.matchIdx,t=i?a.WRAPPED:a.FOUND,-1!==e&&e!==this._selected.pageIdx&&this.#updatePage(e)),this.#updateUIState(t,this._state.findPrevious),-1!==this._selected.pageIdx&&(this._scrollMatches=!0,this.#updatePage(this._selected.pageIdx))}#onFindBarClose(e){const t=this._pdfDocument;this._firstPageCapability.promise.then(()=>{!this._pdfDocument||t&&this._pdfDocument!==t||(this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),this._resumePageIdx&&(this._resumePageIdx=null,this._dirtyMatch=!0),this.#updateUIState(a.FOUND),this._highlightMatches=!1,this.#updateAllPages())})}#requestMatchesCount(){var{pageIdx:t,matchIdx:e}=this._selected;let i=0,n=this._matchesCountTotal;if(-1!==e){for(let e=0;en?n=0:i,total:n}}#updateUIResultsCount(){this._eventBus.dispatch("updatefindmatchescount",{source:this,matchesCount:this.#requestMatchesCount()})}#updateUIState(e,t=!1){this._eventBus.dispatch("updatefindcontrolstate",{source:this,state:e,previous:t,matchesCount:this.#requestMatchesCount(),rawQuery:this._state?.query??null})}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CharacterType=void 0,t.getCharacterType=function(e){if(e<11904)return 0==(65408&e)?function(e){return 32===e||9===e||13===e||10===e}(e)?i.SPACE:function(e){return 97<=e&&e<=122||65<=e&&e<=90}(e)||function(e){return 48<=e&&e<=57}(e)||95===e?i.ALPHA_LETTER:i.PUNCT:3584==(65408&e)?i.THAI_LETTER:160===e?i.SPACE:i.ALPHA_LETTER;{if(function(e){return 13312<=e&&e<=40959||63744<=e&&e<=64255}(e))return i.HAN_LETTER;if(function(e){return 12448<=e&&e<=12543}(e))return i.KATAKANA_LETTER;if(function(e){return 12352<=e&&e<=12447}(e))return i.HIRAGANA_LETTER;if(function(e){return 65376<=e&&e<=65439}(e))return i.HALFWIDTH_KATAKANA_LETTER}return i.ALPHA_LETTER};const i={SPACE:0,ALPHA_LETTER:1,PUNCT:2,HAN_LETTER:3,KATAKANA_LETTER:4,HIRAGANA_LETTER:5,HALFWIDTH_KATAKANA_LETTER:6,THAI_LETTER:7};t.CharacterType=i},(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFHistory=void 0,t.isDestArraysEqual=l,t.isDestHashesEqual=a;var r=i(7),s=i(19);function o(){return document.location.hash}function a(e,t){return"string"==typeof e&&"string"==typeof t&&(e===t||(0,r.parseQueryString)(e).get("nameddest")===t)}function l(i,n){if(!Array.isArray(i)||!Array.isArray(n))return!1;if(i.length!==n.length)return!1;for(let e=0,t=i.length;e{this._isPagesLoaded=!1,this.eventBus._on("pagesloaded",e=>{this._isPagesLoaded=!!e.pagesCount},{once:!0})})}initialize({fingerprint:e,resetHistory:t=!1,updateUrl:i=!1}){if(e&&"string"==typeof e){this._initialized&&this.reset();var n,a,r=""!==this._fingerprint&&this._fingerprint!==e,e=(this._fingerprint=e,this._updateUrl=!0===i,this._initialized=!0,this._bindEvents(),window.history.state);if(this._popStateInProgress=!1,this._blockHashChange=0,this._currentHash=o(),this._numPositionUpdates=0,this._uid=this._maxUid=0,this._destination=null,this._position=null,!this._isValidState(e,!0)||t)return{hash:i,page:n,rotation:a}=this._parseCurrentHash(!0),!i||r||t?void this._pushOrReplaceState(null,!0):void this._pushOrReplaceState({hash:i,page:n,rotation:a},!0);r=e.destination;this._updateInternalState(r,e.uid,!0),void 0!==r.rotation&&(this._initialRotation=r.rotation),r.dest?(this._initialBookmark=JSON.stringify(r.dest),this._destination.page=null):r.hash?this._initialBookmark=r.hash:r.page&&(this._initialBookmark="page="+r.page)}else console.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.')}reset(){this._initialized&&(this._pageHide(),this._initialized=!1,this._unbindEvents()),this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._initialBookmark=null,this._initialRotation=null}push({namedDest:t=null,explicitDest:i,pageNumber:n}){if(this._initialized)if(t&&"string"!=typeof t)console.error("PDFHistory.push: "+`"${t}" is not a valid namedDest parameter.`);else if(Array.isArray(i))if(this._isValidPage(n)||null===n&&!this._destination){t=t||JSON.stringify(i);if(t){let e=!1;if(this._destination&&(a(this._destination.hash,t)||l(this._destination.dest,i))){if(this._destination.page)return;e=!0}this._popStateInProgress&&!e||(this._pushOrReplaceState({dest:i,hash:t,page:n,rotation:this.linkService.rotation},e),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(()=>{this._popStateInProgress=!1})))}}else console.error("PDFHistory.push: "+`"${n}" is not a valid pageNumber parameter.`);else console.error("PDFHistory.push: "+`"${i}" is not a valid explicitDest parameter.`)}pushPage(e){this._initialized&&(this._isValidPage(e)?this._destination?.page===e||this._popStateInProgress||(this._pushOrReplaceState({dest:null,hash:"page="+e,page:e,rotation:this.linkService.rotation}),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(()=>{this._popStateInProgress=!1}))):console.error(`PDFHistory.pushPage: "${e}" is not a valid page number.`))}pushCurrentPosition(){this._initialized&&!this._popStateInProgress&&this._tryPushCurrentPosition()}back(){var e;this._initialized&&!this._popStateInProgress&&(e=window.history.state,this._isValidState(e)&&0=t.first&&this._destination.page<=t.page){if(void 0!==this._destination.dest||!this._destination.first)return;e=!0}this._pushOrReplaceState(t,e)}}else this._pushOrReplaceState(t)}}_isValidPage(e){return Number.isInteger(e)&&0{this._popStateInProgress||this._tryPushCurrentPosition(!0),this._updateViewareaTimeout=null},1e3))}_popState({state:e}){var t,i,n=o(),a=this._currentHash!==n;if(this._currentHash=n,!e)return this._uid++,{hash:n,page:t,rotation:i}=this._parseCurrentHash(),void this._pushOrReplaceState({hash:n,page:t,rotation:i},!0);this._isValidState(e)&&(this._popStateInProgress=!0,a&&(this._blockHashChange++,(0,s.waitOnEventOrTimeout)({target:window,name:"hashchange",delay:1e3}).then(()=>{this._blockHashChange--})),n=e.destination,this._updateInternalState(n,e.uid,!0),(0,r.isValidRotation)(n.rotation)&&(this.linkService.rotation=n.rotation),n.dest?this.linkService.goToDestination(n.dest):n.hash?this.linkService.setHash(n.hash):n.page&&(this.linkService.page=n.page),Promise.resolve().then(()=>{this._popStateInProgress=!1}))}_pageHide(){this._destination&&!this._destination.temporary||this._tryPushCurrentPosition()}_bindEvents(){this._boundEvents||(this._boundEvents={updateViewarea:this._updateViewarea.bind(this),popState:this._popState.bind(this),pageHide:this._pageHide.bind(this)},this.eventBus._on("updateviewarea",this._boundEvents.updateViewarea),window.addEventListener("popstate",this._boundEvents.popState),window.addEventListener("pagehide",this._boundEvents.pageHide))}_unbindEvents(){this._boundEvents&&(this.eventBus._off("updateviewarea",this._boundEvents.updateViewarea),window.removeEventListener("popstate",this._boundEvents.popState),window.removeEventListener("pagehide",this._boundEvents.pageHide),this._boundEvents=null)}}},(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFScriptingManager=void 0;var h=i(7),r=i(3);t.PDFScriptingManager=class{constructor({eventBus:e,sandboxBundleSrc:t=null,scriptingFactory:i=null,docPropertiesLookup:n=null}){this._pdfDocument=null,this._pdfViewer=null,this._closeCapability=null,this._destroyCapability=null,this._scripting=null,this._mouseState=Object.create(null),this._ready=!1,this._eventBus=e,this._sandboxBundleSrc=t,this._scriptingFactory=i,this._docPropertiesLookup=n,this._scriptingFactory||window.addEventListener("updatefromsandbox",e=>{this._eventBus.dispatch("updatefromsandbox",{source:window,detail:e.detail})})}setViewer(e){this._pdfViewer=e}async setDocument(e){if(this._pdfDocument&&await this._destroyScripting(),this._pdfDocument=e){var[t,i,n]=await Promise.all([e.getFieldObjects(),e.getCalculationOrderIds(),e.getJSActions()]);if(t||n){if(e===this._pdfDocument){try{this._scripting=this._createScripting()}catch(e){return console.error(`PDFScriptingManager.setDocument: "${e?.message}".`),void await this._destroyScripting()}this._internalEvents.set("updatefromsandbox",e=>{e?.source===window&&this._updateFromSandbox(e.detail)}),this._internalEvents.set("dispatcheventinsandbox",e=>{this._scripting?.dispatchEventInSandbox(e.detail)}),this._internalEvents.set("pagechanging",({pageNumber:e,previous:t})=>{e!==t&&(this._dispatchPageClose(t),this._dispatchPageOpen(e))}),this._internalEvents.set("pagerendered",({pageNumber:e})=>{this._pageOpenPending.has(e)&&e===this._pdfViewer.currentPageNumber&&this._dispatchPageOpen(e)}),this._internalEvents.set("pagesdestroy",async e=>{await this._dispatchPageClose(this._pdfViewer.currentPageNumber),await this._scripting?.dispatchEventInSandbox({id:"doc",name:"WillClose"}),this._closeCapability?.resolve()}),this._domEvents.set("mousedown",e=>{this._mouseState.isDown=!0}),this._domEvents.set("mouseup",e=>{this._mouseState.isDown=!1});for(var[a,r]of this._internalEvents)this._eventBus._on(a,r);for(var[s,o]of this._domEvents)window.addEventListener(s,o,!0);try{var l=await this._getDocProperties();if(e!==this._pdfDocument)return;await this._scripting.createSandbox({objects:t,calculationOrder:i,appInfo:{platform:navigator.platform,language:navigator.language},docInfo:{...l,actions:n}}),this._eventBus.dispatch("sandboxcreated",{source:this})}catch(e){return console.error(`PDFScriptingManager.setDocument: "${e?.message}".`),void await this._destroyScripting()}await this._scripting?.dispatchEventInSandbox({id:"doc",name:"Open"}),await this._dispatchPageOpen(this._pdfViewer.currentPageNumber,!0),Promise.resolve().then(()=>{e===this._pdfDocument&&(this._ready=!0)})}}else await this._destroyScripting()}}async dispatchWillSave(e){return this._scripting?.dispatchEventInSandbox({id:"doc",name:"WillSave"})}async dispatchDidSave(e){return this._scripting?.dispatchEventInSandbox({id:"doc",name:"DidSave"})}async dispatchWillPrint(e){return this._scripting?.dispatchEventInSandbox({id:"doc",name:"WillPrint"})}async dispatchDidPrint(e){return this._scripting?.dispatchEventInSandbox({id:"doc",name:"DidPrint"})}get mouseState(){return this._mouseState}get destroyPromise(){return this._destroyCapability?.promise||null}get ready(){return this._ready}get _internalEvents(){return(0,r.shadow)(this,"_internalEvents",new Map)}get _domEvents(){return(0,r.shadow)(this,"_domEvents",new Map)}get _pageOpenPending(){return(0,r.shadow)(this,"_pageOpenPending",new Set)}get _visitedPages(){return(0,r.shadow)(this,"_visitedPages",new Map)}async _updateFromSandbox(e){var t=this._pdfViewer.isInPresentationMode||this._pdfViewer.isChangingPresentationMode,{id:i,siblings:n,command:a,value:r}=e;if(i){if(!t||!e.focus){delete e.id,delete e.siblings;for(const o of n?[i,...n]:[i]){const l=document.querySelector(`[data-element-id="${o}"]`);l?l.dispatchEvent(new CustomEvent("updatefromsandbox",{detail:e})):this._pdfDocument?.annotationStorage.setValue(o,e)}}}else switch(a){case"clear":console.clear();break;case"error":console.error(r);break;case"layout":if(t)return;var s=(0,h.apiPageLayoutToViewerModes)(r);this._pdfViewer.spreadMode=s.spreadMode;break;case"page-num":this._pdfViewer.currentPageNumber=r+1;break;case"print":await this._pdfViewer.pagesPromise,this._eventBus.dispatch("print",{source:this});break;case"println":console.log(r);break;case"zoom":if(t)return;this._pdfViewer.currentScaleValue=r;break;case"SaveAs":this._eventBus.dispatch("download",{source:this});break;case"FirstPage":this._pdfViewer.currentPageNumber=1;break;case"LastPage":this._pdfViewer.currentPageNumber=this._pdfViewer.pagesCount;break;case"NextPage":this._pdfViewer.nextPage();break;case"PrevPage":this._pdfViewer.previousPage();break;case"ZoomViewIn":if(t)return;this._pdfViewer.increaseScale();break;case"ZoomViewOut":if(t)return;this._pdfViewer.decreaseScale()}}async _dispatchPageOpen(t,e=!1){const i=this._pdfDocument,n=this._visitedPages;if(e&&(this._closeCapability=(0,r.createPromiseCapability)()),this._closeCapability){const a=this._pdfViewer.getPageView(t-1);a?.renderingState!==h.RenderingStates.FINISHED?this._pageOpenPending.add(t):(this._pageOpenPending.delete(t),e=(async()=>{var e=await(n.has(t)?null:a.pdfPage?.getJSActions());i===this._pdfDocument&&await this._scripting?.dispatchEventInSandbox({id:"page",name:"PageOpen",pageNumber:t,actions:e})})(),n.set(t,e))}}async _dispatchPageClose(e){const t=this._pdfDocument,i=this._visitedPages;var n;this._closeCapability&&!this._pageOpenPending.has(e)&&(n=i.get(e))&&(i.set(e,null),await n,t===this._pdfDocument&&await this._scripting?.dispatchEventInSandbox({id:"page",name:"PageClose",pageNumber:e}))}async _getDocProperties(){if(this._docPropertiesLookup)return this._docPropertiesLookup(this._pdfDocument);const e=i(26)["docPropertiesLookup"];return e(this._pdfDocument)}_createScripting(){if(this._destroyCapability=(0,r.createPromiseCapability)(),this._scripting)throw new Error("_createScripting: Scripting already exists.");if(this._scriptingFactory)return this._scriptingFactory.createScripting({sandboxBundleSrc:this._sandboxBundleSrc});const e=i(26)["GenericScripting"];return new e(this._sandboxBundleSrc)}async _destroyScripting(){if(!this._scripting)return this._pdfDocument=null,void this._destroyCapability?.resolve();this._closeCapability&&(await Promise.race([this._closeCapability.promise,new Promise(e=>{setTimeout(e,1e3)})]).catch(e=>{}),this._closeCapability=null),this._pdfDocument=null;try{await this._scripting.destroySandbox()}catch(e){}for(var[e,t]of this._internalEvents)this._eventBus._off(e,t);this._internalEvents.clear();for(var[i,n]of this._domEvents)window.removeEventListener(i,n,!0);this._domEvents.clear(),this._pageOpenPending.clear(),this._visitedPages.clear(),this._scripting=null,delete this._mouseState.isDown,this._ready=!1,this._destroyCapability?.resolve()}}},(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GenericScripting=void 0,t.docPropertiesLookup=async function(e){var t="".split("#")[0];let{info:i,metadata:n,contentDispositionFilename:a,contentLength:r}=await e.getMetadata();{var s;r||(s=(await e.getDownloadInfo())["length"],r=s)}return{...i,baseURL:t,filesize:r,filename:a||(0,o.getPdfFilenameFromUrl)(""),metadata:n?.getRaw(),authors:n?.get("dc:creator"),numPages:e.numPages,URL:""}};var o=i(3);t.GenericScripting=class{constructor(e){this._ready=(0,o.loadScript)(e,!0).then(()=>window.pdfjsSandbox.QuickJSSandbox())}async createSandbox(e){const t=await this._ready;t.create(e)}async dispatchEventInSandbox(e){const t=await this._ready;setTimeout(()=>t.dispatchEvent(e),0)}async destroySandbox(){const e=await this._ready;e.nukeSandbox()}}}],n={};function a(e){var t=n[e];if(void 0!==t)return t.exports;t=n[e]={exports:{}};return i[e](t,t.exports,a),t.exports}var e,t,r,s,o,l,h,d,c,u,g,p,f,_,v,m,y,P={};return e=P,Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AnnotationLayerBuilder",{enumerable:!0,get:function(){return l.AnnotationLayerBuilder}}),Object.defineProperty(e,"DefaultAnnotationLayerFactory",{enumerable:!0,get:function(){return t.DefaultAnnotationLayerFactory}}),Object.defineProperty(e,"DefaultStructTreeLayerFactory",{enumerable:!0,get:function(){return t.DefaultStructTreeLayerFactory}}),Object.defineProperty(e,"DefaultTextLayerFactory",{enumerable:!0,get:function(){return t.DefaultTextLayerFactory}}),Object.defineProperty(e,"DefaultXfaLayerFactory",{enumerable:!0,get:function(){return t.DefaultXfaLayerFactory}}),Object.defineProperty(e,"DownloadManager",{enumerable:!0,get:function(){return h.DownloadManager}}),Object.defineProperty(e,"EventBus",{enumerable:!0,get:function(){return d.EventBus}}),Object.defineProperty(e,"GenericL10n",{enumerable:!0,get:function(){return c.GenericL10n}}),Object.defineProperty(e,"LinkTarget",{enumerable:!0,get:function(){return r.LinkTarget}}),Object.defineProperty(e,"NullL10n",{enumerable:!0,get:function(){return u.NullL10n}}),Object.defineProperty(e,"PDFFindController",{enumerable:!0,get:function(){return g.PDFFindController}}),Object.defineProperty(e,"PDFHistory",{enumerable:!0,get:function(){return p.PDFHistory}}),Object.defineProperty(e,"PDFLinkService",{enumerable:!0,get:function(){return r.PDFLinkService}}),Object.defineProperty(e,"PDFPageView",{enumerable:!0,get:function(){return f.PDFPageView}}),Object.defineProperty(e,"PDFScriptingManager",{enumerable:!0,get:function(){return _.PDFScriptingManager}}),Object.defineProperty(e,"PDFSinglePageViewer",{enumerable:!0,get:function(){return o.PDFSinglePageViewer}}),Object.defineProperty(e,"PDFViewer",{enumerable:!0,get:function(){return o.PDFViewer}}),Object.defineProperty(e,"ProgressBar",{enumerable:!0,get:function(){return s.ProgressBar}}),Object.defineProperty(e,"RenderingStates",{enumerable:!0,get:function(){return s.RenderingStates}}),Object.defineProperty(e,"ScrollMode",{enumerable:!0,get:function(){return s.ScrollMode}}),Object.defineProperty(e,"SimpleLinkService",{enumerable:!0,get:function(){return r.SimpleLinkService}}),Object.defineProperty(e,"SpreadMode",{enumerable:!0,get:function(){return s.SpreadMode}}),Object.defineProperty(e,"StructTreeLayerBuilder",{enumerable:!0,get:function(){return v.StructTreeLayerBuilder}}),Object.defineProperty(e,"TextLayerBuilder",{enumerable:!0,get:function(){return m.TextLayerBuilder}}),Object.defineProperty(e,"XfaLayerBuilder",{enumerable:!0,get:function(){return y.XfaLayerBuilder}}),Object.defineProperty(e,"parseQueryString",{enumerable:!0,get:function(){return s.parseQueryString}}),t=a(1),r=a(6),s=a(7),o=a(11),l=a(5),h=a(18),d=a(19),c=a(20),u=a(4),g=a(22),p=a(24),f=a(13),_=a(25),v=a(8),m=a(9),y=a(10),P})());
\ No newline at end of file
diff --git a/servers/server/src/mastra/services/chat/bi-chat-turn-stream.ts b/servers/server/src/mastra/services/chat/bi-chat-turn-stream.ts
index 8714a4e1..c6d9b247 100644
--- a/servers/server/src/mastra/services/chat/bi-chat-turn-stream.ts
+++ b/servers/server/src/mastra/services/chat/bi-chat-turn-stream.ts
@@ -152,100 +152,50 @@ const startBIAgentStream = (options: SwAgentStreamOptions) => {
};
/**
- * 守卫式 controller:流被消费方 cancel 后,Web Streams 规范让 controller 进入 closed 态,
- * 此后 enqueue/close/error 一律抛 ERR_INVALID_STATE。这里把这条约束收在一处,调用侧不必到处 try。
+ * 收集前台子 agent 快照,并过滤后台子 agent 的原生帧,避免与后台任务专用帧重复渲染。
*/
-interface GuardedController {
- /** 已断连或已收尾;主循环据此提前退出迭代 */
- readonly isClosed: boolean;
- enqueue(chunk: unknown): void;
- close(): void;
- error(err: unknown): void;
- /** 消费方 cancel(客户端断连)时翻牌,此后一切输出静默 */
- markCancelled(): void;
-}
-
-const guardController = (controller: ReadableStreamDefaultController): GuardedController => {
- let closed = false;
+const prepareSubAgentChunk = (
+ rawChunk: unknown,
+ chunk: ChunkType,
+ subAgentSnapshotCollector: SubAgentSnapshotCollector,
+ bgSubRunIds: Set
+): unknown | null => {
+ // 直接按 inner toolCallId 写入扁平 Map:data-tool-agent.chunk.id 是 sub-agent runId
+ // (不是父工具 toolCallId),在 injection 时没法用来反查;inner toolCallId 全局唯一。
+ const id = (chunk as { id?: string }).id;
+ if (!id || bgSubRunIds.has(id)) {
+ return null;
+ }
+ subAgentSnapshotCollector.collect((chunk as Record).data);
+ return rawChunk;
+};
- return {
- get isClosed() {
- return closed;
- },
- enqueue(chunk) {
- if (closed) {
- return;
- }
- try {
- controller.enqueue(chunk);
- } catch {
- closed = true; // enqueue 时才发现已关闭(与 cancel 竞态),置位并静默
- }
- },
- close() {
- if (closed) {
- return;
- }
- closed = true;
- try {
- controller.close();
- } catch {
- // 与消费方 cancel 竞态,controller 已关闭,忽略
- }
- },
- error(err) {
- if (closed) {
- return;
- }
- closed = true;
- try {
- controller.error(err);
- } catch {
- // controller 已关闭,无法再上报错误,忽略
- }
- },
- markCancelled() {
- closed = true;
- }
- };
+/** 将建屏类 workflow 的进度帧替换为精简的进度帧,其余帧原样透传。 */
+const prepareWorkflowChunk = (rawChunk: unknown, chunk: ChunkType): unknown => {
+ const workflowChunkName = ((chunk as Record).data as { name?: string })?.name;
+ return chunk.type === "data-tool-workflow" && isDeliveryWorkflow(workflowChunkName)
+ ? buildWorkflowProgressChunk(rawChunk)
+ : rawChunk;
};
/**
- * 单帧路由:返回要下发给前端的 chunk,返回 null 表示丢弃该帧。
- *
- * - data-tool-agent:顺手收子 agent 快照;后台子 agent 的原生帧丢弃(同内容已由
- * data-background-task-output 透传,不丢会重复渲染)。
- * - 建屏类 workflow(figma / codia / requirementToBI)的进度帧:换成剔除 input/output
- * 并带统计的精简帧。那份 statistics 同时是前端的收尾信号,见 ./workflow-progress。
- * - 其余:原样透传。
+ * 将 AI SDK 原始帧整理为可下发给客户端的帧;返回 null 表示应丢弃该帧。
*/
-const routeChunk = (rawChunk: unknown, snapshots: SubAgentSnapshotCollector, bgSubRunIds: Set): unknown => {
+const prepareChunkForClient = (
+ rawChunk: unknown,
+ subAgentSnapshotCollector: SubAgentSnapshotCollector,
+ bgSubRunIds: Set
+): unknown => {
const chunk = rawChunk as ChunkType;
- const type = chunk?.type;
- const chunkData = (chunk as Record)?.data;
-
- // 直接按 inner toolCallId 写入扁平 Map:data-tool-agent.chunk.id 是 sub-agent runId
- // (不是父工具 toolCallId),在 injection 时没法用来反查;inner toolCallId 全局唯一。
- if (type === "data-tool-agent") {
- const id = chunk.id;
- if (!id || bgSubRunIds.has(id)) {
- return null;
- }
- snapshots.collect(chunkData);
- return rawChunk;
- }
-
- const workflowChunkName = (chunkData as { name?: string })?.name;
- if (type === "data-tool-workflow" && isDeliveryWorkflow(workflowChunkName)) {
- return buildWorkflowProgressChunk(rawChunk);
+ if (chunk.type === "data-tool-agent") {
+ return prepareSubAgentChunk(rawChunk, chunk, subAgentSnapshotCollector, bgSubRunIds);
}
-
- return rawChunk;
+ return prepareWorkflowChunk(rawChunk, chunk);
};
interface ProcessedStreamOptions {
aiSdkStream: ReadableStream;
- snapshots: SubAgentSnapshotCollector;
+ subAgentSnapshotCollector: SubAgentSnapshotCollector;
threadId: string;
internalAbort: AbortController;
usageRef: UsageRef;
@@ -256,20 +206,14 @@ interface ProcessedStreamOptions {
* 消费 aiSdkStream:逐帧路由下发,收尾注入 usage 并持久化子 agent 快照。
*/
const createProcessedStream = (options: ProcessedStreamOptions): ReadableStream => {
- const { aiSdkStream, snapshots, threadId, internalAbort, usageRef, bgSubRunIds } = options;
-
- // controller 只在 start() 里拿得到,但 cancel() 也要翻同一张牌,故提到外层持有
- let output: GuardedController | undefined;
+ const { aiSdkStream, subAgentSnapshotCollector: snapshots, threadId, internalAbort, usageRef, bgSubRunIds } = options;
return new ReadableStream({
- async start(controller) {
- const out = guardController(controller);
- output = out;
-
+ async start(responseStreamController) {
// 正常收尾与异常收尾只差最后一步:都要先补 usage、再落快照
const finish = async (settle: () => void) => {
if (usageRef.current) {
- out.enqueue({ type: "data-usage", data: usageRef.current });
+ responseStreamController.enqueue({ type: "data-usage", data: usageRef.current });
}
await snapshots.persist(threadId);
settle();
@@ -277,23 +221,19 @@ const createProcessedStream = (options: ProcessedStreamOptions): ReadableStream
try {
for await (const rawChunk of aiSdkStream as unknown as AsyncIterable) {
- if (out.isClosed) {
- break; // 消费方已取消,无需再迭代(internalAbort 也会让上游尽快结束)
- }
- const outgoing = routeChunk(rawChunk, snapshots, bgSubRunIds);
+ const outgoing = prepareChunkForClient(rawChunk, snapshots, bgSubRunIds);
if (outgoing !== null) {
- out.enqueue(outgoing);
+ responseStreamController.enqueue(outgoing);
}
}
- await finish(() => out.close());
+ await finish(() => responseStreamController.close());
} catch (error) {
console.error("[bi-chat] stream consume error:", error);
- await finish(() => out.error(error));
+ await finish(() => responseStreamController.error(error));
}
},
cancel() {
- // 客户端断开连接时触发:标记已关闭并中止流迭代
- output?.markCancelled();
+ // 客户端断开连接时触发:中止上游流迭代。
internalAbort.abort();
}
});
@@ -352,7 +292,7 @@ export async function createBIChatTurnStream(
return createProcessedStream({
aiSdkStream: aiSdkStream as unknown as ReadableStream,
- snapshots,
+ subAgentSnapshotCollector: snapshots,
threadId,
internalAbort: abortController,
usageRef,
diff --git a/servers/server/src/mastra/services/chat/stream-session.ts b/servers/server/src/mastra/services/chat/stream-session.ts
index 3570fb88..5d5175ab 100644
--- a/servers/server/src/mastra/services/chat/stream-session.ts
+++ b/servers/server/src/mastra/services/chat/stream-session.ts
@@ -29,6 +29,14 @@ interface TurnChunk {
data?: { taskId?: string; toolCallId?: string };
}
+/** 同一后台任务的会话级状态;以 taskId 为 key 存在 backgroundTaskStates 中。 */
+interface BackgroundTaskState {
+ /** 该任务尚未进入终态,session 应保持打开以等待其恢复或完成。 */
+ awaitingTerminal: boolean;
+ /** 任务结果推送给前端后,是否应终止整个 session。 */
+ terminateAfterFinish: boolean;
+}
+
/**
* 主 agent 自身被挂起(如 clientTool 人审):当前轮在此处暂停结束,需留着 outer 等下一轮
* 带 runId 的 resume(handleBiChatResume → resumeStream 续接)。
@@ -37,7 +45,7 @@ const MAIN_SUSPEND_TYPE = "data-tool-call-suspended";
/**
* 后台任务被挂起:和主 agent 挂起不同,它的 resume 走旁路(resume-task → bgManager.resume +
- * attachTaskStream),且续接不一定回到当前轮。用 suspendedBgTasks Set 记「还没回来的后台任务」,
+ * attachTaskStream),且续接不一定回到当前轮。用 backgroundTaskStates 记「还没回来的后台任务」,
* attachTaskStream 收到终态再清除,以此决定轮结束时该 close() 还是留着 idle。
*/
const BG_SUSPEND_TYPE = "data-background-task-suspended";
@@ -92,12 +100,10 @@ class BIChatStreamSession {
*/
private baselineCommitted = false;
/**
- * 还没回来的后台任务 taskId:循环见 BG_SUSPEND_TYPE 时 add,attachTaskStream 终态时 delete。
- * 跨轮存活(不随单轮重置)——轮结束时只要它非空,就留着 idle 等任务回来,不能 close。
+ * 仍等待终态的后台任务,以及它结束后是否应终止 session 的标记。两种状态都以 taskId 为键,
+ * 因而合并存放;挂起帧置 awaitingTerminal,attachTaskStream 到终态时删除。
*/
- private readonly suspendedBgTasks = new Set();
- /** 用户已拒绝的后台挂起任务:等任务结果落入流并进入终态后终止整个会话。 */
- private readonly terminateAfterBgTasks = new Set();
+ private readonly backgroundTaskStates = new Map();
private idleTimer?: ReturnType;
/**
* resume 后接进 outer 的后台任务遥测订阅;dispose/close 时一并退订,防订阅泄漏
@@ -190,14 +196,15 @@ class BIChatStreamSession {
this.clearIdle();
this.sawMainSuspend = false;
this.turnActive = true;
+
if (!this.turnMessageText) {
this.turnMessageText = extractUserMessageText(args.messages);
}
+
if (!this.turnMessageId) {
this.turnMessageId = extractUserMessageId(args.messages);
}
- // AI 动手前先落用户改动基线:必须 await 完成后再起 turnStream,否则 AI 已写的文件会和
- // 用户改动一起被 git add -A 打进基线节点。只在首个真实提问轮做一次(resume/后台续接轮跳过)。
+
if (!this.baselineCommitted && (args.messages?.length ?? 0) > 0) {
this.baselineCommitted = true;
await commitScreenSnapshot(this.resourceId, "用户手动改动").catch((e) =>
@@ -210,33 +217,10 @@ class BIChatStreamSession {
if (this.closed) {
break;
}
- if (chunk.type?.startsWith(BG_EVENT_PREFIX) && chunk.data?.toolCallId) {
- this.bgToolCallIds.add(chunk.data.toolCallId); // started 最早,挂起前必已记上
- }
- if (chunk.type === MAIN_SUSPEND_TYPE) {
- if (chunk.data?.toolCallId && this.bgToolCallIds.has(chunk.data.toolCallId)) {
- continue; // 后台那次挂起的重复通报:丢帧,理由见方法注释
- }
- // 挂起等审批走的是 runId resume,不是「悄悄断在半路」,不算 pending。
- if (chunk.data?.toolCallId) {
- this.pendingToolCallIds.delete(chunk.data.toolCallId);
- }
- this.sawMainSuspend = true;
- } else if (chunk.type === BG_SUSPEND_TYPE && chunk.data?.taskId) {
- this.suspendedBgTasks.add(chunk.data.taskId); // 记下,等 attachTaskStream 收到终态再清
- }
- // 前台工具调用的起止:中途 dispose()/fail() 时,留在这里的就是被掐断的那些。
- // 委派到后台的调用(bgToolCallIds)另有 suspend/resume 路线,交给 markPendingToolCallsInterrupted 排除。
- if (chunk.type === "tool-input-available" && chunk.toolCallId) {
- this.pendingToolCallIds.add(chunk.toolCallId);
- } else if (
- chunk.toolCallId &&
- (chunk.type === "tool-output-available" ||
- chunk.type === "tool-output-error" ||
- chunk.type === "tool-output-denied")
- ) {
- this.pendingToolCallIds.delete(chunk.toolCallId);
+ if (!this.prepareChunkForForwarding(chunk)) {
+ continue;
}
+ this.trackForegroundToolCall(chunk);
await this.push(chunk as ChunkType);
if (chunk.type === "tool-output-available" && chunk.toolCallId === args.terminateAfterToolCallId) {
this.terminate();
@@ -248,7 +232,7 @@ class BIChatStreamSession {
}
// 留着等 resume 的两种理由:主 agent 自身挂起(等 runId resume)、或还有后台任务没回来
// (等 resume-task 旁路续接)。两者都没有 = 真答完了,close() 发 DONE。
- if (this.sawMainSuspend || this.suspendedBgTasks.size > 0) {
+ if (this.sawMainSuspend || this.hasBackgroundTaskAwaitingTerminal()) {
this.scheduleIdleClose();
} else {
this.close();
@@ -260,6 +244,89 @@ class BIChatStreamSession {
}
}
+ /**
+ * 更新挂起相关状态,并决定该帧是否应继续推给前端。
+ *
+ * @param chunk 当前从 turn stream 读到的帧。
+ * @returns `false` 仅表示后台任务附带的重复主 agent 挂起帧;调用方应像原先
+ * `continue` 一样跳过后续的工具台账更新和前端推送。其余帧返回 `true`。
+ */
+ private prepareChunkForForwarding(chunk: TurnChunk): boolean {
+ const suspendToolCallId = chunk.data?.toolCallId;
+
+ // started 最早,挂起前必已记上。
+ if (chunk.type?.startsWith(BG_EVENT_PREFIX) && suspendToolCallId) {
+ this.bgToolCallIds.add(suspendToolCallId);
+ }
+
+ // 非主 agent 挂起帧只需记录后台任务的挂起状态。
+ if (chunk.type !== MAIN_SUSPEND_TYPE) {
+ if (chunk.type === BG_SUSPEND_TYPE && chunk.data?.taskId) {
+ this.markBackgroundTaskSuspended(chunk.data.taskId);
+ }
+ return true;
+ }
+
+ // 后台那次挂起的重复通报:丢帧,理由见 runTurnBody 的方法注释。
+ if (suspendToolCallId && this.bgToolCallIds.has(suspendToolCallId)) {
+ return false;
+ }
+
+ // 挂起等审批走的是 runId resume,不是「悄悄断在半路」,不算 pending。
+ if (suspendToolCallId) {
+ this.pendingToolCallIds.delete(suspendToolCallId);
+ }
+ this.sawMainSuspend = true;
+ return true;
+ }
+
+ /**
+ * 维护前台工具调用台账;dispose()/fail() 时尚未移除的项即为被掐断的调用。
+ * 委派到后台的调用由 bgToolCallIds / markPendingToolCallsInterrupted 另行处理。
+ *
+ * @param chunk 已确认要推送给前端的 turn stream 帧。
+ */
+ private trackForegroundToolCall(chunk: TurnChunk): void {
+ if (chunk.type === "tool-input-available" && chunk.toolCallId) {
+ this.pendingToolCallIds.add(chunk.toolCallId);
+ return;
+ }
+
+ const isTerminalToolEvent =
+ chunk.type === "tool-output-available" ||
+ chunk.type === "tool-output-error" ||
+ chunk.type === "tool-output-denied";
+ if (chunk.toolCallId && isTerminalToolEvent) {
+ this.pendingToolCallIds.delete(chunk.toolCallId);
+ }
+ }
+
+ /** 标记后台任务尚未结束;重复挂起帧不能覆盖既有的终止标记。 */
+ private markBackgroundTaskSuspended(taskId: string): void {
+ const state = this.backgroundTaskStates.get(taskId);
+ if (state) {
+ state.awaitingTerminal = true;
+ return;
+ }
+ this.backgroundTaskStates.set(taskId, { awaitingTerminal: true, terminateAfterFinish: false });
+ }
+
+ /** 当前是否有后台任务需要阻止 outer stream 正常 close。 */
+ private hasBackgroundTaskAwaitingTerminal(): boolean {
+ return [...this.backgroundTaskStates.values()].some((state) => state.awaitingTerminal);
+ }
+
+ /** 给后台任务登记“结果推送后终止会话”的一次性意图。 */
+ private terminateAfterBackgroundTaskFinishes(taskId: string): void {
+ const state = this.backgroundTaskStates.get(taskId);
+ if (state) {
+ state.terminateAfterFinish = true;
+ return;
+ }
+ // 容忍挂起事件尚未到达的时序:稍后收到挂起帧时会保留这个终止标记。
+ this.backgroundTaskStates.set(taskId, { awaitingTerminal: false, terminateAfterFinish: true });
+ }
+
/**
* resume 后把某个后台任务的实时遥测接进 outer(旁路推送,不走 runTurn 串行队列)。
*
@@ -283,7 +350,7 @@ class BIChatStreamSession {
if (terminateOnFinish) {
// 记在这里而不是当场终止:任务结果还没落进流,立刻掐掉前端就看不到"这一步被拒了"的回执。
- this.terminateAfterBgTasks.add(taskId);
+ this.terminateAfterBackgroundTaskFinishes(taskId);
}
this.clearIdle();
@@ -344,10 +411,11 @@ class BIChatStreamSession {
if (this.attachedTasks.get(taskId) === taskAbortController) {
this.attachedTasks.delete(taskId);
}
+ const taskState = reachedTerminalState ? this.backgroundTaskStates.get(taskId) : undefined;
if (reachedTerminalState) {
- this.suspendedBgTasks.delete(taskId); // 任务回来了,不再是「挂着没回来」
+ this.backgroundTaskStates.delete(taskId); // 任务回来了,不再是「挂着没回来」
}
- if (reachedTerminalState && this.terminateAfterBgTasks.delete(taskId)) {
+ if (taskState?.terminateAfterFinish) {
// 用户拒绝了这个后台任务里的命令:结果已顺流推给前端,到此为止,不触发续接轮。
this.terminate();
return;
@@ -361,7 +429,13 @@ class BIChatStreamSession {
detachTaskStream(taskId: string): void {
// 一并清掉终止标记:resume 本身失败(任务没跑起来)不算"用户拒绝的那次执行完了"。
// 留着的话,用户改口批准后重试,这个陈旧标记会在终态时把会话误杀。
- this.terminateAfterBgTasks.delete(taskId);
+ const taskState = this.backgroundTaskStates.get(taskId);
+ if (taskState) {
+ taskState.terminateAfterFinish = false;
+ if (!taskState.awaitingTerminal) {
+ this.backgroundTaskStates.delete(taskId);
+ }
+ }
const taskAbortController = this.attachedTasks.get(taskId);
if (!taskAbortController) {
return;
diff --git a/servers/server/src/mastra/services/version-history.ts b/servers/server/src/mastra/services/version-history.ts
index 0026e9b3..cafaff70 100644
--- a/servers/server/src/mastra/services/version-history.ts
+++ b/servers/server/src/mastra/services/version-history.ts
@@ -241,7 +241,6 @@ export const commitTurn = async (screenRoot: string, subject: string, messageId?
// execFile 失败时 "nothing to commit" 落在 e.stdout(不在 e.message),需一并检查
const detail = `${(e as { stdout?: string }).stdout ?? ""}${(e as { stderr?: string }).stderr ?? ""}${String(e)}`;
if (detail.includes("nothing to commit")) {
- console.log("没有需要提交的文件");
return;
}
throw e;
diff --git a/servers/server/src/mastra/vector/component-data/modules-data.json b/servers/server/src/mastra/vector/component-data/modules-data.json
index 9713597d..7d210b12 100644
--- a/servers/server/src/mastra/vector/component-data/modules-data.json
+++ b/servers/server/src/mastra/vector/component-data/modules-data.json
@@ -1,4 +1,4 @@
-[
+[
{
"id": 1,
"user_id": null,
@@ -1512,23 +1512,6 @@
"template": "[]",
"status": 1
},
- {
- "id": 94,
- "user_id": null,
- "type": 0,
- "java_script": "{\"title\":\"弹幕组件\",\"name\":\"弹幕组件\",\"display\":true,\"icon\":\"icon-tabs\",\"img\":\"/img/barrage.02171652.gif\",\"callbackArgs\":[],\"events\":[],\"dataSource\":{},\"loadAnimation\":{\"type\":\"none\",\"opacityOpen\":false,\"timingFunction\":\"linear\",\"direction\":\"right\",\"duration\":1000,\"delay\":0},\"component\":{\"width\":450,\"height\":500,\"name\":\"simple-barrage\",\"prop\":\"simple-barrage\"},\"cbArgs\":[],\"listenArgs\":[],\"dataFormatter\":\"(data, callbackArgs) => {\\r\\n return data\\r\\n}\",\"dataType\":0,\"data\":[{\"text\":\"Screenwright\"},{\"text\":\"让数据价值看得见\"},{\"text\":\"让数据内容用得着\"},{\"text\":\"看见数字化的无限可能\"},{\"text\":\"凡拓数字孪生可视化 映射万千物理世界\"},{\"text\":\"数字孪生,对物理世界的感知与管理\"},{\"text\":\"可视化的原则是准确清晰️又美观\"},{\"text\":\"Screenwright 数字孪生可视化搭建平台\"},{\"text\":\"体现数据之美\"}],\"dataRemark\":[{\"key\":\"text\",\"map\":\"text\",\"decription\":\"文本\"}],\"unitPavenType\":\"\",\"option\":{\"imageWidth\":400,\"imageHeight\":400,\"imageMinHeight\":20,\"imageMaxHeight\":20,\"imageObjectFit\":\"none\",\"scale\":1.3,\"importType\":\"systemInterface\",\"importConfig\":{\"apiUrl\":\"\",\"method\":\"POST\",\"body\":[],\"headers\":[]},\"loop\":true,\"lineNum\":5,\"isHover\":false,\"speed\":0.2,\"stylesList\":[{\"name\":\"样式1\",\"fontSize\":16,\"fontWeight\":false,\"fontStyle\":false,\"letterSpacing\":0,\"fontFamily\":\"sans-serif\",\"fontColor\":\"rgba(3,169,244,1)\",\"isTextShadow\":false,\"textShadow\":{\"x\":0,\"y\":0,\"blur\":0,\"color\":\"rgba(255, 255, 255, 1)\",\"extend\":0}},{\"name\":\"样式2\",\"fontSize\":16,\"fontWeight\":false,\"fontStyle\":false,\"letterSpacing\":0,\"fontFamily\":\"sans-serif\",\"fontColor\":\"rgba(103, 58, 183, 1)\",\"isTextShadow\":false,\"textShadow\":{\"x\":0,\"y\":0,\"blur\":0,\"color\":\"rgba(255, 255, 255, 1)\",\"extend\":0}},{\"name\":\"样式3\",\"fontSize\":16,\"fontWeight\":false,\"fontStyle\":false,\"letterSpacing\":0,\"fontFamily\":\"sans-serif\",\"fontColor\":\"rgba(255, 152, 0, 1)\",\"isTextShadow\":false,\"textShadow\":{\"x\":0,\"y\":0,\"blur\":0,\"color\":\"rgba(255, 255, 255, 1)\",\"extend\":0}}]}}",
- "level": 0,
- "second_level_menu": "",
- "first_level_menu": "扩展",
- "name": "弹幕组件",
- "thumbnail": "/img/barrage.02171652.gif",
- "created_by": "admin",
- "created_time": "2023-05-31T12:34:27.000Z",
- "updated_by": "system",
- "updated_time": "2026-01-24T16:33:51.000Z",
- "template": "[{\"text\":\"Screenwright\"},{\"text\":\"让数据价值看得见\"},{\"text\":\"让数据内容用得着\"},{\"text\":\"看见数字化的无限可能\"},{\"text\":\"凡拓数字孪生可视化 映射万千物理世界\"},{\"text\":\"数字孪生,对物理世界的感知与管理\"},{\"text\":\"可视化的原则是准确清晰️又美观\"},{\"text\":\"Screenwright 数字孪生可视化搭建平台\"},{\"text\":\"体现数据之美\"}]",
- "status": 1
- },
{
"id": 95,
"user_id": null,
@@ -1839,12 +1822,12 @@
"id": 113,
"user_id": null,
"type": 0,
- "java_script": "{\"title\":\"富文本\",\"name\":\"富文本\",\"display\":true,\"icon\":\"icon-banner\",\"img\":\"/img/ftRichtext.dbc58503.png\",\"loadAnimation\":{\"type\":\"none\",\"opacityOpen\":false,\"timingFunction\":\"linear\",\"direction\":\"right\",\"duration\":1000,\"delay\":0},\"top\":0,\"left\":0,\"dataMethod\":\"get\",\"dataType\":0,\"dataSource\":{},\"requestHeader\":\"{}\",\"requestBody\":\"{}\",\"crossOrigin\":false,\"needCookie\":false,\"autoRefresh\":false,\"dataQuery\":\"\",\"isLock\":false,\"sql\":\"SELECT * FROM\",\"time\":30,\"url\":\"\",\"cbArgs\":[],\"encodes\":[],\"events\":[],\"data\":[{\"value\":\"\"}],\"dataRemark\":[{\"key\":\"value\",\"map\":\"value\",\"decription\":\"文本\"}],\"listenArgs\":[],\"dataFormatter\":\"(data, callbackArgs) => {\\r\\n return data\\r\\n}\",\"component\":{\"width\":316,\"height\":268,\"name\":\"ftRichtext\",\"prop\":\"ftRichtext\"},\"option\":{\"content\":\"凡拓Screenwright大屏应用编辑器是数字孪生零代码平台的关键组成,助力用户轻松构建魅力大屏。用户可便捷地将三维场景与图表、柱状图等联动,创造信息丰富、引人入胜的大屏应用。通过简单的拖拉拽操作,用户能快速布置元素,实现动态、互动和多媒体内容的精彩展示,满足个性化需求。
\",\"textAnimationTiming\":50,\"textAnimationDelay\":0,\"textAnimationType\":\"\",\"startScroll\":false,\"scrollLoop\":false,\"scrollInterval\":10}}",
+ "java_script": "{\"title\":\"富文本\",\"name\":\"富文本\",\"display\":true,\"icon\":\"icon-banner\",\"img\":\"/img/swRichtext.dbc58503.png\",\"loadAnimation\":{\"type\":\"none\",\"opacityOpen\":false,\"timingFunction\":\"linear\",\"direction\":\"right\",\"duration\":1000,\"delay\":0},\"top\":0,\"left\":0,\"dataMethod\":\"get\",\"dataType\":0,\"dataSource\":{},\"requestHeader\":\"{}\",\"requestBody\":\"{}\",\"crossOrigin\":false,\"needCookie\":false,\"autoRefresh\":false,\"dataQuery\":\"\",\"isLock\":false,\"sql\":\"SELECT * FROM\",\"time\":30,\"url\":\"\",\"cbArgs\":[],\"encodes\":[],\"events\":[],\"data\":[{\"value\":\"\"}],\"dataRemark\":[{\"key\":\"value\",\"map\":\"value\",\"decription\":\"文本\"}],\"listenArgs\":[],\"dataFormatter\":\"(data, callbackArgs) => {\\r\\n return data\\r\\n}\",\"component\":{\"width\":316,\"height\":268,\"name\":\"swRichtext\",\"prop\":\"swRichtext\"},\"option\":{\"content\":\"ScreenWright 是 AI 原生 的数据大屏与 BI 编辑器。描述需求或提交 Figma 链接,Agent 自动生成可继续编辑的大屏。拖拽 76+ 组件,连接数据源并配置筛选、事件和动画联动。支持 模板复用与静态包导出,让创意快速上线。
\",\"textAnimationTiming\":50,\"textAnimationDelay\":0,\"textAnimationType\":\"\",\"startScroll\":false,\"scrollLoop\":false,\"scrollInterval\":10}}",
"level": 1,
"second_level_menu": "",
"first_level_menu": "文字",
"name": "富文本",
- "thumbnail": "/img/ftRichtext.dbc58503.png",
+ "thumbnail": "/img/swRichtext.dbc58503.png",
"created_by": "admin",
"created_time": "2024-03-17T16:18:18.000Z",
"updated_by": "admin",
@@ -1920,23 +1903,6 @@
"template": "[]",
"status": 1
},
- {
- "id": 119,
- "user_id": null,
- "type": 0,
- "java_script": "{\"title\":\"PDF容器v1\",\"name\":\"PDF容器v1\",\"display\":true,\"icon\":\"icon-video\",\"img\":\"/img/pdfjs-viewer.20241203.gif\",\"callbackArgs\":[],\"events\":[],\"loadAnimation\":{\"type\":\"none\",\"opacityOpen\":false,\"timingFunction\":\"linear\",\"direction\":\"right\",\"duration\":1000,\"delay\":0},\"time\":30,\"dataType\":0,\"dataMethod\":\"get\",\"dataSource\":{},\"requestHeader\":\"{}\",\"requestBody\":\"{}\",\"crossOrigin\":false,\"needCookie\":false,\"autoRefresh\":false,\"dataQuery\":\"\",\"isLock\":false,\"data\":[],\"dataRemark\":[],\"listenArgs\":[],\"cbArgs\":[],\"dataFormatter\":\"(data, callbackArgs) => {\\r\\n return data\\r\\n}\",\"component\":{\"width\":500,\"height\":570,\"name\":\"pdfjs-viewer\",\"prop\":\"pdfjs-viewer\"},\"option\":{\"showAll\":false,\"showPage\":true,\"current\":1,\"zoomValue\":1.2,\"fontSize\":12,\"fontWeight\":\"\",\"fontStyle\":\"\",\"fontFamily\":\"sans-serif\",\"fontColor\":\"rgba(255, 255, 255, 1)\",\"textTranslateX\":0,\"textTranslateY\":0,\"backgroundColor\":\"rgba(0, 0, 0, 0.5)\",\"pdfUrl\":\"version-test/assets/defaultImg/default.pdf\"}}",
- "level": 0,
- "second_level_menu": "",
- "first_level_menu": "展项",
- "name": "PDF容器v1",
- "thumbnail": "/img/pdfjs-viewer.20241203.gif",
- "created_by": "admin",
- "created_time": "2022-07-23T09:55:32.000Z",
- "updated_by": "system",
- "updated_time": "2026-01-24T16:33:52.000Z",
- "template": "[]",
- "status": 1
- },
{
"id": 126,
"user_id": null,
@@ -1954,23 +1920,6 @@
"template": "[]",
"status": 1
},
- {
- "id": 128,
- "user_id": null,
- "type": 0,
- "java_script": "{\"title\":\"签名板\",\"name\":\"签名板\",\"display\":true,\"icon\":\"icon-video\",\"img\":\"/img/ft-particles.gif\",\"callbackArgs\":[],\"events\":[],\"loadAnimation\":{\"type\":\"none\",\"opacityOpen\":false,\"timingFunction\":\"linear\",\"direction\":\"right\",\"duration\":1000,\"delay\":0},\"top\":0,\"left\":0,\"time\":30,\"dataType\":0,\"dataMethod\":\"get\",\"dataSource\":{},\"requestHeader\":\"{}\",\"requestBody\":\"{}\",\"crossOrigin\":false,\"needCookie\":false,\"autoRefresh\":false,\"dataQuery\":\"\",\"isLock\":false,\"data\":[{\"penWidth\":10}],\"dataRemark\":[],\"listenArgs\":[],\"cbArgs\":[],\"dataFormatter\":\"(data, callbackArgs) => {\\r\\n return data\\r\\n}\",\"component\":{\"width\":1920,\"height\":1080,\"name\":\"ft-signaturePad\",\"prop\":\"ft-signaturePad\"},\"option\":{\"exportType\":\"systemInterface\",\"penColor\":\"#642cff\",\"dotSize\":\"8\",\"minWidth\":3,\"velocityFilterWeight\":0.2,\"minDistance\":5,\"backgroundColor\":\"rgba(0,0,0,0)\",\"throttle\":10,\"actionControls\":{\"export\":true,\"clear\":true,\"undo\":true,\"redo\":true},\"configControls\":{\"penColor\":true,\"backgroundColor\":true,\"lineWidth\":true},\"exportConfig\":{\"apiUrl\":\"\",\"method\":\"POST\",\"body\":[],\"headers\":[]}}}",
- "level": 0,
- "second_level_menu": "",
- "first_level_menu": "展项",
- "name": "签名板",
- "thumbnail": "/img/default.1026.png",
- "created_by": "admin",
- "created_time": "2022-07-23T09:55:32.000Z",
- "updated_by": "admin",
- "updated_time": "2022-07-23T09:55:32.000Z",
- "template": "[]",
- "status": 1
- },
{
"id": 138,
"user_id": null,
@@ -2090,23 +2039,6 @@
"template": "{\"name\":\"中华人民共和国\",\"adcode\":\"100000\"}",
"status": 1
},
- {
- "id": 149,
- "user_id": null,
- "type": 0,
- "java_script": "{\"title\":\"垂直卡片\",\"name\":\"垂直卡片\",\"display\":true,\"icon\":\"icon-scatter\",\"img\":\"/img/verticalCard-default.20251231.png\",\"callbackArgs\":[],\"events\":[],\"loadAnimation\":{\"type\":\"none\",\"opacityOpen\":false,\"timingFunction\":\"linear\",\"direction\":\"right\",\"duration\":1000,\"delay\":0},\"dataType\":0,\"dataSource\":{},\"requestHeader\":{},\"requestBody\":{},\"crossOrigin\":false,\"needCookie\":false,\"autoRefresh\":false,\"dataQuery\":\"\",\"isLock\":false,\"dataMethod\":\"get\",\"path\":\"\",\"time\":30,\"url\":\"\",\"data\":[],\"dataRemark\":[],\"openFilter\":false,\"listenArgs\":[],\"cbArgs\":[],\"dataFormatter\":\"(data, callbackArgs) => {\\r\\n return data\\r\\n}\",\"component\":{\"width\":1920,\"height\":1080,\"name\":\"vertical-card\",\"prop\":\"verticalCard\"},\"option\":{\"globalConfig\":{\"autoplay\":true,\"autoplayTimeout\":2000,\"autoplayHoverPause\":false,\"perspective\":35,\"display\":5,\"loop\":true,\"animationSpeed\":500,\"dir\":\"rtl\",\"space\":400,\"width\":400,\"height\":700,\"startIndex\":0,\"controlsVisible\":false,\"controlBtnRBg\":\"version-test/assets/newSystemAssets/箭头/箭头05.png\",\"controlBtnLBg\":\"version-test/assets/newSystemAssets/箭头/箭头06.png\",\"blur\":10},\"cardList\":[{\"tabsName\":\"卡片1\",\"titleContent\":\"夏日田野\",\"textContent\":\"生活是一幅绚丽多彩的画卷,即使遇到挫折和困难,也请记得抬头看看身边的美丽风景。放宽心态,用一颗平和的心去面对生活的起起落落,你会发现,即便是在黑暗中,也有闪烁的星光指引着前行的方向。\",\"backgroundImg\":\"version-test/assets/defaultImg/verticalCard1.jpg\",\"coverImg\":\"version-test/assets/defaultImg/verticalCard1.jpg\",\"defaultObj\":{\"markOpacity\":30,\"width\":400,\"height\":700,\"titleShow\":true,\"titleWidth\":200,\"titleHeight\":100,\"titleFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"titleFontSize\":44,\"titleLineHeight\":40,\"titleLetterSpacing\":4,\"titleColor\":\"rgba(255,255,255,1.00)\",\"titleFontStyle\":\"normal\",\"titleFontWeight\":\"normal\",\"titleOffsetLeft\":100,\"titleOffsetTop\":580,\"textShow\":false,\"textWidth\":300,\"textHeight\":150,\"textFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"textFontSize\":20,\"textLineHeight\":30,\"textLetterSpacing\":2,\"textColor\":\"rgba(255,255,255,1.00)\",\"textFontStyle\":\"normal\",\"textFontWeight\":\"normal\",\"textOffsetLeft\":50,\"textOffsetTop\":100},\"activeObj\":{\"markOpacity\":0,\"width\":400,\"height\":700,\"titleShow\":true,\"titleWidth\":200,\"titleHeight\":100,\"titleFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"titleFontSize\":44,\"titleLineHeight\":40,\"titleLetterSpacing\":4,\"titleColor\":\"rgba(255,255,255,1.00)\",\"titleFontStyle\":\"normal\",\"titleFontWeight\":\"normal\",\"titleOffsetLeft\":100,\"titleOffsetTop\":580,\"textShow\":true,\"textWidth\":300,\"textHeight\":150,\"textFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"textFontSize\":20,\"textLineHeight\":30,\"textLetterSpacing\":2,\"textColor\":\"rgba(255,255,255,1.00)\",\"textFontStyle\":\"normal\",\"textFontWeight\":\"normal\",\"textOffsetLeft\":50,\"textOffsetTop\":100}},{\"tabsName\":\"卡片2\",\"titleContent\":\"海边日落\",\"textContent\":\"生活是一幅绚丽多彩的画卷,即使遇到挫折和困难,也请记得抬头看看身边的美丽风景。放宽心态,用一颗平和的心去面对生活的起起落落,你会发现,即便是在黑暗中,也有闪烁的星光指引着前行的方向。\",\"backgroundImg\":\"version-test/assets/defaultImg/verticalCard2.jpg\",\"coverImg\":\"version-test/assets/defaultImg/verticalCard2.jpg\",\"defaultObj\":{\"markOpacity\":30,\"width\":400,\"height\":700,\"titleShow\":true,\"titleWidth\":200,\"titleHeight\":100,\"titleFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"titleFontSize\":44,\"titleLineHeight\":40,\"titleLetterSpacing\":4,\"titleColor\":\"rgba(255,255,255,1.00)\",\"titleFontStyle\":\"normal\",\"titleFontWeight\":\"normal\",\"titleOffsetLeft\":100,\"titleOffsetTop\":580,\"textShow\":false,\"textWidth\":300,\"textHeight\":150,\"textFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"textFontSize\":20,\"textLineHeight\":30,\"textLetterSpacing\":2,\"textColor\":\"rgba(255,255,255,1.00)\",\"textFontStyle\":\"normal\",\"textFontWeight\":\"normal\",\"textOffsetLeft\":50,\"textOffsetTop\":100},\"activeObj\":{\"markOpacity\":0,\"width\":400,\"height\":700,\"titleShow\":true,\"titleWidth\":200,\"titleHeight\":100,\"titleFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"titleFontSize\":44,\"titleLineHeight\":40,\"titleLetterSpacing\":4,\"titleColor\":\"rgba(255,255,255,1.00)\",\"titleFontStyle\":\"normal\",\"titleFontWeight\":\"normal\",\"titleOffsetLeft\":100,\"titleOffsetTop\":580,\"textShow\":true,\"textWidth\":300,\"textHeight\":150,\"textFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"textFontSize\":20,\"textLineHeight\":30,\"textLetterSpacing\":2,\"textColor\":\"rgba(255,255,255,1.00)\",\"textFontStyle\":\"normal\",\"textFontWeight\":\"normal\",\"textOffsetLeft\":50,\"textOffsetTop\":100}},{\"tabsName\":\"卡片3\",\"titleContent\":\"小桥流水\",\"textContent\":\"生活是一幅绚丽多彩的画卷,即使遇到挫折和困难,也请记得抬头看看身边的美丽风景。放宽心态,用一颗平和的心去面对生活的起起落落,你会发现,即便是在黑暗中,也有闪烁的星光指引着前行的方向。\",\"backgroundImg\":\"version-test/assets/defaultImg/verticalCard3.jpg\",\"coverImg\":\"version-test/assets/defaultImg/verticalCard3.jpg\",\"defaultObj\":{\"markOpacity\":30,\"width\":400,\"height\":700,\"titleShow\":true,\"titleWidth\":200,\"titleHeight\":100,\"titleFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"titleFontSize\":44,\"titleLineHeight\":40,\"titleLetterSpacing\":4,\"titleColor\":\"rgba(255,255,255,1.00)\",\"titleFontStyle\":\"normal\",\"titleFontWeight\":\"normal\",\"titleOffsetLeft\":100,\"titleOffsetTop\":580,\"textShow\":false,\"textWidth\":300,\"textHeight\":150,\"textFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"textFontSize\":20,\"textLineHeight\":30,\"textLetterSpacing\":2,\"textColor\":\"rgba(255,255,255,1.00)\",\"textFontStyle\":\"normal\",\"textFontWeight\":\"normal\",\"textOffsetLeft\":50,\"textOffsetTop\":100},\"activeObj\":{\"markOpacity\":0,\"width\":400,\"height\":700,\"titleShow\":true,\"titleWidth\":200,\"titleHeight\":100,\"titleFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"titleFontSize\":44,\"titleLineHeight\":40,\"titleLetterSpacing\":4,\"titleColor\":\"rgba(255,255,255,1.00)\",\"titleFontStyle\":\"normal\",\"titleFontWeight\":\"normal\",\"titleOffsetLeft\":100,\"titleOffsetTop\":580,\"textShow\":true,\"textWidth\":300,\"textHeight\":150,\"textFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"textFontSize\":20,\"textLineHeight\":30,\"textLetterSpacing\":2,\"textColor\":\"rgba(255,255,255,1.00)\",\"textFontStyle\":\"normal\",\"textFontWeight\":\"normal\",\"textOffsetLeft\":50,\"textOffsetTop\":100}},{\"tabsName\":\"卡片4\",\"titleContent\":\"梯田江边\",\"textContent\":\"生活是一幅绚丽多彩的画卷,即使遇到挫折和困难,也请记得抬头看看身边的美丽风景。放宽心态,用一颗平和的心去面对生活的起起落落,你会发现,即便是在黑暗中,也有闪烁的星光指引着前行的方向。\",\"backgroundImg\":\"version-test/assets/defaultImg/verticalCard4.jpg\",\"coverImg\":\"version-test/assets/defaultImg/verticalCard4.jpg\",\"defaultObj\":{\"markOpacity\":30,\"width\":400,\"height\":700,\"titleShow\":true,\"titleWidth\":200,\"titleHeight\":100,\"titleFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"titleFontSize\":44,\"titleLineHeight\":40,\"titleLetterSpacing\":4,\"titleColor\":\"rgba(255,255,255,1.00)\",\"titleFontStyle\":\"normal\",\"titleFontWeight\":\"normal\",\"titleOffsetLeft\":100,\"titleOffsetTop\":580,\"textShow\":false,\"textWidth\":300,\"textHeight\":150,\"textFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"textFontSize\":20,\"textLineHeight\":30,\"textLetterSpacing\":2,\"textColor\":\"rgba(255,255,255,1.00)\",\"textFontStyle\":\"normal\",\"textFontWeight\":\"normal\",\"textOffsetLeft\":50,\"textOffsetTop\":100},\"activeObj\":{\"markOpacity\":0,\"width\":400,\"height\":700,\"titleShow\":true,\"titleWidth\":200,\"titleHeight\":100,\"titleFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"titleFontSize\":44,\"titleLineHeight\":40,\"titleLetterSpacing\":4,\"titleColor\":\"rgba(255,255,255,1.00)\",\"titleFontStyle\":\"normal\",\"titleFontWeight\":\"normal\",\"titleOffsetLeft\":100,\"titleOffsetTop\":580,\"textShow\":true,\"textWidth\":300,\"textHeight\":150,\"textFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"textFontSize\":20,\"textLineHeight\":30,\"textLetterSpacing\":2,\"textColor\":\"rgba(255,255,255,1.00)\",\"textFontStyle\":\"normal\",\"textFontWeight\":\"normal\",\"textOffsetLeft\":50,\"textOffsetTop\":100}},{\"tabsName\":\"卡片5\",\"titleContent\":\"车水马龙\",\"textContent\":\"生活是一幅绚丽多彩的画卷,即使遇到挫折和困难,也请记得抬头看看身边的美丽风景。放宽心态,用一颗平和的心去面对生活的起起落落,你会发现,即便是在黑暗中,也有闪烁的星光指引着前行的方向。\",\"backgroundImg\":\"version-test/assets/defaultImg/verticalCard5.jpg\",\"coverImg\":\"version-test/assets/defaultImg/verticalCard5.jpg\",\"defaultObj\":{\"markOpacity\":30,\"width\":400,\"height\":700,\"titleShow\":true,\"titleWidth\":200,\"titleHeight\":100,\"titleFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"titleFontSize\":44,\"titleLineHeight\":40,\"titleLetterSpacing\":4,\"titleColor\":\"rgba(255,255,255,1.00)\",\"titleFontStyle\":\"normal\",\"titleFontWeight\":\"normal\",\"titleOffsetLeft\":100,\"titleOffsetTop\":580,\"textShow\":false,\"textWidth\":300,\"textHeight\":150,\"textFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"textFontSize\":20,\"textLineHeight\":30,\"textLetterSpacing\":2,\"textColor\":\"rgba(255,255,255,1.00)\",\"textFontStyle\":\"normal\",\"textFontWeight\":\"normal\",\"textOffsetLeft\":50,\"textOffsetTop\":100},\"activeObj\":{\"markOpacity\":0,\"width\":400,\"height\":700,\"titleShow\":true,\"titleWidth\":200,\"titleHeight\":100,\"titleFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"titleFontSize\":44,\"titleLineHeight\":40,\"titleLetterSpacing\":4,\"titleColor\":\"rgba(255,255,255,1.00)\",\"titleFontStyle\":\"normal\",\"titleFontWeight\":\"normal\",\"titleOffsetLeft\":100,\"titleOffsetTop\":580,\"textShow\":true,\"textWidth\":300,\"textHeight\":150,\"textFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"textFontSize\":20,\"textLineHeight\":30,\"textLetterSpacing\":2,\"textColor\":\"rgba(255,255,255,1.00)\",\"textFontStyle\":\"normal\",\"textFontWeight\":\"normal\",\"textOffsetLeft\":50,\"textOffsetTop\":100}},{\"tabsName\":\"卡片6\",\"titleContent\":\"海边灯塔\",\"textContent\":\"生活是一幅绚丽多彩的画卷,即使遇到挫折和困难,也请记得抬头看看身边的美丽风景。放宽心态,用一颗平和的心去面对生活的起起落落,你会发现,即便是在黑暗中,也有闪烁的星光指引着前行的方向。\",\"backgroundImg\":\"version-test/assets/defaultImg/verticalCard6.jpg\",\"coverImg\":\"version-test/assets/defaultImg/verticalCard6.jpg\",\"defaultObj\":{\"markOpacity\":30,\"width\":400,\"height\":700,\"titleShow\":true,\"titleWidth\":200,\"titleHeight\":100,\"titleFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"titleFontSize\":44,\"titleLineHeight\":40,\"titleLetterSpacing\":4,\"titleColor\":\"rgba(255,255,255,1.00)\",\"titleFontStyle\":\"normal\",\"titleFontWeight\":\"normal\",\"titleOffsetLeft\":100,\"titleOffsetTop\":580,\"textShow\":false,\"textWidth\":300,\"textHeight\":150,\"textFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"textFontSize\":20,\"textLineHeight\":30,\"textLetterSpacing\":2,\"textColor\":\"rgba(255,255,255,1.00)\",\"textFontStyle\":\"normal\",\"textFontWeight\":\"normal\",\"textOffsetLeft\":50,\"textOffsetTop\":100},\"activeObj\":{\"markOpacity\":0,\"width\":400,\"height\":700,\"titleShow\":true,\"titleWidth\":200,\"titleHeight\":100,\"titleFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"titleFontSize\":44,\"titleLineHeight\":40,\"titleLetterSpacing\":4,\"titleColor\":\"rgba(255,255,255,1.00)\",\"titleFontStyle\":\"normal\",\"titleFontWeight\":\"normal\",\"titleOffsetLeft\":100,\"titleOffsetTop\":580,\"textShow\":true,\"textWidth\":300,\"textHeight\":150,\"textFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"textFontSize\":20,\"textLineHeight\":30,\"textLetterSpacing\":2,\"textColor\":\"rgba(255,255,255,1.00)\",\"textFontStyle\":\"normal\",\"textFontWeight\":\"normal\",\"textOffsetLeft\":50,\"textOffsetTop\":100}},{\"tabsName\":\"卡片7\",\"titleContent\":\"日落星河\",\"textContent\":\"生活是一幅绚丽多彩的画卷,即使遇到挫折和困难,也请记得抬头看看身边的美丽风景。放宽心态,用一颗平和的心去面对生活的起起落落,你会发现,即便是在黑暗中,也有闪烁的星光指引着前行的方向。\",\"backgroundImg\":\"version-test/assets/defaultImg/verticalCard7.jpg\",\"coverImg\":\"version-test/assets/defaultImg/verticalCard7.jpg\",\"defaultObj\":{\"markOpacity\":30,\"width\":400,\"height\":700,\"titleShow\":true,\"titleWidth\":200,\"titleHeight\":100,\"titleFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"titleFontSize\":44,\"titleLineHeight\":40,\"titleLetterSpacing\":4,\"titleColor\":\"rgba(255,255,255,1.00)\",\"titleFontStyle\":\"normal\",\"titleFontWeight\":\"normal\",\"titleOffsetLeft\":100,\"titleOffsetTop\":580,\"textShow\":false,\"textWidth\":300,\"textHeight\":150,\"textFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"textFontSize\":20,\"textLineHeight\":30,\"textLetterSpacing\":2,\"textColor\":\"rgba(255,255,255,1.00)\",\"textFontStyle\":\"normal\",\"textFontWeight\":\"normal\",\"textOffsetLeft\":50,\"textOffsetTop\":100},\"activeObj\":{\"markOpacity\":0,\"width\":400,\"height\":700,\"titleShow\":true,\"titleWidth\":200,\"titleHeight\":100,\"titleFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"titleFontSize\":44,\"titleLineHeight\":40,\"titleLetterSpacing\":4,\"titleColor\":\"rgba(255,255,255,1.00)\",\"titleFontStyle\":\"normal\",\"titleFontWeight\":\"normal\",\"titleOffsetLeft\":100,\"titleOffsetTop\":580,\"textShow\":true,\"textWidth\":300,\"textHeight\":150,\"textFontFamily\":\"Source Han Sans CN-Normal, Source Han Sans CN\",\"textFontSize\":20,\"textLineHeight\":30,\"textLetterSpacing\":2,\"textColor\":\"rgba(255,255,255,1.00)\",\"textFontStyle\":\"normal\",\"textFontWeight\":\"normal\",\"textOffsetLeft\":50,\"textOffsetTop\":100}}],\"refresh\":true},\"left\":0,\"top\":0,\"showSubComponent\":false,\"parentDynamicPanelId\":[]}",
- "level": 0,
- "second_level_menu": "",
- "first_level_menu": "展项",
- "name": "垂直卡片",
- "thumbnail": "/img/verticalCard-default.20251231.png",
- "created_by": "admin",
- "created_time": "2023-05-31T12:34:27.000Z",
- "updated_by": "admin",
- "updated_time": "2024-06-17T10:56:29.000Z",
- "template": "[]",
- "status": 1
- },
{
"id": 152,
"user_id": null,
@@ -2124,4 +2056,4 @@
"template": "[{\"value\":12345}]",
"status": 1
}
-]
\ No newline at end of file
+]
diff --git "a/servers/server/src/mastra/vector/component-docs/\346\213\223\345\261\225/simple-barrage.md" "b/servers/server/src/mastra/vector/component-docs/\346\213\223\345\261\225/simple-barrage.md"
deleted file mode 100644
index a6227533..00000000
--- "a/servers/server/src/mastra/vector/component-docs/\346\213\223\345\261\225/simple-barrage.md"
+++ /dev/null
@@ -1,18 +0,0 @@
-# 弹幕组件 (simple-barrage)
-
-**组件标识**: simple-barrage | **中文名**: 弹幕组件 | **分类**: 扩展
-
-## 描述
-
-用于在大屏上实现弹幕飘屏效果的展示组件。多条文本消息以不同速度从右向左滚动飘过,支持多轨道并行展示和循环播放。可以为弹幕配置多种样式(不同颜色、字号、字体等),系统会随机分配样式给每条弹幕,营造丰富的视觉效果。支持鼠标悬停暂停功能,也可通过外部接口实时导入弹幕数据。常用于大屏互动、评论展示、活动氛围营造等场景。
-
-**与其他组件的区别**:
-- 区别于文本滚动(swScroll):本组件为多轨道弹幕飘屏效果,文本滚动为表格轮播
-
-## 别名/同义词
-
-弹幕 弹幕组件 弹幕效果 滚动弹幕 弹幕飘屏 评论弹幕 直播弹幕 弹幕墙
-
-## 适用场景
-
-活动大屏弹幕互动 直播评论弹幕 产品发布会弹幕墙 年会弹幕祝福 用户留言滚动展示