From c30b26cbceb319f22bae764a4ba80be351464f56 Mon Sep 17 00:00:00 2001
From: pipipi-pikachu
基于 Vue 3.x + TypeScript 的在线演示文稿应用
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333"},{type:"line",id:"FnpZs4",left:361,top:238,start:[0,0],end:[549,0],points:["",""],color:"#5b9bd5",style:"solid",width:2}],background:{type:"solid",color:"#ffffff"}}],x={themeColor:"#5b9bd5",fontColor:"#333",fontName:"Microsoft Yahei",backgroundColor:"#fff"},C=[{id:"template",elements:[{type:"text",id:"dTwwDl",left:104.12962962962959,top:213.75000000000003,width:791.7407407407408,height:116,lineHeight:1.2,content:"在此处添加标题
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333",wordSpace:6}],background:{type:"solid",color:"#ffffff"}},{id:"template",elements:[{type:"text",id:"idn7Mx",left:145,top:148,width:711,height:77,lineHeight:1.2,content:"在此处添加标题
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333"},{type:"text",id:"7stmVP",left:207.50000000000003,top:249.84259259259264,width:585,height:56,content:"在此处添加副标题
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333"}],background:{type:"solid",color:"#ffffff"}},{id:"template",elements:[{type:"text",id:"Ri5fok",left:45,top:40,width:711,height:77,lineHeight:1.2,content:"在此处添加标题
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333"},{type:"text",id:"57jpaB",left:45,top:150,width:585,height:56,content:"在此处添加副标题
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333"}],background:{type:"solid",color:"#ffffff"}},{id:"template",elements:[{type:"text",id:"xEykLD",left:45,top:355,width:711,height:77,lineHeight:1.2,content:"在此处添加标题
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333"},{type:"text",id:"4lvQ5n",left:45,top:460,width:585,height:56,content:"在此处添加副标题
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333"}],background:{type:"solid",color:"#ffffff"}},{id:"template",elements:[{type:"shape",id:"4cbRxp",left:0,top:200,width:546,height:362.5,viewBox:200,path:"M 0 0 L 0 200 L 200 200 Z",fill:"#5b9bd5",fixedRatio:!1,opacity:.7,rotate:0},{type:"shape",id:"ookHrf",left:0,top:0,width:300,height:320,viewBox:200,path:"M 0 0 L 0 200 L 200 200 Z",fill:"#5b9bd5",fixedRatio:!1,flipV:!0,rotate:0},{type:"text",id:"AkIh3E",left:355,top:95.11111111111111,width:585,height:116,lineHeight:1.2,content:"输入标题
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333",wordSpace:6},{type:"text",id:"7stmVP",left:355,top:253.25,width:585,height:56,content:"请在此处输入副标题
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333"},{type:"line",id:"FnpZs4",left:361,top:238,start:[0,0],end:[549,0],points:["",""],color:"#5b9bd5",style:"solid",width:2}],background:{type:"solid",color:"#ffffff"}},{id:"template",elements:[{type:"text",id:"Hj7ttp",left:69.35185185185185,top:49.21759259259262,width:420,height:63,lineHeight:1.2,content:"1.请输入标题
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333",fill:"rgba(91,155,213,1)"},{type:"text",id:"FmKMNB",left:69.35185185185185,top:129.28240740740745,width:420,height:384,content:"在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333",fill:"rgb(242, 242, 242)"},{type:"text",id:"rI7ZeO",left:510.64814814814815,top:49.21759259259262,width:420,height:63,lineHeight:1.2,content:"2.请输入标题
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333",fill:"rgba(91,155,213,1)"},{type:"text",id:"KspwGc",left:510.64814814814815,top:129.28240740740745,width:420,height:384,content:"在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333",fill:"rgb(242, 242, 242)"}],background:{type:"solid",color:"#ffffff"}},{id:"template",elements:[{type:"text",id:"Rx63Jo",left:69.35185185185179,top:51.71759259259262,width:420,height:58,lineHeight:1.2,content:"1.请输入标题
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333",fill:"rgba(91,155,213,1)"},{type:"text",id:"ulyuzE",left:69.35185185185179,top:131.78240740740745,width:420,height:129,content:"在此处输入内容
在此处输入内容
在此处输入内容
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333",fill:"rgb(242, 242, 242)"},{type:"text",id:"kr35Ca",left:510.6481481481481,top:51.71759259259262,width:420,height:58,lineHeight:1.2,content:"2.请输入标题
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333",fill:"rgba(91,155,213,1)"},{type:"text",id:"BNQSpC",left:510.6481481481481,top:131.78240740740745,width:420,height:129,content:"在此处输入内容
在此处输入内容
在此处输入内容
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333",fill:"rgb(242, 242, 242)"},{type:"text",id:"Vr38Nu",left:69.35185185185185,top:301.71759259259255,width:420,height:58,lineHeight:1.2,content:"3.请输入标题
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333",fill:"rgba(91,155,213,1)"},{type:"text",id:"IwKRSu",left:69.35185185185185,top:381.7824074074074,width:420,height:129,content:"在此处输入内容
在此处输入内容
在此处输入内容
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333",fill:"rgb(242, 242, 242)"},{type:"text",id:"0Opr1v",left:510.64814814814815,top:301.71759259259255,width:420,height:58,lineHeight:1.2,content:"4.请输入标题
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333",fill:"rgba(91,155,213,1)"},{type:"text",id:"4L9Uzz",left:510.64814814814815,top:381.7824074074074,width:420,height:129,content:"在此处输入内容
在此处输入内容
在此处输入内容
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333",fill:"rgb(242, 242, 242)"}]},{id:"template",elements:[{type:"text",id:"GdEGxg",left:134.53703703703704,top:127.25,width:152.77777777777777,height:308,lineHeight:1.8,content:"请在此处输入标题
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333",wordSpace:8,fill:"rgba(91,155,213,1)"},{type:"text",id:"y5sAfw",left:332.8703703703704,top:127.25,width:532.5925925925926,height:50,content:"",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333",fill:"rgb(242, 242, 242)"},{type:"text",id:"VeuocM",left:332.8703703703704,top:212.0648148148148,width:532.5925925925926,height:50,content:"请在此处输入内容1
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333",fill:"rgb(242, 242, 242)"},{type:"text",id:"RyFWQe",left:332.8703703703704,top:296.8796296296296,width:532.5925925925926,height:50,content:"请在此处输入内容2
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333",fill:"rgb(242, 242, 242)"},{type:"text",id:"Q56viI",left:332.8703703703704,top:381.69444444444446,width:532.5925925925926,height:50,content:"请在此处输入内容3
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333",fill:"rgb(242, 242, 242)"}],background:{type:"solid",color:"#ffffff"}},{id:"template",elements:[],background:{type:"solid",color:"#ffffff"}}],S=n("5530"),N=n("b85c"),T=(n("b0c0"),n("1913"),function(e,t){return Array.isArray(e)&&e.indexOf(t.type)>-1||t.type===e}),w=function(e,t){for(var n=e.depth;n>0;n--){var o=e.node(n);if(t(o))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:o}}},L=function(e){return function(t){return w(t.$from,e)}},V=function(e){return function(t){return L((function(t){return T(e,t)}))(t)}},_=function(e,t){var n=t.schema.nodes[e];return!!V(n)(t.selection)},B=function(e){var t,n,o=e.state,c=o.selection,a=o.doc,r=c.from,l=a.nodeAt(r)||a.nodeAt(r-1);return null!==(t=l)&&void 0!==t&&t.lastChild&&(l=l.lastChild),(null===(n=l)||void 0===n?void 0:n.marks)||[]},M=function(e,t,n){var o,c=Object(N["a"])(e);try{for(c.s();!(o=c.n()).done;){var a=o.value;if(a.type.name===t&&a.attrs[n])return a.attrs[n]}}catch(r){c.e(r)}finally{c.f()}return null},D=function(e,t){var n,o=Object(N["a"])(e);try{for(o.s();!(n=o.n()).done;){var c=n.value;if(c.type.name===t)return!0}}catch(a){o.e(a)}finally{o.f()}return!1},A=function(e,t){var n=e.state,o=n.selection,c=n.doc,a=o.from,r=o.to,l=!0,i="";return c.nodesBetween(a,r,(function(e){return l&&e.attrs[t]&&(l=!1,i=e.attrs[t]),l})),i},P={color:"#000",backcolor:"#000",fontsize:"20px",fontname:"微软雅黑",align:"left"},R=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=Object(S["a"])(Object(S["a"])({},P),t);var n=B(e),o=D(n,"strong"),c=D(n,"em"),a=D(n,"underline"),r=D(n,"strikethrough"),l=D(n,"superscript"),i=D(n,"subscript"),u=D(n,"code"),d=M(n,"forecolor","color")||t.color,s=M(n,"backcolor","backcolor")||t.backcolor,f=M(n,"fontsize","fontsize")||t.fontsize,p=M(n,"fontname","fontname")||t.fontname,b=A(e,"align")||t.align,m=_("bullet_list",e.state),v=_("ordered_list",e.state),h=_("blockquote",e.state);return{bold:o,em:c,underline:a,strikethrough:r,superscript:l,subscript:i,code:u,color:d,backcolor:s,fontsize:f,fontname:p,align:b,bulletList:m,orderedList:v,blockquote:h}},F={bold:!1,em:!1,underline:!1,strikethrough:!1,superscript:!1,subscript:!1,code:!1,color:"#000",backcolor:"#000",fontsize:"20px",fontname:"微软雅黑",align:"left",bulletList:!1,orderedList:!1,blockquote:!1},z={activeElementIdList:[],handleElementId:"",activeGroupElementId:"",canvasPercentage:90,canvasScale:1,thumbnailsFocus:!1,editorAreaFocus:!1,disableHotkeys:!1,showGridLines:!1,creatingElement:null,availableFonts:[],toolbarState:"slideStyle",viewportRatio:.5625,theme:x,slides:E,slideIndex:0,selectedSlidesIndex:[],snapshotCursor:-1,snapshotLength:0,ctrlKeyState:!1,shiftKeyState:!1,screening:!1,clipingImageElementId:"",richTextAttrs:F,selectedTableCells:[],isScaling:!1,layouts:C},H=(n("d81d"),n("4de4"),n("caad"),n("2532"),n("7db0"),{currentSlide:function(e){return e.slides[e.slideIndex]||null},currentSlideAnimations:function(e){var t=e.slides[e.slideIndex];if(!t)return null;var n=t.animations;if(!n)return null;var o=t.elements,c=o.map((function(e){return e.id}));return n.filter((function(e){return c.includes(e.elId)}))},activeElementList:function(e){var t=e.slides[e.slideIndex];return t&&t.elements?t.elements.filter((function(t){return e.activeElementIdList.includes(t.id)})):[]},handleElement:function(e){var t=e.slides[e.slideIndex];return t&&t.elements&&t.elements.find((function(t){return e.handleElementId===t.id}))||null},canUndo:function(e){return e.snapshotCursor>0},canRedo:function(e){return e.snapshotCursor请在此处输入内容4
基于 Vue 3.x + TypeScript 的在线演示文稿应用
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333"},{type:"line",id:"FnpZs4",left:361,top:238,start:[0,0],end:[549,0],points:["",""],color:"#5b9bd5",style:"solid",width:2}],background:{type:"solid",color:"#ffffff"}}],x={themeColor:"#5b9bd5",fontColor:"#333",fontName:"Microsoft Yahei",backgroundColor:"#fff"},C=[{id:"template",elements:[{type:"text",id:"dTwwDl",left:104.12962962962959,top:213.75000000000003,width:791.7407407407408,height:116,lineHeight:1.2,content:"在此处添加标题
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333",wordSpace:6}],background:{type:"solid",color:"#ffffff"}},{id:"template",elements:[{type:"text",id:"idn7Mx",left:145,top:148,width:711,height:77,lineHeight:1.2,content:"在此处添加标题
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333"},{type:"text",id:"7stmVP",left:207.50000000000003,top:249.84259259259264,width:585,height:56,content:"在此处添加副标题
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333"}],background:{type:"solid",color:"#ffffff"}},{id:"template",elements:[{type:"text",id:"Ri5fok",left:45,top:40,width:711,height:77,lineHeight:1.2,content:"在此处添加标题
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333"},{type:"text",id:"57jpaB",left:45,top:150,width:585,height:56,content:"在此处添加副标题
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333"}],background:{type:"solid",color:"#ffffff"}},{id:"template",elements:[{type:"text",id:"xEykLD",left:45,top:355,width:711,height:77,lineHeight:1.2,content:"在此处添加标题
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333"},{type:"text",id:"4lvQ5n",left:45,top:460,width:585,height:56,content:"在此处添加副标题
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333"}],background:{type:"solid",color:"#ffffff"}},{id:"template",elements:[{type:"shape",id:"4cbRxp",left:0,top:200,width:546,height:362.5,viewBox:200,path:"M 0 0 L 0 200 L 200 200 Z",fill:"#5b9bd5",fixedRatio:!1,opacity:.7,rotate:0},{type:"shape",id:"ookHrf",left:0,top:0,width:300,height:320,viewBox:200,path:"M 0 0 L 0 200 L 200 200 Z",fill:"#5b9bd5",fixedRatio:!1,flipV:!0,rotate:0},{type:"text",id:"AkIh3E",left:355,top:95.11111111111111,width:585,height:116,lineHeight:1.2,content:"输入标题
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333",wordSpace:6},{type:"text",id:"7stmVP",left:355,top:253.25,width:585,height:56,content:"请在此处输入副标题
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333"},{type:"line",id:"FnpZs4",left:361,top:238,start:[0,0],end:[549,0],points:["",""],color:"#5b9bd5",style:"solid",width:2}],background:{type:"solid",color:"#ffffff"}},{id:"template",elements:[{type:"text",id:"Hj7ttp",left:69.35185185185185,top:49.21759259259262,width:420,height:63,lineHeight:1.2,content:"1.请输入标题
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333",fill:"rgba(91,155,213,1)"},{type:"text",id:"FmKMNB",left:69.35185185185185,top:129.28240740740745,width:420,height:384,content:"在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333",fill:"rgb(242, 242, 242)"},{type:"text",id:"rI7ZeO",left:510.64814814814815,top:49.21759259259262,width:420,height:63,lineHeight:1.2,content:"2.请输入标题
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333",fill:"rgba(91,155,213,1)"},{type:"text",id:"KspwGc",left:510.64814814814815,top:129.28240740740745,width:420,height:384,content:"在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333",fill:"rgb(242, 242, 242)"}],background:{type:"solid",color:"#ffffff"}},{id:"template",elements:[{type:"text",id:"Rx63Jo",left:69.35185185185179,top:51.71759259259262,width:420,height:58,lineHeight:1.2,content:"1.请输入标题
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333",fill:"rgba(91,155,213,1)"},{type:"text",id:"ulyuzE",left:69.35185185185179,top:131.78240740740745,width:420,height:129,content:"在此处输入内容
在此处输入内容
在此处输入内容
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333",fill:"rgb(242, 242, 242)"},{type:"text",id:"kr35Ca",left:510.6481481481481,top:51.71759259259262,width:420,height:58,lineHeight:1.2,content:"2.请输入标题
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333",fill:"rgba(91,155,213,1)"},{type:"text",id:"BNQSpC",left:510.6481481481481,top:131.78240740740745,width:420,height:129,content:"在此处输入内容
在此处输入内容
在此处输入内容
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333",fill:"rgb(242, 242, 242)"},{type:"text",id:"Vr38Nu",left:69.35185185185185,top:301.71759259259255,width:420,height:58,lineHeight:1.2,content:"3.请输入标题
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333",fill:"rgba(91,155,213,1)"},{type:"text",id:"IwKRSu",left:69.35185185185185,top:381.7824074074074,width:420,height:129,content:"在此处输入内容
在此处输入内容
在此处输入内容
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333",fill:"rgb(242, 242, 242)"},{type:"text",id:"0Opr1v",left:510.64814814814815,top:301.71759259259255,width:420,height:58,lineHeight:1.2,content:"4.请输入标题
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333",fill:"rgba(91,155,213,1)"},{type:"text",id:"4L9Uzz",left:510.64814814814815,top:381.7824074074074,width:420,height:129,content:"在此处输入内容
在此处输入内容
在此处输入内容
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333",fill:"rgb(242, 242, 242)"}]},{id:"template",elements:[{type:"text",id:"GdEGxg",left:134.53703703703704,top:127.25,width:152.77777777777777,height:308,lineHeight:1.8,content:"请在此处输入标题
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333",wordSpace:8,fill:"rgba(91,155,213,1)"},{type:"text",id:"y5sAfw",left:332.8703703703704,top:127.25,width:532.5925925925926,height:50,content:"",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333",fill:"rgb(242, 242, 242)"},{type:"text",id:"VeuocM",left:332.8703703703704,top:212.0648148148148,width:532.5925925925926,height:50,content:"请在此处输入内容1
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333",fill:"rgb(242, 242, 242)"},{type:"text",id:"RyFWQe",left:332.8703703703704,top:296.8796296296296,width:532.5925925925926,height:50,content:"请在此处输入内容2
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333",fill:"rgb(242, 242, 242)"},{type:"text",id:"Q56viI",left:332.8703703703704,top:381.69444444444446,width:532.5925925925926,height:50,content:"请在此处输入内容3
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333",fill:"rgb(242, 242, 242)"}],background:{type:"solid",color:"#ffffff"}},{id:"template",elements:[],background:{type:"solid",color:"#ffffff"}}],S=n("5530"),N=n("b85c"),T=(n("b0c0"),n("1913"),function(e,t){return Array.isArray(e)&&e.indexOf(t.type)>-1||t.type===e}),w=function(e,t){for(var n=e.depth;n>0;n--){var o=e.node(n);if(t(o))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:o}}},L=function(e){return function(t){return w(t.$from,e)}},V=function(e){return function(t){return L((function(t){return T(e,t)}))(t)}},_=function(e,t){var n=t.schema.nodes[e];return!!V(n)(t.selection)},B=function(e){var t,n,o=e.state,c=o.selection,a=o.doc,r=c.from,l=a.nodeAt(r)||a.nodeAt(r-1);return null!==(t=l)&&void 0!==t&&t.lastChild&&(l=l.lastChild),(null===(n=l)||void 0===n?void 0:n.marks)||[]},M=function(e,t,n){var o,c=Object(N["a"])(e);try{for(c.s();!(o=c.n()).done;){var a=o.value;if(a.type.name===t&&a.attrs[n])return a.attrs[n]}}catch(r){c.e(r)}finally{c.f()}return null},D=function(e,t){var n,o=Object(N["a"])(e);try{for(o.s();!(n=o.n()).done;){var c=n.value;if(c.type.name===t)return!0}}catch(a){o.e(a)}finally{o.f()}return!1},A=function(e,t){var n=e.state,o=n.selection,c=n.doc,a=o.from,r=o.to,l=!0,i="";return c.nodesBetween(a,r,(function(e){return l&&e.attrs[t]&&(l=!1,i=e.attrs[t]),l})),i},P={color:"#000",backcolor:"#000",fontsize:"20px",fontname:"微软雅黑",align:"left"},R=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=Object(S["a"])(Object(S["a"])({},P),t);var n=B(e),o=D(n,"strong"),c=D(n,"em"),a=D(n,"underline"),r=D(n,"strikethrough"),l=D(n,"superscript"),i=D(n,"subscript"),u=D(n,"code"),d=M(n,"forecolor","color")||t.color,s=M(n,"backcolor","backcolor")||t.backcolor,f=M(n,"fontsize","fontsize")||t.fontsize,p=M(n,"fontname","fontname")||t.fontname,b=A(e,"align")||t.align,m=_("bullet_list",e.state),v=_("ordered_list",e.state),h=_("blockquote",e.state);return{bold:o,em:c,underline:a,strikethrough:r,superscript:l,subscript:i,code:u,color:d,backcolor:s,fontsize:f,fontname:p,align:b,bulletList:m,orderedList:v,blockquote:h}},F={bold:!1,em:!1,underline:!1,strikethrough:!1,superscript:!1,subscript:!1,code:!1,color:"#000",backcolor:"#000",fontsize:"20px",fontname:"微软雅黑",align:"left",bulletList:!1,orderedList:!1,blockquote:!1},z={activeElementIdList:[],handleElementId:"",activeGroupElementId:"",canvasPercentage:90,canvasScale:1,thumbnailsFocus:!1,editorAreaFocus:!1,disableHotkeys:!1,showGridLines:!1,creatingElement:null,availableFonts:[],toolbarState:"slideStyle",viewportRatio:.5625,theme:x,slides:E,slideIndex:0,selectedSlidesIndex:[],snapshotCursor:-1,snapshotLength:0,ctrlKeyState:!1,shiftKeyState:!1,screening:!1,clipingImageElementId:"",richTextAttrs:F,selectedTableCells:[],isScaling:!1,layouts:C},H=(n("d81d"),n("4de4"),n("caad"),n("2532"),n("7db0"),{currentSlide:function(e){return e.slides[e.slideIndex]||null},currentSlideAnimations:function(e){var t=e.slides[e.slideIndex];if(!t)return null;var n=t.animations;if(!n)return null;var o=t.elements,c=o.map((function(e){return e.id}));return n.filter((function(e){return c.includes(e.elId)}))},activeElementList:function(e){var t=e.slides[e.slideIndex];return t&&t.elements?t.elements.filter((function(t){return e.activeElementIdList.includes(t.id)})):[]},handleElement:function(e){var t=e.slides[e.slideIndex];return t&&t.elements&&t.elements.find((function(t){return e.handleElementId===t.id}))||null},canUndo:function(e){return e.snapshotCursor>0},canRedo:function(e){return e.snapshotCursor请在此处输入内容4
PPTIST
',\n rotate: 0,\n defaultFontName: 'Microsoft Yahei',\n defaultColor: '#333'\n },\n {\n type: 'text',\n id: '7stmVP',\n left: 355,\n top: 253.25,\n width: 585,\n height: 56,\n content: '基于 Vue 3.x + TypeScript 的在线演示文稿应用
',\n rotate: 0,\n defaultFontName: 'Microsoft Yahei',\n defaultColor: '#333'\n },\n {\n type: 'line',\n id: 'FnpZs4',\n left: 361,\n top: 238,\n start: [0, 0],\n end: [549, 0],\n points: ['', ''],\n color: '#5b9bd5',\n style: 'solid',\n width: 2,\n },\n ],\n background: {\n type: 'solid',\n color: '#ffffff',\n },\n }\n]","import { SlideTheme } from '@/types/slides'\n\nexport const theme: SlideTheme = {\n themeColor: '#5b9bd5',\n fontColor: '#333',\n fontName: 'Microsoft Yahei',\n backgroundColor: '#fff',\n}","import { Slide } from '@/types/slides'\n\nexport const layouts: Slide[] = [\n {\n id: 'template',\n elements: [\n {\n type: 'text',\n id: 'dTwwDl',\n left: 104.12962962962959,\n top: 213.75000000000003,\n width: 791.7407407407408,\n height: 116,\n lineHeight: 1.2,\n content: '在此处添加标题
',\n rotate: 0,\n defaultFontName: 'Microsoft Yahei',\n defaultColor: '#333',\n wordSpace: 6,\n },\n ],\n background: {\n type: 'solid',\n color: '#ffffff',\n },\n },\n {\n id: 'template',\n elements: [\n {\n type: 'text',\n id: 'idn7Mx',\n left: 145,\n top: 148,\n width: 711,\n height: 77,\n lineHeight: 1.2,\n content: '在此处添加标题
',\n rotate: 0,\n defaultFontName: 'Microsoft Yahei',\n defaultColor: '#333',\n },\n {\n type: 'text',\n id: '7stmVP',\n left: 207.50000000000003,\n top: 249.84259259259264,\n width: 585,\n height: 56,\n content: '在此处添加副标题
',\n rotate: 0,\n defaultFontName: 'Microsoft Yahei',\n defaultColor: '#333',\n },\n ],\n background: {\n type: 'solid',\n color: '#ffffff',\n },\n },\n {\n id: 'template',\n elements: [\n {\n type: 'text',\n id: 'Ri5fok',\n left: 45,\n top: 40,\n width: 711,\n height: 77,\n lineHeight: 1.2,\n content: '在此处添加标题
',\n rotate: 0,\n defaultFontName: 'Microsoft Yahei',\n defaultColor: '#333',\n },\n {\n type: 'text',\n id: '57jpaB',\n left: 45,\n top: 150,\n width: 585,\n height: 56,\n content: '在此处添加副标题
',\n rotate: 0,\n defaultFontName: 'Microsoft Yahei',\n defaultColor: '#333',\n },\n ],\n background: {\n type: 'solid',\n color: '#ffffff',\n },\n },\n {\n id: 'template',\n elements: [\n {\n type: 'text',\n id: 'xEykLD',\n left: 45,\n top: 355,\n width: 711,\n height: 77,\n lineHeight: 1.2,\n content: '在此处添加标题
',\n rotate: 0,\n defaultFontName: 'Microsoft Yahei',\n defaultColor: '#333',\n },\n {\n type: 'text',\n id: '4lvQ5n',\n left: 45,\n top: 460,\n width: 585,\n height: 56,\n content: '在此处添加副标题
',\n rotate: 0,\n defaultFontName: 'Microsoft Yahei',\n defaultColor: '#333',\n },\n ],\n background: {\n type: 'solid',\n color: '#ffffff',\n },\n },\n {\n id: 'template',\n elements: [\n {\n type: 'shape',\n id: '4cbRxp',\n left: 0,\n top: 200,\n width: 546,\n height: 362.5,\n viewBox: 200,\n path: 'M 0 0 L 0 200 L 200 200 Z',\n fill: '#5b9bd5',\n fixedRatio: false,\n opacity: 0.7,\n rotate: 0\n },\n {\n type: 'shape',\n id: 'ookHrf',\n left: 0,\n top: 0,\n width: 300,\n height: 320,\n viewBox: 200,\n path: 'M 0 0 L 0 200 L 200 200 Z',\n fill: '#5b9bd5',\n fixedRatio: false,\n flipV: true,\n rotate: 0\n },\n {\n type: 'text',\n id: 'AkIh3E',\n left: 355,\n top: 95.11111111111111,\n width: 585,\n height: 116,\n lineHeight: 1.2,\n content: '输入标题
',\n rotate: 0,\n defaultFontName: 'Microsoft Yahei',\n defaultColor: '#333',\n wordSpace: 6\n },\n {\n type: 'text',\n id: '7stmVP',\n left: 355,\n top: 253.25,\n width: 585,\n height: 56,\n content: '请在此处输入副标题
',\n rotate: 0,\n defaultFontName: 'Microsoft Yahei',\n defaultColor: '#333'\n },\n {\n type: 'line',\n id: 'FnpZs4',\n left: 361,\n top: 238,\n start: [0, 0],\n end: [549, 0],\n points: ['', ''],\n color: '#5b9bd5',\n style: 'solid',\n width: 2,\n },\n ],\n background: {\n type: 'solid',\n color: '#ffffff',\n },\n },\n {\n id: 'template',\n elements: [\n {\n type: 'text',\n id: 'Hj7ttp',\n left: 69.35185185185185,\n top: 49.21759259259262,\n width: 420,\n height: 63,\n lineHeight: 1.2,\n content: '1.请输入标题
',\n rotate: 0,\n defaultFontName: 'Microsoft Yahei',\n defaultColor: '#333',\n fill: 'rgba(91,155,213,1)',\n },\n {\n type: 'text',\n id: 'FmKMNB',\n left: 69.35185185185185,\n top: 129.28240740740745,\n width: 420,\n height: 384,\n content: '在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
',\n rotate: 0,\n defaultFontName: 'Microsoft Yahei',\n defaultColor: '#333',\n fill: 'rgb(242, 242, 242)',\n },\n {\n type: 'text',\n id: 'rI7ZeO',\n left: 510.64814814814815,\n top: 49.21759259259262,\n width: 420,\n height: 63,\n lineHeight: 1.2,\n content: '2.请输入标题
',\n rotate: 0,\n defaultFontName: 'Microsoft Yahei',\n defaultColor: '#333',\n fill: 'rgba(91,155,213,1)',\n },\n {\n type: 'text',\n id: 'KspwGc',\n left: 510.64814814814815,\n top: 129.28240740740745,\n width: 420,\n height: 384,\n content: '在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
',\n rotate: 0,\n defaultFontName: 'Microsoft Yahei',\n defaultColor: '#333',\n fill: 'rgb(242, 242, 242)',\n },\n ],\n background: {\n type: 'solid',\n color: '#ffffff',\n },\n },\n {\n id: 'template',\n elements: [\n {\n type: 'text',\n id: 'Rx63Jo',\n left: 69.35185185185179,\n top: 51.71759259259262,\n width: 420,\n height: 58,\n lineHeight: 1.2,\n content: '1.请输入标题
',\n rotate: 0,\n defaultFontName: 'Microsoft Yahei',\n defaultColor: '#333',\n fill: 'rgba(91,155,213,1)',\n },\n {\n type: 'text',\n id: 'ulyuzE',\n left: 69.35185185185179,\n top: 131.78240740740745,\n width: 420,\n height: 129,\n content: '在此处输入内容
在此处输入内容
在此处输入内容
',\n rotate: 0,\n defaultFontName: 'Microsoft Yahei',\n defaultColor: '#333',\n fill: 'rgb(242, 242, 242)',\n },\n {\n type: 'text',\n id: 'kr35Ca',\n left: 510.6481481481481,\n top: 51.71759259259262,\n width: 420,\n height: 58,\n lineHeight: 1.2,\n content: '2.请输入标题
',\n rotate: 0,\n defaultFontName: 'Microsoft Yahei',\n defaultColor: '#333',\n fill: 'rgba(91,155,213,1)',\n },\n {\n type: 'text',\n id: 'BNQSpC',\n left: 510.6481481481481,\n top: 131.78240740740745,\n width: 420,\n height: 129,\n content: '在此处输入内容
在此处输入内容
在此处输入内容
',\n rotate: 0,\n defaultFontName: 'Microsoft Yahei',\n defaultColor: '#333',\n fill: 'rgb(242, 242, 242)',\n },\n {\n type: 'text',\n id: 'Vr38Nu',\n left: 69.35185185185185,\n top: 301.71759259259255,\n width: 420,\n height: 58,\n lineHeight: 1.2,\n content: '3.请输入标题
',\n rotate: 0,\n defaultFontName: 'Microsoft Yahei',\n defaultColor: '#333',\n fill: 'rgba(91,155,213,1)',\n },\n {\n type: 'text',\n id: 'IwKRSu',\n left: 69.35185185185185,\n top: 381.7824074074074,\n width: 420,\n height: 129,\n content: '在此处输入内容
在此处输入内容
在此处输入内容
',\n rotate: 0,\n defaultFontName: 'Microsoft Yahei',\n defaultColor: '#333',\n fill: 'rgb(242, 242, 242)',\n },\n {\n type: 'text',\n id: '0Opr1v',\n left: 510.64814814814815,\n top: 301.71759259259255,\n width: 420,\n height: 58,\n lineHeight: 1.2,\n content: '4.请输入标题
',\n rotate: 0,\n defaultFontName: 'Microsoft Yahei',\n defaultColor: '#333',\n fill: 'rgba(91,155,213,1)',\n },\n {\n type: 'text',\n id: '4L9Uzz',\n left: 510.64814814814815,\n top: 381.7824074074074,\n width: 420,\n height: 129,\n content: '在此处输入内容
在此处输入内容
在此处输入内容
',\n rotate: 0,\n defaultFontName: 'Microsoft Yahei',\n defaultColor: '#333',\n fill: 'rgb(242, 242, 242)',\n },\n ],\n },\n {\n id: 'template',\n elements: [\n {\n type: 'text',\n id: 'GdEGxg',\n left: 134.53703703703704,\n top: 127.25,\n width: 152.77777777777777,\n height: 308,\n lineHeight: 1.8,\n content: '请在此处输入标题
',\n rotate: 0,\n defaultFontName: 'Microsoft Yahei',\n defaultColor: '#333',\n wordSpace: 8,\n fill: 'rgba(91,155,213,1)',\n },\n {\n type: 'text',\n id: 'y5sAfw',\n left: 332.8703703703704,\n top: 127.25,\n width: 532.5925925925926,\n height: 50,\n content: '',\n rotate: 0,\n defaultFontName: 'Microsoft Yahei',\n defaultColor: '#333',\n fill: 'rgb(242, 242, 242)',\n },\n {\n type: 'text',\n id: 'VeuocM',\n left: 332.8703703703704,\n top: 212.0648148148148,\n width: 532.5925925925926,\n height: 50,\n content: '请在此处输入内容1
',\n rotate: 0,\n defaultFontName: 'Microsoft Yahei',\n defaultColor: '#333',\n fill: 'rgb(242, 242, 242)',\n },\n {\n type: 'text',\n id: 'RyFWQe',\n left: 332.8703703703704,\n top: 296.8796296296296,\n width: 532.5925925925926,\n height: 50,\n content: '请在此处输入内容2
',\n rotate: 0,\n defaultFontName: 'Microsoft Yahei',\n defaultColor: '#333',\n fill: 'rgb(242, 242, 242)',\n },\n {\n type: 'text',\n id: 'Q56viI',\n left: 332.8703703703704,\n top: 381.69444444444446,\n width: 532.5925925925926,\n height: 50,\n content: '请在此处输入内容3
',\n rotate: 0,\n defaultFontName: 'Microsoft Yahei',\n defaultColor: '#333',\n fill: 'rgb(242, 242, 242)',\n },\n ],\n background: {\n type: 'solid',\n color: '#ffffff',\n },\n },\n {\n id: 'template',\n elements: [],\n background: {\n type: 'solid',\n color: '#ffffff',\n },\n },\n]","import { Node, NodeType, ResolvedPos, Mark } from 'prosemirror-model'\nimport { EditorState, Selection } from 'prosemirror-state'\nimport { EditorView } from 'prosemirror-view'\n\nconst equalNodeType = (nodeType: NodeType, node: Node) => {\n return Array.isArray(nodeType) && nodeType.indexOf(node.type) > -1 || node.type === nodeType\n}\n\nconst findParentNodeClosestToPos = ($pos: ResolvedPos, predicate: (node: Node) => boolean) => {\n for (let i = $pos.depth; i > 0; i--) {\n const node = $pos.node(i)\n if (predicate(node)) {\n return {\n pos: i > 0 ? $pos.before(i) : 0,\n start: $pos.start(i),\n depth: i,\n node,\n }\n }\n }\n}\n\nexport const findParentNode = (predicate: (node: Node) => boolean) => {\n return (_ref: Selection) => findParentNodeClosestToPos(_ref.$from, predicate)\n}\n\nexport const findParentNodeOfType = (nodeType: NodeType) => {\n return (selection: Selection) => {\n return findParentNode((node: Node) => {\n return equalNodeType(nodeType, node)\n })(selection)\n }\n}\n\nexport const isActiveOfParentNodeType = (nodeType: string, state: EditorState) => {\n const node = state.schema.nodes[nodeType]\n return !!findParentNodeOfType(node)(state.selection)\n}\n\nexport const getMarkAttrs = (view: EditorView) => {\n const { selection, doc } = view.state\n const { from } = selection\n\n let node = doc.nodeAt(from) || doc.nodeAt(from - 1)\n if (node?.lastChild) node = node.lastChild\n\n return node?.marks || []\n}\n\nexport const getAttrValue = (marks: Mark[], markType: string, attr: string) => {\n for (const mark of marks) {\n if (mark.type.name === markType && mark.attrs[attr]) return mark.attrs[attr]\n }\n return null\n}\n\nexport const isActiveMark = (marks: Mark[], markType: string) => {\n for (const mark of marks) {\n if (mark.type.name === markType) return true\n }\n return false\n}\n\nexport const getAttrValueInSelection = (view: EditorView, attr: string) => {\n const { selection, doc } = view.state\n const { from, to } = selection\n\n let keepChecking = true\n let value = ''\n doc.nodesBetween(from, to, node => {\n if (keepChecking && node.attrs[attr]) {\n keepChecking = false\n value = node.attrs[attr]\n }\n return keepChecking\n })\n return value\n}\n\ninterface DefaultAttrs {\n color?: string;\n backcolor?: string;\n fontsize?: string;\n fontname?: string;\n align?: string;\n}\nconst _defaultAttrs: DefaultAttrs = {\n color: '#000',\n backcolor: '#000',\n fontsize: '20px',\n fontname: '微软雅黑',\n align: 'left',\n}\nexport const getTextAttrs = (view: EditorView, defaultAttrs: DefaultAttrs = {}) => {\n defaultAttrs = { ..._defaultAttrs, ...defaultAttrs }\n\n const marks = getMarkAttrs(view)\n\n const isBold = isActiveMark(marks, 'strong')\n const isEm = isActiveMark(marks, 'em')\n const isUnderline = isActiveMark(marks, 'underline')\n const isStrikethrough = isActiveMark(marks, 'strikethrough')\n const isSuperscript = isActiveMark(marks, 'superscript')\n const isSubscript = isActiveMark(marks, 'subscript')\n const isCode = isActiveMark(marks, 'code')\n const color = getAttrValue(marks, 'forecolor', 'color') || defaultAttrs.color\n const backcolor = getAttrValue(marks, 'backcolor', 'backcolor') || defaultAttrs.backcolor\n const fontsize = getAttrValue(marks, 'fontsize', 'fontsize') || defaultAttrs.fontsize\n const fontname = getAttrValue(marks, 'fontname', 'fontname') || defaultAttrs.fontname\n const align = getAttrValueInSelection(view, 'align') || defaultAttrs.align\n const isBulletList = isActiveOfParentNodeType('bullet_list', view.state)\n const isOrderedList = isActiveOfParentNodeType('ordered_list', view.state)\n const isBlockquote = isActiveOfParentNodeType('blockquote', view.state)\n\n return {\n bold: isBold,\n em: isEm,\n underline: isUnderline,\n strikethrough: isStrikethrough,\n superscript: isSuperscript,\n subscript: isSubscript,\n code: isCode,\n color: color,\n backcolor: backcolor,\n fontsize: fontsize,\n fontname: fontname,\n align: align,\n bulletList: isBulletList,\n orderedList: isOrderedList,\n blockquote: isBlockquote,\n }\n}\n\nexport type TextAttrs = ReturnType请在此处输入内容4
1,\n 'active': activedCell === `${rowIndex}_${colIndex}`,\n }\"\n :style=\"{\n borderStyle: outline.style,\n borderColor: outline.color,\n borderWidth: outline.width + 'px',\n ...getTextStyle(cell.style),\n }\"\n v-for=\"(cell, colIndex) in rowCells\"\n :key=\"cell.id\"\n :rowspan=\"cell.rowspan\"\n :colspan=\"cell.colspan\"\n :data-cell-index=\"`${rowIndex}_${colIndex}`\"\n v-show=\"!hideCells.includes(`${rowIndex}_${colIndex}`)\"\n @mousedown=\"$event => handleCellMousedown($event, rowIndex, colIndex)\"\n @mouseenter=\"handleCellMouseenter(rowIndex, colIndex)\"\n v-contextmenu=\"el => contextmenus(el)\"\n >\n | \n
\n \n | \n
\n \n | \n
\n |