
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
angular-material-image-overlay
Advanced tools
angular-material-image-overlay ============================== An image overlay based on [Angular Material](https://material.angular.io/). Try out the [demo page](https://rafasantos.github.io/angular-material-image-overlay/)
An image overlay based on Angular Material. Try out the demo page
Install the package:
npm install angular-material-image-overlay
Configure your angular application module (e.g: app.module.ts
):
...
import { AngularMaterialImageOverlayModule, AngularMaterialImageOverlayComponent } from 'angular-material-image-overlay';
@NgModule({
...
imports: [
...
AngularMaterialImageOverlayModule
]
})
export class AppModule { }
Open the images via AngularMaterialImageOverlayService.open(imageUrls: string[])
imageUrls = [
'https://plixs.com/public/uploads/preview/plixs-photo-31231544218415smhm2g5a1u.jpg',
'https://plixs.com/public/uploads/preview/rope-node-solid-maritime-4361524216895fj1pvztgd1.jpg',
'https://plixs.com/public/uploads/preview/plixs-photo-31231544218168fgcal7xkxe.jpg',
'https://plixs.com/public/uploads/preview/plixs-photo-31231544217590vwh6204yse.jpg'
];
constructor(private imageOverlayService: AngularMaterialImageOverlayService) {
}
openImageOverlay(): void {
this.imageOverlayService.open(this.imageUrls);
}
Demo project to show case how angular-material-image-overlay
works.
git clone https://github.com/rafasantos/angular-material-image-overlay.git
cd angular-material-image-overlay
npm start
Navigate to http://localhost:4200
${APP_ROOT_FOLDER}
references the root folder of the application typically the git repository root folder.
Build the project and override the local angular-material-image-overlay
installation. Userfull when you want to make changes to the project and test it locally.
npm run build-dev
Build the project to the distribution folder: ${APP_ROOT_FOLDER}/dist/angular-material-image-overlay
cd ${APP_ROOT_FOLDER}
ng build angular-material-image-overlay
ls dist/angular-material-image-overlay
Installing the package manually into a different project without npm install
. This is only recommended for prototyping.
cd ${APP_ROOT_FOLDER}
cp -r dist/angular-material-image-overlay/ ${YOUR_APP}/node_modules/
When publishing, first update the versions on package.json
and projects/angular-material-image-overlay/package.json
; then test, build and publish it to npm
.
cd ${APP_ROOT_FOLDER}/dist/angular-material-image-overlay
npm publish
Code released under the (MIT license)[LICENSE]
FAQs
Deprecation Notice ================== In all transparency, I receive many dependabot alerts advising to update versions of the dependencies in this project. This project was created a long time ago with the nimial dependency set required by Angular and I
We found that angular-material-image-overlay demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.