@cesdk/engine 1.8.0 → 1.9.0-preview.0

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.
@@ -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
 
package/index.d.ts CHANGED
@@ -373,6 +373,7 @@ 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>;
376
377
 
377
378
  }
378
379
 
@@ -1813,6 +1814,12 @@ export declare class BlockAPI {
1813
1814
  * @returns A thumbnail encoded as PNG with a height of 128px.
1814
1815
  */
1815
1816
  getVideoFillThumbnail(id: DesignBlockId): Promise<Blob>;
1817
+ /**
1818
+ * Generate an 8x8 thumbnail atlas for the given video fill.
1819
+ * @param id - The video fill.
1820
+ * @returns A thumbnail atlas of the video as PNG.
1821
+ */
1822
+ getVideoFillThumbnailAtlas(id: DesignBlockId): Promise<Blob>;
1816
1823
  }
1817
1824
 
1818
1825
  /**
@@ -2697,10 +2704,15 @@ export declare class SceneAPI {
2697
2704
  */
2698
2705
  saveToArchive(): Promise<Blob>;
2699
2706
  /**
2700
- * Create a new scene, along with its own camera.
2701
- * @returns The scenes handle.
2707
+ * Create a new design scene, along with its own camera.
2708
+ * @returns The scene's handle.
2702
2709
  */
2703
2710
  create(): DesignBlockId;
2711
+ /**
2712
+ * Create a new scene in video mode, along with its own camera and page stack.
2713
+ * @returns The scene's handle.
2714
+ */
2715
+ createVideo(): DesignBlockId;
2704
2716
  /**
2705
2717
  * Loads the given image and creates a scene with a single page showing the image.
2706
2718
  * Fetching the image may take an arbitrary amount of time, so the scene isn't immediately