@embedpdf/plugin-annotation 2.14.4 → 2.15.1

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.
@@ -213,7 +213,7 @@ var root_23 = $.from_html(`<div><div> </div></div>`);
213
213
  var root$j = $.from_html(`<div data-no-interaction=""><div><div><!> <!></div></div> <div><!> <!> <div><!> <!></div></div> <!> <!></div>`);
214
214
  function AnnotationContainer($$anchor, $$props) {
215
215
  $.push($$props, true);
216
- let isEditing = $.prop($$props, "isEditing", 3, false), isMultiSelected = $.prop($$props, "isMultiSelected", 3, false), isRotatable = $.prop($$props, "isRotatable", 3, true), lockAspectRatio = $.prop($$props, "lockAspectRatio", 3, false), propsClass = $.prop($$props, "class", 3, ""), structurallyLocked = $.prop($$props, "structurallyLocked", 3, false), contentLocked = $.prop($$props, "contentLocked", 3, false), outlineOffset = $.prop($$props, "outlineOffset", 3, 1), zIndex = $.prop($$props, "zIndex", 3, 1), restProps = $.rest_props($$props, [
216
+ let isEditing = $.prop($$props, "isEditing", 3, false), isMultiSelected = $.prop($$props, "isMultiSelected", 3, false), isRotatable = $.prop($$props, "isRotatable", 3, true), lockAspectRatio = $.prop($$props, "lockAspectRatio", 3, false), propsClass = $.prop($$props, "class", 3, ""), structurallyLocked = $.prop($$props, "structurallyLocked", 3, false), contentLocked = $.prop($$props, "contentLocked", 3, false), outlineOffset = $.prop($$props, "outlineOffset", 3, 1), zIndex = $.prop($$props, "zIndex", 3, 1), restProps = $$rest_props_compat$3($$props, [
217
217
  "$$slots",
218
218
  "$$events",
219
219
  "$$legacy",
@@ -1054,6 +1054,11 @@ function AnnotationContainer($$anchor, $$props) {
1054
1054
  $.pop();
1055
1055
  }
1056
1056
  $.delegate(["pointermove"]);
1057
+ function $$rest_props_compat$3(props, exclude, name) {
1058
+ const set = exclude instanceof Set ? exclude : new Set(exclude);
1059
+ if (typeof set.includes !== "function") set.includes = Set.prototype.has.bind(set);
1060
+ return $.rest_props(props, set, name);
1061
+ }
1057
1062
  function mapCounterRotatePoint(x, y, width, height, rotation) {
1058
1063
  switch (rotation) {
1059
1064
  case 1:
@@ -3410,7 +3415,7 @@ function CalloutFreeTextRenderer($$anchor, $$props) {
3410
3415
  var root_1$8 = $.from_html(`<img/>`);
3411
3416
  function RenderAnnotation($$anchor, $$props) {
3412
3417
  $.push($$props, true);
3413
- let scaleFactor = $.prop($$props, "scaleFactor", 3, 1), unrotated = $.prop($$props, "unrotated", 3, false), restProps = $.rest_props($$props, [
3418
+ let scaleFactor = $.prop($$props, "scaleFactor", 3, 1), unrotated = $.prop($$props, "unrotated", 3, false), restProps = $$rest_props_compat$2($$props, [
3414
3419
  "$$slots",
3415
3420
  "$$events",
3416
3421
  "$$legacy",
@@ -3489,6 +3494,11 @@ function RenderAnnotation($$anchor, $$props) {
3489
3494
  $.append($$anchor, fragment);
3490
3495
  $.pop();
3491
3496
  }
3497
+ function $$rest_props_compat$2(props, exclude, name) {
3498
+ const set = exclude instanceof Set ? exclude : new Set(exclude);
3499
+ if (typeof set.includes !== "function") set.includes = Set.prototype.has.bind(set);
3500
+ return $.rest_props(props, set, name);
3501
+ }
3492
3502
  var root$6 = $.from_html(`<div role="button"><!></div>`);
3493
3503
  function Stamp($$anchor, $$props) {
3494
3504
  $.push($$props, true);
@@ -4268,7 +4278,7 @@ const builtInRenderers = [
4268
4278
  var root$2 = $.from_html(`<!> <!>`, 1);
4269
4279
  function Annotations($$anchor, $$props) {
4270
4280
  $.push($$props, true);
4271
- let annotationsProps = $.rest_props($$props, ["$$slots", "$$events", "$$legacy"]);
4281
+ let annotationsProps = $$rest_props_compat$1($$props, ["$$slots", "$$events", "$$legacy"]);
4272
4282
  const annotationCapability = useAnnotationCapability();
4273
4283
  const selectionCapability = useSelectionCapability();
4274
4284
  const pointerHandlers = usePointerHandlers({
@@ -4680,6 +4690,11 @@ function Annotations($$anchor, $$props) {
4680
4690
  $.append($$anchor, fragment);
4681
4691
  $.pop();
4682
4692
  }
4693
+ function $$rest_props_compat$1(props, exclude, name) {
4694
+ const set = exclude instanceof Set ? exclude : new Set(exclude);
4695
+ if (typeof set.includes !== "function") set.includes = Set.prototype.has.bind(set);
4696
+ return $.rest_props(props, set, name);
4697
+ }
4683
4698
  var root_2 = $.from_html(`<div><!></div>`);
4684
4699
  var root_4 = $.from_html(`<div><!></div>`);
4685
4700
  var root_6 = $.from_html(`<div><!></div>`);
@@ -5052,7 +5067,7 @@ function AnnotationPaintLayer($$anchor, $$props) {
5052
5067
  var root = $.from_html(`<div><!> <!> <!></div>`);
5053
5068
  function AnnotationLayer($$anchor, $$props) {
5054
5069
  $.push($$props, true);
5055
- let restProps = $.rest_props($$props, [
5070
+ let restProps = $$rest_props_compat($$props, [
5056
5071
  "$$slots",
5057
5072
  "$$events",
5058
5073
  "$$legacy",
@@ -5199,6 +5214,11 @@ function AnnotationLayer($$anchor, $$props) {
5199
5214
  $.append($$anchor, div);
5200
5215
  $.pop();
5201
5216
  }
5217
+ function $$rest_props_compat(props, exclude, name) {
5218
+ const set = exclude instanceof Set ? exclude : new Set(exclude);
5219
+ if (typeof set.includes !== "function") set.includes = Set.prototype.has.bind(set);
5220
+ return $.rest_props(props, set, name);
5221
+ }
5202
5222
  const AnnotationPluginPackage = createPluginPackage(AnnotationPluginPackage$1).addWrapper(RendererRegistryProvider).addUtility(AnnotationNavigationHandler).build();
5203
5223
  export {
5204
5224
  AnnotationContainer,