Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ivy.angular.turn-js

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ivy.angular.turn-js - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

package.json
{
"name": "ivy.angular.turn-js",
"version": "1.0.2",
"version": "1.0.3",
"description": "",

@@ -5,0 +5,0 @@ "author": "ibuchan@iamglobaleducation.com",

@@ -1,5 +0,7 @@

import { ElementRef } from '@angular/core';
import { ElementRef, AfterViewInit, OnInit } from '@angular/core';
import { SafeResourceUrl, DomSanitizer } from '@angular/platform-browser';
import { TurnOptionGeneratorService } from '../../Services/turn-option-generator.service';
import { TurnElementInvokerService } from '../../Services/turn-element-invoker.service';
export declare class ImgFlipBookComponent {
export declare class ImgFlipBookComponent implements AfterViewInit, OnInit {
private sanitizer;
private optionsGen;

@@ -13,4 +15,7 @@ private turnInvoker;

imgSources: string[];
constructor(optionsGen: TurnOptionGeneratorService, turnInvoker: TurnElementInvokerService);
massagedSources: SafeResourceUrl[];
constructor(sanitizer: DomSanitizer, optionsGen: TurnOptionGeneratorService, turnInvoker: TurnElementInvokerService);
ngOnInit(): void;
ngAfterViewInit(): void;
ready(): boolean;
}

@@ -13,9 +13,17 @@ "use strict";

var core_1 = require("@angular/core");
var platform_browser_1 = require("@angular/platform-browser");
var turn_option_generator_service_1 = require("../../Services/turn-option-generator.service");
var turn_element_invoker_service_1 = require("../../Services/turn-element-invoker.service");
var ImgFlipBookComponent = /** @class */ (function () {
function ImgFlipBookComponent(optionsGen, turnInvoker) {
function ImgFlipBookComponent(sanitizer, optionsGen, turnInvoker) {
this.sanitizer = sanitizer;
this.optionsGen = optionsGen;
this.turnInvoker = turnInvoker;
this.massagedSources = null;
}
ImgFlipBookComponent.prototype.ngOnInit = function () {
var _this = this;
this.massagedSources = this.imgSources
.map(function (imgUrl) { return _this.sanitizer.bypassSecurityTrustResourceUrl(imgUrl); });
};
ImgFlipBookComponent.prototype.ngAfterViewInit = function () {

@@ -25,2 +33,5 @@ var opts = this.optionsGen.generateTurnOptions(this.flipbookContainerElem.nativeElement.clientWidth, this.maxPxWidth, this.imgHeightToWidthRatio, this.optionsOverrides);

};
ImgFlipBookComponent.prototype.ready = function () {
return this.massagedSources != null;
};
__decorate([

@@ -56,3 +67,4 @@ core_1.ViewChild('flipbook'),

}),
__metadata("design:paramtypes", [turn_option_generator_service_1.TurnOptionGeneratorService,
__metadata("design:paramtypes", [platform_browser_1.DomSanitizer,
turn_option_generator_service_1.TurnOptionGeneratorService,
turn_element_invoker_service_1.TurnElementInvokerService])

@@ -59,0 +71,0 @@ ], ImgFlipBookComponent);

declare var require: any;
import { Component, Input, ViewChild, ElementRef } from '@angular/core';
import { Component, Input, ViewChild, ElementRef, AfterViewInit, OnInit } from '@angular/core';
import { SafeResourceUrl, DomSanitizer } from '@angular/platform-browser';

@@ -25,3 +26,3 @@ import * as $ from 'jquery';

})
export class ImgFlipBookComponent {
export class ImgFlipBookComponent implements AfterViewInit, OnInit {

@@ -46,4 +47,7 @@ @ViewChild('flipbook')

massagedSources: SafeResourceUrl[] = null;
constructor(
private sanitizer: DomSanitizer,
private optionsGen: TurnOptionGeneratorService,

@@ -53,2 +57,6 @@ private turnInvoker: TurnElementInvokerService) {

ngOnInit(): void {
this.massagedSources = this.imgSources
.map(imgUrl => this.sanitizer.bypassSecurityTrustResourceUrl(imgUrl));
}

@@ -63,2 +71,6 @@ ngAfterViewInit(): void {

}
ready(): boolean {
return this.massagedSources != null;
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc