@edgepdf/viewer-js 0.0.11 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{styles.css → index.css} +609 -720
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +43 -59
- package/dist/lib/marker-edit-popup.d.ts +1 -1
- package/dist/lib/marker-manager.d.ts +7 -7
- package/dist/lib/marker-manager.d.ts.map +1 -1
- package/package.json +7 -4
- package/dist/styles.d.ts +0 -10
- package/dist/styles.d.ts.map +0 -1
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,cAAc,CAAC;AAEtB,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,YAAY,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAGlD,YAAY,EACV,SAAS,EACT,UAAU,EACV,YAAY,EACZ,aAAa,EACb,WAAW,EACX,MAAM,EACN,UAAU,EACV,UAAU,EACV,UAAU,EACV,SAAS,EACT,gBAAgB,EAChB,eAAe,EACf,WAAW,EACX,iBAAiB,EACjB,mBAAmB,EACnB,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,gBAAgB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -9579,29 +9579,6 @@ var require_leaflet_src = __commonJS({
|
|
|
9579
9579
|
}
|
|
9580
9580
|
});
|
|
9581
9581
|
|
|
9582
|
-
// packages/viewer-js/src/styles.ts
|
|
9583
|
-
if (typeof window !== "undefined" && typeof document !== "undefined") {
|
|
9584
|
-
const existingLink = document.querySelector("link[data-edgepdf-styles]");
|
|
9585
|
-
if (!existingLink) {
|
|
9586
|
-
const link = document.createElement("link");
|
|
9587
|
-
link.rel = "stylesheet";
|
|
9588
|
-
link.type = "text/css";
|
|
9589
|
-
link.setAttribute("data-edgepdf-styles", "true");
|
|
9590
|
-
try {
|
|
9591
|
-
if (typeof import.meta !== "undefined" && import.meta.url) {
|
|
9592
|
-
const baseUrl = new URL(import.meta.url);
|
|
9593
|
-
link.href = new URL("./styles.css", baseUrl).href;
|
|
9594
|
-
} else {
|
|
9595
|
-
link.href = "./styles.css";
|
|
9596
|
-
}
|
|
9597
|
-
} catch (e) {
|
|
9598
|
-
console.warn("Error resolving styles.css:", e?.message);
|
|
9599
|
-
link.href = "./styles.css";
|
|
9600
|
-
}
|
|
9601
|
-
document.head.appendChild(link);
|
|
9602
|
-
}
|
|
9603
|
-
}
|
|
9604
|
-
|
|
9605
9582
|
// packages/viewer-js/src/lib/viewer.ts
|
|
9606
9583
|
var import_leaflet4 = __toESM(require_leaflet_src(), 1);
|
|
9607
9584
|
|
|
@@ -22721,13 +22698,20 @@ var DocumentSummarySchema = external_exports.object({
|
|
|
22721
22698
|
createdAt: external_exports.iso.datetime(),
|
|
22722
22699
|
updatedAt: external_exports.iso.datetime()
|
|
22723
22700
|
});
|
|
22701
|
+
var DocumentStatus = /* @__PURE__ */ ((DocumentStatus2) => {
|
|
22702
|
+
DocumentStatus2["CREATED"] = "created";
|
|
22703
|
+
DocumentStatus2["PROCESSING"] = "processing";
|
|
22704
|
+
DocumentStatus2["READY"] = "ready";
|
|
22705
|
+
DocumentStatus2["FAILED"] = "failed";
|
|
22706
|
+
return DocumentStatus2;
|
|
22707
|
+
})(DocumentStatus || {});
|
|
22724
22708
|
var DocumentDetailSchema = external_exports.object({
|
|
22725
22709
|
documentId: external_exports.string(),
|
|
22726
22710
|
fileName: external_exports.string(),
|
|
22727
22711
|
originalUrl: external_exports.url(),
|
|
22728
22712
|
previewUrl: external_exports.url().optional(),
|
|
22729
22713
|
thumbnailUrl: external_exports.url().optional(),
|
|
22730
|
-
|
|
22714
|
+
status: external_exports.enum(DocumentStatus),
|
|
22731
22715
|
renderInfo: external_exports.object({
|
|
22732
22716
|
tileUrl: external_exports.url(),
|
|
22733
22717
|
imageInfo: external_exports.object({
|
|
@@ -22773,8 +22757,8 @@ var MarkerAnnotationDataSchema = external_exports.object({
|
|
|
22773
22757
|
x: external_exports.number().min(0).describe("X pixel coordinate"),
|
|
22774
22758
|
y: external_exports.number().min(0).describe("Y pixel coordinate"),
|
|
22775
22759
|
zoom: external_exports.number().int().min(0).max(10).describe("Zoom level"),
|
|
22776
|
-
|
|
22777
|
-
|
|
22760
|
+
label: external_exports.string().min(1).max(255).describe("Marker label").optional(),
|
|
22761
|
+
description: external_exports.string().max(5e3).optional().describe("Marker description text"),
|
|
22778
22762
|
href: external_exports.url().optional().describe("Link URL"),
|
|
22779
22763
|
target: external_exports.enum(["_blank", "_self"]).default("_blank").describe("Link target"),
|
|
22780
22764
|
showLabel: external_exports.boolean().optional().default(true).describe("Show label on marker")
|
|
@@ -22824,8 +22808,8 @@ var CreateAnnotationSchema = external_exports.object({
|
|
|
22824
22808
|
referenceId: external_exports.string().max(255).optional().describe("User-provided reference ID (optional)")
|
|
22825
22809
|
});
|
|
22826
22810
|
var MarkerAnnotationDataUpdateSchema = external_exports.object({
|
|
22827
|
-
|
|
22828
|
-
|
|
22811
|
+
label: external_exports.string().min(1).max(255).optional(),
|
|
22812
|
+
description: external_exports.string().max(5e3).optional(),
|
|
22829
22813
|
href: external_exports.url().optional().nullable(),
|
|
22830
22814
|
target: external_exports.enum(["_blank", "_self"]).default("_blank").optional().nullable(),
|
|
22831
22815
|
showLabel: external_exports.boolean().optional()
|
|
@@ -23183,7 +23167,7 @@ function createEditPopup(options) {
|
|
|
23183
23167
|
type="text"
|
|
23184
23168
|
id="marker-edit-title"
|
|
23185
23169
|
class="edgepdf-marker-edit-input"
|
|
23186
|
-
value="${escapeAttr(marker.
|
|
23170
|
+
value="${escapeAttr(marker.label)}"
|
|
23187
23171
|
placeholder="Enter label"
|
|
23188
23172
|
/>
|
|
23189
23173
|
</div>
|
|
@@ -23255,7 +23239,7 @@ function createEditPopup(options) {
|
|
|
23255
23239
|
saveButton.addEventListener("click", (e) => {
|
|
23256
23240
|
e.stopPropagation();
|
|
23257
23241
|
const updates = {
|
|
23258
|
-
|
|
23242
|
+
label: titleInput.value.trim() || void 0,
|
|
23259
23243
|
href: urlInput.value.trim() || void 0
|
|
23260
23244
|
};
|
|
23261
23245
|
onSave(updates);
|
|
@@ -23292,7 +23276,7 @@ function createDeletePopup(options) {
|
|
|
23292
23276
|
div.textContent = text;
|
|
23293
23277
|
return div.innerHTML;
|
|
23294
23278
|
};
|
|
23295
|
-
const markerName = marker.
|
|
23279
|
+
const markerName = marker.label || marker.description || "this marker";
|
|
23296
23280
|
const popup = document.createElement("div");
|
|
23297
23281
|
popup.className = "edgepdf-marker-delete-popup";
|
|
23298
23282
|
popup.innerHTML = `
|
|
@@ -23431,8 +23415,8 @@ var MarkerManager = class {
|
|
|
23431
23415
|
* @param options - Marker creation options
|
|
23432
23416
|
* @param options.position - Leaflet coordinates [lat, lng]
|
|
23433
23417
|
* @param options.imageCoords - Image pixel coordinates {x, y}
|
|
23434
|
-
* @param options.
|
|
23435
|
-
* @param options.
|
|
23418
|
+
* @param options.label - Marker label/tooltip text
|
|
23419
|
+
* @param options.description - Marker description
|
|
23436
23420
|
* @param options.href - Link URL (optional)
|
|
23437
23421
|
* @param options.target - Link target (optional)
|
|
23438
23422
|
* @param options.showLabel - Show label/tooltip
|
|
@@ -23477,8 +23461,8 @@ var MarkerManager = class {
|
|
|
23477
23461
|
x: imageCoords.x,
|
|
23478
23462
|
y: imageCoords.y,
|
|
23479
23463
|
zoom: currentZoom,
|
|
23480
|
-
|
|
23481
|
-
|
|
23464
|
+
label: options.label,
|
|
23465
|
+
description: options.description,
|
|
23482
23466
|
href: options.href,
|
|
23483
23467
|
target: options.target,
|
|
23484
23468
|
showLabel: options.showLabel ?? true,
|
|
@@ -23589,8 +23573,8 @@ var MarkerManager = class {
|
|
|
23589
23573
|
this.createMarker({
|
|
23590
23574
|
id: markerData.id,
|
|
23591
23575
|
imageCoords: { x: markerData.x, y: markerData.y },
|
|
23592
|
-
|
|
23593
|
-
|
|
23576
|
+
label: markerData.label,
|
|
23577
|
+
description: markerData.description,
|
|
23594
23578
|
href: markerData.href,
|
|
23595
23579
|
target: markerData.target,
|
|
23596
23580
|
showLabel: markerData.showLabel,
|
|
@@ -23689,11 +23673,11 @@ var MarkerManager = class {
|
|
|
23689
23673
|
if (!marker || !leafletMarker) {
|
|
23690
23674
|
return false;
|
|
23691
23675
|
}
|
|
23692
|
-
if (updates.
|
|
23693
|
-
marker.
|
|
23676
|
+
if (updates.label !== void 0) {
|
|
23677
|
+
marker.label = updates.label;
|
|
23694
23678
|
}
|
|
23695
|
-
if (updates.
|
|
23696
|
-
marker.
|
|
23679
|
+
if (updates.description !== void 0) {
|
|
23680
|
+
marker.description = updates.description;
|
|
23697
23681
|
}
|
|
23698
23682
|
if (updates.href !== void 0) {
|
|
23699
23683
|
marker.href = updates.href;
|
|
@@ -24060,7 +24044,7 @@ var MarkerManager = class {
|
|
|
24060
24044
|
const iconType = marker.iconType || "pin";
|
|
24061
24045
|
const customIcon = this.createCustomIcon(iconType);
|
|
24062
24046
|
const markerOptions = {
|
|
24063
|
-
title: marker.
|
|
24047
|
+
title: marker.label,
|
|
24064
24048
|
icon: customIcon
|
|
24065
24049
|
};
|
|
24066
24050
|
if (this.interactionConfig.draggable) {
|
|
@@ -24070,8 +24054,8 @@ var MarkerManager = class {
|
|
|
24070
24054
|
[marker.position[0], marker.position[1]],
|
|
24071
24055
|
markerOptions
|
|
24072
24056
|
);
|
|
24073
|
-
if (this.interactionConfig.showTooltips && marker.
|
|
24074
|
-
leafletMarker.bindTooltip(marker.
|
|
24057
|
+
if (this.interactionConfig.showTooltips && marker.label && marker.showLabel) {
|
|
24058
|
+
leafletMarker.bindTooltip(marker.label, {
|
|
24075
24059
|
permanent: false,
|
|
24076
24060
|
direction: "top",
|
|
24077
24061
|
offset: [-13, -10],
|
|
@@ -24262,17 +24246,17 @@ var MarkerManager = class {
|
|
|
24262
24246
|
*/
|
|
24263
24247
|
createPopupContent(marker) {
|
|
24264
24248
|
let content = "";
|
|
24265
|
-
if (marker.
|
|
24266
|
-
const
|
|
24249
|
+
if (marker.description) {
|
|
24250
|
+
const escapedDescription = this.escapeHtml(marker.description);
|
|
24267
24251
|
if (marker.href) {
|
|
24268
24252
|
const escapedHref = this.escapeHtml(marker.href);
|
|
24269
24253
|
const escapedTarget = this.escapeHtml(marker.target || "_self");
|
|
24270
|
-
content = `<a href="${escapedHref}" target="${escapedTarget}">${
|
|
24254
|
+
content = `<a href="${escapedHref}" target="${escapedTarget}">${escapedDescription}</a>`;
|
|
24271
24255
|
} else {
|
|
24272
|
-
content =
|
|
24256
|
+
content = escapedDescription;
|
|
24273
24257
|
}
|
|
24274
|
-
} else if (marker.
|
|
24275
|
-
content = this.escapeHtml(marker.
|
|
24258
|
+
} else if (marker.label) {
|
|
24259
|
+
content = this.escapeHtml(marker.label);
|
|
24276
24260
|
} else {
|
|
24277
24261
|
content = '<span style="color: #666; font-style: italic;">Marker</span>';
|
|
24278
24262
|
}
|
|
@@ -24288,11 +24272,11 @@ var MarkerManager = class {
|
|
|
24288
24272
|
* @param marker - Marker data
|
|
24289
24273
|
*/
|
|
24290
24274
|
updateLeafletMarkerDisplay(leafletMarker, marker) {
|
|
24291
|
-
if (this.interactionConfig.showTooltips && marker.
|
|
24275
|
+
if (this.interactionConfig.showTooltips && marker.label && marker.showLabel) {
|
|
24292
24276
|
if (leafletMarker.getTooltip()) {
|
|
24293
|
-
leafletMarker.setTooltipContent(marker.
|
|
24277
|
+
leafletMarker.setTooltipContent(marker.label);
|
|
24294
24278
|
} else {
|
|
24295
|
-
leafletMarker.bindTooltip(marker.
|
|
24279
|
+
leafletMarker.bindTooltip(marker.label, {
|
|
24296
24280
|
permanent: false,
|
|
24297
24281
|
direction: "top",
|
|
24298
24282
|
offset: [0, -15],
|
|
@@ -24322,9 +24306,9 @@ var MarkerManager = class {
|
|
|
24322
24306
|
);
|
|
24323
24307
|
if (result) {
|
|
24324
24308
|
this.updateMarker(marker.id, {
|
|
24325
|
-
|
|
24309
|
+
label: result.label,
|
|
24326
24310
|
href: result.href,
|
|
24327
|
-
|
|
24311
|
+
description: result.description,
|
|
24328
24312
|
target: result.target
|
|
24329
24313
|
});
|
|
24330
24314
|
this.emitEvent("edit", result, void 0);
|
|
@@ -24448,11 +24432,11 @@ var MarkerManager = class {
|
|
|
24448
24432
|
if (typeof marker.zoom !== "number" || marker.zoom < 0) {
|
|
24449
24433
|
throw new Error("Marker zoom level must be a non-negative number");
|
|
24450
24434
|
}
|
|
24451
|
-
if (marker.
|
|
24452
|
-
throw new Error("Marker
|
|
24435
|
+
if (marker.label !== void 0 && typeof marker.label !== "string") {
|
|
24436
|
+
throw new Error("Marker label must be a string if provided");
|
|
24453
24437
|
}
|
|
24454
|
-
if (marker.
|
|
24455
|
-
throw new Error("Marker
|
|
24438
|
+
if (marker.description !== void 0 && typeof marker.description !== "string") {
|
|
24439
|
+
throw new Error("Marker description must be a string if provided");
|
|
24456
24440
|
}
|
|
24457
24441
|
if (marker.href !== void 0 && typeof marker.href !== "string") {
|
|
24458
24442
|
throw new Error("Marker href must be a string if provided");
|
|
@@ -9,10 +9,10 @@ export interface CreateMarkerOptions {
|
|
|
9
9
|
position?: LeafletCoords;
|
|
10
10
|
/** Image pixel coordinates {x, y} */
|
|
11
11
|
imageCoords?: ImageCoords;
|
|
12
|
-
/** Marker
|
|
13
|
-
|
|
14
|
-
/** Marker
|
|
15
|
-
|
|
12
|
+
/** Marker label/tooltip text */
|
|
13
|
+
label?: string;
|
|
14
|
+
/** Marker description */
|
|
15
|
+
description?: string;
|
|
16
16
|
/** Link URL (optional) */
|
|
17
17
|
href?: string;
|
|
18
18
|
/** Link target (optional) */
|
|
@@ -61,7 +61,7 @@ export interface CreateMarkerOptions {
|
|
|
61
61
|
* // Create marker from Leaflet coordinates
|
|
62
62
|
* const marker = markerManager.createMarker({
|
|
63
63
|
* position: [1500, 1000],
|
|
64
|
-
*
|
|
64
|
+
* label: 'My Marker'
|
|
65
65
|
* });
|
|
66
66
|
*
|
|
67
67
|
* // Get all markers
|
|
@@ -108,8 +108,8 @@ export declare class MarkerManager {
|
|
|
108
108
|
* @param options - Marker creation options
|
|
109
109
|
* @param options.position - Leaflet coordinates [lat, lng]
|
|
110
110
|
* @param options.imageCoords - Image pixel coordinates {x, y}
|
|
111
|
-
* @param options.
|
|
112
|
-
* @param options.
|
|
111
|
+
* @param options.label - Marker label/tooltip text
|
|
112
|
+
* @param options.description - Marker description
|
|
113
113
|
* @param options.href - Link URL (optional)
|
|
114
114
|
* @param options.target - Link target (optional)
|
|
115
115
|
* @param options.showLabel - Show label/tooltip
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marker-manager.d.ts","sourceRoot":"","sources":["../../src/lib/marker-manager.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,SAAS,CAAC;AACxB,OAAO,KAAK,EACV,MAAM,EACN,UAAU,EACV,aAAa,EACb,WAAW,EACX,SAAS,EACT,WAAW,EACX,eAAe,EACf,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAI1D;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,qCAAqC;IACrC,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,qCAAqC;IACrC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,
|
|
1
|
+
{"version":3,"file":"marker-manager.d.ts","sourceRoot":"","sources":["../../src/lib/marker-manager.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,SAAS,CAAC;AACxB,OAAO,KAAK,EACV,MAAM,EACN,UAAU,EACV,aAAa,EACb,WAAW,EACX,SAAS,EACT,WAAW,EACX,eAAe,EACf,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAI1D;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,qCAAqC;IACrC,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,qCAAqC;IACrC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yBAAyB;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0BAA0B;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,6BAA6B;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,yBAAyB;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,wDAAwD;IACxD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,+BAA+B;IAC/B,QAAQ,CAAC,EACL,KAAK,GACL,UAAU,GACV,YAAY,GACZ,mBAAmB,GACnB,qBAAqB,CAAC;IAC1B,mDAAmD;IACnD,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,qBAAa,aAAa;IACxB,OAAO,CAAC,GAAG,CAAQ;IACnB,OAAO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C,MAAM,EAAE,MAAM,GAAG,IAAI;IAItC;;;;OAIG;IACH,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAIxC;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IAgCtB;;;;;OAKG;IACH,OAAO,CAAC,kBAAkB;IAsE1B;;;;;OAKG;IACH,OAAO,CAAC,yBAAyB;IAwBjC;;;;OAIG;IACH,OAAO,CAAC,gBAAgB;CAGzB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edgepdf/viewer-js",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"description": "EdgePDF Viewer - JavaScript library for viewing PDF documents with interactive markers and zoom controls",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -36,14 +36,17 @@
|
|
|
36
36
|
"dist",
|
|
37
37
|
"!**/*.tsbuildinfo"
|
|
38
38
|
],
|
|
39
|
-
"dependencies": {
|
|
40
|
-
"leaflet": "^1.9.4"
|
|
41
|
-
},
|
|
42
39
|
"devDependencies": {
|
|
43
40
|
"@edgepdf/types": "workspace:*",
|
|
44
41
|
"@edge-pdf/schemas": "workspace:*",
|
|
45
42
|
"@edgepdf/utils": "workspace:*",
|
|
46
43
|
"@types/leaflet": "^1.9.21",
|
|
47
44
|
"jest-environment-jsdom": "^30.0.2"
|
|
45
|
+
},
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"leaflet": "^1.9.4",
|
|
48
|
+
"@edgepdf/types": "workspace:*",
|
|
49
|
+
"@edgepdf/utils": "workspace:*",
|
|
50
|
+
"@edge-pdf/schemas": "workspace:*"
|
|
48
51
|
}
|
|
49
52
|
}
|
package/dist/styles.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CSS auto-loader for @edgepdf/viewer-js
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically imported by the main index.ts file.
|
|
5
|
-
* It dynamically loads the CSS file at runtime, so users don't need to manually import CSS.
|
|
6
|
-
*
|
|
7
|
-
* The CSS is automatically injected when @edgepdf/viewer-js is imported.
|
|
8
|
-
*/
|
|
9
|
-
export {};
|
|
10
|
-
//# sourceMappingURL=styles.d.ts.map
|
package/dist/styles.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../src/styles.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAoCH,OAAO,EAAE,CAAC"}
|