@seatlayer/core 0.71.5 → 0.72.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.
- package/dist/{categoryInventory-r3OfIEQn.d.cts → categoryInventory-BU1j8Q70.d.cts} +1 -1
- package/dist/{categoryInventory-B8CDQtH4.d.ts → categoryInventory-Bt-0psga.d.ts} +1 -1
- package/dist/chunk-5U25QLSS.js +1 -0
- package/dist/{chunk-LR7WIR5Z.js → chunk-ALE2T36W.js} +1 -1
- package/dist/chunk-BLPBTW6I.js +1 -0
- package/dist/{chunk-GXMGOWKB.js → chunk-FMZ6HLDH.js} +1 -1
- package/dist/chunk-HXYWP6NX.js +1 -0
- package/dist/chunk-JBOTRSMY.js +1 -0
- package/dist/{chunk-MR2O5WC7.js → chunk-O5UWBFUT.js} +1 -1
- package/dist/chunk-XLGYWT5G.js +1 -0
- package/dist/chunk-YW2WGLRM.js +1 -0
- package/dist/core/chart-ops/index.cjs +1 -1
- package/dist/core/chart-ops/index.d.cts +38 -9
- package/dist/core/chart-ops/index.d.ts +38 -9
- package/dist/core/chart-ops/index.js +1 -1
- package/dist/core/color.cjs +1 -1
- package/dist/core/color.d.cts +4 -1
- package/dist/core/color.d.ts +4 -1
- package/dist/core/color.js +1 -1
- package/dist/core/inventory/index.cjs +1 -1
- package/dist/core/inventory/index.d.cts +15 -5
- package/dist/core/inventory/index.d.ts +15 -5
- package/dist/core/inventory/index.js +1 -1
- package/dist/core/layout/index.d.cts +6 -6
- package/dist/core/layout/index.d.ts +6 -6
- package/dist/core/quality/index.cjs +1 -1
- package/dist/core/quality/index.d.cts +3 -3
- package/dist/core/quality/index.d.ts +3 -3
- package/dist/core/quality/index.js +1 -1
- package/dist/core/render-assets/index.cjs +1 -1
- package/dist/core/render-assets/index.d.cts +1 -1
- package/dist/core/render-assets/index.d.ts +1 -1
- package/dist/core/render-assets/index.js +1 -1
- package/dist/core/seatConfidence.d.cts +1 -1
- package/dist/core/seatConfidence.d.ts +1 -1
- package/dist/core/sections/index.d.cts +7 -7
- package/dist/core/sections/index.d.ts +7 -7
- package/dist/{eventConfigurations-ByU_uPeS.d.cts → eventConfigurations-3uSorYVC.d.cts} +1 -1
- package/dist/{eventConfigurations-0OC43JJY.d.ts → eventConfigurations-DfVUGyCg.d.ts} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +12 -12
- package/dist/index.d.ts +12 -12
- package/dist/index.js +1 -1
- package/dist/{labeling-DAGq3u0z.d.cts → labeling-9RWWmJhZ.d.cts} +1 -1
- package/dist/{labeling-B05IJwd2.d.ts → labeling-BiWB-8aq.d.ts} +1 -1
- package/dist/{layout-e0Qe7jmM.d.cts → layout-B6iOoPOv.d.cts} +3 -3
- package/dist/{layout-DkDRcXvu.d.ts → layout-B7URbtDR.d.ts} +3 -3
- package/dist/{renderedQuality-BaejczsK.d.cts → renderedQuality-BZsq3wDe.d.cts} +1 -1
- package/dist/{renderedQuality-BwwrqYzX.d.ts → renderedQuality-C5dQiq97.d.ts} +1 -1
- package/dist/{renderer-BNicx5sw.d.ts → renderer-6sFRupj0.d.ts} +2 -2
- package/dist/{renderer-Duv1HhQg.d.cts → renderer-CBOo1OZk.d.cts} +2 -2
- package/dist/{sections-CrX4vq-m.d.ts → sections-Cn_sk1Sx.d.ts} +1 -1
- package/dist/{sections-BjGjR21N.d.cts → sections-DU6YDYoZ.d.cts} +1 -1
- package/dist/{segmentedRowModel-UO_YIQRB.d.cts → segmentedRowModel-CKmyHvKv.d.cts} +1 -1
- package/dist/{segmentedRowModel-BOO8w9Ng.d.ts → segmentedRowModel-DbP7pWUk.d.ts} +1 -1
- package/dist/{ticketRestrictions-dvlNTwem.d.ts → ticketRestrictions-CvS2oQ8v.d.ts} +2 -2
- package/dist/{ticketRestrictions-DUQrKTpS.d.cts → ticketRestrictions-DkenahW2.d.cts} +2 -2
- package/dist/{types-0yruRsAj.d.cts → types-D6-wLa-m.d.cts} +200 -20
- package/dist/{types-0yruRsAj.d.ts → types-D6-wLa-m.d.ts} +200 -20
- package/dist/view3d/crossfade/panorama.d.cts +1 -1
- package/dist/view3d/crossfade/panorama.d.ts +1 -1
- package/dist/view3d/index.cjs +27 -27
- package/dist/view3d/index.d.cts +3 -3
- package/dist/view3d/index.d.ts +3 -3
- package/dist/view3d/index.js +1 -1
- package/dist/view3d/scene/scene.worker.cjs +1 -1
- package/dist/view3d/scene/scene.worker.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-7KS6TAYH.js +0 -1
- package/dist/chunk-CXF32VPG.js +0 -1
- package/dist/chunk-JBGLFOJO.js +0 -1
- package/dist/chunk-NXFDYBZY.js +0 -1
- package/dist/chunk-SKO3DCVB.js +0 -1
- package/dist/chunk-T2LWVOQ3.js +0 -1
package/dist/core/color.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var A=Object.defineProperty;var X=Object.getOwnPropertyDescriptor;var z=Object.getOwnPropertyNames;var G=Object.prototype.hasOwnProperty;var V=(n,r)=>{for(var t in r)A(n,t,{get:r[t],enumerable:!0})},W=(n,r,t,e)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of z(r))!G.call(n,o)&&o!==t&&A(n,o,{get:()=>r[o],enumerable:!(e=X(r,o))||e.enumerable});return n};var B=n=>W(A({},"__esModule",{value:!0}),n);var an={};V(an,{AA_LARGE:()=>C,AA_TEXT:()=>Z,colorLuma:()=>H,contrastRatio:()=>p,contrastRatioOrNull:()=>Q,darken:()=>rn,deltaE:()=>J,desaturate:()=>sn,desaturateRgb01:()=>un,hexToRgb:()=>w,hexToRgb01:()=>U,hexToRgb255:()=>g,hslToRgb:()=>I,inkFor:()=>bn,isHexColor:()=>M,isLightColor:()=>nn,judgeAccent:()=>gn,lerpColor:()=>en,lighten:()=>tn,luma01:()=>L,mixColors:()=>on,mixRgb01:()=>k,opaqueColorHex:()=>D,passes:()=>q,relativeLuminance:()=>T,relativeLuminance01:()=>K,relativeLuminance255:()=>h,rgb01ToHex:()=>Y,rgb255ToHex:()=>m,rgbToHex:()=>y,rgbToHsl:()=>v,rgba:()=>cn,withAlpha:()=>_});module.exports=B(an);var O=/^#[0-9a-fA-F]{6}$/,E=/^#?([\da-f]{3}|[\da-f]{6})$/i,P=/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)(?:\s*,\s*([\d.]+))?\s*\)$/i;function M(n){return typeof n=="string"&&O.test(n)}function w(n){let r=n.replace("#","");return{r:parseInt(r.slice(0,2),16),g:parseInt(r.slice(2,4),16),b:parseInt(r.slice(4,6),16)}}function g(n){let r=E.exec((n??"").trim());if(!r)return null;let t=r[1].length===3?r[1].split("").map(o=>o+o).join(""):r[1],e=parseInt(t,16);return[e>>16&255,e>>8&255,e&255]}function U(n){let r=g(n);return r?[r[0]/255,r[1]/255,r[2]/255]:null}function y({r:n,g:r,b:t}){let e=o=>Math.max(0,Math.min(255,Math.round(o))).toString(16).padStart(2,"0");return`#${e(n)}${e(r)}${e(t)}`}function m(n,r,t){return y({r:n,g:r,b:t})}function Y(n){return m(n[0]*255,n[1]*255,n[2]*255)}function D(n){let r=n.trim(),t=E.exec(r);if(t&&r.startsWith("#"))return`#${(t[1].length===3?t[1].split("").map(u=>u+u).join(""):t[1]).toLowerCase()}`;let e=P.exec(r);if(!e||e[4]!=null&&Number(e[4])<.999)return null;let o=[Number(e[1]),Number(e[2]),Number(e[3])];return o.some(s=>!Number.isInteger(s)||s<0||s>255)?null:`#${o.map(s=>s.toString(16).padStart(2,"0")).join("")}`}function J(n,r){let t=s=>{let u=g(s);if(!u)return null;let i=x=>{let $=x/255;return $<=.04045?$/12.92:(($+.055)/1.055)**2.4},b=i(u[0]),c=i(u[1]),a=i(u[2]),l=(.4124*b+.3576*c+.1805*a)/.95047,R=.2126*b+.7152*c+.0722*a,S=(.0193*b+.1192*c+.9505*a)/1.08883,d=x=>x>.008856?Math.cbrt(x):7.787*x+16/116,j=d(l),N=d(R),F=d(S);return[116*N-16,500*(j-N),200*(N-F)]},e=t(n),o=t(r);return e&&o?Math.hypot(e[0]-o[0],e[1]-o[1],e[2]-o[2]):null}function f(n){let r=n/255;return r<=.04045?r/12.92:((r+.055)/1.055)**2.4}function T(n){let{r,g:t,b:e}=w(n);return .2126*f(r)+.7152*f(t)+.0722*f(e)}function h(n){return .2126*f(n[0])+.7152*f(n[1])+.0722*f(n[2])}function K(n){return h([n[0]*255,n[1]*255,n[2]*255])}function p(n,r){let t=T(n),e=T(r);return(Math.max(t,e)+.05)/(Math.min(t,e)+.05)}function Q(n,r){let t=g(n),e=g(r);if(!t||!e)return null;let o=h(t),s=h(e);return(Math.max(o,s)+.05)/(Math.min(o,s)+.05)}var Z=4.5,C=3;function q(n,r,t){return p(n,r)>=t}function H(n){let r=n.trim();if(r.startsWith("#")){let e=g(r);return e?(.2126*e[0]+.7152*e[1]+.0722*e[2])/255:NaN}let t=/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/.exec(r);return t?(.2126*+t[1]+.7152*+t[2]+.0722*+t[3])/255:NaN}function L(n){return .2126*n[0]+.7152*n[1]+.0722*n[2]}function nn(n,r=.6){let t=H(n);return!Number.isNaN(t)&&t>r}function tn(n,r){let t=g(n);return t?m(...t.map(e=>e+(255-e)*r)):n}function rn(n,r){let t=g(n);return t?m(...t.map(e=>e*(1-r))):n}function en(n,r,t){let e=g(n),o=g(r);return!e||!o?n:m(e[0]+(o[0]-e[0])*t,e[1]+(o[1]-e[1])*t,e[2]+(o[2]-e[2])*t)}function on(n,r){let t=0,e=0,o=0,s=0;for(let u of n){let i=g(u.hex);!i||u.w<=0||(t+=i[0]*u.w,e+=i[1]*u.w,o+=i[2]*u.w,s+=u.w)}return s>0?m(t/s,e/s,o/s):r}function k(n,r,t){return[n[0]+(r[0]-n[0])*t,n[1]+(r[1]-n[1])*t,n[2]+(r[2]-n[2])*t]}function sn(n,r){let t=g(n);if(!t)return n;let e=.2126*t[0]+.7152*t[1]+.0722*t[2];return m(...t.map(o=>o+(e-o)*r))}function un(n,r){let t=L(n);return k(n,[t,t,t],r)}function _(n,r){let t=g(n);return t?`rgba(${t[0]},${t[1]},${t[2]},${r})`:n}var cn=_;function v({r:n,g:r,b:t}){let e=n/255,o=r/255,s=t/255,u=Math.max(e,o,s),i=Math.min(e,o,s),b=(u+i)/2;if(u===i)return{h:0,s:0,l:b};let c=u-i,a=b>.5?c/(2-u-i):c/(u+i),l;return u===e?l=((o-s)/c+(o<s?6:0))/6:u===o?l=((s-e)/c+2)/6:l=((e-o)/c+4)/6,{h:l,s:a,l:b}}function I(n,r,t){if(r===0)return{r:t*255,g:t*255,b:t*255};let e=t<.5?t*(1+r):t+r-t*r,o=2*t-e,s=u=>{let i=u;return i<0&&(i+=1),i>1&&(i-=1),i<1/6?o+(e-o)*6*i:i<1/2?e:i<2/3?o+(e-o)*(2/3-i)*6:o};return{r:s(n+1/3)*255,g:s(n)*255,b:s(n-1/3)*255}}function gn(n,r,t=C){if(!M(n)||!M(r))return{requested:n,ratio:0,ok:!1,suggestion:null,suggestionRatio:0};let e=p(n,r);if(e>=t)return{requested:n,ratio:e,ok:!0,suggestion:null,suggestionRatio:e};let{h:o,s,l:u}=v(w(n)),i=.01,b=null;for(let c=i;c<=1;c+=i){for(let a of[u+c,u-c]){if(a<0||a>1)continue;let l=y(I(o,s,a)),R=p(l,r);if(R>=t){b={hex:l,ratio:R};break}}if(b)break}return{requested:n,ratio:e,ok:!1,suggestion:b?.hex??null,suggestionRatio:b?.ratio??0}}function bn(n,r,t){return p(r,n)>=p(t,n)?r:t}0&&(module.exports={AA_LARGE,AA_TEXT,colorLuma,contrastRatio,contrastRatioOrNull,darken,deltaE,desaturate,desaturateRgb01,hexToRgb,hexToRgb01,hexToRgb255,hslToRgb,inkFor,isHexColor,isLightColor,judgeAccent,lerpColor,lighten,luma01,mixColors,mixRgb01,opaqueColorHex,passes,relativeLuminance,relativeLuminance01,relativeLuminance255,rgb01ToHex,rgb255ToHex,rgbToHex,rgbToHsl,rgba,withAlpha});
|
package/dist/core/color.d.cts
CHANGED
|
@@ -66,6 +66,9 @@ declare function rgb01ToHex(rgb: Rgb01): string;
|
|
|
66
66
|
* a translucent paint being REFUSED rather than silently flattened.
|
|
67
67
|
*/
|
|
68
68
|
declare function opaqueColorHex(color: string): string | null;
|
|
69
|
+
/** Perceptual CIE76 distance for two opaque hex colours. `null` means either
|
|
70
|
+
* input is not a supported colour, so callers never silently group bad input. */
|
|
71
|
+
declare function deltaE(a: string, b: string): number | null;
|
|
69
72
|
/** WCAG relative luminance of a strict `#rrggbb`. `NaN` for an invalid hex. */
|
|
70
73
|
declare function relativeLuminance(hex: string): number;
|
|
71
74
|
/** WCAG relative luminance from 0–255 channels. */
|
|
@@ -189,4 +192,4 @@ declare function judgeAccent(requested: string, ground: string, floor?: number):
|
|
|
189
192
|
*/
|
|
190
193
|
declare function inkFor(background: string, dark: string, light: string): string;
|
|
191
194
|
|
|
192
|
-
export { AA_LARGE, AA_TEXT, type AccentVerdict, type Rgb, type Rgb01, type Rgb255, colorLuma, contrastRatio, contrastRatioOrNull, darken, desaturate, desaturateRgb01, hexToRgb, hexToRgb01, hexToRgb255, hslToRgb, inkFor, isHexColor, isLightColor, judgeAccent, lerpColor, lighten, luma01, mixColors, mixRgb01, opaqueColorHex, passes, relativeLuminance, relativeLuminance01, relativeLuminance255, rgb01ToHex, rgb255ToHex, rgbToHex, rgbToHsl, rgba, withAlpha };
|
|
195
|
+
export { AA_LARGE, AA_TEXT, type AccentVerdict, type Rgb, type Rgb01, type Rgb255, colorLuma, contrastRatio, contrastRatioOrNull, darken, deltaE, desaturate, desaturateRgb01, hexToRgb, hexToRgb01, hexToRgb255, hslToRgb, inkFor, isHexColor, isLightColor, judgeAccent, lerpColor, lighten, luma01, mixColors, mixRgb01, opaqueColorHex, passes, relativeLuminance, relativeLuminance01, relativeLuminance255, rgb01ToHex, rgb255ToHex, rgbToHex, rgbToHsl, rgba, withAlpha };
|
package/dist/core/color.d.ts
CHANGED
|
@@ -66,6 +66,9 @@ declare function rgb01ToHex(rgb: Rgb01): string;
|
|
|
66
66
|
* a translucent paint being REFUSED rather than silently flattened.
|
|
67
67
|
*/
|
|
68
68
|
declare function opaqueColorHex(color: string): string | null;
|
|
69
|
+
/** Perceptual CIE76 distance for two opaque hex colours. `null` means either
|
|
70
|
+
* input is not a supported colour, so callers never silently group bad input. */
|
|
71
|
+
declare function deltaE(a: string, b: string): number | null;
|
|
69
72
|
/** WCAG relative luminance of a strict `#rrggbb`. `NaN` for an invalid hex. */
|
|
70
73
|
declare function relativeLuminance(hex: string): number;
|
|
71
74
|
/** WCAG relative luminance from 0–255 channels. */
|
|
@@ -189,4 +192,4 @@ declare function judgeAccent(requested: string, ground: string, floor?: number):
|
|
|
189
192
|
*/
|
|
190
193
|
declare function inkFor(background: string, dark: string, light: string): string;
|
|
191
194
|
|
|
192
|
-
export { AA_LARGE, AA_TEXT, type AccentVerdict, type Rgb, type Rgb01, type Rgb255, colorLuma, contrastRatio, contrastRatioOrNull, darken, desaturate, desaturateRgb01, hexToRgb, hexToRgb01, hexToRgb255, hslToRgb, inkFor, isHexColor, isLightColor, judgeAccent, lerpColor, lighten, luma01, mixColors, mixRgb01, opaqueColorHex, passes, relativeLuminance, relativeLuminance01, relativeLuminance255, rgb01ToHex, rgb255ToHex, rgbToHex, rgbToHsl, rgba, withAlpha };
|
|
195
|
+
export { AA_LARGE, AA_TEXT, type AccentVerdict, type Rgb, type Rgb01, type Rgb255, colorLuma, contrastRatio, contrastRatioOrNull, darken, deltaE, desaturate, desaturateRgb01, hexToRgb, hexToRgb01, hexToRgb255, hslToRgb, inkFor, isHexColor, isLightColor, judgeAccent, lerpColor, lighten, luma01, mixColors, mixRgb01, opaqueColorHex, passes, relativeLuminance, relativeLuminance01, relativeLuminance255, rgb01ToHex, rgb255ToHex, rgbToHex, rgbToHsl, rgba, withAlpha };
|
package/dist/core/color.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A,B,C,D,E,F,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"../chunk-
|
|
1
|
+
import{A,B,C,D,E,F,G,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"../chunk-JBOTRSMY.js";export{p as AA_LARGE,o as AA_TEXT,r as colorLuma,m as contrastRatio,n as contrastRatioOrNull,v as darken,i as deltaE,z as desaturate,A as desaturateRgb01,b as hexToRgb,d as hexToRgb01,c as hexToRgb255,E as hslToRgb,G as inkFor,a as isHexColor,t as isLightColor,F as judgeAccent,w as lerpColor,u as lighten,s as luma01,x as mixColors,y as mixRgb01,h as opaqueColorHex,q as passes,j as relativeLuminance,l as relativeLuminance01,k as relativeLuminance255,g as rgb01ToHex,f as rgb255ToHex,e as rgbToHex,D as rgbToHsl,C as rgba,B as withAlpha};
|