presenter 0.8.8 → 0.9.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.
package/dist/index.d.ts CHANGED
@@ -14,6 +14,7 @@ export { Mask } from './objects/Mask';
14
14
  export { Path } from './objects/Path';
15
15
  export { Polygon } from './objects/Polygon';
16
16
  export { Rectangle } from './objects/Rectangle';
17
+ export { Spotlight } from './objects/Spotlight';
17
18
  export { SVG } from './objects/SVG';
18
19
  export { Text } from './objects/Text';
19
20
  export { BrowserCanvasRenderer } from './renderer/browser-canvas/BrowserCanvasRenderer';
@@ -42,6 +43,7 @@ export { SlideWebExtra } from './types/SlideWebExtra';
42
43
  export type { TextContent } from './types/TextContent';
43
44
  export { TextUnit } from './types/TextUnit';
44
45
  export { Update } from './types/Update';
46
+ export { Variable, type VariableProps } from './types/Variable';
45
47
  export { Opaque } from './utils/color/Opaque';
46
48
  export { Transparent } from './utils/color/Transparent';
47
49
  export { getSmoothPathInterpolator } from './utils/interpolate/getSmoothPathInterpolator';
@@ -0,0 +1,19 @@
1
+ import { Anchor } from '../types/Anchor';
2
+ import { Color } from '../types/Color';
3
+ import { ObjectType } from '../types/ObjectType';
4
+ import { SlideObject } from '../types/SlideObject';
5
+ export interface Spotlight extends SlideObject {
6
+ readonly objectType: typeof ObjectType.SPOTLIGHT;
7
+ readonly anchor: Anchor;
8
+ /** Overlay color; its alpha controls maximum dimming while opacity controls visibility. */
9
+ readonly color: Color;
10
+ readonly height: number;
11
+ readonly cornerRadius: number;
12
+ readonly width: number;
13
+ readonly x: number;
14
+ readonly y: number;
15
+ }
16
+ /**
17
+ * Dims the full slide while leaving this rectangle-shaped region clear.
18
+ */
19
+ export declare function Spotlight(props?: Partial<Spotlight> | null): Spotlight;