@cesdk/engine 1.9.0-preview.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
  ![Hero image showing the configuration abilities of CE.SDK](https://img.ly/static/cesdk_release_header.png)
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
- Seamlessly integrate it into any Web app with just a few lines of code. The
9
- editor combines the best of layout, typography and photo editing. **CE.SDK**
10
- also facilitates both template creation and adaption workflows, also featuring
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
- This package contains the Creative Engine, the core of our SDK, including only
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 [website](https://img.ly) for more tutorials on how to integrate and
18
- customize the engine for your specific use-case.
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/index.d.ts CHANGED
@@ -374,6 +374,9 @@ export declare class Block extends Entity {
374
374
  playbackTime: ReadWriteChannelSync<number>;
375
375
  selection: ReadWriteChannelSync<boolean>;
376
376
  videoMode: ReadWriteChannelSync<boolean>;
377
+ duration: ReadWriteChannelSync<number>;
378
+ muted: ReadWriteChannelSync<boolean>;
379
+ avResourceTotalDuration: ReadWriteChannelSync<number>;
377
380
 
378
381
  }
379
382
 
@@ -1811,15 +1814,17 @@ export declare class BlockAPI {
1811
1814
  /**
1812
1815
  * Generate a thumbnail for the given video fill.
1813
1816
  * @param id - The video fill.
1814
- * @returns A thumbnail encoded as PNG with a height of 128px.
1817
+ * @returns A thumbnail encoded as JPEG with a height of 128px.
1815
1818
  */
1816
1819
  getVideoFillThumbnail(id: DesignBlockId): Promise<Blob>;
1817
1820
  /**
1818
- * Generate an 8x8 thumbnail atlas for the given video fill.
1821
+ * Generate a thumbnail atlas for the given video fill.
1819
1822
  * @param id - The video fill.
1820
- * @returns A thumbnail atlas of the video as PNG.
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.
1821
1826
  */
1822
- getVideoFillThumbnailAtlas(id: DesignBlockId): Promise<Blob>;
1827
+ getVideoFillThumbnailAtlas(id: DesignBlockId, numberOfColumns: number, numberOfRows: number): Promise<Blob>;
1823
1828
  }
1824
1829
 
1825
1830
  /**
@@ -2041,6 +2046,7 @@ export declare enum DesignBlockType {
2041
2046
  Page = "//ly.img.ubq/page",
2042
2047
  Image = "//ly.img.ubq/image",
2043
2048
  Video = "//ly.img.ubq/video",
2049
+ Audio = "//ly.img.ubq/audio",
2044
2050
  Text = "//ly.img.ubq/text",
2045
2051
  Sticker = "//ly.img.ubq/sticker",
2046
2052
  VectorPath = "//ly.img.ubq/vector_path",
@@ -2132,14 +2138,14 @@ export declare class EditorAPI {
2132
2138
  onSettingsChanged(callback: () => void): () => void;
2133
2139
  /**
2134
2140
  * Set a boolean setting.
2135
- * @param keypath - The settings keypath, e.g. `ubq://doubleClickToCropEnabled`
2141
+ * @param keypath - The settings keypath, e.g. `doubleClickToCropEnabled`
2136
2142
  * @param value - The value to set.
2137
2143
  * @throws An error, if the keypath is invalid.
2138
2144
  */
2139
2145
  setSettingBool(keypath: string, value: boolean): void;
2140
2146
  /**
2141
2147
  * Get a boolean setting.
2142
- * @param keypath - The settings keypath, e.g. `ubq://doubleClickToCropEnabled`
2148
+ * @param keypath - The settings keypath, e.g. `doubleClickToCropEnabled`
2143
2149
  * @throws An error, if the keypath is invalid.
2144
2150
  */
2145
2151
  getSettingBool(keypath: string): boolean;
@@ -2158,33 +2164,33 @@ export declare class EditorAPI {
2158
2164
  getSettingInt(keypath: string): number;
2159
2165
  /**
2160
2166
  * Set a float setting.
2161
- * @param keypath - The settings keypath, e.g. `ubq://positionSnappingThreshold`
2167
+ * @param keypath - The settings keypath, e.g. `positionSnappingThreshold`
2162
2168
  * @param value - The value to set.
2163
2169
  * @throws An error, if the keypath is invalid.
2164
2170
  */
2165
2171
  setSettingFloat(keypath: string, value: number): void;
2166
2172
  /**
2167
2173
  * Get a float setting.
2168
- * @param keypath - The settings keypath, e.g. `ubq://positionSnappingThreshold`
2174
+ * @param keypath - The settings keypath, e.g. `positionSnappingThreshold`
2169
2175
  * @throws An error, if the keypath is invalid.
2170
2176
  */
2171
2177
  getSettingFloat(keypath: string): number;
2172
2178
  /**
2173
2179
  * Set a string setting.
2174
- * @param keypath - The settings keypath, e.g. `ubq://license`
2180
+ * @param keypath - The settings keypath, e.g. `license`
2175
2181
  * @param value - The value to set.
2176
2182
  * @throws An error, if the keypath is invalid.
2177
2183
  */
2178
2184
  setSettingString(keypath: string, value: string): void;
2179
2185
  /**
2180
2186
  * Get a string setting.
2181
- * @param keypath - The settings keypath, e.g. `ubq://license`
2187
+ * @param keypath - The settings keypath, e.g. `license`
2182
2188
  * @throws An error, if the keypath is invalid.
2183
2189
  */
2184
2190
  getSettingString(keypath: string): string;
2185
2191
  /**
2186
2192
  * Set a color setting.
2187
- * @param keypath - The settings keypath, e.g. `ubq://highlightColor`.
2193
+ * @param keypath - The settings keypath, e.g. `highlightColor`.
2188
2194
  * @param r - The red color component in the range of 0 to 1.
2189
2195
  * @param g - The green color component in the range of 0 to 1.
2190
2196
  * @param b - The blue color component in the range of 0 to 1.
@@ -2193,19 +2199,19 @@ export declare class EditorAPI {
2193
2199
  setSettingColorRGBA(keypath: string, r: number, g: number, b: number, a?: number): void;
2194
2200
  /**
2195
2201
  * Get a color setting.
2196
- * @param keypath - The settings keypath, e.g. `ubq://highlightColor`.
2202
+ * @param keypath - The settings keypath, e.g. `highlightColor`.
2197
2203
  * @returns A tuple of channels red, green, blue and alpha in the range of 0 to 1.
2198
2204
  */
2199
2205
  getSettingColorRGBA(keypath: string): RGBA;
2200
2206
  /**
2201
2207
  * Set an enum setting.
2202
- * @param keypath - The settings keypath, e.g. `ubq://role`.
2208
+ * @param keypath - The settings keypath, e.g. `role`.
2203
2209
  * @param value - The enum value as string.
2204
2210
  */
2205
2211
  setSettingEnum(keypath: string, value: string): void;
2206
2212
  /**
2207
2213
  * Get an enum setting.
2208
- * @param keypath - The settings keypath, e.g. `ubq://role`.
2214
+ * @param keypath - The settings keypath, e.g. `role`.
2209
2215
  * @returns The value as string.
2210
2216
  */
2211
2217
  getSettingEnum(keypath: string): string;
@@ -2219,7 +2225,7 @@ export declare class EditorAPI {
2219
2225
  setURIResolver(resolver: (URI: string) => string): void;
2220
2226
  /**
2221
2227
  * This is the default implementation for the URI resolver.
2222
- * It resolves the given path relative to the `ubq://basePath` setting.
2228
+ * It resolves the given path relative to the `basePath` setting.
2223
2229
  * @param relativePath - The relative path that should be resolved.
2224
2230
  * @returns The resolved absolute URI.
2225
2231
  */
@@ -2227,7 +2233,7 @@ export declare class EditorAPI {
2227
2233
  /**
2228
2234
  * Resolves the given path.
2229
2235
  * If a custom resolver has been set with `setURIResolver`, it invokes it with the given path.
2230
- * Else, it resolves it as relative to the `ubq://basePath` setting.
2236
+ * Else, it resolves it as relative to the `basePath` setting.
2231
2237
  * This performs NO validation of whether a file exists at the specified location.
2232
2238
  * @param relativePath - A relative path string
2233
2239
  * @returns The resolved absolute uri or an error if an invalid path was given.