Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "getPos"

Index

Interfaces

Type aliases

Functions

Type aliases

PosRule

PosRule: "cover" | "contain" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "center"

Size / position algorythms

Prop

Functions

getPos

  • Get image size according to the selected rules. Note that the resources must be loaded before applying sizes to them.

    Parameters

    Returns Pos