@embedpdf/plugin-scroll 1.0.6 → 1.0.8

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/index.cjs CHANGED
@@ -144,6 +144,53 @@ var PdfUnwantedTextMarkers = Object.freeze([
144
144
  PdfNonCharacterFFFF
145
145
  ]);
146
146
  var PdfUnwantedTextRegex = new RegExp(`[${PdfUnwantedTextMarkers.join("")}]`, "g");
147
+ var PdfAnnotationFlagName = Object.freeze({
148
+ [
149
+ 1
150
+ /* INVISIBLE */
151
+ ]: "invisible",
152
+ [
153
+ 2
154
+ /* HIDDEN */
155
+ ]: "hidden",
156
+ [
157
+ 4
158
+ /* PRINT */
159
+ ]: "print",
160
+ [
161
+ 8
162
+ /* NO_ZOOM */
163
+ ]: "noZoom",
164
+ [
165
+ 16
166
+ /* NO_ROTATE */
167
+ ]: "noRotate",
168
+ [
169
+ 32
170
+ /* NO_VIEW */
171
+ ]: "noView",
172
+ [
173
+ 64
174
+ /* READ_ONLY */
175
+ ]: "readOnly",
176
+ [
177
+ 128
178
+ /* LOCKED */
179
+ ]: "locked",
180
+ [
181
+ 256
182
+ /* TOGGLE_NOVIEW */
183
+ ]: "toggleNoView"
184
+ });
185
+ var PdfAnnotationFlagValue = Object.entries(
186
+ PdfAnnotationFlagName
187
+ ).reduce(
188
+ (acc, [bit, name]) => {
189
+ acc[name] = Number(bit);
190
+ return acc;
191
+ },
192
+ {}
193
+ );
147
194
 
148
195
  // src/lib/types.ts
149
196
  var ScrollStrategy = /* @__PURE__ */ ((ScrollStrategy2) => {