Explorar o código

feat:download-pen-key

ananzhusen hai 1 mes
pai
achega
e548aa55d2
Modificáronse 1 ficheiros con 5 adicións e 3 borrados
  1. 5 3
      src/services/download.ts

+ 5 - 3
src/services/download.ts

@@ -84,7 +84,7 @@ export const getDownloadList = (meta2dData: any, path: string = 'v') => {
   }
 
   //图片图元(image strokeImage backgroundImage)
-  const imageKeys = ['image', 'strokeImage', 'backgroundImage'];
+  const imageKeys = ['image', 'strokeImage', 'backgroundImage','activeBgImage','bgImage'];
   const images: string[] = [];
   for (const pen of meta2dData.pens) {
     for (const i of imageKeys) {
@@ -658,6 +658,8 @@ export async function zipImages(zip: JSZip, pens: Pen[]) {
     },
     { string: 'strokeImage' },
     { string: 'backgroundImage' },
+    { string: 'activeBgImage' },
+    { string: 'bgImage' },
   ] as const;
   const images: string[] = [];
   for (const pen of pens) {
@@ -774,7 +776,7 @@ export const getFrameDownloadList =(meta2dData: any, path: string = 'v',type:Fra
   }
 
   //图片图元(image strokeImage backgroundImage)
-  const imageKeys = ['image', 'strokeImage', 'backgroundImage'];
+  const imageKeys = ['image', 'strokeImage', 'backgroundImage','activeBgImage','bgImage'];
   const images: string[] = [];
   for (const pen of meta2dData.pens) {
     for (const i of imageKeys) {
@@ -1150,7 +1152,7 @@ export const getDataPngs = (meta2dData: any)=>{
   }
 
   //图片图元(image strokeImage backgroundImage)
-  const imageKeys = ['image', 'strokeImage', 'backgroundImage'];
+  const imageKeys = ['image', 'strokeImage', 'backgroundImage','activeBgImage','bgImage'];
   const images: string[] = [];
   for (const pen of meta2dData.pens) {
     for (const i of imageKeys) {