presenter 0.6.4 → 0.7.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/animations/FadeIn.d.ts +2 -2
- package/dist/animations/FadeOut.d.ts +2 -2
- package/dist/animations/Hide.d.ts +2 -2
- package/dist/animations/Show.d.ts +2 -2
- package/dist/export/image-renderer/ImageRenderer.d.ts +2 -2
- package/dist/export/image-renderer/types/ImageRendererProps.d.ts +3 -3
- package/dist/export/image-renderer/types/ImageRendererState.d.ts +1 -1
- package/dist/export/index.d.ts +3 -3
- package/dist/export/pdf-renderer/PDFRenderer.d.ts +3 -3
- package/dist/export/pdf-renderer/types/PDFRendererProps.d.ts +3 -3
- package/dist/export/pdf-renderer/types/PDFRendererState.d.ts +1 -1
- package/dist/export/powerpoint-renderer/PowerPointRenderer.d.ts +4 -4
- package/dist/export/powerpoint-renderer/objects/renderArrow.d.ts +2 -2
- package/dist/export/powerpoint-renderer/objects/renderCircle.d.ts +2 -2
- package/dist/export/powerpoint-renderer/objects/renderGroup.d.ts +2 -2
- package/dist/export/powerpoint-renderer/objects/renderImage.d.ts +2 -2
- package/dist/export/powerpoint-renderer/objects/renderLine.d.ts +2 -2
- package/dist/export/powerpoint-renderer/objects/renderPath.d.ts +2 -2
- package/dist/export/powerpoint-renderer/objects/renderPolygon.d.ts +2 -2
- package/dist/export/powerpoint-renderer/objects/renderRectangle.d.ts +2 -2
- package/dist/export/powerpoint-renderer/objects/renderText.d.ts +2 -2
- package/dist/export/powerpoint-renderer/types/PowerPointObjectRenderer.d.ts +4 -4
- package/dist/export/powerpoint-renderer/types/PowerPointRendererProps.d.ts +3 -3
- package/dist/export/powerpoint-renderer/utils/defaultObjectRenderers.d.ts +3 -3
- package/dist/export/powerpoint-renderer/utils/getPptxFillColor.d.ts +1 -1
- package/dist/export/powerpoint-renderer/utils/getPptxText.d.ts +3 -3
- package/dist/export/powerpoint-renderer/utils/getTransformedBoundingBox.d.ts +5 -5
- package/dist/export/utils/createCanvasElement.d.ts +2 -2
- package/dist/export/utils/createPath2D.d.ts +1 -1
- package/dist/export/utils/loadPresentationImages.d.ts +1 -1
- package/dist/export.js +123 -1
- package/dist/export.mjs +5897 -0
- package/dist/extras/IFrame.d.ts +3 -3
- package/dist/extras/ScreenCapture.d.ts +3 -3
- package/dist/index.d.ts +51 -51
- package/dist/navigator/openNavigator.d.ts +1 -1
- package/dist/objects/Arrow.d.ts +3 -3
- package/dist/objects/Circle.d.ts +4 -4
- package/dist/objects/Grid.d.ts +3 -3
- package/dist/objects/Group.d.ts +4 -4
- package/dist/objects/Image.d.ts +3 -3
- package/dist/objects/Line.d.ts +3 -3
- package/dist/objects/Mask.d.ts +3 -3
- package/dist/objects/Path.d.ts +4 -4
- package/dist/objects/Polygon.d.ts +4 -4
- package/dist/objects/Rectangle.d.ts +4 -4
- package/dist/objects/Text.d.ts +7 -7
- package/dist/presenter.js +5 -1
- package/dist/presenter.mjs +3332 -0
- package/dist/renderer/browser-canvas/BrowserCanvasRenderer.d.ts +2 -2
- package/dist/renderer/browser-canvas/objects/renderArrow.d.ts +2 -2
- package/dist/renderer/browser-canvas/objects/renderCircle.d.ts +2 -2
- package/dist/renderer/browser-canvas/objects/renderGroup.d.ts +2 -2
- package/dist/renderer/browser-canvas/objects/renderImage.d.ts +2 -2
- package/dist/renderer/browser-canvas/objects/renderLine.d.ts +2 -2
- package/dist/renderer/browser-canvas/objects/renderMask.d.ts +2 -2
- package/dist/renderer/browser-canvas/objects/renderPath.d.ts +2 -2
- package/dist/renderer/browser-canvas/objects/renderPolygon.d.ts +2 -2
- package/dist/renderer/browser-canvas/objects/renderRectangle.d.ts +2 -2
- package/dist/renderer/browser-canvas/objects/renderText.d.ts +2 -2
- package/dist/renderer/browser-canvas/types/BrowserCanvasObjectRenderer.d.ts +4 -4
- package/dist/renderer/browser-canvas/types/BrowserCanvasRendererProps.d.ts +3 -3
- package/dist/renderer/browser-canvas/types/BrowserCanvasRendererState.d.ts +2 -2
- package/dist/renderer/browser-canvas/types/UnifiedCanvasContext.d.ts +1 -1
- package/dist/renderer/browser-canvas/types/UnifiedImage.d.ts +1 -1
- package/dist/renderer/browser-canvas/types/UnifiedPath2D.d.ts +1 -1
- package/dist/renderer/browser-canvas/utils/clearCanvas.d.ts +1 -1
- package/dist/renderer/browser-canvas/utils/createCanvasElement.d.ts +1 -1
- package/dist/renderer/browser-canvas/utils/createPath2D.d.ts +1 -1
- package/dist/renderer/browser-canvas/utils/defaultObjectRenderers.d.ts +3 -3
- package/dist/renderer/browser-canvas/utils/drawStroke.d.ts +3 -3
- package/dist/renderer/browser-canvas/utils/extras/createExtrasElement.d.ts +1 -1
- package/dist/renderer/browser-canvas/utils/extras/mountWebExtra.d.ts +1 -1
- package/dist/renderer/browser-canvas/utils/fillPath.d.ts +3 -3
- package/dist/renderer/browser-canvas/utils/getPathFromPoints.d.ts +3 -3
- package/dist/renderer/browser-canvas/utils/getSizeFromTextMetrics.d.ts +1 -1
- package/dist/renderer/browser-canvas/utils/loadPresentationImages.d.ts +1 -1
- package/dist/renderer/browser-canvas/utils/text/getTextUnitMeasurements.d.ts +4 -4
- package/dist/renderer/browser-canvas/utils/text/setContextWithTextStyle.d.ts +2 -2
- package/dist/types/Animate.d.ts +5 -5
- package/dist/types/BaseUnitSlideAnimation.d.ts +1 -1
- package/dist/types/BoundingBox.d.ts +2 -2
- package/dist/types/Easing.d.ts +3 -3
- package/dist/types/PathWithLength.d.ts +1 -1
- package/dist/types/Pause.d.ts +2 -2
- package/dist/types/Presentation.d.ts +4 -4
- package/dist/types/Slide.d.ts +3 -3
- package/dist/types/SlideAnimation.d.ts +4 -4
- package/dist/types/SlideWebExtra.d.ts +1 -1
- package/dist/types/TextContent.d.ts +1 -1
- package/dist/types/TextStyle.d.ts +3 -3
- package/dist/types/TextUnit.d.ts +1 -1
- package/dist/types/Update.d.ts +3 -3
- package/dist/utils/animate/getSlideAnimationDuration.d.ts +1 -1
- package/dist/utils/animate/updateObjectStateWithAnimation.d.ts +2 -2
- package/dist/utils/color/Opaque.d.ts +1 -1
- package/dist/utils/color/Transparent.d.ts +1 -1
- package/dist/utils/color/getAlphaForColor.d.ts +1 -1
- package/dist/utils/color/getHexStringForColor.d.ts +1 -1
- package/dist/utils/color/getRgbStringForColor.d.ts +1 -1
- package/dist/utils/interpolate/defaultInterpolators.d.ts +1 -1
- package/dist/utils/interpolate/getSmoothPathInterpolator.d.ts +1 -1
- package/dist/utils/interpolate/interpolate.d.ts +2 -2
- package/dist/utils/interpolate/interpolateColor.d.ts +2 -2
- package/dist/utils/interpolate/interpolateFallback.d.ts +1 -1
- package/dist/utils/interpolate/interpolateNumber.d.ts +1 -1
- package/dist/utils/layout/getBoundingBox.d.ts +4 -4
- package/dist/utils/layout/getLineBoundingBox.d.ts +1 -1
- package/dist/utils/layout/getSizingFunctions.d.ts +2 -2
- package/dist/utils/objects/arrow/getArrowPoints.d.ts +2 -2
- package/dist/utils/objects/circle/getCirclePath.d.ts +3 -3
- package/dist/utils/objects/line/getLinePath.d.ts +3 -3
- package/dist/utils/objects/polygon/getPolygonPath.d.ts +3 -3
- package/dist/utils/objects/rectangle/getRectanglePath.d.ts +3 -3
- package/dist/utils/objects/rectangle/getRoundedRectanglePath.d.ts +4 -4
- package/dist/utils/objects/text/getTextContentLength.d.ts +1 -1
- package/dist/utils/objects/text/getTextStyleFromText.d.ts +2 -2
- package/dist/utils/objects/text/getTextUnitsFromTextContent.d.ts +2 -2
- package/dist/utils/presentation/createPresentationContainer.d.ts +1 -1
- package/dist/utils/presentation/getObjectChildren.d.ts +1 -1
- package/dist/utils/presentation/getObjectState.d.ts +2 -2
- package/dist/utils/presentation/getPresentationShortcuts.d.ts +2 -2
- package/dist/utils/presentation/setupKeyEventListeners.d.ts +2 -2
- package/dist/utils/size/getCombinedSizes2D.d.ts +1 -1
- package/dist/utils/slide/getKeySlideBuildIndices.d.ts +1 -1
- package/dist/utils/storage/loadPresentationState.d.ts +2 -2
- package/dist/utils/storage/storePresentationState.d.ts +1 -1
- package/package.json +12 -10
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BrowserCanvasRendererProps } from
|
|
2
|
-
import { BrowserCanvasRendererState } from
|
|
1
|
+
import { BrowserCanvasRendererProps } from './types/BrowserCanvasRendererProps';
|
|
2
|
+
import { BrowserCanvasRendererState } from './types/BrowserCanvasRendererState';
|
|
3
3
|
export declare class BrowserCanvasRenderer {
|
|
4
4
|
props: BrowserCanvasRendererProps;
|
|
5
5
|
state: BrowserCanvasRendererState;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Arrow } from
|
|
2
|
-
import { BrowserCanvasObjectRenderer } from
|
|
1
|
+
import { Arrow } from '../../../objects/Arrow';
|
|
2
|
+
import { BrowserCanvasObjectRenderer } from '../types/BrowserCanvasObjectRenderer';
|
|
3
3
|
export declare const renderArrow: BrowserCanvasObjectRenderer<Arrow>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Circle } from
|
|
2
|
-
import { BrowserCanvasObjectRenderer } from
|
|
1
|
+
import { Circle } from '../../../objects/Circle';
|
|
2
|
+
import { BrowserCanvasObjectRenderer } from '../types/BrowserCanvasObjectRenderer';
|
|
3
3
|
export declare const renderCircle: BrowserCanvasObjectRenderer<Circle>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Group } from
|
|
2
|
-
import { BrowserCanvasObjectRenderer } from
|
|
1
|
+
import { Group } from '../../../objects/Group';
|
|
2
|
+
import { BrowserCanvasObjectRenderer } from '../types/BrowserCanvasObjectRenderer';
|
|
3
3
|
export declare const renderGroup: BrowserCanvasObjectRenderer<Group>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Image } from
|
|
2
|
-
import { BrowserCanvasObjectRenderer } from
|
|
1
|
+
import { Image } from '../../../objects/Image';
|
|
2
|
+
import { BrowserCanvasObjectRenderer } from '../types/BrowserCanvasObjectRenderer';
|
|
3
3
|
export declare const renderImage: BrowserCanvasObjectRenderer<Image>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Line } from
|
|
2
|
-
import { BrowserCanvasObjectRenderer } from
|
|
1
|
+
import { Line } from '../../../objects/Line';
|
|
2
|
+
import { BrowserCanvasObjectRenderer } from '../types/BrowserCanvasObjectRenderer';
|
|
3
3
|
export declare const renderLine: BrowserCanvasObjectRenderer<Line>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Mask } from
|
|
2
|
-
import { BrowserCanvasObjectRenderer } from
|
|
1
|
+
import { Mask } from '../../../objects/Mask';
|
|
2
|
+
import { BrowserCanvasObjectRenderer } from '../types/BrowserCanvasObjectRenderer';
|
|
3
3
|
export declare const renderMask: BrowserCanvasObjectRenderer<Mask>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Path } from
|
|
2
|
-
import { BrowserCanvasObjectRenderer } from
|
|
1
|
+
import { Path } from '../../../objects/Path';
|
|
2
|
+
import { BrowserCanvasObjectRenderer } from '../types/BrowserCanvasObjectRenderer';
|
|
3
3
|
export declare const renderPath: BrowserCanvasObjectRenderer<Path>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Polygon } from
|
|
2
|
-
import { BrowserCanvasObjectRenderer } from
|
|
1
|
+
import { Polygon } from '../../../objects/Polygon';
|
|
2
|
+
import { BrowserCanvasObjectRenderer } from '../types/BrowserCanvasObjectRenderer';
|
|
3
3
|
export declare const renderPolygon: BrowserCanvasObjectRenderer<Polygon>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Rectangle } from
|
|
2
|
-
import { BrowserCanvasObjectRenderer } from
|
|
1
|
+
import { Rectangle } from '../../../objects/Rectangle';
|
|
2
|
+
import { BrowserCanvasObjectRenderer } from '../types/BrowserCanvasObjectRenderer';
|
|
3
3
|
export declare const renderRectangle: BrowserCanvasObjectRenderer<Rectangle>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Text } from
|
|
2
|
-
import { BrowserCanvasObjectRenderer } from
|
|
1
|
+
import { Text } from '../../../objects/Text';
|
|
2
|
+
import { BrowserCanvasObjectRenderer } from '../types/BrowserCanvasObjectRenderer';
|
|
3
3
|
export declare const renderText: BrowserCanvasObjectRenderer<Text>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SlideObject } from
|
|
2
|
-
import { UnifiedCanvasContext } from
|
|
3
|
-
import { UnifiedImage } from
|
|
4
|
-
import { UnifiedPath2D } from
|
|
1
|
+
import { SlideObject } from '../../../types/SlideObject';
|
|
2
|
+
import { UnifiedCanvasContext } from './UnifiedCanvasContext';
|
|
3
|
+
import { UnifiedImage } from './UnifiedImage';
|
|
4
|
+
import { UnifiedPath2D } from './UnifiedPath2D';
|
|
5
5
|
export interface BrowserCanvasObjectRendererArgs<T extends SlideObject> {
|
|
6
6
|
readonly ctx: UnifiedCanvasContext;
|
|
7
7
|
readonly object: T;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Presentation } from
|
|
2
|
-
import { SlideObject } from
|
|
3
|
-
import { BrowserCanvasObjectRenderer } from
|
|
1
|
+
import { Presentation } from '../../../types/Presentation';
|
|
2
|
+
import { SlideObject } from '../../../types/SlideObject';
|
|
3
|
+
import { BrowserCanvasObjectRenderer } from './BrowserCanvasObjectRenderer';
|
|
4
4
|
export interface BrowserCanvasRendererProps {
|
|
5
5
|
readonly presentation: Presentation;
|
|
6
6
|
readonly element: HTMLElement;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ShortcutState } from
|
|
2
|
-
import { UnifiedImage } from
|
|
1
|
+
import { ShortcutState } from '../../../types/ShortcutState';
|
|
2
|
+
import { UnifiedImage } from './UnifiedImage';
|
|
3
3
|
export interface BrowserCanvasRendererState {
|
|
4
4
|
canvas: HTMLCanvasElement | null;
|
|
5
5
|
extrasContainer: SVGSVGElement | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CanvasRenderingContext2D as SkiaCanvasRenderingContext2D } from 'skia-canvas';
|
|
2
2
|
export declare const CanvasContextType: {
|
|
3
3
|
readonly Browser: "browser";
|
|
4
4
|
readonly Node: "node";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { UnifiedCanvasContext } from
|
|
1
|
+
import { UnifiedCanvasContext } from '../types/UnifiedCanvasContext';
|
|
2
2
|
export declare function clearCanvas(canvas: HTMLCanvasElement, ctx: UnifiedCanvasContext): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Size } from
|
|
1
|
+
import { Size } from '../../../types/Size';
|
|
2
2
|
export declare function createCanvasElement(size: Size): HTMLCanvasElement;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { UnifiedPath2D } from
|
|
1
|
+
import { UnifiedPath2D } from '../types/UnifiedPath2D';
|
|
2
2
|
export declare function createPath2D(pathData?: string | undefined): UnifiedPath2D;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ObjectType } from
|
|
2
|
-
import { SlideObject } from
|
|
3
|
-
import { BrowserCanvasObjectRenderer } from
|
|
1
|
+
import { ObjectType } from '../../../types/ObjectType';
|
|
2
|
+
import { SlideObject } from '../../../types/SlideObject';
|
|
3
|
+
import { BrowserCanvasObjectRenderer } from '../types/BrowserCanvasObjectRenderer';
|
|
4
4
|
type ObjectRendererMap = {
|
|
5
5
|
[T in ObjectType]: BrowserCanvasObjectRenderer<SlideObject & {
|
|
6
6
|
objectType: T;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Color } from
|
|
2
|
-
import { UnifiedCanvasContext } from
|
|
3
|
-
import { UnifiedPath2D } from
|
|
1
|
+
import { Color } from '../../../types/Color';
|
|
2
|
+
import { UnifiedCanvasContext } from '../types/UnifiedCanvasContext';
|
|
3
|
+
import { UnifiedPath2D } from '../types/UnifiedPath2D';
|
|
4
4
|
interface Args {
|
|
5
5
|
readonly color: Color;
|
|
6
6
|
readonly ctx: UnifiedCanvasContext;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SlideWebExtra } from
|
|
1
|
+
import { SlideWebExtra } from '../../../../types/SlideWebExtra';
|
|
2
2
|
export declare function mountWebExtra(container: SVGSVGElement | null, extra: SlideWebExtra): (() => void) | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Color } from
|
|
2
|
-
import { UnifiedCanvasContext } from
|
|
3
|
-
import { UnifiedPath2D } from
|
|
1
|
+
import { Color } from '../../../types/Color';
|
|
2
|
+
import { UnifiedCanvasContext } from '../types/UnifiedCanvasContext';
|
|
3
|
+
import { UnifiedPath2D } from '../types/UnifiedPath2D';
|
|
4
4
|
interface Args {
|
|
5
5
|
readonly ctx: UnifiedCanvasContext;
|
|
6
6
|
readonly path: UnifiedPath2D | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PathWithLength } from
|
|
2
|
-
import { Position } from
|
|
3
|
-
import { UnifiedPath2D } from
|
|
1
|
+
import { PathWithLength } from '../../../types/PathWithLength';
|
|
2
|
+
import { Position } from '../../../types/Position';
|
|
3
|
+
import { UnifiedPath2D } from '../types/UnifiedPath2D';
|
|
4
4
|
export declare function getPathFromPositions(positions: Position[], createPath: () => UnifiedPath2D): PathWithLength;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Size } from
|
|
1
|
+
import { Size } from '../../../types/Size';
|
|
2
2
|
export declare function getSizeFromTextMetrics(textMetrics: TextMetrics): Size;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { UnifiedImage } from
|
|
1
|
+
import { UnifiedImage } from '../types/UnifiedImage';
|
|
2
2
|
export declare function loadPresentationImages(imagePathById: Record<string, string>): Promise<Record<string, UnifiedImage>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Size } from
|
|
2
|
-
import { TextStyle } from
|
|
3
|
-
import { TextUnit } from
|
|
4
|
-
import { UnifiedCanvasContext } from
|
|
1
|
+
import { Size } from '../../../../types/Size';
|
|
2
|
+
import { TextStyle } from '../../../../types/TextStyle';
|
|
3
|
+
import { TextUnit } from '../../../../types/TextUnit';
|
|
4
|
+
import { UnifiedCanvasContext } from '../../types/UnifiedCanvasContext';
|
|
5
5
|
export declare function getTextUnitMeasurements(textUnits: TextUnit[][], style: TextStyle, ctx: UnifiedCanvasContext): Size[][];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TextStyle } from
|
|
2
|
-
import { UnifiedCanvasContext } from
|
|
1
|
+
import { TextStyle } from '../../../../types/TextStyle';
|
|
2
|
+
import { UnifiedCanvasContext } from '../../types/UnifiedCanvasContext';
|
|
3
3
|
export declare function setContextWithTextStyle(ctx: UnifiedCanvasContext, textStyle: TextStyle, opacity?: number): void;
|
package/dist/types/Animate.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { AnimationType } from
|
|
2
|
-
import { BaseUnitSlideAnimation } from
|
|
3
|
-
import { EasingFunction } from
|
|
4
|
-
import { Interpolator } from
|
|
5
|
-
import { SlideObject } from
|
|
1
|
+
import { AnimationType } from './AnimationType';
|
|
2
|
+
import { BaseUnitSlideAnimation } from './BaseUnitSlideAnimation';
|
|
3
|
+
import { EasingFunction } from './EasingFunction';
|
|
4
|
+
import { Interpolator } from './Interpolator';
|
|
5
|
+
import { SlideObject } from './SlideObject';
|
|
6
6
|
export interface Animate<T extends SlideObject> extends BaseUnitSlideAnimation {
|
|
7
7
|
readonly type: typeof AnimationType.ANIMATE;
|
|
8
8
|
readonly object: T;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Position } from
|
|
2
|
-
import { Size } from
|
|
1
|
+
import { Position } from './Position';
|
|
2
|
+
import { Size } from './Size';
|
|
3
3
|
export interface BoundingBox {
|
|
4
4
|
/** The position of the top-left corner of the bounding box */
|
|
5
5
|
readonly origin: Position;
|
package/dist/types/Easing.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { easeCubic, easeCubicIn, easeCubicOut } from
|
|
2
|
-
import { EasingFunction } from
|
|
1
|
+
import { easeCubic, easeCubicIn, easeCubicOut } from 'd3-ease';
|
|
2
|
+
import { EasingFunction } from './EasingFunction';
|
|
3
3
|
export declare const Easing: {
|
|
4
4
|
readonly LINEAR: (t: number) => number;
|
|
5
5
|
readonly CUBIC: typeof easeCubic;
|
|
6
6
|
readonly CUBIC_IN: typeof easeCubicIn;
|
|
7
7
|
readonly CUBIC_OUT: typeof easeCubicOut;
|
|
8
|
-
readonly BACK_IN_OUT: import(
|
|
8
|
+
readonly BACK_IN_OUT: import('d3-ease').BackEasingFactory;
|
|
9
9
|
};
|
|
10
10
|
export declare const DEFAULT_EASING: EasingFunction;
|
package/dist/types/Pause.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AnimationType } from
|
|
2
|
-
import { BaseUnitSlideAnimation } from
|
|
1
|
+
import { AnimationType } from './AnimationType';
|
|
2
|
+
import { BaseUnitSlideAnimation } from './BaseUnitSlideAnimation';
|
|
3
3
|
export interface Pause extends BaseUnitSlideAnimation {
|
|
4
4
|
readonly type: typeof AnimationType.PAUSE;
|
|
5
5
|
readonly duration: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Color } from
|
|
2
|
-
import { Resources } from
|
|
3
|
-
import { Size } from
|
|
4
|
-
import { Slide } from
|
|
1
|
+
import { Color } from './Color';
|
|
2
|
+
import { Resources } from './Resources';
|
|
3
|
+
import { Size } from './Size';
|
|
4
|
+
import { Slide } from './Slide';
|
|
5
5
|
export interface Presentation {
|
|
6
6
|
/** The background color of the presentation. */
|
|
7
7
|
readonly backgroundColor: Color;
|
package/dist/types/Slide.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SlideAnimation } from
|
|
2
|
-
import { SlideObject } from
|
|
3
|
-
import { SlideWebExtra } from
|
|
1
|
+
import { SlideAnimation } from './SlideAnimation';
|
|
2
|
+
import { SlideObject } from './SlideObject';
|
|
3
|
+
import { SlideWebExtra } from './SlideWebExtra';
|
|
4
4
|
export interface Slide {
|
|
5
5
|
readonly objects: SlideObject[];
|
|
6
6
|
readonly animations: SlideAnimation[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Animate } from
|
|
2
|
-
import { Pause } from
|
|
3
|
-
import { SlideObject } from
|
|
4
|
-
import { Update } from
|
|
1
|
+
import { Animate } from './Animate';
|
|
2
|
+
import { Pause } from './Pause';
|
|
3
|
+
import { SlideObject } from './SlideObject';
|
|
4
|
+
import { Update } from './Update';
|
|
5
5
|
export type UnitSlideAnimation = Animate<SlideObject> | Update<SlideObject> | Pause;
|
|
6
6
|
export type SlideAnimation = UnitSlideAnimation | UnitSlideAnimation[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TextUnit } from
|
|
1
|
+
import { TextUnit } from './TextUnit';
|
|
2
2
|
export type TextContent = string | (TextUnit | string)[][];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Color } from
|
|
2
|
-
import { FontStyle } from
|
|
3
|
-
import { FontWeight } from
|
|
1
|
+
import { Color } from './Color';
|
|
2
|
+
import { FontStyle } from './FontStyle';
|
|
3
|
+
import { FontWeight } from './FontWeight';
|
|
4
4
|
export interface TextStyle {
|
|
5
5
|
readonly color: Color;
|
|
6
6
|
readonly fontFamily: string;
|
package/dist/types/TextUnit.d.ts
CHANGED
package/dist/types/Update.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AnimationType } from
|
|
2
|
-
import { BaseUnitSlideAnimation } from
|
|
3
|
-
import { SlideObject } from
|
|
1
|
+
import { AnimationType } from './AnimationType';
|
|
2
|
+
import { BaseUnitSlideAnimation } from './BaseUnitSlideAnimation';
|
|
3
|
+
import { SlideObject } from './SlideObject';
|
|
4
4
|
export interface Update<T extends SlideObject> extends BaseUnitSlideAnimation {
|
|
5
5
|
readonly type: typeof AnimationType.UPDATE;
|
|
6
6
|
readonly object: T;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SlideAnimation } from
|
|
1
|
+
import { SlideAnimation } from '../../types/SlideAnimation';
|
|
2
2
|
export declare function getSlideAnimationDuration(slideAnimation: SlideAnimation): number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SlideAnimation } from
|
|
2
|
-
import { SlideObject } from
|
|
1
|
+
import { SlideAnimation } from '../../types/SlideAnimation';
|
|
2
|
+
import { SlideObject } from '../../types/SlideObject';
|
|
3
3
|
/**
|
|
4
4
|
* Mutably updates the object state to reflect the end state of the animation.
|
|
5
5
|
*
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Color } from
|
|
1
|
+
import { Color } from '../../types/Color';
|
|
2
2
|
export declare function Opaque(color?: Color): Color;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Color } from
|
|
1
|
+
import { Color } from '../../types/Color';
|
|
2
2
|
export declare function Transparent(color?: Color): Color;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Color } from
|
|
1
|
+
import { Color } from '../../types/Color';
|
|
2
2
|
export declare function getHexStringForColor(color: Color, opacity?: number | null): string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Color } from
|
|
1
|
+
import { Color } from '../../types/Color';
|
|
2
2
|
export declare function getRgbStringForColor(color: Color, opacity?: number | null): string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Interpolator } from
|
|
1
|
+
import { Interpolator } from '../../types/Interpolator';
|
|
2
2
|
export declare const DEFAULT_INTERPOLATORS: Interpolator<unknown>[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Interpolator } from
|
|
1
|
+
import { Interpolator } from '../../types/Interpolator';
|
|
2
2
|
export declare function getSmoothPathInterpolator(fromPath: string, toPath: string, maxSegmentLength?: number): Interpolator<string>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Interpolator } from
|
|
2
|
-
import { SlideObject } from
|
|
1
|
+
import { Interpolator } from '../../types/Interpolator';
|
|
2
|
+
import { SlideObject } from '../../types/SlideObject';
|
|
3
3
|
export declare function interpolate<T extends SlideObject>(object: T, props: Partial<T>, proportion: number, customInterpolators?: Interpolator<unknown>[] | null): T;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Color } from
|
|
2
|
-
import { Interpolator } from
|
|
1
|
+
import { Color } from '../../types/Color';
|
|
2
|
+
import { Interpolator } from '../../types/Interpolator';
|
|
3
3
|
export declare const interpolateColor: Interpolator<Color>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Interpolator } from
|
|
1
|
+
import { Interpolator } from '../../types/Interpolator';
|
|
2
2
|
export declare const interpolateNumber: Interpolator<number>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Anchor } from
|
|
2
|
-
import { BoundingBox } from
|
|
3
|
-
import { Position } from
|
|
4
|
-
import { Size } from
|
|
1
|
+
import { Anchor } from '../../types/Anchor';
|
|
2
|
+
import { BoundingBox } from '../../types/BoundingBox';
|
|
3
|
+
import { Position } from '../../types/Position';
|
|
4
|
+
import { Size } from '../../types/Size';
|
|
5
5
|
export declare function getBoundingBox(position: Position, anchor: Anchor, size: Size): BoundingBox;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BoundingBox } from
|
|
1
|
+
import { BoundingBox } from '../../types/BoundingBox';
|
|
2
2
|
export declare function getLineBoundingBox(startX: number, startY: number, endX: number, endY: number): BoundingBox;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Position } from
|
|
2
|
-
import { Size } from
|
|
1
|
+
import { Position } from '../../types/Position';
|
|
2
|
+
import { Size } from '../../types/Size';
|
|
3
3
|
interface Return {
|
|
4
4
|
scaleX: (proportion: number) => number;
|
|
5
5
|
scaleY: (proportion: number) => number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Arrow } from
|
|
2
|
-
import { Position } from
|
|
1
|
+
import { Arrow } from '../../../objects/Arrow';
|
|
2
|
+
import { Position } from '../../../types/Position';
|
|
3
3
|
interface Return {
|
|
4
4
|
readonly arrowPoints: Position[];
|
|
5
5
|
readonly arrowheadPoints: Position[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Circle } from
|
|
2
|
-
import { UnifiedPath2D } from
|
|
3
|
-
import { PathWithLength } from
|
|
1
|
+
import { Circle } from '../../../objects/Circle';
|
|
2
|
+
import { UnifiedPath2D } from '../../../renderer/browser-canvas/types/UnifiedPath2D';
|
|
3
|
+
import { PathWithLength } from '../../../types/PathWithLength';
|
|
4
4
|
export declare function getCirclePath(circle: Circle, createPath: () => UnifiedPath2D): PathWithLength;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Line } from
|
|
2
|
-
import { UnifiedPath2D } from
|
|
3
|
-
import { PathWithLength } from
|
|
1
|
+
import { Line } from '../../../objects/Line';
|
|
2
|
+
import { UnifiedPath2D } from '../../../renderer/browser-canvas/types/UnifiedPath2D';
|
|
3
|
+
import { PathWithLength } from '../../../types/PathWithLength';
|
|
4
4
|
export declare function getLinePath(line: Line, createPath: () => UnifiedPath2D): PathWithLength;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Polygon } from
|
|
2
|
-
import { UnifiedPath2D } from
|
|
3
|
-
import { PathWithLength } from
|
|
1
|
+
import { Polygon } from '../../../objects/Polygon';
|
|
2
|
+
import { UnifiedPath2D } from '../../../renderer/browser-canvas/types/UnifiedPath2D';
|
|
3
|
+
import { PathWithLength } from '../../../types/PathWithLength';
|
|
4
4
|
export declare function getPolygonPath(polygon: Polygon, createPath: () => UnifiedPath2D): PathWithLength;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Rectangle } from
|
|
2
|
-
import { UnifiedPath2D } from
|
|
3
|
-
import { PathWithLength } from
|
|
1
|
+
import { Rectangle } from '../../../objects/Rectangle';
|
|
2
|
+
import { UnifiedPath2D } from '../../../renderer/browser-canvas/types/UnifiedPath2D';
|
|
3
|
+
import { PathWithLength } from '../../../types/PathWithLength';
|
|
4
4
|
export declare function getRectanglePath(rectangle: Rectangle, createPath: () => UnifiedPath2D): PathWithLength;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { UnifiedPath2D } from
|
|
2
|
-
import { PathWithLength } from
|
|
3
|
-
import { Position } from
|
|
4
|
-
import { Size } from
|
|
1
|
+
import { UnifiedPath2D } from '../../../renderer/browser-canvas/types/UnifiedPath2D';
|
|
2
|
+
import { PathWithLength } from '../../../types/PathWithLength';
|
|
3
|
+
import { Position } from '../../../types/Position';
|
|
4
|
+
import { Size } from '../../../types/Size';
|
|
5
5
|
export declare function getRoundedRectanglePath(origin: Position, size: Size, rounding: number, createPath: () => UnifiedPath2D, overshoot?: number): PathWithLength;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TextContent } from
|
|
1
|
+
import { TextContent } from '../../../types/TextContent';
|
|
2
2
|
export declare function getTextContentLength(text: TextContent): number;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Text } from
|
|
2
|
-
import { TextStyle } from
|
|
1
|
+
import { Text } from '../../../objects/Text';
|
|
2
|
+
import { TextStyle } from '../../../types/TextStyle';
|
|
3
3
|
export declare function getTextStyleFromText(text: Text): TextStyle;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TextContent } from
|
|
2
|
-
import { TextUnit } from
|
|
1
|
+
import { TextContent } from '../../../types/TextContent';
|
|
2
|
+
import { TextUnit } from '../../../types/TextUnit';
|
|
3
3
|
export declare function getTextUnitsFromTextContent(text: TextContent): TextUnit[][];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Presentation } from
|
|
1
|
+
import { Presentation } from '../../types/Presentation';
|
|
2
2
|
export declare function createPresentationContainer(presentation: Presentation, root: HTMLElement): HTMLDivElement;
|