14.0.0 • Published 2 years ago

angular-aspect-container v14.0.0

Weekly downloads
21
License
-
Repository
github
Last release
2 years ago

AngularAspectContainer

Used to create containers with a certain aspect ratio.

Usage

HTML-Template

<lib-ac-ratio
  id="full-aspect-wrapper"
  [targetRatio]="16 / 9"
  [sizingMode]="AcSizingMode.MATCH_PARENT"
  [horizontalAlignment]="AcHorizontalAlignment.CENTER"
  [verticalAlignment]="AcVerticalAlignment.CENTER"
>
  <div id="full-aspect-content"></div>
</lib-ac-ratio>

Style

#full-aspect-wrapper
    width: 100vw
    height: 100vh
    background-color: #505050

#full-aspect-content
    min-width: 100%
    min-height: 100%
    background-color: blue

Example

An Angular example can be found here: angular-aspect-container-example

13.0.2

2 years ago

14.0.0

2 years ago

13.0.1

2 years ago

0.13.1

2 years ago

0.13.2

2 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago