@seatlayer/core 0.54.0 → 0.55.0
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-B4xo7hE2.d.ts → categoryInventory-BwarniiK.d.ts} +1 -1
- package/dist/{categoryInventory-lRtu3VjD.d.cts → categoryInventory-D3qPwfKz.d.cts} +1 -1
- package/dist/chunk-6XJN4REG.js +1 -0
- package/dist/{chunk-3QLFGEQY.js → chunk-DNGP2HDT.js} +1 -1
- package/dist/{chunk-QUKWJQLR.js → chunk-HHM3PB66.js} +1 -1
- package/dist/{chunk-EYROIZGQ.js → chunk-PXWKSYCK.js} +1 -1
- package/dist/chunk-VI2CLV3Y.js +1 -0
- package/dist/core/chart-ops/index.cjs +1 -1
- package/dist/core/chart-ops/index.d.cts +4 -4
- package/dist/core/chart-ops/index.d.ts +4 -4
- package/dist/core/chart-ops/index.js +1 -1
- package/dist/core/inventory/index.cjs +1 -1
- package/dist/core/inventory/index.d.cts +4 -4
- package/dist/core/inventory/index.d.ts +4 -4
- package/dist/core/inventory/index.js +1 -1
- package/dist/core/layout/index.d.cts +4 -4
- package/dist/core/layout/index.d.ts +4 -4
- 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 +5 -5
- package/dist/core/sections/index.d.ts +5 -5
- package/dist/{de-75NWRKC5.js → de-WPX4D3SY.js} +1 -1
- package/dist/{es-BM7EJ7PW.js → es-6KAJQVVX.js} +1 -1
- package/dist/{fr-HPXQHIB4.js → fr-5DTMRBN5.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +57 -12
- package/dist/index.d.ts +57 -12
- package/dist/index.js +1 -1
- package/dist/{labeling-w8bl86cb.d.ts → labeling-BmCzW50y.d.ts} +1 -1
- package/dist/{labeling-CsPt1mC_.d.cts → labeling-VfJBEOn0.d.cts} +1 -1
- package/dist/{layout-B5UYbwnv.d.ts → layout-ClQkmixY.d.ts} +3 -3
- package/dist/{layout-YFmuxw_M.d.cts → layout-Dlv5bIf2.d.cts} +3 -3
- package/dist/{renderedQuality-DbZM034G.d.ts → renderedQuality-B3jgdgPO.d.ts} +1 -1
- package/dist/{renderedQuality-CugJarFp.d.cts → renderedQuality-bDkUOyBL.d.cts} +1 -1
- package/dist/{renderer-IBi9YKWR.d.ts → renderer-B_g-W_QB.d.ts} +4 -1
- package/dist/{renderer-DhUHFtsI.d.cts → renderer-DySMcKAR.d.cts} +4 -1
- package/dist/{sections-mLOZrGrI.d.ts → sections-DIzgtDjF.d.ts} +1 -1
- package/dist/{sections-B7cDF0Nq.d.cts → sections-Dna1nZgR.d.cts} +1 -1
- package/dist/{segmentedRowModel-CGoH684F.d.cts → segmentedRowModel-BNXEUeHp.d.cts} +1 -1
- package/dist/{segmentedRowModel-BPTnJ7Tz.d.ts → segmentedRowModel-COXw4GCh.d.ts} +1 -1
- package/dist/{ticketRestrictions-BwAebpSK.d.cts → ticketRestrictions-CzchbX_o.d.cts} +2 -2
- package/dist/{ticketRestrictions-ChHJwvTq.d.ts → ticketRestrictions-DaYOCpEw.d.ts} +2 -2
- package/dist/{types-COfJorq_.d.cts → types-DTSG6_Hq.d.cts} +5 -4
- package/dist/{types-COfJorq_.d.ts → types-DTSG6_Hq.d.ts} +5 -4
- 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 +109 -3
- package/dist/view3d/index.d.ts +109 -3
- package/dist/view3d/index.js +27 -27
- package/package.json +1 -1
- package/dist/chunk-6LIPQU4G.js +0 -1
- package/dist/chunk-DDE7IOFT.js +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seatlayer/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.55.0",
|
|
4
4
|
"description": "Framework-agnostic seat-rendering runtime shared by the SeatLayer SDKs.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"homepage": "https://docs.seatlayer.io/buyer-sdk/install/",
|
package/dist/chunk-6LIPQU4G.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c,j as M,m as T}from"./chunk-CXF32VPG.js";var d=7,N=10,Z=15,R=11,k=.85,E=12,_=4.5,C=3,l="#000000",u="#ffffff",g=24,I=18.67;function G(t,n=400){return t>=g||n>=700&&t>=I?C:_}function H(t,n){return t*n>=E}var P=24,x={wheelchair:"M7.8 4.5a2.2 2.2 0 1 0 4.4 0a2.2 2.2 0 1 0 -4.4 0zM8 7L10.5 7L10.5 15L8 15ZM8 12.5L18 12.5L18 15L8 15ZM16 15L18 15L18 18L16 18ZM5.5 16a5.5 5.5 0 1 0 11 0a5.5 5.5 0 1 0 -11 0zM8 16a3 3 0 1 1 6 0a3 3 0 1 1 -6 0z",companion:"M5.5 6.5a3 3 0 1 0 6 0a3 3 0 1 0 -6 0zM4.5 18.5L6 11.5L11 11.5L12.5 18.5ZM12.5 7.5a3 3 0 1 0 6 0a3 3 0 1 0 -6 0zM11.5 19L13 12.5L18 12.5L19.5 19Z","semi-ambulatory":"M8.3 3.8a2.2 2.2 0 1 0 4.4 0a2.2 2.2 0 1 0 -4.4 0zM9 6.2L12 6.6L11 13.5L8.6 13L9 6.2ZM8.6 13L11 13L9.5 21L7 21ZM10.4 13L12.6 13L13.6 21L11.2 21ZM11.2 7.2L14 8L14.6 9.6L11.9 8.9ZM14.4 6.8L15.9 6.8L16.4 21L14.8 21Z",hearing:"M15.5 3.5C9 2.2 5.5 6 5.5 11.5C5.5 16 8 19.5 10.5 21C13.2 22.6 16.4 20.8 15.4 18C14.8 16.4 12.9 16.1 13 14C13.1 11.9 15.8 11.4 15.8 8.5C15.8 5.4 13 4 15.5 3.5Z",cart:"M5.5 6L18.5 6a2.5 2.5 0 0 1 2.5 2.5L21 15.5a2.5 2.5 0 0 1 -2.5 2.5L11 18L7 20.5L7.5 18L5.5 18a2.5 2.5 0 0 1 -2.5 -2.5L3 8.5a2.5 2.5 0 0 1 2.5 -2.5zM6.5 11L17.5 11L17.5 12.6L6.5 12.6zM6.5 14L17.5 14L17.5 15.6L6.5 15.6z","sign-language":"M7 11L17 11L17 18a2 2 0 0 1 -2 2L9 20a2 2 0 0 1 -2 -2zM7.6 5L9.4 5L9.4 12L7.6 12zM9.9 3.5L11.7 3.5L11.7 12L9.9 12zM12.3 3.5L14.1 3.5L14.1 12L12.3 12zM14.6 5L16.4 5L16.4 12L14.6 12zM7.2 12.5L5 10.2L6.4 8.9L8.6 11.2Z","plus-size":"M9.4 4.3a2.6 2.6 0 1 0 5.2 0a2.6 2.6 0 1 0 -5.2 0zM5 20L4 13C4 10.5 7 9.5 12 9.5C17 9.5 20 10.5 20 13L19 20Z","lift-armrest":"M5 6L8 6L8 19L5 19zM5 16L18 16L18 19L5 19zM8 12L17 12L17 14.5L8 14.5zM14 7L16 7L16 12L14 12zM12 7L18 7L15 3Z"},y=x.wheelchair;function X(t){if(!t?.length)return null;let n=t.includes("wheelchair")?"wheelchair":t[0];return x[n]??null}function v(t){return/-(\d{1,5})$/.exec(t)?.[1]??t}var a=T;function w(t,n,L){let r=c(t),o=c(n);if(!r||!o)return n;let e=Math.max(0,Math.min(1,L));return`#${r.map((s,p)=>Math.round(s*e+o[p]*(1-e))).map(s=>s.toString(16).padStart(2,"0")).join("")}`}var F=3;function b(t,n,L=_){let r=a(n,t);if(r!=null&&r>=L)return n;let o=a(l,t)??0,e=a(u,t)??0;return o===0&&e===0?n:o>=e?l:u}var O=3;function K(t){let n=a("#ffffff",t);if(n!=null&&n>=O)return"#ffffff";let L=a(l,t)??0,r=a(u,t)??0;return L===0&&r===0?"#ffffff":L>=r?l:u}var m=/^#[0-9a-f]{6}$/i;function S(t){let n=c(t);return n!=null&&M(n)>.5}var h="#e5e7eb",z="#273142";function Y(t){return S(t)?h:z}function D(t,n,L=_){let r=m.test(t.trim()),o=t.trim().toLowerCase(),e=0,i=0,s=null;for(let f of n){if(!r||!m.test(f.trim()))continue;e+=1;let A=b(f,t,L);A.toLowerCase()!==o&&(i+=1,s=A)}return{total:e,overridden:i,status:e===0?"none":i===0?"applies":i===e?"overridden":"mixed",overrideInk:s}}export{d as a,N as b,Z as c,R as d,k as e,E as f,_ as g,C as h,l as i,u as j,G as k,H as l,P as m,x as n,y as o,X as p,v as q,a as r,w as s,F as t,b as u,K as v,S as w,h as x,z as y,Y as z,D as A};
|
package/dist/chunk-DDE7IOFT.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var f="seatmap.chart";var c=[{key:"wheelchair",label:"Wheelchair space",short:"Wheelchair",icon:"\u267F"},{key:"companion",label:"Companion seat",short:"Companion",icon:"\u{1F9D1}\u200D\u{1F91D}\u200D\u{1F9D1}"},{key:"semi-ambulatory",label:"Semi-ambulatory (limited mobility)",short:"Limited mobility",icon:"\u{1F9AF}"},{key:"hearing",label:"Assistive listening",short:"Hearing",icon:"\u{1F9BB}"},{key:"cart",label:"CART live-caption view",short:"CART captions",icon:"CC"},{key:"sign-language",label:"Sign-language view",short:"Sign language",icon:"\u{1F91F}"},{key:"plus-size",label:"Plus-size seat",short:"Plus-size",icon:"\u{1F4BA}"},{key:"lift-armrest",label:"Lift-up armrest",short:"Lift armrest",icon:"\u2195\uFE0F"}],l=new Map(c.map(e=>[e.key,e]));function h(e){return l.get(e)}var d={wheelchair:"#3b82f6",companion:"#8b5cf6","semi-ambulatory":"#0ea5e9",hearing:"#14b8a6",cart:"#7c3aed","sign-language":"#f59e0b","plus-size":"#ec4899","lift-armrest":"#22c55e"};function x(e){let t=e?.[0];return t&&d[t]||"#3b82f6"}var u=[{key:"obstructedView",label:"Obstructed view",short:"Obstructed",icon:"\u26D4"},{key:"restrictedView",label:"Restricted view",short:"Restricted",icon:"\u{1F441}"},{key:"premium",label:"Premium seat",short:"Premium",icon:"\u2605"}],b=new Map(u.map(e=>[e.key,e]));function C(e){return b.get(e)}var w=8,R=24,m=["reference-focal","bar","entrance","exit","restroom","screen","sound","concession","coat","wall","rail","suite","obstruction"],g=new Set(m);function I(e){switch(e.type){case"row":case"table":case"gaArea":case"booth":case"section":return"interactive";case"decorImage":return e.layer==="foreground"?"foreground":"background";case"shape":return e.role&&g.has(e.role)?"surroundings":"background";case"text":return"background";default:return"interactive"}}function p(e){let t=0;for(let r=0,i=e.length;r<i;r+=1){let o=e[r],a=e[(r+1)%i];t+=o.x*a.y-a.x*o.y}return t/2}function M(e){return p(e)*2}function T(e,t,r){let i=!1;for(let o=0,a=e.length-1;o<e.length;a=o++){let n=e[o],s=e[a];n.y>r!=s.y>r&&t<(s.x-n.x)*(r-n.y)/(s.y-n.y)+n.x&&(i=!i)}return i}function y(e){let t=1/0,r=1/0,i=-1/0,o=-1/0,a=!1;for(let n of e)!Number.isFinite(n.x)||!Number.isFinite(n.y)||(a=!0,n.x<t&&(t=n.x),n.y<r&&(r=n.y),n.x>i&&(i=n.x),n.y>o&&(o=n.y));return a?{minX:t,minY:r,maxX:i,maxY:o}:null}function F(e){let t=y(e);return t?S(t):null}function S(e){return{x:e.minX,y:e.minY,width:e.maxX-e.minX,height:e.maxY-e.minY}}function D(e,t){return e.minX<=t.maxX&&t.minX<=e.maxX&&e.minY<=t.maxY&&t.minY<=e.maxY}export{f as a,c as b,h as c,d,x as e,u as f,C as g,w as h,R as i,m as j,I as k,p as l,M as m,T as n,y as o,F as p,D as q};
|