Gathering detailed insights and metrics for @twogate/ngx-photo-gallery
Gathering detailed insights and metrics for @twogate/ngx-photo-gallery
Gathering detailed insights and metrics for @twogate/ngx-photo-gallery
Gathering detailed insights and metrics for @twogate/ngx-photo-gallery
PhotoGallery library for Angular based on PhotoSwipe.
npm install @twogate/ngx-photo-gallery
Typescript
Module System
Node Version
NPM Version
SCSS (53.6%)
TypeScript (32.78%)
JavaScript (7.87%)
HTML (5.76%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
12 Stars
41 Commits
4 Forks
2 Watchers
2 Branches
6 Contributors
Updated on Mar 25, 2025
Latest Version
1.8.1
Package Id
@twogate/ngx-photo-gallery@1.8.1
Unpacked Size
242.69 kB
Size
100.70 kB
File Count
22
NPM Version
10.9.0
Node Version
22.11.0
Published on
Dec 10, 2024
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
2
2
PhotoGallery library for Angular based on PhotoSwipe.
Install from npm:
npm install --save @twogate/ngx-photo-gallery
Add PhotoGalleryModule to NgModule imports:
1import { PhotoGalleryModule } from '@twogate/ngx-photo-gallery' 2 3@NgModule({ 4 ... 5 imports: [PhotoGalleryModule, ...] 6 ... 7})
with options (PhotoSwipeOptions):
1import { PhotoGalleryModule } from '@twogate/ngx-photo-gallery' 2 3@NgModule({ 4 ... 5 imports: [PhotoGalleryModule.forRoot({ 6 defaultOptions: { 7 arrowEl: true, 8 indexIndicatorSep: '-' 9 } 10 }), ...] 11 ... 12})
simple use:
1<div class="images" photoGalleryGroup> 2 <div class="images-item" [photoGallery]="image1.originUrl"> 3 <img [src]="image1.thumbnailUrl" /> 4 </div> 5 <div class="images-item" [photoGallery]="image2.originUrl"> 6 <img [src]="image2.thumbnailUrl" /> 7 </div> 8 <div class="images-item" [photoGallery]="image3.originUrl"> 9 <img [src]="image3.thumbnailUrl" /> 10 </div> 11</div>
with options (PhotoSwipeOptions):
1<div class="products" [photoGalleryGroup]="{ arrowEl: true, indexIndicatorSep: ' - ' }"> 2 <div class="products-item"> 3 <div class="products-item-name">{{ product1.name }}</div> 4 <div class="products-item-image" [photoGallery]="product1.image.originUrl"> 5 <img [src]="product1.image.thumbnailUrl" /> 6 </div> 7 </div> 8 <div class="products-item"> 9 <div class="products-item-name">{{ product2.name }}</div> 10 <div class="products-item-image" [photoGallery]="product2.image.originUrl"> 11 <img [src]="product2.image.thumbnailUrl" /> 12 </div> 13 </div> 14</div>
on Ionic project:
1<div 2 class="images" 3 photoGalleryGroup 4 (onPhotoGalleryInit)="setSwipeBackEnabled(false)" 5 (onPhotoGalleryDestroy)="setSwipeBackEnabled(true)" 6> 7 <div class="images-item" 8 *ngFor="let image of images" 9 [photoGallery]="image.originUrl" 10 > 11 <img [src]="image.thumbnailUrl" /> 12 </div> 13</div>
1import { Component, Input } from '@angular/core' 2import { NavController } from 'ionic-angular' 3 4@Component({ 5... 6}) 7export class AppComponent { 8 images = [...] 9 10 constructor(private navCtrl: NavController) {} 11 12 setSwipeBackEnabled(value: boolean) { 13 this.navCtrl.swipeBackEnabled = value 14 } 15}
Move to twogate/ngx-photo-gallery-v0
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 3/17 approved changesets -- score normalized to 1
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
license 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
34 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
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