Gathering detailed insights and metrics for @aloysius-software-factory/ng-image-fullscreen-view
Gathering detailed insights and metrics for @aloysius-software-factory/ng-image-fullscreen-view
Gathering detailed insights and metrics for @aloysius-software-factory/ng-image-fullscreen-view
Gathering detailed insights and metrics for @aloysius-software-factory/ng-image-fullscreen-view
An Angular responsive image fullscreen viewer. Also support youtube and mp4 video urls.
npm install @aloysius-software-factory/ng-image-fullscreen-view
Typescript
Module System
Node Version
NPM Version
SCSS (53.53%)
TypeScript (33.84%)
HTML (6.94%)
JavaScript (4.88%)
CSS (0.81%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
24 Stars
76 Commits
25 Forks
1 Watchers
10 Branches
4 Contributors
Updated on Dec 23, 2024
Latest Version
13.0.0
Package Id
@aloysius-software-factory/ng-image-fullscreen-view@13.0.0
Unpacked Size
340.69 kB
Size
61.72 kB
File Count
18
NPM Version
9.3.1
Node Version
18.14.0
Published on
Mar 08, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
2
An Angular responsive image fullscreen viewer. Also support youtube and mp4 video urls.
(Compatible with Angular Version: 11)
npm install ng-image-fullscreen-view
Import module in your app.module.ts
:
1import { NgImageFullscreenViewModule } from 'ng-image-fullscreen-view'; 2... 3 4@NgModule({ 5 declarations: [ 6 AppComponent 7 ], 8 imports: [ 9 NgImageFullscreenViewModule, 10 ... 11 ], 12 providers: [], 13 bootstrap: [AppComponent] 14}) 15 16export class AppModule { 17} 18
Add component in your template file :
1<img src="path-of-image.jpg" (click)="showLightbox(0)" /> 2 3<ng-image-fullscreen-view 4 [images]="imageObject" 5 [imageIndex]="selectedImageIndex" 6 [show]="showFlag" 7 (close)="closeEventHandler()"></ng-image-fullscreen-view>
Add closeEventHanler and showFlag conditions in your.component.ts
:
1export class AppComponent { 2 showFlag: boolean = false; 3 selectedImageIndex: number = -1; 4 5 constructor () {} 6 7 ... 8 9 showLightbox(index) { 10 this.selectedImageIndex = index; 11 this.showFlag = true; 12 } 13 14 closeEventHandler() { 15 this.showFlag = false; 16 this.currentIndex = -1; 17 } 18 19 ... 20} 21
ImageObject format
1imageObject: Array<object> = [{ 2 image: 'assets/img/slider/1.jpg', 3 }, { 4 image: 'assets/img/slider/1.jpg', 5 alt: 'alt of image', // Optional 6 title: 'title of image' // Optional: Show image with description text 7 }, { 8 image: '.../iOe/xHHf4nf8AE75h3j1x64ZmZ//Z==', // Support base64 image 9 title: 'Image title', //Optional: You can use this key if want to show image with title 10 alt: 'Image alt' //Optional: You can use this key if want to show image with alt 11 } 12];
Image, Youtube and MP4 url's object format
1imageObject: Array<object> = [{ 2 video: 'https://youtu.be/6pxRHBw-k8M' // Youtube url 3 }, 4 { 5 video: 'assets/video/movie.mp4', // MP4 Video url 6 }, 7 { 8 video: 'assets/video/movie2.mp4', 9 title: 'Image title' // Video with title 10 }, 11 { 12 image: 'assets/img/slider/1.jpg', 13 alt: 'Image alt' 14 } 15 ... 16];
Name | Type | Data Type | Description | Default |
---|---|---|---|---|
images | @Input | Array | Images array. | |
imageIndex | @Input | number | Selected image index. | 0 |
show | @Input | boolean | Image fullscreen popup visiable flag. | false |
infinite | @Input | boolean | Infinite sliding images if value is true. | false |
videoAutoPlay | @Input | boolean | Auto play popup video | false |
showVideoControls | @Input | boolean | Hide Youtube and MP4 video controls if value is false | true |
direction | @Input | string | Set text direction. You can pass rtl / ltr / auto | ltr |
paginationShow | @Input | boolean | Display pagination at bottom. | false |
animationSpeed | @Input | number | By this user can set slider animation speed. Minimum value is 0.1 second and Maximum value is 5 second. | 1 |
arrowKeyMove | @Input | boolean | Disable slider and popup image left/right move on arrow key press event, if value is false | true |
close | @Output | n/a | Executes when click on close. | n/a |
prevImage | @Output | n/a | Executes when click on previous arrow. | n/a |
nextImage | @Output | n/a | Executes when click on next arrow. | n/a |
As Angular itself, this module is released under the permissive MIT license.
Your contributions and suggestions are always welcome :)
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 2/6 approved changesets -- score normalized to 3
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
72 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More