Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for custom ProgressiveImage equivalents #18

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Jun 7, 2018

  1. Add support for custom ProgressiveImage equivalents

    The imageType option can be set to another prototype that provides the
    same API as ProgressiveImage, which can be expressed in TypeScript as
    
    ```
    interface ProgressiveImage {
        aspectRatio: number;
        style: ProgressiveImageStyle;
    
        load(): void;
        hide(): void;
    }
    
    interface ProgressiveImageStyle {
        width: number;
        height: number;
        translateX: number;
        translateY: number;
        transition: string;
    }
    ```
    Ortham committed Jun 7, 2018
    Configuration menu
    Copy the full SHA
    3fb9a26 View commit details
    Browse the repository at this point in the history
  2. Don't hardcode the figure children as img elements for styling

    They're <img /> elements for ProgressiveImage, but might not be for
    custom alternatives.
    Ortham committed Jun 7, 2018
    Configuration menu
    Copy the full SHA
    4ae79a8 View commit details
    Browse the repository at this point in the history