dascom-le-editor 0.0.29 → 0.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -92,6 +92,10 @@ const toExportImage = async () => {
|
|
|
92
92
|
const data = await editorInstance?.getImage()
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
+
// 获取缩略图,支持单图层,多行多列,双联多图层
|
|
96
|
+
const getThumbnailImage = async ()=>{
|
|
97
|
+
let data = await editorInstance.getThumbnailImage()
|
|
98
|
+
}
|
|
95
99
|
// 统一导出入口:支持当前画布 / JSON、合并 / 独立图层、双联横向拼接
|
|
96
100
|
// 默认返回 string;独立图层模式返回 { images: string[], composedImage: string }
|
|
97
101
|
const exportMergedImage = async () => {
|
|
@@ -106,6 +110,10 @@ const exportSeparateImages = async () => {
|
|
|
106
110
|
const layerImages = data.images
|
|
107
111
|
const composedImage = data.composedImage
|
|
108
112
|
}
|
|
113
|
+
// 双联模式 获取双联拼接后的图片
|
|
114
|
+
const getDoubleRibbonsImage = async ()=>{
|
|
115
|
+
let data = await editorInstance.getDoubleRibbonsImage()
|
|
116
|
+
}
|
|
109
117
|
|
|
110
118
|
// 销毁编辑器实例, 页面卸载 / 重新创建前必须调用
|
|
111
119
|
editorInstance.destroy()
|
|
@@ -117,10 +125,7 @@ editorInstance.setLayerMaxCount(count: number | string)
|
|
|
117
125
|
// 开启后会自动启用多图层,并使用初始化配置里的 separateLayerCount / separateLayerNames
|
|
118
126
|
editorInstance.setSeparateLayerMode(isOpen: boolean)
|
|
119
127
|
|
|
120
|
-
|
|
121
|
-
const getDoubleRibbonsImage = async ()=>{
|
|
122
|
-
let data = await editorInstance.getDoubleRibbonsImage()
|
|
123
|
-
}
|
|
128
|
+
|
|
124
129
|
|
|
125
130
|
// 快速进入双联模式,图层名称默认为「上联」「下联」
|
|
126
131
|
editorInstance.enterDoubleRibbons()
|
package/dist/editor.js
CHANGED