@cesdk/cesdk-js 1.70.0 → 1.70.1
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 +43 -5
- package/assets/core/{cesdk-v1.70.0-YK4DFHDA.wasm → cesdk-v1.70.1-WYBQYH42.wasm} +0 -0
- package/assets/core/{worker-host-v1.70.0.js → worker-host-v1.70.1.js} +1 -1
- package/cesdk.umd.js +1 -1
- package/index.d.ts +1 -1
- package/index.html +35 -5
- package/index.js +1 -1
- package/package.json +2 -2
- package/react/index.d.ts +40 -4
- package/vue/index.d.ts +40 -4
- /package/assets/core/{cesdk-v1.70.0-MLEZSZ4D.data → cesdk-v1.70.1-MLEZSZ4D.data} +0 -0
package/index.d.ts
CHANGED
|
@@ -2917,7 +2917,7 @@ declare class CreativeEditorSDK {
|
|
|
2917
2917
|
*
|
|
2918
2918
|
* // Reconfigure as needed
|
|
2919
2919
|
* cesdk.feature.enable('ly.img.navigation.bar');
|
|
2920
|
-
* cesdk.
|
|
2920
|
+
* cesdk.addPlugin(new TypefaceAssetSource());
|
|
2921
2921
|
* ```
|
|
2922
2922
|
*
|
|
2923
2923
|
* @category Configuration
|
package/index.html
CHANGED
|
@@ -31,6 +31,21 @@
|
|
|
31
31
|
|
|
32
32
|
<script type="module">
|
|
33
33
|
import CreativeEditorSDK from './index.js';
|
|
34
|
+
import {
|
|
35
|
+
BlurAssetSource,
|
|
36
|
+
ColorPaletteAssetSource,
|
|
37
|
+
CropPresetsAssetSource,
|
|
38
|
+
DemoAssetSources,
|
|
39
|
+
EffectsAssetSource,
|
|
40
|
+
FiltersAssetSource,
|
|
41
|
+
PagePresetsAssetSource,
|
|
42
|
+
StickerAssetSource,
|
|
43
|
+
TextAssetSource,
|
|
44
|
+
TextComponentAssetSource,
|
|
45
|
+
TypefaceAssetSource,
|
|
46
|
+
UploadAssetSources,
|
|
47
|
+
VectorShapeAssetSource
|
|
48
|
+
} from './plugins/index.js';
|
|
34
49
|
|
|
35
50
|
window.onload = function () {
|
|
36
51
|
var href = window.location.href.split('?');
|
|
@@ -68,11 +83,26 @@
|
|
|
68
83
|
async (instance) => {
|
|
69
84
|
// Set the locale using the new API
|
|
70
85
|
instance.i18n.setLocale('en');
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
86
|
+
|
|
87
|
+
// Add asset source plugins
|
|
88
|
+
await instance.addPlugin(new BlurAssetSource());
|
|
89
|
+
await instance.addPlugin(new ColorPaletteAssetSource());
|
|
90
|
+
await instance.addPlugin(new CropPresetsAssetSource());
|
|
91
|
+
await instance.addPlugin(new EffectsAssetSource());
|
|
92
|
+
await instance.addPlugin(new FiltersAssetSource());
|
|
93
|
+
await instance.addPlugin(new PagePresetsAssetSource());
|
|
94
|
+
await instance.addPlugin(new StickerAssetSource());
|
|
95
|
+
await instance.addPlugin(new TextAssetSource());
|
|
96
|
+
await instance.addPlugin(new TextComponentAssetSource());
|
|
97
|
+
await instance.addPlugin(new TypefaceAssetSource());
|
|
98
|
+
await instance.addPlugin(new VectorShapeAssetSource());
|
|
99
|
+
await instance.addPlugin(
|
|
100
|
+
new UploadAssetSources({ include: ['ly.img.image.upload'] })
|
|
101
|
+
);
|
|
102
|
+
await instance.addPlugin(
|
|
103
|
+
new DemoAssetSources({ include: ['ly.img.image.*'] })
|
|
104
|
+
);
|
|
105
|
+
|
|
76
106
|
await instance.actions.run('scene.create');
|
|
77
107
|
}
|
|
78
108
|
);
|