agt360image-view
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

360 Image View for Angular

An Angular component for displaying and interacting with 360-degree images.

What's New in agt360image-view v0.0.5

  • updated to be compatible with Angular v18. You can now use the agt360image-view component with Angular v18.

Dependencies

version available for Angular

agt360image-view Angular
0.0.1 17.x
0.0.4 17.3.x
0.0.5 18.x

Installation

Install the package using npm:

bash or powershell npm install agt360image-view.

Setup

step 1: import component

import { Component } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterOutlet } from '@angular/router';
import { Agt360imageViewComponent } from 'agt360image-view';

@Component({
  selector: 'app-root',
  standalone: true,
  imports: [Agt360imageViewComponent],
  templateUrl: './app.component.html',
  styleUrl: './app.component.scss'
})
export class AppComponent {}

step 2: define properties

import { Component } from '@angular/core';
import { Agt360imageViewComponent, RotateImage } from 'agt360image-view';  // Import 

@Component({
  selector: 'app-root',
  standalone: true,
  imports: [Agt360imageViewComponent],
  templateUrl: './app.component.html',
  styleUrl: './app.component.scss'
})
export class AppComponent {

  src = '../assets/pro2.jpg'
  width = 700;
  height = 500;
  autoroatate: RotateImage= {    // Optional
    isRotate: true,
    rotateSpeed: 0.5
  };
 
}

step 3: assign values

<agt360image-view
  [src]="src"
  [width]="width"
  [height]="height"
  [autoRotate]="autoroatate"
></agt360image-view>

Mandatory Fields

property required
src true
width true
height true
autoRotate optional

License

MIT


GitHub @Aswinthgt

Package Sidebar

Install

npm i agt360image-view

Weekly Downloads

7

Version

0.0.5

License

MIT

Unpacked Size

46.1 kB

Total Files

16

Last publish

Collaborators

  • aswinth37