@cesdk/engine 1.8.0 → 1.9.0-preview.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
CHANGED
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|

|
|
2
2
|
|
|
3
|
-
# Creative Engine
|
|
3
|
+
# IMGLY Creative Engine
|
|
4
4
|
|
|
5
|
-
The CreativeEditor SDK (**CE.SDK**) for Web is a fully customizable,
|
|
6
|
-
simple-to-use design editor.
|
|
7
5
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
constraints and text placeholders for database automations.
|
|
6
|
+
This package contains the IMG.LY *Creative Engine*, the core of CE.SDK.
|
|
7
|
+
The Creative Engine enables you to build any design editing UI, automation and creative workflow on the web.
|
|
8
|
+
It offers performant and robust graphics processing capabilities combining the best of layout, typography and image processing with advanced workflows centered around templating and adaptation.
|
|
12
9
|
|
|
13
|
-
|
|
14
|
-
the rendering engine and a Javascript API for building headless applications or
|
|
15
|
-
custom UIs.
|
|
10
|
+
The Creative Engine seamlessly integrates into any web app whether you are building a photo editor, template-based design tool or scalable automation of content creation for your application.
|
|
16
11
|
|
|
17
|
-
Visit our [
|
|
18
|
-
customize the engine for your specific use
|
|
12
|
+
Visit our [documentation](https://img.ly/docs/cesdk) for more tutorials on how to integrate and
|
|
13
|
+
customize the engine for your specific use case.
|
|
14
|
+
|
|
15
|
+
## License
|
|
16
|
+
The CreativeEditor SDK is a commercial product. To use it as such and get access to its white-label version - without the watermark in the export - you need to unlock the SDK with a license file. You can purchase a license at https://img.ly/pricing.
|
|
19
17
|
|
|
20
18
|
## Usage
|
|
21
19
|
|
package/ThirdPartyLicenses.md
CHANGED
|
@@ -2038,19 +2038,6 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
2038
2038
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
2039
2039
|
THE SOFTWARE.
|
|
2040
2040
|
|
|
2041
|
-
-------------------------------------------------------------------------------
|
|
2042
|
-
## popmotion (https://popmotion.io)
|
|
2043
|
-
|
|
2044
|
-
The MIT License (MIT)
|
|
2045
|
-
|
|
2046
|
-
Copyright © 2019 Framer BV
|
|
2047
|
-
|
|
2048
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
2049
|
-
|
|
2050
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
2051
|
-
|
|
2052
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
2053
|
-
|
|
2054
2041
|
-------------------------------------------------------------------------------
|
|
2055
2042
|
## react (https://reactjs.org/)
|
|
2056
2043
|
|
|
Binary file
|
|
Binary file
|
package/index.d.ts
CHANGED
|
@@ -373,6 +373,10 @@ export declare class Block extends Entity {
|
|
|
373
373
|
playing: ReadWriteChannelSync<boolean>;
|
|
374
374
|
playbackTime: ReadWriteChannelSync<number>;
|
|
375
375
|
selection: ReadWriteChannelSync<boolean>;
|
|
376
|
+
videoMode: ReadWriteChannelSync<boolean>;
|
|
377
|
+
duration: ReadWriteChannelSync<number>;
|
|
378
|
+
muted: ReadWriteChannelSync<boolean>;
|
|
379
|
+
avResourceTotalDuration: ReadWriteChannelSync<number>;
|
|
376
380
|
|
|
377
381
|
}
|
|
378
382
|
|
|
@@ -1810,9 +1814,17 @@ export declare class BlockAPI {
|
|
|
1810
1814
|
/**
|
|
1811
1815
|
* Generate a thumbnail for the given video fill.
|
|
1812
1816
|
* @param id - The video fill.
|
|
1813
|
-
* @returns A thumbnail encoded as
|
|
1817
|
+
* @returns A thumbnail encoded as JPEG with a height of 128px.
|
|
1814
1818
|
*/
|
|
1815
1819
|
getVideoFillThumbnail(id: DesignBlockId): Promise<Blob>;
|
|
1820
|
+
/**
|
|
1821
|
+
* Generate a thumbnail atlas for the given video fill.
|
|
1822
|
+
* @param id - The video fill.
|
|
1823
|
+
* @param numberOfColumns - The number of columns to generate.
|
|
1824
|
+
* @param numberOfRows - The number of rows to generate.
|
|
1825
|
+
* @returns A thumbnail atlas of the video as JPEG.
|
|
1826
|
+
*/
|
|
1827
|
+
getVideoFillThumbnailAtlas(id: DesignBlockId, numberOfColumns: number, numberOfRows: number): Promise<Blob>;
|
|
1816
1828
|
}
|
|
1817
1829
|
|
|
1818
1830
|
/**
|
|
@@ -2034,6 +2046,7 @@ export declare enum DesignBlockType {
|
|
|
2034
2046
|
Page = "//ly.img.ubq/page",
|
|
2035
2047
|
Image = "//ly.img.ubq/image",
|
|
2036
2048
|
Video = "//ly.img.ubq/video",
|
|
2049
|
+
Audio = "//ly.img.ubq/audio",
|
|
2037
2050
|
Text = "//ly.img.ubq/text",
|
|
2038
2051
|
Sticker = "//ly.img.ubq/sticker",
|
|
2039
2052
|
VectorPath = "//ly.img.ubq/vector_path",
|
|
@@ -2125,14 +2138,14 @@ export declare class EditorAPI {
|
|
|
2125
2138
|
onSettingsChanged(callback: () => void): () => void;
|
|
2126
2139
|
/**
|
|
2127
2140
|
* Set a boolean setting.
|
|
2128
|
-
* @param keypath - The settings keypath, e.g. `
|
|
2141
|
+
* @param keypath - The settings keypath, e.g. `doubleClickToCropEnabled`
|
|
2129
2142
|
* @param value - The value to set.
|
|
2130
2143
|
* @throws An error, if the keypath is invalid.
|
|
2131
2144
|
*/
|
|
2132
2145
|
setSettingBool(keypath: string, value: boolean): void;
|
|
2133
2146
|
/**
|
|
2134
2147
|
* Get a boolean setting.
|
|
2135
|
-
* @param keypath - The settings keypath, e.g. `
|
|
2148
|
+
* @param keypath - The settings keypath, e.g. `doubleClickToCropEnabled`
|
|
2136
2149
|
* @throws An error, if the keypath is invalid.
|
|
2137
2150
|
*/
|
|
2138
2151
|
getSettingBool(keypath: string): boolean;
|
|
@@ -2151,33 +2164,33 @@ export declare class EditorAPI {
|
|
|
2151
2164
|
getSettingInt(keypath: string): number;
|
|
2152
2165
|
/**
|
|
2153
2166
|
* Set a float setting.
|
|
2154
|
-
* @param keypath - The settings keypath, e.g. `
|
|
2167
|
+
* @param keypath - The settings keypath, e.g. `positionSnappingThreshold`
|
|
2155
2168
|
* @param value - The value to set.
|
|
2156
2169
|
* @throws An error, if the keypath is invalid.
|
|
2157
2170
|
*/
|
|
2158
2171
|
setSettingFloat(keypath: string, value: number): void;
|
|
2159
2172
|
/**
|
|
2160
2173
|
* Get a float setting.
|
|
2161
|
-
* @param keypath - The settings keypath, e.g. `
|
|
2174
|
+
* @param keypath - The settings keypath, e.g. `positionSnappingThreshold`
|
|
2162
2175
|
* @throws An error, if the keypath is invalid.
|
|
2163
2176
|
*/
|
|
2164
2177
|
getSettingFloat(keypath: string): number;
|
|
2165
2178
|
/**
|
|
2166
2179
|
* Set a string setting.
|
|
2167
|
-
* @param keypath - The settings keypath, e.g. `
|
|
2180
|
+
* @param keypath - The settings keypath, e.g. `license`
|
|
2168
2181
|
* @param value - The value to set.
|
|
2169
2182
|
* @throws An error, if the keypath is invalid.
|
|
2170
2183
|
*/
|
|
2171
2184
|
setSettingString(keypath: string, value: string): void;
|
|
2172
2185
|
/**
|
|
2173
2186
|
* Get a string setting.
|
|
2174
|
-
* @param keypath - The settings keypath, e.g. `
|
|
2187
|
+
* @param keypath - The settings keypath, e.g. `license`
|
|
2175
2188
|
* @throws An error, if the keypath is invalid.
|
|
2176
2189
|
*/
|
|
2177
2190
|
getSettingString(keypath: string): string;
|
|
2178
2191
|
/**
|
|
2179
2192
|
* Set a color setting.
|
|
2180
|
-
* @param keypath - The settings keypath, e.g. `
|
|
2193
|
+
* @param keypath - The settings keypath, e.g. `highlightColor`.
|
|
2181
2194
|
* @param r - The red color component in the range of 0 to 1.
|
|
2182
2195
|
* @param g - The green color component in the range of 0 to 1.
|
|
2183
2196
|
* @param b - The blue color component in the range of 0 to 1.
|
|
@@ -2186,19 +2199,19 @@ export declare class EditorAPI {
|
|
|
2186
2199
|
setSettingColorRGBA(keypath: string, r: number, g: number, b: number, a?: number): void;
|
|
2187
2200
|
/**
|
|
2188
2201
|
* Get a color setting.
|
|
2189
|
-
* @param keypath - The settings keypath, e.g. `
|
|
2202
|
+
* @param keypath - The settings keypath, e.g. `highlightColor`.
|
|
2190
2203
|
* @returns A tuple of channels red, green, blue and alpha in the range of 0 to 1.
|
|
2191
2204
|
*/
|
|
2192
2205
|
getSettingColorRGBA(keypath: string): RGBA;
|
|
2193
2206
|
/**
|
|
2194
2207
|
* Set an enum setting.
|
|
2195
|
-
* @param keypath - The settings keypath, e.g. `
|
|
2208
|
+
* @param keypath - The settings keypath, e.g. `role`.
|
|
2196
2209
|
* @param value - The enum value as string.
|
|
2197
2210
|
*/
|
|
2198
2211
|
setSettingEnum(keypath: string, value: string): void;
|
|
2199
2212
|
/**
|
|
2200
2213
|
* Get an enum setting.
|
|
2201
|
-
* @param keypath - The settings keypath, e.g. `
|
|
2214
|
+
* @param keypath - The settings keypath, e.g. `role`.
|
|
2202
2215
|
* @returns The value as string.
|
|
2203
2216
|
*/
|
|
2204
2217
|
getSettingEnum(keypath: string): string;
|
|
@@ -2212,7 +2225,7 @@ export declare class EditorAPI {
|
|
|
2212
2225
|
setURIResolver(resolver: (URI: string) => string): void;
|
|
2213
2226
|
/**
|
|
2214
2227
|
* This is the default implementation for the URI resolver.
|
|
2215
|
-
* It resolves the given path relative to the `
|
|
2228
|
+
* It resolves the given path relative to the `basePath` setting.
|
|
2216
2229
|
* @param relativePath - The relative path that should be resolved.
|
|
2217
2230
|
* @returns The resolved absolute URI.
|
|
2218
2231
|
*/
|
|
@@ -2220,7 +2233,7 @@ export declare class EditorAPI {
|
|
|
2220
2233
|
/**
|
|
2221
2234
|
* Resolves the given path.
|
|
2222
2235
|
* If a custom resolver has been set with `setURIResolver`, it invokes it with the given path.
|
|
2223
|
-
* Else, it resolves it as relative to the `
|
|
2236
|
+
* Else, it resolves it as relative to the `basePath` setting.
|
|
2224
2237
|
* This performs NO validation of whether a file exists at the specified location.
|
|
2225
2238
|
* @param relativePath - A relative path string
|
|
2226
2239
|
* @returns The resolved absolute uri or an error if an invalid path was given.
|
|
@@ -2697,10 +2710,15 @@ export declare class SceneAPI {
|
|
|
2697
2710
|
*/
|
|
2698
2711
|
saveToArchive(): Promise<Blob>;
|
|
2699
2712
|
/**
|
|
2700
|
-
* Create a new scene, along with its own camera.
|
|
2701
|
-
* @returns The
|
|
2713
|
+
* Create a new design scene, along with its own camera.
|
|
2714
|
+
* @returns The scene's handle.
|
|
2702
2715
|
*/
|
|
2703
2716
|
create(): DesignBlockId;
|
|
2717
|
+
/**
|
|
2718
|
+
* Create a new scene in video mode, along with its own camera and page stack.
|
|
2719
|
+
* @returns The scene's handle.
|
|
2720
|
+
*/
|
|
2721
|
+
createVideo(): DesignBlockId;
|
|
2704
2722
|
/**
|
|
2705
2723
|
* Loads the given image and creates a scene with a single page showing the image.
|
|
2706
2724
|
* Fetching the image may take an arbitrary amount of time, so the scene isn't immediately
|