presenter 0.7.4 → 0.8.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.
@@ -6,4 +6,5 @@ export interface BrowserCanvasRendererProps {
6
6
  readonly element: HTMLElement;
7
7
  readonly objectRenderers: Record<string, BrowserCanvasObjectRenderer<SlideObject>>;
8
8
  readonly cacheDurationMinutes: number;
9
+ readonly scale: number;
9
10
  }
@@ -6,4 +6,5 @@ export interface Update<T extends SlideObject> extends BaseUnitSlideAnimation {
6
6
  readonly object: T;
7
7
  readonly props: Partial<Omit<T, "objectType">>;
8
8
  }
9
- export declare function Update<T extends SlideObject>(object: T, props: Partial<Omit<T, "objectType">>): Update<T>;
9
+ export type UpdateParams<T extends SlideObject> = Partial<Omit<Update<T>, "object" | "props">>;
10
+ export declare function Update<T extends SlideObject>(object: T, props: Partial<Omit<T, "objectType">>, updateParams?: UpdateParams<T>): Update<T>;
@@ -1,7 +1,7 @@
1
1
  import { Circle } from '../../../objects/Circle';
2
2
  import { UnifiedPath2D } from '../../../renderer/browser-canvas/types/UnifiedPath2D';
3
3
  /**
4
- * Returns a circle path that is smaller than the original by half the border width.
4
+ * Returns a circle path that is smaller than the original by half the stroke width.
5
5
  * This is used as a clip region when drawing semi-transparent shapes.
6
6
  */
7
7
  export declare function getCircleInsetFillPath(circle: Circle, createPath: () => UnifiedPath2D): UnifiedPath2D | undefined;
@@ -1,7 +1,7 @@
1
1
  import { Rectangle } from '../../../objects/Rectangle';
2
2
  import { UnifiedPath2D } from '../../../renderer/browser-canvas/types/UnifiedPath2D';
3
3
  /**
4
- * Returns a rectangle path that is smaller than the original by half the border width
4
+ * Returns a rectangle path that is smaller than the original by half the stroke width
5
5
  * on each side. This is used as a clip region when drawing semi-transparent shapes.
6
6
  */
7
7
  export declare function getRectangleInsetFillPath(rectangle: Rectangle, createPath: () => UnifiedPath2D): UnifiedPath2D | undefined;
@@ -2,4 +2,4 @@ import { UnifiedPath2D } from '../../../renderer/browser-canvas/types/UnifiedPat
2
2
  import { PathWithLength } from '../../../types/PathWithLength';
3
3
  import { Position } from '../../../types/Position';
4
4
  import { Size } from '../../../types/Size';
5
- export declare function getRoundedRectanglePath(origin: Position, size: Size, rounding: number, createPath: () => UnifiedPath2D, overshoot?: number): PathWithLength;
5
+ export declare function getRoundedRectanglePath(origin: Position, size: Size, cornerRadius: number, createPath: () => UnifiedPath2D, overshoot?: number): PathWithLength;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "presenter",
3
- "version": "0.7.4",
3
+ "version": "0.8.0",
4
4
  "description": "A JavaScript presentation library",
5
5
  "main": "dist/presenter.js",
6
6
  "types": "dist/index.d.ts",