@cesdk/node 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,19 +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
+ # IMG.LY Creative Engine
4
4
 
5
- The (**IMGLYEngine**) for Node.js is the rendering engine that powers CE.SDK.
5
+ This package contains the Node.js version of the IMG.LY *Creative Engine*, the core of CE.SDK.
6
+ The Creative Engine enables you to build any design editing UI, automation and creative workflow in any Node environment.
7
+ 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.
6
8
 
7
- Seamlessly integrate it into any Node.js script with just a few lines of code. The
8
- engine enables automated image processing as well as building creative editing experiences.
9
+ The Creative Engine seamlessly integrates into any Node.js app whether you are building a photo editor, template-based design tool or scalable automation of content creation for your application.
9
10
 
10
- This package contains the Node.JS version of the Creative Engine, the core of
11
- our SDK. It is suitable for integrating image processing and editing into
12
- SwiftUI or UIKit applications.
13
-
14
- Visit our [website](https://img.ly/docs/cesdk) for more tutorials on how to integrate and
11
+ Visit our [documentation](https://img.ly/docs/cesdk) for more tutorials on how to integrate and
15
12
  customize the engine for your specific use case.
16
13
 
14
+ ## License
15
+ 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.
16
+
17
17
  ## Usage
18
18
 
19
19
  ## 1. Install the Creative Engine dependency to your project
package/index.d.ts CHANGED
@@ -1792,15 +1792,17 @@ export declare class BlockAPI {
1792
1792
  /**
1793
1793
  * Generate a thumbnail for the given video fill.
1794
1794
  * @param id - The video fill.
1795
- * @returns A thumbnail encoded as PNG with a height of 128px.
1795
+ * @returns A thumbnail encoded as JPEG with a height of 128px.
1796
1796
  */
1797
1797
  getVideoFillThumbnail(id: DesignBlockId): Promise<Blob>;
1798
1798
  /**
1799
- * Generate an 8x8 thumbnail atlas for the given video fill.
1799
+ * Generate a thumbnail atlas for the given video fill.
1800
1800
  * @param id - The video fill.
1801
- * @returns A thumbnail atlas of the video as PNG.
1801
+ * @param numberOfColumns - The number of columns to generate.
1802
+ * @param numberOfRows - The number of rows to generate.
1803
+ * @returns A thumbnail atlas of the video as JPEG.
1802
1804
  */
1803
- getVideoFillThumbnailAtlas(id: DesignBlockId): Promise<Blob>;
1805
+ getVideoFillThumbnailAtlas(id: DesignBlockId, numberOfColumns: number, numberOfRows: number): Promise<Blob>;
1804
1806
  }
1805
1807
 
1806
1808
  /** @public */
@@ -1957,6 +1959,7 @@ export declare enum DesignBlockType {
1957
1959
  Page = "//ly.img.ubq/page",
1958
1960
  Image = "//ly.img.ubq/image",
1959
1961
  Video = "//ly.img.ubq/video",
1962
+ Audio = "//ly.img.ubq/audio",
1960
1963
  Text = "//ly.img.ubq/text",
1961
1964
  Sticker = "//ly.img.ubq/sticker",
1962
1965
  VectorPath = "//ly.img.ubq/vector_path",
@@ -2048,14 +2051,14 @@ export declare class EditorAPI {
2048
2051
  onSettingsChanged(callback: () => void): () => void;
2049
2052
  /**
2050
2053
  * Set a boolean setting.
2051
- * @param keypath - The settings keypath, e.g. `ubq://doubleClickToCropEnabled`
2054
+ * @param keypath - The settings keypath, e.g. `doubleClickToCropEnabled`
2052
2055
  * @param value - The value to set.
2053
2056
  * @throws An error, if the keypath is invalid.
2054
2057
  */
2055
2058
  setSettingBool(keypath: string, value: boolean): void;
2056
2059
  /**
2057
2060
  * Get a boolean setting.
2058
- * @param keypath - The settings keypath, e.g. `ubq://doubleClickToCropEnabled`
2061
+ * @param keypath - The settings keypath, e.g. `doubleClickToCropEnabled`
2059
2062
  * @throws An error, if the keypath is invalid.
2060
2063
  */
2061
2064
  getSettingBool(keypath: string): boolean;
@@ -2074,33 +2077,33 @@ export declare class EditorAPI {
2074
2077
  getSettingInt(keypath: string): number;
2075
2078
  /**
2076
2079
  * Set a float setting.
2077
- * @param keypath - The settings keypath, e.g. `ubq://positionSnappingThreshold`
2080
+ * @param keypath - The settings keypath, e.g. `positionSnappingThreshold`
2078
2081
  * @param value - The value to set.
2079
2082
  * @throws An error, if the keypath is invalid.
2080
2083
  */
2081
2084
  setSettingFloat(keypath: string, value: number): void;
2082
2085
  /**
2083
2086
  * Get a float setting.
2084
- * @param keypath - The settings keypath, e.g. `ubq://positionSnappingThreshold`
2087
+ * @param keypath - The settings keypath, e.g. `positionSnappingThreshold`
2085
2088
  * @throws An error, if the keypath is invalid.
2086
2089
  */
2087
2090
  getSettingFloat(keypath: string): number;
2088
2091
  /**
2089
2092
  * Set a string setting.
2090
- * @param keypath - The settings keypath, e.g. `ubq://license`
2093
+ * @param keypath - The settings keypath, e.g. `license`
2091
2094
  * @param value - The value to set.
2092
2095
  * @throws An error, if the keypath is invalid.
2093
2096
  */
2094
2097
  setSettingString(keypath: string, value: string): void;
2095
2098
  /**
2096
2099
  * Get a string setting.
2097
- * @param keypath - The settings keypath, e.g. `ubq://license`
2100
+ * @param keypath - The settings keypath, e.g. `license`
2098
2101
  * @throws An error, if the keypath is invalid.
2099
2102
  */
2100
2103
  getSettingString(keypath: string): string;
2101
2104
  /**
2102
2105
  * Set a color setting.
2103
- * @param keypath - The settings keypath, e.g. `ubq://highlightColor`.
2106
+ * @param keypath - The settings keypath, e.g. `highlightColor`.
2104
2107
  * @param r - The red color component in the range of 0 to 1.
2105
2108
  * @param g - The green color component in the range of 0 to 1.
2106
2109
  * @param b - The blue color component in the range of 0 to 1.
@@ -2109,19 +2112,19 @@ export declare class EditorAPI {
2109
2112
  setSettingColorRGBA(keypath: string, r: number, g: number, b: number, a?: number): void;
2110
2113
  /**
2111
2114
  * Get a color setting.
2112
- * @param keypath - The settings keypath, e.g. `ubq://highlightColor`.
2115
+ * @param keypath - The settings keypath, e.g. `highlightColor`.
2113
2116
  * @returns A tuple of channels red, green, blue and alpha in the range of 0 to 1.
2114
2117
  */
2115
2118
  getSettingColorRGBA(keypath: string): RGBA;
2116
2119
  /**
2117
2120
  * Set an enum setting.
2118
- * @param keypath - The settings keypath, e.g. `ubq://role`.
2121
+ * @param keypath - The settings keypath, e.g. `role`.
2119
2122
  * @param value - The enum value as string.
2120
2123
  */
2121
2124
  setSettingEnum(keypath: string, value: string): void;
2122
2125
  /**
2123
2126
  * Get an enum setting.
2124
- * @param keypath - The settings keypath, e.g. `ubq://role`.
2127
+ * @param keypath - The settings keypath, e.g. `role`.
2125
2128
  * @returns The value as string.
2126
2129
  */
2127
2130
  getSettingEnum(keypath: string): string;
@@ -2135,7 +2138,7 @@ export declare class EditorAPI {
2135
2138
  setURIResolver(resolver: (URI: string) => string): void;
2136
2139
  /**
2137
2140
  * This is the default implementation for the URI resolver.
2138
- * It resolves the given path relative to the `ubq://basePath` setting.
2141
+ * It resolves the given path relative to the `basePath` setting.
2139
2142
  * @param relativePath - The relative path that should be resolved.
2140
2143
  * @returns The resolved absolute URI.
2141
2144
  */
@@ -2143,7 +2146,7 @@ export declare class EditorAPI {
2143
2146
  /**
2144
2147
  * Resolves the given path.
2145
2148
  * If a custom resolver has been set with `setURIResolver`, it invokes it with the given path.
2146
- * Else, it resolves it as relative to the `ubq://basePath` setting.
2149
+ * Else, it resolves it as relative to the `basePath` setting.
2147
2150
  * This performs NO validation of whether a file exists at the specified location.
2148
2151
  * @param relativePath - A relative path string
2149
2152
  * @returns The resolved absolute uri or an error if an invalid path was given.