From cedc54a6b88ef9770cf8bbd4c673a3c375fbd8e5 Mon Sep 17 00:00:00 2001 From: Joachim Bauch Date: Thu, 11 Nov 2021 11:33:59 +0100 Subject: [PATCH] No longer need separate iro-transparency-plugin, now part of the core. --- package-lock.json | 11 ----------- package.json | 1 - src/pdfdraw.js | 2 -- 3 files changed, 14 deletions(-) diff --git a/package-lock.json b/package-lock.json index 714af13..ac7a582 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,6 @@ "version": "0.1.0", "dependencies": { "@jaames/iro": "5.5.2", - "iro-transparency-plugin": "1.0.2", "jquery": "3.5.0", "paper": "0.12.15", "pdfjs-dist": "2.0.943", @@ -2608,11 +2607,6 @@ "node": ">= 0.10" } }, - "node_modules/iro-transparency-plugin": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/iro-transparency-plugin/-/iro-transparency-plugin-1.0.2.tgz", - "integrity": "sha512-DBxSURdgW2fYL0K7x56y6C3Pu3eTIoXyE/oadUZEwRD5JrPyhKXlTOkJNFizdteYaZ79RyOpHk7LNaIhG1kwAw==" - }, "node_modules/is-accessor-descriptor": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", @@ -7344,11 +7338,6 @@ "integrity": "sha512-Ju0Bz/cEia55xDwUWEa8+olFpCiQoypjnQySseKtmjNrnps3P+xfpUmGr90T7yjlVJmOtybRvPXhKMbHr+fWnw==", "dev": true }, - "iro-transparency-plugin": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/iro-transparency-plugin/-/iro-transparency-plugin-1.0.2.tgz", - "integrity": "sha512-DBxSURdgW2fYL0K7x56y6C3Pu3eTIoXyE/oadUZEwRD5JrPyhKXlTOkJNFizdteYaZ79RyOpHk7LNaIhG1kwAw==" - }, "is-accessor-descriptor": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", diff --git a/package.json b/package.json index 2b9814c..9706e2f 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,6 @@ }, "dependencies": { "@jaames/iro": "5.5.2", - "iro-transparency-plugin": "1.0.2", "jquery": "3.5.0", "paper": "0.12.15", "pdfjs-dist": "2.0.943", diff --git a/src/pdfdraw.js b/src/pdfdraw.js index 3f03aac..a0376ad 100644 --- a/src/pdfdraw.js +++ b/src/pdfdraw.js @@ -23,7 +23,6 @@ import $ from 'jquery'; import io from 'socket.io-client'; import iro from '@jaames/iro'; -import iroTransparencyPlugin from 'iro-transparency-plugin'; import paper from 'paper'; import { pdfjsLib } from 'pdfjs-dist'; import { PDFViewerApplication, PDFViewerApplicationOptions } from 'pdfjs-dist-viewer-min'; @@ -767,7 +766,6 @@ function Annotator(socketurl, id, userid, displayname, token) { this.socket.on('disconnect', this.onDisconnect.bind(this)); this.socket.on('reconnect', this.onReconnected.bind(this)); - iro.use(iroTransparencyPlugin); this.colorPicker = new iro.ColorPicker("#colorPicker", { width: 320, height: 320,