aptechka 0.88.9 → 0.88.11

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.
@@ -44,19 +44,4 @@
44
44
  a ${cornerRadius} ${cornerRadius} 0 0 1 ${arcSectionLength} -${arcSectionLength}
45
45
  c ${c} ${-d}
46
46
  ${b+c} ${-d}
47
- ${a+b+c} ${-d}`:rounded`l 0 ${-p}`}__name(drawTopLeftPath,"drawTopLeftPath");function toRadians(degrees){return degrees*Math.PI/180}__name(toRadians,"toRadians");function rounded(strings,...values){return strings.reduce((acc,str,i)=>{const value=values[i];return typeof value=="number"?acc+str+value.toFixed(4):acc+str+(value!=null?value:"")},"")}__name(rounded,"rounded");function getSvgPath({cornerRadius=0,topLeftCornerRadius,topRightCornerRadius,bottomRightCornerRadius,bottomLeftCornerRadius,cornerAngleAlpha=90,topLeftCornerAngleAlpha,topRightCornerAngleAlpha,bottomRightCornerAngleAlpha,bottomLeftCornerAngleAlpha,cornerSmoothing,preserveSmoothing=!1,topNotches,rightNotches,bottomNotches,leftNotches,width,height}){if(topLeftCornerRadius=topLeftCornerRadius!=null?topLeftCornerRadius:cornerRadius,topRightCornerRadius=topRightCornerRadius!=null?topRightCornerRadius:cornerRadius,bottomLeftCornerRadius=bottomLeftCornerRadius!=null?bottomLeftCornerRadius:cornerRadius,bottomRightCornerRadius=bottomRightCornerRadius!=null?bottomRightCornerRadius:cornerRadius,topLeftCornerAngleAlpha=topLeftCornerAngleAlpha!=null?topLeftCornerAngleAlpha:cornerAngleAlpha,topRightCornerAngleAlpha=topRightCornerAngleAlpha!=null?topRightCornerAngleAlpha:cornerAngleAlpha,bottomLeftCornerAngleAlpha=bottomLeftCornerAngleAlpha!=null?bottomLeftCornerAngleAlpha:cornerAngleAlpha,bottomRightCornerAngleAlpha=bottomRightCornerAngleAlpha!=null?bottomRightCornerAngleAlpha:cornerAngleAlpha,topLeftCornerRadius===topRightCornerRadius&&topRightCornerRadius===bottomRightCornerRadius&&bottomRightCornerRadius===bottomLeftCornerRadius&&bottomLeftCornerRadius===topLeftCornerRadius&&topLeftCornerAngleAlpha===topRightCornerAngleAlpha&&topRightCornerAngleAlpha===bottomRightCornerAngleAlpha&&bottomRightCornerAngleAlpha===bottomLeftCornerAngleAlpha&&bottomLeftCornerAngleAlpha===topLeftCornerAngleAlpha){const roundingAndSmoothingBudget=Math.min(width,height)/2,cornerRadius2=Math.min(topLeftCornerRadius,roundingAndSmoothingBudget),pathParams=getPathParamsForCorner({cornerRadius:cornerRadius2,cornerSmoothing,cornerAngleAlpha,preserveSmoothing,roundingAndSmoothingBudget});return getSVGPathFromPathParams({width,height,topLeftPathParams:pathParams,topRightPathParams:pathParams,bottomLeftPathParams:pathParams,bottomRightPathParams:pathParams,topNotches,rightNotches,bottomNotches,leftNotches})}const{topLeft,topRight,bottomLeft,bottomRight}=distributeAndNormalize({topLeftCornerRadius,topRightCornerRadius,bottomRightCornerRadius,bottomLeftCornerRadius,width,height});return getSVGPathFromPathParams({width,height,topLeftPathParams:getPathParamsForCorner({cornerSmoothing,preserveSmoothing,cornerRadius:topLeft.radius,roundingAndSmoothingBudget:topLeft.roundingAndSmoothingBudget,cornerAngleAlpha:topLeftCornerAngleAlpha}),topRightPathParams:getPathParamsForCorner({cornerSmoothing,preserveSmoothing,cornerRadius:topRight.radius,roundingAndSmoothingBudget:topRight.roundingAndSmoothingBudget,cornerAngleAlpha:topRightCornerAngleAlpha}),bottomRightPathParams:getPathParamsForCorner({cornerSmoothing,preserveSmoothing,cornerRadius:bottomRight.radius,roundingAndSmoothingBudget:bottomRight.roundingAndSmoothingBudget,cornerAngleAlpha:bottomRightCornerAngleAlpha}),bottomLeftPathParams:getPathParamsForCorner({cornerSmoothing,preserveSmoothing,cornerRadius:bottomLeft.radius,roundingAndSmoothingBudget:bottomLeft.roundingAndSmoothingBudget,cornerAngleAlpha:bottomLeftCornerAngleAlpha}),topNotches,rightNotches,bottomNotches,leftNotches})}__name(getSvgPath,"getSvgPath");var _svgElement,_pathElement,_resizeListener,_NotchedElement_instances,parseCSSNotchValue_fn;const _NotchedElement=class _NotchedElement extends HTMLElement{constructor(){super();__privateAdd(this,_NotchedElement_instances);__privateAdd(this,_svgElement);__privateAdd(this,_pathElement);__privateAdd(this,_resizeListener,__name(()=>{const width=this.offsetWidth,height=this.offsetHeight,computed=getComputedStyle(this);__privateGet(this,_svgElement).setAttributeNS("http://www.w3.org/2000/svg","viewBox",`0 0 ${width} ${height}`);const cornerRadius=cssUnitParser_index.cssUnitParser.parse(computed.getPropertyValue("--notched-corner-radius")),topLeftCornerRadius=cssUnitParser_index.cssUnitParser.parse(computed.getPropertyValue("--notched-top-left-corner-radius")),topRightCornerRadius=cssUnitParser_index.cssUnitParser.parse(computed.getPropertyValue("--notched-top-right-corner-radius")),bottomRightCornerRadius=cssUnitParser_index.cssUnitParser.parse(computed.getPropertyValue("--notched-bottom-right-corner-radius")),bottomLeftCornerRadius=cssUnitParser_index.cssUnitParser.parse(computed.getPropertyValue("--notched-bottom-left-corner-radius")),cornerAngleAlpha=parseFloat(computed.getPropertyValue("--notched-corner-angle-alpha"))||void 0,topLeftCornerAngleAlpha=parseFloat(computed.getPropertyValue("--notched-top-left-corner-angle-alpha"))||void 0,topRightCornerAngleAlpha=parseFloat(computed.getPropertyValue("--notched-top-right-corner-angle-alpha"))||void 0,bottomRightCornerAngleAlpha=parseFloat(computed.getPropertyValue("--notched-bottom-right-corner-angle-alpha"))||void 0,bottomLeftCornerAngleAlpha=parseFloat(computed.getPropertyValue("--notched-bottom-left-corner-angle-alpha"))||void 0,cornerSmoothing=parseFloat(computed.getPropertyValue("--notched-corner-smoothing"))||0,preserveSmoothing=computed.getPropertyValue("--notched-preserve-smoothing")!=="false",topNotches=__privateMethod(this,_NotchedElement_instances,parseCSSNotchValue_fn).call(this,computed.getPropertyValue("--notched-top-notches")),rightNotches=__privateMethod(this,_NotchedElement_instances,parseCSSNotchValue_fn).call(this,computed.getPropertyValue("--notched-right-notches")),bottomNotches=__privateMethod(this,_NotchedElement_instances,parseCSSNotchValue_fn).call(this,computed.getPropertyValue("--notched-bottom-notches")),leftNotches=__privateMethod(this,_NotchedElement_instances,parseCSSNotchValue_fn).call(this,computed.getPropertyValue("--notched-left-notches")),fill=computed.getPropertyValue("--notched-fill"),path=getSvgPath({cornerRadius,topLeftCornerRadius,topRightCornerRadius,bottomRightCornerRadius,bottomLeftCornerRadius,cornerAngleAlpha,topLeftCornerAngleAlpha,topRightCornerAngleAlpha,bottomRightCornerAngleAlpha,bottomLeftCornerAngleAlpha,cornerSmoothing,preserveSmoothing,topNotches,rightNotches,bottomNotches,leftNotches,width,height});__privateGet(this,_pathElement).setAttribute("d",path),fill&&__privateGet(this,_pathElement).setAttribute("fill",fill)},"#resizeListener"));const clipContent=this.hasAttribute("clip-content"),clipId=this.hasAttribute("clip")||clipContent?"clip-"+string.generateId(10):null,tmpElement=document.createElement("div");tmpElement.innerHTML=`
48
- <svg xmlns="http://www.w3.org/2000/svg">
49
- ${clipId?`<clipPath id="${clipId}">`:""}
50
- <path></path>
51
- ${clipId?"</clipPath>":""}
52
- </svg>
53
- <slot></slot>
54
- `,clipId&&(clipContent&&this.firstElementChild instanceof HTMLElement?this.firstElementChild.style.clipPath=`url(#${clipId})`:this.style.clipPath=`url(#${clipId})`),this.style.position="relative",__privateSet(this,_svgElement,tmpElement.querySelector("svg")),__privateGet(this,_svgElement).style.cssText=`
55
- position: absolute;
56
- top: 0;
57
- left: 0;
58
- zIndex: -1;
59
- display: block;
60
- width: 100%;
61
- height: 100%;
62
- `,__privateSet(this,_pathElement,tmpElement.querySelector("path")),this.prepend(tmpElement.firstElementChild)}connectedCallback(){elementResizer_index.elementResizer.subscribe(this,__privateGet(this,_resizeListener)),intersector_index.ticker.subscribe(__privateGet(this,_resizeListener))}disconnectedCallback(){elementResizer_index.elementResizer.unsubscribe(__privateGet(this,_resizeListener))}};_svgElement=new WeakMap,_pathElement=new WeakMap,_resizeListener=new WeakMap,_NotchedElement_instances=new WeakSet,parseCSSNotchValue_fn=__name(function(value){const notchesString=value.split(",").map(v=>v.trim()).filter(v=>!!v),notches=[];return notchesString.forEach(notchString=>{const valuesStrings=notchString.split(" ").map(v=>v.trim()).filter(v=>!!v);notches.push({start:cssUnitParser_index.cssUnitParser.parse(valuesStrings[0])||0,length:cssUnitParser_index.cssUnitParser.parse(valuesStrings[1])||0,slope:cssUnitParser_index.cssUnitParser.parse(valuesStrings[2])||0,depth:cssUnitParser_index.cssUnitParser.parse(valuesStrings[3])||0})}),notches},"#parseCSSNotchValue"),__name(_NotchedElement,"NotchedElement");let NotchedElement=_NotchedElement;customElements.get("e-notched")||customElements.define("e-notched",NotchedElement);exports.NotchedElement=NotchedElement;
47
+ ${a+b+c} ${-d}`:rounded`l 0 ${-p}`}__name(drawTopLeftPath,"drawTopLeftPath");function toRadians(degrees){return degrees*Math.PI/180}__name(toRadians,"toRadians");function rounded(strings,...values){return strings.reduce((acc,str,i)=>{const value=values[i];return typeof value=="number"?acc+str+value.toFixed(4):acc+str+(value!=null?value:"")},"")}__name(rounded,"rounded");function getSvgPath({cornerRadius=0,topLeftCornerRadius,topRightCornerRadius,bottomRightCornerRadius,bottomLeftCornerRadius,cornerAngleAlpha=90,topLeftCornerAngleAlpha,topRightCornerAngleAlpha,bottomRightCornerAngleAlpha,bottomLeftCornerAngleAlpha,cornerSmoothing,preserveSmoothing=!1,topNotches,rightNotches,bottomNotches,leftNotches,width,height}){if(topLeftCornerRadius=topLeftCornerRadius!=null?topLeftCornerRadius:cornerRadius,topRightCornerRadius=topRightCornerRadius!=null?topRightCornerRadius:cornerRadius,bottomLeftCornerRadius=bottomLeftCornerRadius!=null?bottomLeftCornerRadius:cornerRadius,bottomRightCornerRadius=bottomRightCornerRadius!=null?bottomRightCornerRadius:cornerRadius,topLeftCornerAngleAlpha=topLeftCornerAngleAlpha!=null?topLeftCornerAngleAlpha:cornerAngleAlpha,topRightCornerAngleAlpha=topRightCornerAngleAlpha!=null?topRightCornerAngleAlpha:cornerAngleAlpha,bottomLeftCornerAngleAlpha=bottomLeftCornerAngleAlpha!=null?bottomLeftCornerAngleAlpha:cornerAngleAlpha,bottomRightCornerAngleAlpha=bottomRightCornerAngleAlpha!=null?bottomRightCornerAngleAlpha:cornerAngleAlpha,topLeftCornerRadius===topRightCornerRadius&&topRightCornerRadius===bottomRightCornerRadius&&bottomRightCornerRadius===bottomLeftCornerRadius&&bottomLeftCornerRadius===topLeftCornerRadius&&topLeftCornerAngleAlpha===topRightCornerAngleAlpha&&topRightCornerAngleAlpha===bottomRightCornerAngleAlpha&&bottomRightCornerAngleAlpha===bottomLeftCornerAngleAlpha&&bottomLeftCornerAngleAlpha===topLeftCornerAngleAlpha){const roundingAndSmoothingBudget=Math.min(width,height)/2,cornerRadius2=Math.min(topLeftCornerRadius,roundingAndSmoothingBudget),pathParams=getPathParamsForCorner({cornerRadius:cornerRadius2,cornerSmoothing,cornerAngleAlpha,preserveSmoothing,roundingAndSmoothingBudget});return getSVGPathFromPathParams({width,height,topLeftPathParams:pathParams,topRightPathParams:pathParams,bottomLeftPathParams:pathParams,bottomRightPathParams:pathParams,topNotches,rightNotches,bottomNotches,leftNotches})}const{topLeft,topRight,bottomLeft,bottomRight}=distributeAndNormalize({topLeftCornerRadius,topRightCornerRadius,bottomRightCornerRadius,bottomLeftCornerRadius,width,height});return getSVGPathFromPathParams({width,height,topLeftPathParams:getPathParamsForCorner({cornerSmoothing,preserveSmoothing,cornerRadius:topLeft.radius,roundingAndSmoothingBudget:topLeft.roundingAndSmoothingBudget,cornerAngleAlpha:topLeftCornerAngleAlpha}),topRightPathParams:getPathParamsForCorner({cornerSmoothing,preserveSmoothing,cornerRadius:topRight.radius,roundingAndSmoothingBudget:topRight.roundingAndSmoothingBudget,cornerAngleAlpha:topRightCornerAngleAlpha}),bottomRightPathParams:getPathParamsForCorner({cornerSmoothing,preserveSmoothing,cornerRadius:bottomRight.radius,roundingAndSmoothingBudget:bottomRight.roundingAndSmoothingBudget,cornerAngleAlpha:bottomRightCornerAngleAlpha}),bottomLeftPathParams:getPathParamsForCorner({cornerSmoothing,preserveSmoothing,cornerRadius:bottomLeft.radius,roundingAndSmoothingBudget:bottomLeft.roundingAndSmoothingBudget,cornerAngleAlpha:bottomLeftCornerAngleAlpha}),topNotches,rightNotches,bottomNotches,leftNotches})}__name(getSvgPath,"getSvgPath");var _clipId,_resizeListener,_NotchedElement_instances,parseCSSNotchValue_fn;const _NotchedElement=class _NotchedElement extends HTMLElement{constructor(){super();__privateAdd(this,_NotchedElement_instances);__privateAdd(this,_clipId);__privateAdd(this,_resizeListener,__name(()=>{const width=this.offsetWidth,height=this.offsetHeight,computed=getComputedStyle(this),cornerRadius=cssUnitParser_index.cssUnitParser.parse(computed.getPropertyValue("--notched-corner-radius")),topLeftCornerRadius=cssUnitParser_index.cssUnitParser.parse(computed.getPropertyValue("--notched-top-left-corner-radius")),topRightCornerRadius=cssUnitParser_index.cssUnitParser.parse(computed.getPropertyValue("--notched-top-right-corner-radius")),bottomRightCornerRadius=cssUnitParser_index.cssUnitParser.parse(computed.getPropertyValue("--notched-bottom-right-corner-radius")),bottomLeftCornerRadius=cssUnitParser_index.cssUnitParser.parse(computed.getPropertyValue("--notched-bottom-left-corner-radius")),cornerAngleAlpha=parseFloat(computed.getPropertyValue("--notched-corner-angle-alpha"))||void 0,topLeftCornerAngleAlpha=parseFloat(computed.getPropertyValue("--notched-top-left-corner-angle-alpha"))||void 0,topRightCornerAngleAlpha=parseFloat(computed.getPropertyValue("--notched-top-right-corner-angle-alpha"))||void 0,bottomRightCornerAngleAlpha=parseFloat(computed.getPropertyValue("--notched-bottom-right-corner-angle-alpha"))||void 0,bottomLeftCornerAngleAlpha=parseFloat(computed.getPropertyValue("--notched-bottom-left-corner-angle-alpha"))||void 0,cornerSmoothing=parseFloat(computed.getPropertyValue("--notched-corner-smoothing"))||0,preserveSmoothing=computed.getPropertyValue("--notched-preserve-smoothing")!=="false",topNotches=__privateMethod(this,_NotchedElement_instances,parseCSSNotchValue_fn).call(this,computed.getPropertyValue("--notched-top-notches")),rightNotches=__privateMethod(this,_NotchedElement_instances,parseCSSNotchValue_fn).call(this,computed.getPropertyValue("--notched-right-notches")),bottomNotches=__privateMethod(this,_NotchedElement_instances,parseCSSNotchValue_fn).call(this,computed.getPropertyValue("--notched-bottom-notches")),leftNotches=__privateMethod(this,_NotchedElement_instances,parseCSSNotchValue_fn).call(this,computed.getPropertyValue("--notched-left-notches")),path=getSvgPath({cornerRadius,topLeftCornerRadius,topRightCornerRadius,bottomRightCornerRadius,bottomLeftCornerRadius,cornerAngleAlpha,topLeftCornerAngleAlpha,topRightCornerAngleAlpha,bottomRightCornerAngleAlpha,bottomLeftCornerAngleAlpha,cornerSmoothing,preserveSmoothing,topNotches,rightNotches,bottomNotches,leftNotches,width,height});this.style.maskImage=`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${this.offsetWidth}' height='${this.offsetHeight}' viewBox='0 0 ${this.offsetWidth} ${this.offsetHeight}'%3E%3Cdefs%3E%3CclipPath id='${__privateGet(this,_clipId)}'%3E%3Cpath fill='%23000' d='${path}'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg clip-path='url(%23${__privateGet(this,_clipId)})' %3E%3Crect width='${this.offsetWidth}' height='${this.offsetHeight}' fill='%23000'/%3E%3C/g%3E%3C/svg%3E")`,this.style.maskPosition="center center",this.style.maskRepeat="no-repeat",this.style.maskSize="contain"},"#resizeListener"));__privateSet(this,_clipId,"clip-"+string.generateId(10))}connectedCallback(){elementResizer_index.elementResizer.subscribe(this,__privateGet(this,_resizeListener)),intersector_index.ticker.subscribe(__privateGet(this,_resizeListener))}disconnectedCallback(){elementResizer_index.elementResizer.unsubscribe(__privateGet(this,_resizeListener))}};_clipId=new WeakMap,_resizeListener=new WeakMap,_NotchedElement_instances=new WeakSet,parseCSSNotchValue_fn=__name(function(value){const notchesString=value.split(",").map(v=>v.trim()).filter(v=>!!v),notches=[];return notchesString.forEach(notchString=>{const valuesStrings=notchString.split(" ").map(v=>v.trim()).filter(v=>!!v);notches.push({start:cssUnitParser_index.cssUnitParser.parse(valuesStrings[0])||0,length:cssUnitParser_index.cssUnitParser.parse(valuesStrings[1])||0,slope:cssUnitParser_index.cssUnitParser.parse(valuesStrings[2])||0,depth:cssUnitParser_index.cssUnitParser.parse(valuesStrings[3])||0})}),notches},"#parseCSSNotchValue"),__name(_NotchedElement,"NotchedElement");let NotchedElement=_NotchedElement;customElements.get("e-notched")||customElements.define("e-notched",NotchedElement);exports.NotchedElement=NotchedElement;
@@ -372,21 +372,14 @@ function getSvgPath({
372
372
  });
373
373
  }
374
374
  __name(getSvgPath, "getSvgPath");
375
- var _svgElement, _pathElement, _resizeListener, _NotchedElement_instances, parseCSSNotchValue_fn;
375
+ var _clipId, _resizeListener, _NotchedElement_instances, parseCSSNotchValue_fn;
376
376
  const _NotchedElement = class _NotchedElement extends HTMLElement {
377
377
  constructor() {
378
378
  super();
379
379
  __privateAdd(this, _NotchedElement_instances);
380
- __privateAdd(this, _svgElement);
381
- __privateAdd(this, _pathElement);
380
+ __privateAdd(this, _clipId);
382
381
  __privateAdd(this, _resizeListener, /* @__PURE__ */ __name(() => {
383
- const width = this.offsetWidth, height = this.offsetHeight, computed = getComputedStyle(this);
384
- __privateGet(this, _svgElement).setAttributeNS(
385
- "http://www.w3.org/2000/svg",
386
- "viewBox",
387
- `0 0 ${width} ${height}`
388
- );
389
- const cornerRadius = cssUnitParser.parse(
382
+ const width = this.offsetWidth, height = this.offsetHeight, computed = getComputedStyle(this), cornerRadius = cssUnitParser.parse(
390
383
  computed.getPropertyValue("--notched-corner-radius")
391
384
  ), topLeftCornerRadius = cssUnitParser.parse(
392
385
  computed.getPropertyValue("--notched-top-left-corner-radius")
@@ -404,7 +397,7 @@ const _NotchedElement = class _NotchedElement extends HTMLElement {
404
397
  computed.getPropertyValue("--notched-bottom-right-corner-angle-alpha")
405
398
  ) || void 0, bottomLeftCornerAngleAlpha = parseFloat(
406
399
  computed.getPropertyValue("--notched-bottom-left-corner-angle-alpha")
407
- ) || void 0, cornerSmoothing = parseFloat(computed.getPropertyValue("--notched-corner-smoothing")) || 0, preserveSmoothing = computed.getPropertyValue("--notched-preserve-smoothing") !== "false", topNotches = __privateMethod(this, _NotchedElement_instances, parseCSSNotchValue_fn).call(this, computed.getPropertyValue("--notched-top-notches")), rightNotches = __privateMethod(this, _NotchedElement_instances, parseCSSNotchValue_fn).call(this, computed.getPropertyValue("--notched-right-notches")), bottomNotches = __privateMethod(this, _NotchedElement_instances, parseCSSNotchValue_fn).call(this, computed.getPropertyValue("--notched-bottom-notches")), leftNotches = __privateMethod(this, _NotchedElement_instances, parseCSSNotchValue_fn).call(this, computed.getPropertyValue("--notched-left-notches")), fill = computed.getPropertyValue("--notched-fill"), path = getSvgPath({
400
+ ) || void 0, cornerSmoothing = parseFloat(computed.getPropertyValue("--notched-corner-smoothing")) || 0, preserveSmoothing = computed.getPropertyValue("--notched-preserve-smoothing") !== "false", topNotches = __privateMethod(this, _NotchedElement_instances, parseCSSNotchValue_fn).call(this, computed.getPropertyValue("--notched-top-notches")), rightNotches = __privateMethod(this, _NotchedElement_instances, parseCSSNotchValue_fn).call(this, computed.getPropertyValue("--notched-right-notches")), bottomNotches = __privateMethod(this, _NotchedElement_instances, parseCSSNotchValue_fn).call(this, computed.getPropertyValue("--notched-bottom-notches")), leftNotches = __privateMethod(this, _NotchedElement_instances, parseCSSNotchValue_fn).call(this, computed.getPropertyValue("--notched-left-notches")), path = getSvgPath({
408
401
  cornerRadius,
409
402
  topLeftCornerRadius,
410
403
  topRightCornerRadius,
@@ -424,25 +417,9 @@ const _NotchedElement = class _NotchedElement extends HTMLElement {
424
417
  width,
425
418
  height
426
419
  });
427
- __privateGet(this, _pathElement).setAttribute("d", path), fill && __privateGet(this, _pathElement).setAttribute("fill", fill);
420
+ this.style.maskImage = `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${this.offsetWidth}' height='${this.offsetHeight}' viewBox='0 0 ${this.offsetWidth} ${this.offsetHeight}'%3E%3Cdefs%3E%3CclipPath id='${__privateGet(this, _clipId)}'%3E%3Cpath fill='%23000' d='${path}'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg clip-path='url(%23${__privateGet(this, _clipId)})' %3E%3Crect width='${this.offsetWidth}' height='${this.offsetHeight}' fill='%23000'/%3E%3C/g%3E%3C/svg%3E")`, this.style.maskPosition = "center center", this.style.maskRepeat = "no-repeat", this.style.maskSize = "contain";
428
421
  }, "#resizeListener"));
429
- const clipContent = this.hasAttribute("clip-content"), clipId = this.hasAttribute("clip") || clipContent ? "clip-" + generateId(10) : null, tmpElement = document.createElement("div");
430
- tmpElement.innerHTML = `
431
- <svg xmlns="http://www.w3.org/2000/svg">
432
- ${clipId ? `<clipPath id="${clipId}">` : ""}
433
- <path></path>
434
- ${clipId ? "</clipPath>" : ""}
435
- </svg>
436
- <slot></slot>
437
- `, clipId && (clipContent && this.firstElementChild instanceof HTMLElement ? this.firstElementChild.style.clipPath = `url(#${clipId})` : this.style.clipPath = `url(#${clipId})`), this.style.position = "relative", __privateSet(this, _svgElement, tmpElement.querySelector("svg")), __privateGet(this, _svgElement).style.cssText = `
438
- position: absolute;
439
- top: 0;
440
- left: 0;
441
- zIndex: -1;
442
- display: block;
443
- width: 100%;
444
- height: 100%;
445
- `, __privateSet(this, _pathElement, tmpElement.querySelector("path")), this.prepend(tmpElement.firstElementChild);
422
+ __privateSet(this, _clipId, "clip-" + generateId(10));
446
423
  }
447
424
  connectedCallback() {
448
425
  elementResizer.subscribe(this, __privateGet(this, _resizeListener)), ticker.subscribe(__privateGet(this, _resizeListener));
@@ -451,7 +428,7 @@ const _NotchedElement = class _NotchedElement extends HTMLElement {
451
428
  elementResizer.unsubscribe(__privateGet(this, _resizeListener));
452
429
  }
453
430
  };
454
- _svgElement = new WeakMap(), _pathElement = new WeakMap(), _resizeListener = new WeakMap(), _NotchedElement_instances = new WeakSet(), parseCSSNotchValue_fn = /* @__PURE__ */ __name(function(value) {
431
+ _clipId = new WeakMap(), _resizeListener = new WeakMap(), _NotchedElement_instances = new WeakSet(), parseCSSNotchValue_fn = /* @__PURE__ */ __name(function(value) {
455
432
  const notchesString = value.split(",").map((v) => v.trim()).filter((v) => !!v), notches = [];
456
433
  return notchesString.forEach((notchString) => {
457
434
  const valuesStrings = notchString.split(" ").map((v) => v.trim()).filter((v) => !!v);
@@ -1 +1 @@
1
- "use strict";var __defProp=Object.defineProperty;var __getOwnPropSymbols=Object.getOwnPropertySymbols;var __hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable;var __typeError=msg=>{throw TypeError(msg)};var __defNormalProp=(obj,key,value)=>key in obj?__defProp(obj,key,{enumerable:!0,configurable:!0,writable:!0,value}):obj[key]=value,__spreadValues=(a,b)=>{for(var prop in b||(b={}))__hasOwnProp.call(b,prop)&&__defNormalProp(a,prop,b[prop]);if(__getOwnPropSymbols)for(var prop of __getOwnPropSymbols(b))__propIsEnum.call(b,prop)&&__defNormalProp(a,prop,b[prop]);return a};var __name=(target,value)=>__defProp(target,"name",{value,configurable:!0});var __accessCheck=(obj,member,msg)=>member.has(obj)||__typeError("Cannot "+msg);var __privateGet=(obj,member,getter)=>(__accessCheck(obj,member,"read from private field"),getter?getter.call(obj):member.get(obj)),__privateAdd=(obj,member,value)=>member.has(obj)?__typeError("Cannot add the same private member more than once"):member instanceof WeakSet?member.add(obj):member.set(obj,value),__privateSet=(obj,member,value,setter)=>(__accessCheck(obj,member,"write to private field"),setter?setter.call(obj,value):member.set(obj,value),value),__privateMethod=(obj,member,method)=>(__accessCheck(obj,member,"access private method"),method);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../Store-BkYJHJp5.cjs");const coordinates=require("../coordinates-DQ9XV9M1.cjs"),dom=require("../dom-B40i6NXw.cjs"),math=require("../math-C-knY2TL.cjs");require("construct-style-sheets-polyfill");const intersector_index=require("../index-Cz5-98rw.cjs"),Damped=require("../Damped-CYCcZu-z.cjs"),elementResizer_index=require("../element-resizer/index.cjs"),windowResizer_index=require("../window-resizer/index.cjs"),cssProperty_index=require("../css-property/index.cjs");var _element,_x,_y,_z,_cartesian,_normalize,_fullScreen,_width,_height,_entered,_pointerEnterListener,_pointerLeaveListener,_pointerMoveListener,_resizeListener,_Pointer_instances,getPointerCoords_fn;const _Pointer=class _Pointer{constructor(parameters){__privateAdd(this,_Pointer_instances);__privateAdd(this,_element);__privateAdd(this,_x);__privateAdd(this,_y);__privateAdd(this,_z);__privateAdd(this,_cartesian);__privateAdd(this,_normalize);__privateAdd(this,_fullScreen,!1);__privateAdd(this,_width,0);__privateAdd(this,_height,0);__privateAdd(this,_entered,!1);__privateAdd(this,_pointerEnterListener,__name(e=>{__privateSet(this,_entered,!0);const pointer=__privateMethod(this,_Pointer_instances,getPointerCoords_fn).call(this,e);__privateGet(this,_x).set(pointer.x,{equalize:!0}),__privateGet(this,_y).set(pointer.y,{equalize:!0}),__privateGet(this,_z).set(1)},"#pointerEnterListener"));__privateAdd(this,_pointerLeaveListener,__name(e=>{__privateSet(this,_entered,!1),__privateGet(this,_z).set(0)},"#pointerLeaveListener"));__privateAdd(this,_pointerMoveListener,__name(e=>{__privateGet(this,_entered)||__privateGet(this,_pointerEnterListener).call(this,e);const pointer=__privateMethod(this,_Pointer_instances,getPointerCoords_fn).call(this,e);__privateGet(this,_x).set(pointer.x),__privateGet(this,_y).set(pointer.y)},"#pointerMoveListener"));__privateAdd(this,_resizeListener,__name(()=>{__privateGet(this,_fullScreen)?(__privateSet(this,_width,document.documentElement.clientWidth),__privateSet(this,_height,innerHeight)):(__privateSet(this,_width,this.element.clientWidth),__privateSet(this,_height,this.element.clientHeight));let xmin=0,xmax=0,ymin=0,ymax=0;__privateGet(this,_cartesian)?__privateGet(this,_normalize)?(xmin=-1,xmax=1,ymin=-1,ymax=1):(xmin=__privateGet(this,_width)/2*-1,xmax=__privateGet(this,_width)/2*1,ymin=__privateGet(this,_height)/2*-1,ymax=__privateGet(this,_height)/2*1):__privateGet(this,_normalize)?(xmin=0,xmax=1,ymin=0,ymax=1):(xmin=0,xmax=__privateGet(this,_width),ymin=0,ymax=__privateGet(this,_height)),__privateGet(this,_x).min=xmin,__privateGet(this,_x).max=xmax,__privateGet(this,_y).min=ymin,__privateGet(this,_y).max=ymax},"#resizeListener"));__privateSet(this,_element,dom.getElement(parameters.element)),__privateSet(this,_x,new Damped.Damped(0,parameters.damped)),__privateSet(this,_y,new Damped.Damped(0,parameters.damped)),__privateSet(this,_z,new Damped.Damped(0,__spreadValues({min:0,max:1},parameters.damped))),__privateSet(this,_cartesian,parameters.cartesian||!1),__privateSet(this,_normalize,parameters.normalize||!1),__privateSet(this,_fullScreen,parameters.fullScreen||!1)}get element(){return __privateGet(this,_element)}get x(){return __privateGet(this,_x)}get y(){return __privateGet(this,_y)}get z(){return __privateGet(this,_z)}get cartesian(){return __privateGet(this,_cartesian)}set cartesian(value){__privateSet(this,_cartesian,value),__privateGet(this,_resizeListener).call(this)}get normalize(){return __privateGet(this,_normalize)}set normalize(value){__privateSet(this,_normalize,value),__privateGet(this,_resizeListener).call(this)}connect(){__privateGet(this,_element).addEventListener("pointerenter",__privateGet(this,_pointerEnterListener)),__privateGet(this,_element).addEventListener("pointerleave",__privateGet(this,_pointerLeaveListener)),__privateGet(this,_element).addEventListener("pointermove",__privateGet(this,_pointerMoveListener)),elementResizer_index.elementResizer.subscribe(__privateGet(this,_element),__privateGet(this,_resizeListener)),windowResizer_index.windowResizer.subscribe(__privateGet(this,_resizeListener))}disconnect(){__privateGet(this,_element).removeEventListener("pointerenter",__privateGet(this,_pointerEnterListener)),__privateGet(this,_element).removeEventListener("pointerleave",__privateGet(this,_pointerLeaveListener)),__privateGet(this,_element).removeEventListener("pointermove",__privateGet(this,_pointerMoveListener)),elementResizer_index.elementResizer.unsubscribe(__privateGet(this,_resizeListener)),windowResizer_index.windowResizer.unsubscribe(__privateGet(this,_resizeListener)),__privateGet(this,_x).reset(),__privateGet(this,_y).reset(),__privateGet(this,_z).reset()}};_element=new WeakMap,_x=new WeakMap,_y=new WeakMap,_z=new WeakMap,_cartesian=new WeakMap,_normalize=new WeakMap,_fullScreen=new WeakMap,_width=new WeakMap,_height=new WeakMap,_entered=new WeakMap,_pointerEnterListener=new WeakMap,_pointerLeaveListener=new WeakMap,_pointerMoveListener=new WeakMap,_resizeListener=new WeakMap,_Pointer_instances=new WeakSet,getPointerCoords_fn=__name(function(event){let pos=null;__privateGet(this,_fullScreen)?pos={x:event.clientX,y:event.clientY}:pos=coordinates.getPointerPosition(event,__privateGet(this,_element).getBoundingClientRect());const size={width:__privateGet(this,_width),height:__privateGet(this,_height)},pointer={x:pos.x,y:pos.y};if(__privateGet(this,_cartesian)){const res=coordinates.screenToCartesian(pointer,size);pointer.x=res.x,pointer.y=res.y}if(__privateGet(this,_normalize)){const res=coordinates.normalize(pointer,size);__privateGet(this,_cartesian)?(pointer.x=math.clamp(res.x*2,-1,1),pointer.y=math.clamp(res.y*2,-1,1)):(pointer.x=res.x,pointer.y=res.y)}return pointer},"#getPointerCoords"),__name(_Pointer,"Pointer");let Pointer=_Pointer;var _pointer,_dampingCSSProperty,_massCSSProperty,_stiffnessCSSProperty,_cartesianCSSProperty,_normalizeCSSProperty;const _PointerElement=class _PointerElement extends HTMLElement{constructor(){super();__privateAdd(this,_pointer);__privateAdd(this,_dampingCSSProperty,new cssProperty_index.CSSProperty(this,"--damping",20));__privateAdd(this,_massCSSProperty,new cssProperty_index.CSSProperty(this,"--mass",0));__privateAdd(this,_stiffnessCSSProperty,new cssProperty_index.CSSProperty(this,"--stiffness",0));__privateAdd(this,_cartesianCSSProperty,new cssProperty_index.CSSProperty(this,"--cartesian",!1));__privateAdd(this,_normalizeCSSProperty,new cssProperty_index.CSSProperty(this,"--normalize",!1));__privateSet(this,_pointer,new Pointer({element:this})),__privateGet(this,_dampingCSSProperty).subscribe(e=>{__privateGet(this,_pointer).x.damping=e.current,__privateGet(this,_pointer).y.damping=e.current,__privateGet(this,_pointer).z.damping=e.current}),__privateGet(this,_cartesianCSSProperty).subscribe(e=>{__privateGet(this,_pointer).cartesian=e.current}),__privateGet(this,_normalizeCSSProperty).subscribe(e=>{__privateGet(this,_pointer).normalize=e.current}),__privateGet(this,_massCSSProperty).subscribe(e=>{__privateGet(this,_pointer).x.mass=e.current,__privateGet(this,_pointer).y.mass=e.current,__privateGet(this,_pointer).z.mass=e.current}),__privateGet(this,_stiffnessCSSProperty).subscribe(e=>{__privateGet(this,_pointer).x.stiffness=e.current,__privateGet(this,_pointer).y.stiffness=e.current,__privateGet(this,_pointer).z.stiffness=e.current}),__privateGet(this,_pointer).x.subscribe(e=>{this.style.setProperty("--x",e.current.toString())}),__privateGet(this,_pointer).y.subscribe(e=>{this.style.setProperty("--y",e.current.toString())}),__privateGet(this,_pointer).z.subscribe(e=>{this.style.setProperty("--z",e.current.toString())})}get pointer(){return __privateGet(this,_pointer)}connectedCallback(){__privateGet(this,_pointer).connect(),__privateGet(this,_dampingCSSProperty).observe(),__privateGet(this,_massCSSProperty).observe(),__privateGet(this,_stiffnessCSSProperty).observe()}disconnectedCallback(){__privateGet(this,_pointer).disconnect(),__privateGet(this,_dampingCSSProperty).unobserve(),__privateGet(this,_massCSSProperty).unobserve(),__privateGet(this,_stiffnessCSSProperty).unobserve(),this.style.removeProperty("--x"),this.style.removeProperty("--y"),this.style.removeProperty("--z")}};_pointer=new WeakMap,_dampingCSSProperty=new WeakMap,_massCSSProperty=new WeakMap,_stiffnessCSSProperty=new WeakMap,_cartesianCSSProperty=new WeakMap,_normalizeCSSProperty=new WeakMap,__name(_PointerElement,"PointerElement");let PointerElement=_PointerElement;intersector_index.isBrowser&&!customElements.get("e-pointer")&&customElements.define("e-pointer",PointerElement);exports.Pointer=Pointer;exports.PointerElement=PointerElement;
1
+ "use strict";var __defProp=Object.defineProperty;var __typeError=msg=>{throw TypeError(msg)};var __name=(target,value)=>__defProp(target,"name",{value,configurable:!0});var __accessCheck=(obj,member,msg)=>member.has(obj)||__typeError("Cannot "+msg);var __privateGet=(obj,member,getter)=>(__accessCheck(obj,member,"read from private field"),getter?getter.call(obj):member.get(obj)),__privateAdd=(obj,member,value)=>member.has(obj)?__typeError("Cannot add the same private member more than once"):member instanceof WeakSet?member.add(obj):member.set(obj,value),__privateSet=(obj,member,value,setter)=>(__accessCheck(obj,member,"write to private field"),setter?setter.call(obj,value):member.set(obj,value),value),__privateMethod=(obj,member,method)=>(__accessCheck(obj,member,"access private method"),method);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../Store-BkYJHJp5.cjs");const coordinates=require("../coordinates-DQ9XV9M1.cjs"),dom=require("../dom-B40i6NXw.cjs"),math=require("../math-C-knY2TL.cjs");require("construct-style-sheets-polyfill");const intersector_index=require("../index-Cz5-98rw.cjs"),Damped=require("../Damped-CYCcZu-z.cjs"),elementResizer_index=require("../element-resizer/index.cjs"),windowResizer_index=require("../window-resizer/index.cjs"),cssProperty_index=require("../css-property/index.cjs");var _element,_x,_y,_z,_cartesian,_normalize,_fullScreen,_width,_height,_entered,_pointerEnterListener,_pointerLeaveListener,_pointerMoveListener,_resizeListener,_Pointer_instances,getPointerCoords_fn;const _Pointer=class _Pointer{constructor(parameters){__privateAdd(this,_Pointer_instances);__privateAdd(this,_element);__privateAdd(this,_x);__privateAdd(this,_y);__privateAdd(this,_z);__privateAdd(this,_cartesian);__privateAdd(this,_normalize);__privateAdd(this,_fullScreen,!1);__privateAdd(this,_width,0);__privateAdd(this,_height,0);__privateAdd(this,_entered,!1);__privateAdd(this,_pointerEnterListener,__name(e=>{__privateSet(this,_entered,!0);const pointer=__privateMethod(this,_Pointer_instances,getPointerCoords_fn).call(this,e);__privateGet(this,_x).set(pointer.x,{equalize:!0}),__privateGet(this,_y).set(pointer.y,{equalize:!0}),__privateGet(this,_z).set(1)},"#pointerEnterListener"));__privateAdd(this,_pointerLeaveListener,__name(e=>{__privateSet(this,_entered,!1),__privateGet(this,_z).set(0)},"#pointerLeaveListener"));__privateAdd(this,_pointerMoveListener,__name(e=>{__privateGet(this,_entered)||__privateGet(this,_pointerEnterListener).call(this,e);const pointer=__privateMethod(this,_Pointer_instances,getPointerCoords_fn).call(this,e);__privateGet(this,_x).set(pointer.x),__privateGet(this,_y).set(pointer.y)},"#pointerMoveListener"));__privateAdd(this,_resizeListener,__name(()=>{__privateGet(this,_fullScreen)?(__privateSet(this,_width,document.documentElement.clientWidth),__privateSet(this,_height,innerHeight)):(__privateSet(this,_width,this.element.clientWidth),__privateSet(this,_height,this.element.clientHeight));let xmin=0,xmax=0,ymin=0,ymax=0;__privateGet(this,_cartesian)?__privateGet(this,_normalize)?(xmin=-1,xmax=1,ymin=-1,ymax=1):(xmin=__privateGet(this,_width)/2*-1,xmax=__privateGet(this,_width)/2*1,ymin=__privateGet(this,_height)/2*-1,ymax=__privateGet(this,_height)/2*1):__privateGet(this,_normalize)?(xmin=0,xmax=1,ymin=0,ymax=1):(xmin=0,xmax=__privateGet(this,_width),ymin=0,ymax=__privateGet(this,_height)),__privateGet(this,_x).min=xmin,__privateGet(this,_x).max=xmax,__privateGet(this,_y).min=ymin,__privateGet(this,_y).max=ymax},"#resizeListener"));__privateSet(this,_element,dom.getElement(parameters.element)),__privateSet(this,_x,new Damped.Damped(0,parameters.damped)),__privateSet(this,_y,new Damped.Damped(0,parameters.damped)),__privateSet(this,_z,new Damped.Damped(0,parameters.damped)),__privateSet(this,_cartesian,parameters.cartesian||!1),__privateSet(this,_normalize,parameters.normalize||!1),__privateSet(this,_fullScreen,parameters.fullScreen||!1)}get element(){return __privateGet(this,_element)}get x(){return __privateGet(this,_x)}get y(){return __privateGet(this,_y)}get z(){return __privateGet(this,_z)}get cartesian(){return __privateGet(this,_cartesian)}set cartesian(value){__privateSet(this,_cartesian,value),__privateGet(this,_resizeListener).call(this)}get normalize(){return __privateGet(this,_normalize)}set normalize(value){__privateSet(this,_normalize,value),__privateGet(this,_resizeListener).call(this)}connect(){__privateGet(this,_element).addEventListener("pointerenter",__privateGet(this,_pointerEnterListener)),__privateGet(this,_element).addEventListener("pointerleave",__privateGet(this,_pointerLeaveListener)),__privateGet(this,_element).addEventListener("pointermove",__privateGet(this,_pointerMoveListener)),elementResizer_index.elementResizer.subscribe(__privateGet(this,_element),__privateGet(this,_resizeListener)),windowResizer_index.windowResizer.subscribe(__privateGet(this,_resizeListener))}disconnect(){__privateGet(this,_element).removeEventListener("pointerenter",__privateGet(this,_pointerEnterListener)),__privateGet(this,_element).removeEventListener("pointerleave",__privateGet(this,_pointerLeaveListener)),__privateGet(this,_element).removeEventListener("pointermove",__privateGet(this,_pointerMoveListener)),elementResizer_index.elementResizer.unsubscribe(__privateGet(this,_resizeListener)),windowResizer_index.windowResizer.unsubscribe(__privateGet(this,_resizeListener)),__privateGet(this,_x).reset(),__privateGet(this,_y).reset(),__privateGet(this,_z).reset()}};_element=new WeakMap,_x=new WeakMap,_y=new WeakMap,_z=new WeakMap,_cartesian=new WeakMap,_normalize=new WeakMap,_fullScreen=new WeakMap,_width=new WeakMap,_height=new WeakMap,_entered=new WeakMap,_pointerEnterListener=new WeakMap,_pointerLeaveListener=new WeakMap,_pointerMoveListener=new WeakMap,_resizeListener=new WeakMap,_Pointer_instances=new WeakSet,getPointerCoords_fn=__name(function(event){let pos=null;__privateGet(this,_fullScreen)?pos={x:event.clientX,y:event.clientY}:pos=coordinates.getPointerPosition(event,__privateGet(this,_element).getBoundingClientRect());const size={width:__privateGet(this,_width),height:__privateGet(this,_height)},pointer={x:pos.x,y:pos.y};if(__privateGet(this,_cartesian)){const res=coordinates.screenToCartesian(pointer,size);pointer.x=res.x,pointer.y=res.y}if(__privateGet(this,_normalize)){const res=coordinates.normalize(pointer,size);__privateGet(this,_cartesian)?(pointer.x=math.clamp(res.x*2,-1,1),pointer.y=math.clamp(res.y*2,-1,1)):(pointer.x=res.x,pointer.y=res.y)}return pointer},"#getPointerCoords"),__name(_Pointer,"Pointer");let Pointer=_Pointer;var _pointer,_dampingCSSProperty,_massCSSProperty,_stiffnessCSSProperty,_cartesianCSSProperty,_normalizeCSSProperty;const _PointerElement=class _PointerElement extends HTMLElement{constructor(){super();__privateAdd(this,_pointer);__privateAdd(this,_dampingCSSProperty,new cssProperty_index.CSSProperty(this,"--damping",20));__privateAdd(this,_massCSSProperty,new cssProperty_index.CSSProperty(this,"--mass",0));__privateAdd(this,_stiffnessCSSProperty,new cssProperty_index.CSSProperty(this,"--stiffness",0));__privateAdd(this,_cartesianCSSProperty,new cssProperty_index.CSSProperty(this,"--cartesian",!1));__privateAdd(this,_normalizeCSSProperty,new cssProperty_index.CSSProperty(this,"--normalize",!1));__privateSet(this,_pointer,new Pointer({element:this})),__privateGet(this,_dampingCSSProperty).subscribe(e=>{__privateGet(this,_pointer).x.damping=e.current,__privateGet(this,_pointer).y.damping=e.current,__privateGet(this,_pointer).z.damping=e.current}),__privateGet(this,_cartesianCSSProperty).subscribe(e=>{__privateGet(this,_pointer).cartesian=e.current}),__privateGet(this,_normalizeCSSProperty).subscribe(e=>{__privateGet(this,_pointer).normalize=e.current}),__privateGet(this,_massCSSProperty).subscribe(e=>{__privateGet(this,_pointer).x.mass=e.current,__privateGet(this,_pointer).y.mass=e.current,__privateGet(this,_pointer).z.mass=e.current}),__privateGet(this,_stiffnessCSSProperty).subscribe(e=>{__privateGet(this,_pointer).x.stiffness=e.current,__privateGet(this,_pointer).y.stiffness=e.current,__privateGet(this,_pointer).z.stiffness=e.current}),__privateGet(this,_pointer).x.subscribe(e=>{this.style.setProperty("--x",e.current.toString())}),__privateGet(this,_pointer).y.subscribe(e=>{this.style.setProperty("--y",e.current.toString())}),__privateGet(this,_pointer).z.subscribe(e=>{this.style.setProperty("--z",e.current.toString())})}get pointer(){return __privateGet(this,_pointer)}connectedCallback(){__privateGet(this,_pointer).connect(),__privateGet(this,_dampingCSSProperty).observe(),__privateGet(this,_massCSSProperty).observe(),__privateGet(this,_stiffnessCSSProperty).observe()}disconnectedCallback(){__privateGet(this,_pointer).disconnect(),__privateGet(this,_dampingCSSProperty).unobserve(),__privateGet(this,_massCSSProperty).unobserve(),__privateGet(this,_stiffnessCSSProperty).unobserve(),this.style.removeProperty("--x"),this.style.removeProperty("--y"),this.style.removeProperty("--z")}};_pointer=new WeakMap,_dampingCSSProperty=new WeakMap,_massCSSProperty=new WeakMap,_stiffnessCSSProperty=new WeakMap,_cartesianCSSProperty=new WeakMap,_normalizeCSSProperty=new WeakMap,__name(_PointerElement,"PointerElement");let PointerElement=_PointerElement;intersector_index.isBrowser&&!customElements.get("e-pointer")&&customElements.define("e-pointer",PointerElement);exports.Pointer=Pointer;exports.PointerElement=PointerElement;
@@ -1,17 +1,7 @@
1
1
  var __defProp = Object.defineProperty;
2
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
3
- var __hasOwnProp = Object.prototype.hasOwnProperty, __propIsEnum = Object.prototype.propertyIsEnumerable;
4
2
  var __typeError = (msg) => {
5
3
  throw TypeError(msg);
6
4
  };
7
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: !0, configurable: !0, writable: !0, value }) : obj[key] = value, __spreadValues = (a, b) => {
8
- for (var prop in b || (b = {}))
9
- __hasOwnProp.call(b, prop) && __defNormalProp(a, prop, b[prop]);
10
- if (__getOwnPropSymbols)
11
- for (var prop of __getOwnPropSymbols(b))
12
- __propIsEnum.call(b, prop) && __defNormalProp(a, prop, b[prop]);
13
- return a;
14
- };
15
5
  var __name = (target, value) => __defProp(target, "name", { value, configurable: !0 });
16
6
  var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
17
7
  var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj)), __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value), __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value), __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
@@ -57,7 +47,7 @@ const _Pointer = class _Pointer {
57
47
  let xmin = 0, xmax = 0, ymin = 0, ymax = 0;
58
48
  __privateGet(this, _cartesian) ? __privateGet(this, _normalize) ? (xmin = -1, xmax = 1, ymin = -1, ymax = 1) : (xmin = __privateGet(this, _width) / 2 * -1, xmax = __privateGet(this, _width) / 2 * 1, ymin = __privateGet(this, _height) / 2 * -1, ymax = __privateGet(this, _height) / 2 * 1) : __privateGet(this, _normalize) ? (xmin = 0, xmax = 1, ymin = 0, ymax = 1) : (xmin = 0, xmax = __privateGet(this, _width), ymin = 0, ymax = __privateGet(this, _height)), __privateGet(this, _x).min = xmin, __privateGet(this, _x).max = xmax, __privateGet(this, _y).min = ymin, __privateGet(this, _y).max = ymax;
59
49
  }, "#resizeListener"));
60
- __privateSet(this, _element, getElement(parameters.element)), __privateSet(this, _x, new Damped(0, parameters.damped)), __privateSet(this, _y, new Damped(0, parameters.damped)), __privateSet(this, _z, new Damped(0, __spreadValues({ min: 0, max: 1 }, parameters.damped))), __privateSet(this, _cartesian, parameters.cartesian || !1), __privateSet(this, _normalize, parameters.normalize || !1), __privateSet(this, _fullScreen, parameters.fullScreen || !1);
50
+ __privateSet(this, _element, getElement(parameters.element)), __privateSet(this, _x, new Damped(0, parameters.damped)), __privateSet(this, _y, new Damped(0, parameters.damped)), __privateSet(this, _z, new Damped(0, parameters.damped)), __privateSet(this, _cartesian, parameters.cartesian || !1), __privateSet(this, _normalize, parameters.normalize || !1), __privateSet(this, _fullScreen, parameters.fullScreen || !1);
61
51
  }
62
52
  get element() {
63
53
  return __privateGet(this, _element);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aptechka",
3
- "version": "0.88.9",
3
+ "version": "0.88.11",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/denisavitski/aptechka.git"