
Research
Shai-Hulud Descends to Hades: Miasma Worm Campaign Spreads with New PyPI Wave
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.
ng-character-select-carousel
Advanced tools
projects/ng-character-select-carousel directory of this repository.
src/app directory of this repository.npm i ng-character-select-carousel
import {NgCharacterSelectCarouselModule} from 'ng-character-select-carousel';
selector: ng-character-select-carousel
| Input | Type | Required | Description |
|---|---|---|---|
| image1Url | string | Optional, default: sample image | Url to character 1 image. If blank a sample image is used |
| image1MaskUrl | string | Optional, default: sample image | Url to character 1 image mask . If blank a sample image is used |
| image2Url | string | Optional, default: sample image | Url to character 2 image. If blank a sample image is used |
| image2MaskUrl | string | Optional, default: sample image | Url to character 2 image mask . If blank a sample image is used |
| image2Url | string | Optional, default: sample image | Url to character 3 image. If blank a sample image is used |
| image2MaskUrl | string | Optional, default: sample image | Url to character 3 image mask . If blank a sample image is used |
| spins | Observable | Optional | For submitting left/right spin events. |
| Output | Type | Required | Description |
|---|---|---|---|
| selectedAvatar | number | No | emits the index of the selected character |
NgxMatTypeaheadModule in your app module.
import {NgCharacterSelectCarouselModule} from 'ng-character-select-carousel';
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import {NgCharacterSelectCarouselModule} from 'ng-character-select-carousel';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
NgCharacterSelectCarouselModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
NgCharacterSelectCarouselComponent in your component.import {Component} from '@angular/core';
import {Subject} from 'rxjs';
import {Direction} from 'ng-character-select-carousel';
@Component({
selector: 'app-root',
template: `
<div class="page">
<div>
<button (click)="left()">Left</button>
<span>{{selectedAvatar}}</span>
<button (click)="right()">Right</button>
</div>
<ng-character-select-carousel
[spins]="eventsSubject.asObservable()"
(selectedAvatar)="onSelectedAvatar($event)">
</ng-character-select-carousel>
</div>
`,
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'character-select-carousel';
public selectedAvatar: number;
eventsSubject: Subject<Direction> = new Subject<Direction>();
public left() {
this.eventsSubject.next(Direction.Left);
}
public right() {
this.eventsSubject.next(Direction.Right);
}
public onSelectedAvatar(index: number) {
this.selectedAvatar = index;
}
}
npm ing serve for a dev server and running the demo app. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.Run ng build ng-character-select-carousel to build the library. The build artifacts will be stored in the dist/ng-character-select-carousel directory. Use the --prod flag for a production build.
For each character image an image mask should be provided.
This is an image that follows the outline of the character image with a white background.
This ensures there is no transparency overlap as characters spin over each other.
For example:
Character image:

Image mask:

gsap is amazing!
FAQs
Angular character select carousel for 3 characters.
We found that ng-character-select-carousel 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.

Research
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.