@seatmap-fyi/map-domain 0.0.0-stage → 0.1.0-alpha.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/case-fold-data.d.ts +1 -0
- package/dist/case-fold-data.js +4 -0
- package/dist/catalog.d.ts +15 -0
- package/dist/catalog.js +35 -0
- package/dist/geometry/boundary.d.ts +22 -0
- package/dist/geometry/boundary.js +69 -0
- package/dist/geometry/curve-warnings.d.ts +15 -0
- package/dist/geometry/curve-warnings.js +46 -0
- package/dist/geometry/ellipse.d.ts +5 -0
- package/dist/geometry/ellipse.js +74 -0
- package/dist/geometry/geometry.d.ts +37 -0
- package/dist/geometry/geometry.js +219 -0
- package/dist/geometry/primitives.d.ts +12 -0
- package/dist/geometry/primitives.js +35 -0
- package/dist/geometry/seating-layout.d.ts +43 -0
- package/dist/geometry/seating-layout.js +132 -0
- package/dist/geometry/venue-outline.d.ts +21 -0
- package/dist/geometry/venue-outline.js +120 -0
- package/dist/identity.d.ts +5 -0
- package/dist/identity.js +61 -0
- package/dist/issues.d.ts +46 -0
- package/dist/issues.js +55 -0
- package/dist/labels.d.ts +3 -0
- package/dist/labels.js +45 -0
- package/dist/reference.d.ts +29 -0
- package/dist/reference.js +51 -0
- package/dist/schema.d.ts +1629 -0
- package/dist/schema.js +560 -0
- package/dist/types.d.ts +313 -0
- package/dist/types.js +91 -0
- package/dist/validation.d.ts +27 -0
- package/dist/validation.js +267 -0
- package/package.json +84 -4
- package/src/unicode-license.txt +39 -0
- package/README.md +0 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const caseFoldData = "0041:0061;0042:0062;0043:0063;0044:0064;0045:0065;0046:0066;0047:0067;0048:0068;0049:0069;004a:006a;004b:006b;004c:006c;004d:006d;004e:006e;004f:006f;0050:0070;0051:0071;0052:0072;0053:0073;0054:0074;0055:0075;0056:0076;0057:0077;0058:0078;0059:0079;005a:007a;00b5:03bc;00c0:00e0;00c1:00e1;00c2:00e2;00c3:00e3;00c4:00e4;00c5:00e5;00c6:00e6;00c7:00e7;00c8:00e8;00c9:00e9;00ca:00ea;00cb:00eb;00cc:00ec;00cd:00ed;00ce:00ee;00cf:00ef;00d0:00f0;00d1:00f1;00d2:00f2;00d3:00f3;00d4:00f4;00d5:00f5;00d6:00f6;00d8:00f8;00d9:00f9;00da:00fa;00db:00fb;00dc:00fc;00dd:00fd;00de:00fe;00df:0073,0073;0100:0101;0102:0103;0104:0105;0106:0107;0108:0109;010a:010b;010c:010d;010e:010f;0110:0111;0112:0113;0114:0115;0116:0117;0118:0119;011a:011b;011c:011d;011e:011f;0120:0121;0122:0123;0124:0125;0126:0127;0128:0129;012a:012b;012c:012d;012e:012f;0130:0069,0307;0132:0133;0134:0135;0136:0137;0139:013a;013b:013c;013d:013e;013f:0140;0141:0142;0143:0144;0145:0146;0147:0148;0149:02bc,006e;014a:014b;014c:014d;014e:014f;0150:0151;0152:0153;0154:0155;0156:0157;0158:0159;015a:015b;015c:015d;015e:015f;0160:0161;0162:0163;0164:0165;0166:0167;0168:0169;016a:016b;016c:016d;016e:016f;0170:0171;0172:0173;0174:0175;0176:0177;0178:00ff;0179:017a;017b:017c;017d:017e;017f:0073;0181:0253;0182:0183;0184:0185;0186:0254;0187:0188;0189:0256;018a:0257;018b:018c;018e:01dd;018f:0259;0190:025b;0191:0192;0193:0260;0194:0263;0196:0269;0197:0268;0198:0199;019c:026f;019d:0272;019f:0275;01a0:01a1;01a2:01a3;01a4:01a5;01a6:0280;01a7:01a8;01a9:0283;01ac:01ad;01ae:0288;01af:01b0;01b1:028a;01b2:028b;01b3:01b4;01b5:01b6;01b7:0292;01b8:01b9;01bc:01bd;01c4:01c6;01c5:01c6;01c7:01c9;01c8:01c9;01ca:01cc;01cb:01cc;01cd:01ce;01cf:01d0;01d1:01d2;01d3:01d4;01d5:01d6;01d7:01d8;01d9:01da;01db:01dc;01de:01df;01e0:01e1;01e2:01e3;01e4:01e5;01e6:01e7;01e8:01e9;01ea:01eb;01ec:01ed;01ee:01ef;01f0:006a,030c;01f1:01f3;01f2:01f3;01f4:01f5;01f6:0195;01f7:01bf;01f8:01f9;01fa:01fb;01fc:01fd;01fe:01ff;0200:0201;0202:0203;0204:0205;0206:0207;0208:0209;020a:020b;020c:020d;020e:020f;0210:0211;0212:0213;0214:0215;0216:0217;0218:0219;021a:021b;021c:021d;021e:021f;0220:019e;0222:0223;0224:0225;0226:0227;0228:0229;022a:022b;022c:022d;022e:022f;0230:0231;0232:0233;023a:2c65;023b:023c;023d:019a;023e:2c66;0241:0242;0243:0180;0244:0289;0245:028c;0246:0247;0248:0249;024a:024b;024c:024d;024e:024f;0345:03b9;0370:0371;0372:0373;0376:0377;037f:03f3;0386:03ac;0388:03ad;0389:03ae;038a:03af;038c:03cc;038e:03cd;038f:03ce;0390:03b9,0308,0301;0391:03b1;0392:03b2;0393:03b3;0394:03b4;0395:03b5;0396:03b6;0397:03b7;0398:03b8;0399:03b9;039a:03ba;039b:03bb;039c:03bc;039d:03bd;039e:03be;039f:03bf;03a0:03c0;03a1:03c1;03a3:03c3;03a4:03c4;03a5:03c5;03a6:03c6;03a7:03c7;03a8:03c8;03a9:03c9;03aa:03ca;03ab:03cb;03b0:03c5,0308,0301;03c2:03c3;03cf:03d7;03d0:03b2;03d1:03b8;03d5:03c6;03d6:03c0;03d8:03d9;03da:03db;03dc:03dd;03de:03df;03e0:03e1;03e2:03e3;03e4:03e5;03e6:03e7;03e8:03e9;03ea:03eb;03ec:03ed;03ee:03ef;03f0:03ba;03f1:03c1;03f4:03b8;03f5:03b5;03f7:03f8;03f9:03f2;03fa:03fb;03fd:037b;03fe:037c;03ff:037d;0400:0450;0401:0451;0402:0452;0403:0453;0404:0454;0405:0455;0406:0456;0407:0457;0408:0458;0409:0459;040a:045a;040b:045b;040c:045c;040d:045d;040e:045e;040f:045f;0410:0430;0411:0431;0412:0432;0413:0433;0414:0434;0415:0435;0416:0436;0417:0437;0418:0438;0419:0439;041a:043a;041b:043b;041c:043c;041d:043d;041e:043e;041f:043f;0420:0440;0421:0441;0422:0442;0423:0443;0424:0444;0425:0445;0426:0446;0427:0447;0428:0448;0429:0449;042a:044a;042b:044b;042c:044c;042d:044d;042e:044e;042f:044f;0460:0461;0462:0463;0464:0465;0466:0467;0468:0469;046a:046b;046c:046d;046e:046f;0470:0471;0472:0473;0474:0475;0476:0477;0478:0479;047a:047b;047c:047d;047e:047f;0480:0481;048a:048b;048c:048d;048e:048f;0490:0491;0492:0493;0494:0495;0496:0497;0498:0499;049a:049b;049c:049d;049e:049f;04a0:04a1;04a2:04a3;04a4:04a5;04a6:04a7;04a8:04a9;04aa:04ab;04ac:04ad;04ae:04af;04b0:04b1;04b2:04b3;04b4:04b5;04b6:04b7;04b8:04b9;04ba:04bb;04bc:04bd;04be:04bf;04c0:04cf;04c1:04c2;04c3:04c4;04c5:04c6;04c7:04c8;04c9:04ca;04cb:04cc;04cd:04ce;04d0:04d1;04d2:04d3;04d4:04d5;04d6:04d7;04d8:04d9;04da:04db;04dc:04dd;04de:04df;04e0:04e1;04e2:04e3;04e4:04e5;04e6:04e7;04e8:04e9;04ea:04eb;04ec:04ed;04ee:04ef;04f0:04f1;04f2:04f3;04f4:04f5;04f6:04f7;04f8:04f9;04fa:04fb;04fc:04fd;04fe:04ff;0500:0501;0502:0503;0504:0505;0506:0507;0508:0509;050a:050b;050c:050d;050e:050f;0510:0511;0512:0513;0514:0515;0516:0517;0518:0519;051a:051b;051c:051d;051e:051f;0520:0521;0522:0523;0524:0525;0526:0527;0528:0529;052a:052b;052c:052d;052e:052f;0531:0561;0532:0562;0533:0563;0534:0564;0535:0565;0536:0566;0537:0567;0538:0568;0539:0569;053a:056a;053b:056b;053c:056c;053d:056d;053e:056e;053f:056f;0540:0570;0541:0571;0542:0572;0543:0573;0544:0574;0545:0575;0546:0576;0547:0577;0548:0578;0549:0579;054a:057a;054b:057b;054c:057c;054d:057d;054e:057e;054f:057f;0550:0580;0551:0581;0552:0582;0553:0583;0554:0584;0555:0585;0556:0586;0587:0565,0582;10a0:2d00;10a1:2d01;10a2:2d02;10a3:2d03;10a4:2d04;10a5:2d05;10a6:2d06;10a7:2d07;10a8:2d08;10a9:2d09;10aa:2d0a;10ab:2d0b;10ac:2d0c;10ad:2d0d;10ae:2d0e;10af:2d0f;10b0:2d10;10b1:2d11;10b2:2d12;10b3:2d13;10b4:2d14;10b5:2d15;10b6:2d16;10b7:2d17;10b8:2d18;10b9:2d19;10ba:2d1a;10bb:2d1b;10bc:2d1c;10bd:2d1d;10be:2d1e;10bf:2d1f;10c0:2d20;10c1:2d21;10c2:2d22;10c3:2d23;10c4:2d24;10c5:2d25;10c7:2d27;10cd:2d2d;13f8:13f0;13f9:13f1;13fa:13f2;13fb:13f3;13fc:13f4;13fd:13f5;1c80:0432;1c81:0434;1c82:043e;1c83:0441;1c84:0442;1c85:0442;1c86:044a;1c87:0463;1c88:a64b;1c89:1c8a;1c90:10d0;1c91:10d1;1c92:10d2;1c93:10d3;1c94:10d4;1c95:10d5;1c96:10d6;1c97:10d7;1c98:10d8;1c99:10d9;1c9a:10da;1c9b:10db;1c9c:10dc;1c9d:10dd;1c9e:10de;1c9f:10df;1ca0:10e0;1ca1:10e1;1ca2:10e2;1ca3:10e3;1ca4:10e4;1ca5:10e5;1ca6:10e6;1ca7:10e7;1ca8:10e8;1ca9:10e9;1caa:10ea;1cab:10eb;1cac:10ec;1cad:10ed;1cae:10ee;1caf:10ef;1cb0:10f0;1cb1:10f1;1cb2:10f2;1cb3:10f3;1cb4:10f4;1cb5:10f5;1cb6:10f6;1cb7:10f7;1cb8:10f8;1cb9:10f9;1cba:10fa;1cbd:10fd;1cbe:10fe;1cbf:10ff;1e00:1e01;1e02:1e03;1e04:1e05;1e06:1e07;1e08:1e09;1e0a:1e0b;1e0c:1e0d;1e0e:1e0f;1e10:1e11;1e12:1e13;1e14:1e15;1e16:1e17;1e18:1e19;1e1a:1e1b;1e1c:1e1d;1e1e:1e1f;1e20:1e21;1e22:1e23;1e24:1e25;1e26:1e27;1e28:1e29;1e2a:1e2b;1e2c:1e2d;1e2e:1e2f;1e30:1e31;1e32:1e33;1e34:1e35;1e36:1e37;1e38:1e39;1e3a:1e3b;1e3c:1e3d;1e3e:1e3f;1e40:1e41;1e42:1e43;1e44:1e45;1e46:1e47;1e48:1e49;1e4a:1e4b;1e4c:1e4d;1e4e:1e4f;1e50:1e51;1e52:1e53;1e54:1e55;1e56:1e57;1e58:1e59;1e5a:1e5b;1e5c:1e5d;1e5e:1e5f;1e60:1e61;1e62:1e63;1e64:1e65;1e66:1e67;1e68:1e69;1e6a:1e6b;1e6c:1e6d;1e6e:1e6f;1e70:1e71;1e72:1e73;1e74:1e75;1e76:1e77;1e78:1e79;1e7a:1e7b;1e7c:1e7d;1e7e:1e7f;1e80:1e81;1e82:1e83;1e84:1e85;1e86:1e87;1e88:1e89;1e8a:1e8b;1e8c:1e8d;1e8e:1e8f;1e90:1e91;1e92:1e93;1e94:1e95;1e96:0068,0331;1e97:0074,0308;1e98:0077,030a;1e99:0079,030a;1e9a:0061,02be;1e9b:1e61;1e9e:0073,0073;1ea0:1ea1;1ea2:1ea3;1ea4:1ea5;1ea6:1ea7;1ea8:1ea9;1eaa:1eab;1eac:1ead;1eae:1eaf;1eb0:1eb1;1eb2:1eb3;1eb4:1eb5;1eb6:1eb7;1eb8:1eb9;1eba:1ebb;1ebc:1ebd;1ebe:1ebf;1ec0:1ec1;1ec2:1ec3;1ec4:1ec5;1ec6:1ec7;1ec8:1ec9;1eca:1ecb;1ecc:1ecd;1ece:1ecf;1ed0:1ed1;1ed2:1ed3;1ed4:1ed5;1ed6:1ed7;1ed8:1ed9;1eda:1edb;1edc:1edd;1ede:1edf;1ee0:1ee1;1ee2:1ee3;1ee4:1ee5;1ee6:1ee7;1ee8:1ee9;1eea:1eeb;1eec:1eed;1eee:1eef;1ef0:1ef1;1ef2:1ef3;1ef4:1ef5;1ef6:1ef7;1ef8:1ef9;1efa:1efb;1efc:1efd;1efe:1eff;1f08:1f00;1f09:1f01;1f0a:1f02;1f0b:1f03;1f0c:1f04;1f0d:1f05;1f0e:1f06;1f0f:1f07;1f18:1f10;1f19:1f11;1f1a:1f12;1f1b:1f13;1f1c:1f14;1f1d:1f15;1f28:1f20;1f29:1f21;1f2a:1f22;1f2b:1f23;1f2c:1f24;1f2d:1f25;1f2e:1f26;1f2f:1f27;1f38:1f30;1f39:1f31;1f3a:1f32;1f3b:1f33;1f3c:1f34;1f3d:1f35;1f3e:1f36;1f3f:1f37;1f48:1f40;1f49:1f41;1f4a:1f42;1f4b:1f43;1f4c:1f44;1f4d:1f45;1f50:03c5,0313;1f52:03c5,0313,0300;1f54:03c5,0313,0301;1f56:03c5,0313,0342;1f59:1f51;1f5b:1f53;1f5d:1f55;1f5f:1f57;1f68:1f60;1f69:1f61;1f6a:1f62;1f6b:1f63;1f6c:1f64;1f6d:1f65;1f6e:1f66;1f6f:1f67;1f80:1f00,03b9;1f81:1f01,03b9;1f82:1f02,03b9;1f83:1f03,03b9;1f84:1f04,03b9;1f85:1f05,03b9;1f86:1f06,03b9;1f87:1f07,03b9;1f88:1f00,03b9;1f89:1f01,03b9;1f8a:1f02,03b9;1f8b:1f03,03b9;1f8c:1f04,03b9;1f8d:1f05,03b9;1f8e:1f06,03b9;1f8f:1f07,03b9;1f90:1f20,03b9;1f91:1f21,03b9;1f92:1f22,03b9;1f93:1f23,03b9;1f94:1f24,03b9;1f95:1f25,03b9;1f96:1f26,03b9;1f97:1f27,03b9;1f98:1f20,03b9;1f99:1f21,03b9;1f9a:1f22,03b9;1f9b:1f23,03b9;1f9c:1f24,03b9;1f9d:1f25,03b9;1f9e:1f26,03b9;1f9f:1f27,03b9;1fa0:1f60,03b9;1fa1:1f61,03b9;1fa2:1f62,03b9;1fa3:1f63,03b9;1fa4:1f64,03b9;1fa5:1f65,03b9;1fa6:1f66,03b9;1fa7:1f67,03b9;1fa8:1f60,03b9;1fa9:1f61,03b9;1faa:1f62,03b9;1fab:1f63,03b9;1fac:1f64,03b9;1fad:1f65,03b9;1fae:1f66,03b9;1faf:1f67,03b9;1fb2:1f70,03b9;1fb3:03b1,03b9;1fb4:03ac,03b9;1fb6:03b1,0342;1fb7:03b1,0342,03b9;1fb8:1fb0;1fb9:1fb1;1fba:1f70;1fbb:1f71;1fbc:03b1,03b9;1fbe:03b9;1fc2:1f74,03b9;1fc3:03b7,03b9;1fc4:03ae,03b9;1fc6:03b7,0342;1fc7:03b7,0342,03b9;1fc8:1f72;1fc9:1f73;1fca:1f74;1fcb:1f75;1fcc:03b7,03b9;1fd2:03b9,0308,0300;1fd3:03b9,0308,0301;1fd6:03b9,0342;1fd7:03b9,0308,0342;1fd8:1fd0;1fd9:1fd1;1fda:1f76;1fdb:1f77;1fe2:03c5,0308,0300;1fe3:03c5,0308,0301;1fe4:03c1,0313;1fe6:03c5,0342;1fe7:03c5,0308,0342;1fe8:1fe0;1fe9:1fe1;1fea:1f7a;1feb:1f7b;1fec:1fe5;1ff2:1f7c,03b9;1ff3:03c9,03b9;1ff4:03ce,03b9;1ff6:03c9,0342;1ff7:03c9,0342,03b9;1ff8:1f78;1ff9:1f79;1ffa:1f7c;1ffb:1f7d;1ffc:03c9,03b9;2126:03c9;212a:006b;212b:00e5;2132:214e;2160:2170;2161:2171;2162:2172;2163:2173;2164:2174;2165:2175;2166:2176;2167:2177;2168:2178;2169:2179;216a:217a;216b:217b;216c:217c;216d:217d;216e:217e;216f:217f;2183:2184;24b6:24d0;24b7:24d1;24b8:24d2;24b9:24d3;24ba:24d4;24bb:24d5;24bc:24d6;24bd:24d7;24be:24d8;24bf:24d9;24c0:24da;24c1:24db;24c2:24dc;24c3:24dd;24c4:24de;24c5:24df;24c6:24e0;24c7:24e1;24c8:24e2;24c9:24e3;24ca:24e4;24cb:24e5;24cc:24e6;24cd:24e7;24ce:24e8;24cf:24e9;2c00:2c30;2c01:2c31;2c02:2c32;2c03:2c33;2c04:2c34;2c05:2c35;2c06:2c36;2c07:2c37;2c08:2c38;2c09:2c39;2c0a:2c3a;2c0b:2c3b;2c0c:2c3c;2c0d:2c3d;2c0e:2c3e;2c0f:2c3f;2c10:2c40;2c11:2c41;2c12:2c42;2c13:2c43;2c14:2c44;2c15:2c45;2c16:2c46;2c17:2c47;2c18:2c48;2c19:2c49;2c1a:2c4a;2c1b:2c4b;2c1c:2c4c;2c1d:2c4d;2c1e:2c4e;2c1f:2c4f;2c20:2c50;2c21:2c51;2c22:2c52;2c23:2c53;2c24:2c54;2c25:2c55;2c26:2c56;2c27:2c57;2c28:2c58;2c29:2c59;2c2a:2c5a;2c2b:2c5b;2c2c:2c5c;2c2d:2c5d;2c2e:2c5e;2c2f:2c5f;2c60:2c61;2c62:026b;2c63:1d7d;2c64:027d;2c67:2c68;2c69:2c6a;2c6b:2c6c;2c6d:0251;2c6e:0271;2c6f:0250;2c70:0252;2c72:2c73;2c75:2c76;2c7e:023f;2c7f:0240;2c80:2c81;2c82:2c83;2c84:2c85;2c86:2c87;2c88:2c89;2c8a:2c8b;2c8c:2c8d;2c8e:2c8f;2c90:2c91;2c92:2c93;2c94:2c95;2c96:2c97;2c98:2c99;2c9a:2c9b;2c9c:2c9d;2c9e:2c9f;2ca0:2ca1;2ca2:2ca3;2ca4:2ca5;2ca6:2ca7;2ca8:2ca9;2caa:2cab;2cac:2cad;2cae:2caf;2cb0:2cb1;2cb2:2cb3;2cb4:2cb5;2cb6:2cb7;2cb8:2cb9;2cba:2cbb;2cbc:2cbd;2cbe:2cbf;2cc0:2cc1;2cc2:2cc3;2cc4:2cc5;2cc6:2cc7;2cc8:2cc9;2cca:2ccb;2ccc:2ccd;2cce:2ccf;2cd0:2cd1;2cd2:2cd3;2cd4:2cd5;2cd6:2cd7;2cd8:2cd9;2cda:2cdb;2cdc:2cdd;2cde:2cdf;2ce0:2ce1;2ce2:2ce3;2ceb:2cec;2ced:2cee;2cf2:2cf3;a640:a641;a642:a643;a644:a645;a646:a647;a648:a649;a64a:a64b;a64c:a64d;a64e:a64f;a650:a651;a652:a653;a654:a655;a656:a657;a658:a659;a65a:a65b;a65c:a65d;a65e:a65f;a660:a661;a662:a663;a664:a665;a666:a667;a668:a669;a66a:a66b;a66c:a66d;a680:a681;a682:a683;a684:a685;a686:a687;a688:a689;a68a:a68b;a68c:a68d;a68e:a68f;a690:a691;a692:a693;a694:a695;a696:a697;a698:a699;a69a:a69b;a722:a723;a724:a725;a726:a727;a728:a729;a72a:a72b;a72c:a72d;a72e:a72f;a732:a733;a734:a735;a736:a737;a738:a739;a73a:a73b;a73c:a73d;a73e:a73f;a740:a741;a742:a743;a744:a745;a746:a747;a748:a749;a74a:a74b;a74c:a74d;a74e:a74f;a750:a751;a752:a753;a754:a755;a756:a757;a758:a759;a75a:a75b;a75c:a75d;a75e:a75f;a760:a761;a762:a763;a764:a765;a766:a767;a768:a769;a76a:a76b;a76c:a76d;a76e:a76f;a779:a77a;a77b:a77c;a77d:1d79;a77e:a77f;a780:a781;a782:a783;a784:a785;a786:a787;a78b:a78c;a78d:0265;a790:a791;a792:a793;a796:a797;a798:a799;a79a:a79b;a79c:a79d;a79e:a79f;a7a0:a7a1;a7a2:a7a3;a7a4:a7a5;a7a6:a7a7;a7a8:a7a9;a7aa:0266;a7ab:025c;a7ac:0261;a7ad:026c;a7ae:026a;a7b0:029e;a7b1:0287;a7b2:029d;a7b3:ab53;a7b4:a7b5;a7b6:a7b7;a7b8:a7b9;a7ba:a7bb;a7bc:a7bd;a7be:a7bf;a7c0:a7c1;a7c2:a7c3;a7c4:a794;a7c5:0282;a7c6:1d8e;a7c7:a7c8;a7c9:a7ca;a7cb:0264;a7cc:a7cd;a7ce:a7cf;a7d0:a7d1;a7d2:a7d3;a7d4:a7d5;a7d6:a7d7;a7d8:a7d9;a7da:a7db;a7dc:019b;a7f5:a7f6;ab70:13a0;ab71:13a1;ab72:13a2;ab73:13a3;ab74:13a4;ab75:13a5;ab76:13a6;ab77:13a7;ab78:13a8;ab79:13a9;ab7a:13aa;ab7b:13ab;ab7c:13ac;ab7d:13ad;ab7e:13ae;ab7f:13af;ab80:13b0;ab81:13b1;ab82:13b2;ab83:13b3;ab84:13b4;ab85:13b5;ab86:13b6;ab87:13b7;ab88:13b8;ab89:13b9;ab8a:13ba;ab8b:13bb;ab8c:13bc;ab8d:13bd;ab8e:13be;ab8f:13bf;ab90:13c0;ab91:13c1;ab92:13c2;ab93:13c3;ab94:13c4;ab95:13c5;ab96:13c6;ab97:13c7;ab98:13c8;ab99:13c9;ab9a:13ca;ab9b:13cb;ab9c:13cc;ab9d:13cd;ab9e:13ce;ab9f:13cf;aba0:13d0;aba1:13d1;aba2:13d2;aba3:13d3;aba4:13d4;aba5:13d5;aba6:13d6;aba7:13d7;aba8:13d8;aba9:13d9;abaa:13da;abab:13db;abac:13dc;abad:13dd;abae:13de;abaf:13df;abb0:13e0;abb1:13e1;abb2:13e2;abb3:13e3;abb4:13e4;abb5:13e5;abb6:13e6;abb7:13e7;abb8:13e8;abb9:13e9;abba:13ea;abbb:13eb;abbc:13ec;abbd:13ed;abbe:13ee;abbf:13ef;fb00:0066,0066;fb01:0066,0069;fb02:0066,006c;fb03:0066,0066,0069;fb04:0066,0066,006c;fb05:0073,0074;fb06:0073,0074;fb13:0574,0576;fb14:0574,0565;fb15:0574,056b;fb16:057e,0576;fb17:0574,056d;ff21:ff41;ff22:ff42;ff23:ff43;ff24:ff44;ff25:ff45;ff26:ff46;ff27:ff47;ff28:ff48;ff29:ff49;ff2a:ff4a;ff2b:ff4b;ff2c:ff4c;ff2d:ff4d;ff2e:ff4e;ff2f:ff4f;ff30:ff50;ff31:ff51;ff32:ff52;ff33:ff53;ff34:ff54;ff35:ff55;ff36:ff56;ff37:ff57;ff38:ff58;ff39:ff59;ff3a:ff5a;10400:10428;10401:10429;10402:1042a;10403:1042b;10404:1042c;10405:1042d;10406:1042e;10407:1042f;10408:10430;10409:10431;1040a:10432;1040b:10433;1040c:10434;1040d:10435;1040e:10436;1040f:10437;10410:10438;10411:10439;10412:1043a;10413:1043b;10414:1043c;10415:1043d;10416:1043e;10417:1043f;10418:10440;10419:10441;1041a:10442;1041b:10443;1041c:10444;1041d:10445;1041e:10446;1041f:10447;10420:10448;10421:10449;10422:1044a;10423:1044b;10424:1044c;10425:1044d;10426:1044e;10427:1044f;104b0:104d8;104b1:104d9;104b2:104da;104b3:104db;104b4:104dc;104b5:104dd;104b6:104de;104b7:104df;104b8:104e0;104b9:104e1;104ba:104e2;104bb:104e3;104bc:104e4;104bd:104e5;104be:104e6;104bf:104e7;104c0:104e8;104c1:104e9;104c2:104ea;104c3:104eb;104c4:104ec;104c5:104ed;104c6:104ee;104c7:104ef;104c8:104f0;104c9:104f1;104ca:104f2;104cb:104f3;104cc:104f4;104cd:104f5;104ce:104f6;104cf:104f7;104d0:104f8;104d1:104f9;104d2:104fa;104d3:104fb;10570:10597;10571:10598;10572:10599;10573:1059a;10574:1059b;10575:1059c;10576:1059d;10577:1059e;10578:1059f;10579:105a0;1057a:105a1;1057c:105a3;1057d:105a4;1057e:105a5;1057f:105a6;10580:105a7;10581:105a8;10582:105a9;10583:105aa;10584:105ab;10585:105ac;10586:105ad;10587:105ae;10588:105af;10589:105b0;1058a:105b1;1058c:105b3;1058d:105b4;1058e:105b5;1058f:105b6;10590:105b7;10591:105b8;10592:105b9;10594:105bb;10595:105bc;10c80:10cc0;10c81:10cc1;10c82:10cc2;10c83:10cc3;10c84:10cc4;10c85:10cc5;10c86:10cc6;10c87:10cc7;10c88:10cc8;10c89:10cc9;10c8a:10cca;10c8b:10ccb;10c8c:10ccc;10c8d:10ccd;10c8e:10cce;10c8f:10ccf;10c90:10cd0;10c91:10cd1;10c92:10cd2;10c93:10cd3;10c94:10cd4;10c95:10cd5;10c96:10cd6;10c97:10cd7;10c98:10cd8;10c99:10cd9;10c9a:10cda;10c9b:10cdb;10c9c:10cdc;10c9d:10cdd;10c9e:10cde;10c9f:10cdf;10ca0:10ce0;10ca1:10ce1;10ca2:10ce2;10ca3:10ce3;10ca4:10ce4;10ca5:10ce5;10ca6:10ce6;10ca7:10ce7;10ca8:10ce8;10ca9:10ce9;10caa:10cea;10cab:10ceb;10cac:10cec;10cad:10ced;10cae:10cee;10caf:10cef;10cb0:10cf0;10cb1:10cf1;10cb2:10cf2;10d50:10d70;10d51:10d71;10d52:10d72;10d53:10d73;10d54:10d74;10d55:10d75;10d56:10d76;10d57:10d77;10d58:10d78;10d59:10d79;10d5a:10d7a;10d5b:10d7b;10d5c:10d7c;10d5d:10d7d;10d5e:10d7e;10d5f:10d7f;10d60:10d80;10d61:10d81;10d62:10d82;10d63:10d83;10d64:10d84;10d65:10d85;118a0:118c0;118a1:118c1;118a2:118c2;118a3:118c3;118a4:118c4;118a5:118c5;118a6:118c6;118a7:118c7;118a8:118c8;118a9:118c9;118aa:118ca;118ab:118cb;118ac:118cc;118ad:118cd;118ae:118ce;118af:118cf;118b0:118d0;118b1:118d1;118b2:118d2;118b3:118d3;118b4:118d4;118b5:118d5;118b6:118d6;118b7:118d7;118b8:118d8;118b9:118d9;118ba:118da;118bb:118db;118bc:118dc;118bd:118dd;118be:118de;118bf:118df;16e40:16e60;16e41:16e61;16e42:16e62;16e43:16e63;16e44:16e64;16e45:16e65;16e46:16e66;16e47:16e67;16e48:16e68;16e49:16e69;16e4a:16e6a;16e4b:16e6b;16e4c:16e6c;16e4d:16e6d;16e4e:16e6e;16e4f:16e6f;16e50:16e70;16e51:16e71;16e52:16e72;16e53:16e73;16e54:16e74;16e55:16e75;16e56:16e76;16e57:16e77;16e58:16e78;16e59:16e79;16e5a:16e7a;16e5b:16e7b;16e5c:16e7c;16e5d:16e7d;16e5e:16e7e;16e5f:16e7f;16ea0:16ebb;16ea1:16ebc;16ea2:16ebd;16ea3:16ebe;16ea4:16ebf;16ea5:16ec0;16ea6:16ec1;16ea7:16ec2;16ea8:16ec3;16ea9:16ec4;16eaa:16ec5;16eab:16ec6;16eac:16ec7;16ead:16ec8;16eae:16ec9;16eaf:16eca;16eb0:16ecb;16eb1:16ecc;16eb2:16ecd;16eb3:16ece;16eb4:16ecf;16eb5:16ed0;16eb6:16ed1;16eb7:16ed2;16eb8:16ed3;1e900:1e922;1e901:1e923;1e902:1e924;1e903:1e925;1e904:1e926;1e905:1e927;1e906:1e928;1e907:1e929;1e908:1e92a;1e909:1e92b;1e90a:1e92c;1e90b:1e92d;1e90c:1e92e;1e90d:1e92f;1e90e:1e930;1e90f:1e931;1e910:1e932;1e911:1e933;1e912:1e934;1e913:1e935;1e914:1e936;1e915:1e937;1e916:1e938;1e917:1e939;1e918:1e93a;1e919:1e93b;1e91a:1e93c;1e91b:1e93d;1e91c:1e93e;1e91d:1e93f;1e91e:1e940;1e91f:1e941;1e920:1e942;1e921:1e943";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// Unicode 17.0.0 C+F mappings (excluding Turkic T).
|
|
2
|
+
// Source: https://www.unicode.org/Public/17.0.0/ucd/CaseFolding.txt
|
|
3
|
+
// Unicode license: ./unicode-license.txt
|
|
4
|
+
export const caseFoldData = "0041:0061;0042:0062;0043:0063;0044:0064;0045:0065;0046:0066;0047:0067;0048:0068;0049:0069;004a:006a;004b:006b;004c:006c;004d:006d;004e:006e;004f:006f;0050:0070;0051:0071;0052:0072;0053:0073;0054:0074;0055:0075;0056:0076;0057:0077;0058:0078;0059:0079;005a:007a;00b5:03bc;00c0:00e0;00c1:00e1;00c2:00e2;00c3:00e3;00c4:00e4;00c5:00e5;00c6:00e6;00c7:00e7;00c8:00e8;00c9:00e9;00ca:00ea;00cb:00eb;00cc:00ec;00cd:00ed;00ce:00ee;00cf:00ef;00d0:00f0;00d1:00f1;00d2:00f2;00d3:00f3;00d4:00f4;00d5:00f5;00d6:00f6;00d8:00f8;00d9:00f9;00da:00fa;00db:00fb;00dc:00fc;00dd:00fd;00de:00fe;00df:0073,0073;0100:0101;0102:0103;0104:0105;0106:0107;0108:0109;010a:010b;010c:010d;010e:010f;0110:0111;0112:0113;0114:0115;0116:0117;0118:0119;011a:011b;011c:011d;011e:011f;0120:0121;0122:0123;0124:0125;0126:0127;0128:0129;012a:012b;012c:012d;012e:012f;0130:0069,0307;0132:0133;0134:0135;0136:0137;0139:013a;013b:013c;013d:013e;013f:0140;0141:0142;0143:0144;0145:0146;0147:0148;0149:02bc,006e;014a:014b;014c:014d;014e:014f;0150:0151;0152:0153;0154:0155;0156:0157;0158:0159;015a:015b;015c:015d;015e:015f;0160:0161;0162:0163;0164:0165;0166:0167;0168:0169;016a:016b;016c:016d;016e:016f;0170:0171;0172:0173;0174:0175;0176:0177;0178:00ff;0179:017a;017b:017c;017d:017e;017f:0073;0181:0253;0182:0183;0184:0185;0186:0254;0187:0188;0189:0256;018a:0257;018b:018c;018e:01dd;018f:0259;0190:025b;0191:0192;0193:0260;0194:0263;0196:0269;0197:0268;0198:0199;019c:026f;019d:0272;019f:0275;01a0:01a1;01a2:01a3;01a4:01a5;01a6:0280;01a7:01a8;01a9:0283;01ac:01ad;01ae:0288;01af:01b0;01b1:028a;01b2:028b;01b3:01b4;01b5:01b6;01b7:0292;01b8:01b9;01bc:01bd;01c4:01c6;01c5:01c6;01c7:01c9;01c8:01c9;01ca:01cc;01cb:01cc;01cd:01ce;01cf:01d0;01d1:01d2;01d3:01d4;01d5:01d6;01d7:01d8;01d9:01da;01db:01dc;01de:01df;01e0:01e1;01e2:01e3;01e4:01e5;01e6:01e7;01e8:01e9;01ea:01eb;01ec:01ed;01ee:01ef;01f0:006a,030c;01f1:01f3;01f2:01f3;01f4:01f5;01f6:0195;01f7:01bf;01f8:01f9;01fa:01fb;01fc:01fd;01fe:01ff;0200:0201;0202:0203;0204:0205;0206:0207;0208:0209;020a:020b;020c:020d;020e:020f;0210:0211;0212:0213;0214:0215;0216:0217;0218:0219;021a:021b;021c:021d;021e:021f;0220:019e;0222:0223;0224:0225;0226:0227;0228:0229;022a:022b;022c:022d;022e:022f;0230:0231;0232:0233;023a:2c65;023b:023c;023d:019a;023e:2c66;0241:0242;0243:0180;0244:0289;0245:028c;0246:0247;0248:0249;024a:024b;024c:024d;024e:024f;0345:03b9;0370:0371;0372:0373;0376:0377;037f:03f3;0386:03ac;0388:03ad;0389:03ae;038a:03af;038c:03cc;038e:03cd;038f:03ce;0390:03b9,0308,0301;0391:03b1;0392:03b2;0393:03b3;0394:03b4;0395:03b5;0396:03b6;0397:03b7;0398:03b8;0399:03b9;039a:03ba;039b:03bb;039c:03bc;039d:03bd;039e:03be;039f:03bf;03a0:03c0;03a1:03c1;03a3:03c3;03a4:03c4;03a5:03c5;03a6:03c6;03a7:03c7;03a8:03c8;03a9:03c9;03aa:03ca;03ab:03cb;03b0:03c5,0308,0301;03c2:03c3;03cf:03d7;03d0:03b2;03d1:03b8;03d5:03c6;03d6:03c0;03d8:03d9;03da:03db;03dc:03dd;03de:03df;03e0:03e1;03e2:03e3;03e4:03e5;03e6:03e7;03e8:03e9;03ea:03eb;03ec:03ed;03ee:03ef;03f0:03ba;03f1:03c1;03f4:03b8;03f5:03b5;03f7:03f8;03f9:03f2;03fa:03fb;03fd:037b;03fe:037c;03ff:037d;0400:0450;0401:0451;0402:0452;0403:0453;0404:0454;0405:0455;0406:0456;0407:0457;0408:0458;0409:0459;040a:045a;040b:045b;040c:045c;040d:045d;040e:045e;040f:045f;0410:0430;0411:0431;0412:0432;0413:0433;0414:0434;0415:0435;0416:0436;0417:0437;0418:0438;0419:0439;041a:043a;041b:043b;041c:043c;041d:043d;041e:043e;041f:043f;0420:0440;0421:0441;0422:0442;0423:0443;0424:0444;0425:0445;0426:0446;0427:0447;0428:0448;0429:0449;042a:044a;042b:044b;042c:044c;042d:044d;042e:044e;042f:044f;0460:0461;0462:0463;0464:0465;0466:0467;0468:0469;046a:046b;046c:046d;046e:046f;0470:0471;0472:0473;0474:0475;0476:0477;0478:0479;047a:047b;047c:047d;047e:047f;0480:0481;048a:048b;048c:048d;048e:048f;0490:0491;0492:0493;0494:0495;0496:0497;0498:0499;049a:049b;049c:049d;049e:049f;04a0:04a1;04a2:04a3;04a4:04a5;04a6:04a7;04a8:04a9;04aa:04ab;04ac:04ad;04ae:04af;04b0:04b1;04b2:04b3;04b4:04b5;04b6:04b7;04b8:04b9;04ba:04bb;04bc:04bd;04be:04bf;04c0:04cf;04c1:04c2;04c3:04c4;04c5:04c6;04c7:04c8;04c9:04ca;04cb:04cc;04cd:04ce;04d0:04d1;04d2:04d3;04d4:04d5;04d6:04d7;04d8:04d9;04da:04db;04dc:04dd;04de:04df;04e0:04e1;04e2:04e3;04e4:04e5;04e6:04e7;04e8:04e9;04ea:04eb;04ec:04ed;04ee:04ef;04f0:04f1;04f2:04f3;04f4:04f5;04f6:04f7;04f8:04f9;04fa:04fb;04fc:04fd;04fe:04ff;0500:0501;0502:0503;0504:0505;0506:0507;0508:0509;050a:050b;050c:050d;050e:050f;0510:0511;0512:0513;0514:0515;0516:0517;0518:0519;051a:051b;051c:051d;051e:051f;0520:0521;0522:0523;0524:0525;0526:0527;0528:0529;052a:052b;052c:052d;052e:052f;0531:0561;0532:0562;0533:0563;0534:0564;0535:0565;0536:0566;0537:0567;0538:0568;0539:0569;053a:056a;053b:056b;053c:056c;053d:056d;053e:056e;053f:056f;0540:0570;0541:0571;0542:0572;0543:0573;0544:0574;0545:0575;0546:0576;0547:0577;0548:0578;0549:0579;054a:057a;054b:057b;054c:057c;054d:057d;054e:057e;054f:057f;0550:0580;0551:0581;0552:0582;0553:0583;0554:0584;0555:0585;0556:0586;0587:0565,0582;10a0:2d00;10a1:2d01;10a2:2d02;10a3:2d03;10a4:2d04;10a5:2d05;10a6:2d06;10a7:2d07;10a8:2d08;10a9:2d09;10aa:2d0a;10ab:2d0b;10ac:2d0c;10ad:2d0d;10ae:2d0e;10af:2d0f;10b0:2d10;10b1:2d11;10b2:2d12;10b3:2d13;10b4:2d14;10b5:2d15;10b6:2d16;10b7:2d17;10b8:2d18;10b9:2d19;10ba:2d1a;10bb:2d1b;10bc:2d1c;10bd:2d1d;10be:2d1e;10bf:2d1f;10c0:2d20;10c1:2d21;10c2:2d22;10c3:2d23;10c4:2d24;10c5:2d25;10c7:2d27;10cd:2d2d;13f8:13f0;13f9:13f1;13fa:13f2;13fb:13f3;13fc:13f4;13fd:13f5;1c80:0432;1c81:0434;1c82:043e;1c83:0441;1c84:0442;1c85:0442;1c86:044a;1c87:0463;1c88:a64b;1c89:1c8a;1c90:10d0;1c91:10d1;1c92:10d2;1c93:10d3;1c94:10d4;1c95:10d5;1c96:10d6;1c97:10d7;1c98:10d8;1c99:10d9;1c9a:10da;1c9b:10db;1c9c:10dc;1c9d:10dd;1c9e:10de;1c9f:10df;1ca0:10e0;1ca1:10e1;1ca2:10e2;1ca3:10e3;1ca4:10e4;1ca5:10e5;1ca6:10e6;1ca7:10e7;1ca8:10e8;1ca9:10e9;1caa:10ea;1cab:10eb;1cac:10ec;1cad:10ed;1cae:10ee;1caf:10ef;1cb0:10f0;1cb1:10f1;1cb2:10f2;1cb3:10f3;1cb4:10f4;1cb5:10f5;1cb6:10f6;1cb7:10f7;1cb8:10f8;1cb9:10f9;1cba:10fa;1cbd:10fd;1cbe:10fe;1cbf:10ff;1e00:1e01;1e02:1e03;1e04:1e05;1e06:1e07;1e08:1e09;1e0a:1e0b;1e0c:1e0d;1e0e:1e0f;1e10:1e11;1e12:1e13;1e14:1e15;1e16:1e17;1e18:1e19;1e1a:1e1b;1e1c:1e1d;1e1e:1e1f;1e20:1e21;1e22:1e23;1e24:1e25;1e26:1e27;1e28:1e29;1e2a:1e2b;1e2c:1e2d;1e2e:1e2f;1e30:1e31;1e32:1e33;1e34:1e35;1e36:1e37;1e38:1e39;1e3a:1e3b;1e3c:1e3d;1e3e:1e3f;1e40:1e41;1e42:1e43;1e44:1e45;1e46:1e47;1e48:1e49;1e4a:1e4b;1e4c:1e4d;1e4e:1e4f;1e50:1e51;1e52:1e53;1e54:1e55;1e56:1e57;1e58:1e59;1e5a:1e5b;1e5c:1e5d;1e5e:1e5f;1e60:1e61;1e62:1e63;1e64:1e65;1e66:1e67;1e68:1e69;1e6a:1e6b;1e6c:1e6d;1e6e:1e6f;1e70:1e71;1e72:1e73;1e74:1e75;1e76:1e77;1e78:1e79;1e7a:1e7b;1e7c:1e7d;1e7e:1e7f;1e80:1e81;1e82:1e83;1e84:1e85;1e86:1e87;1e88:1e89;1e8a:1e8b;1e8c:1e8d;1e8e:1e8f;1e90:1e91;1e92:1e93;1e94:1e95;1e96:0068,0331;1e97:0074,0308;1e98:0077,030a;1e99:0079,030a;1e9a:0061,02be;1e9b:1e61;1e9e:0073,0073;1ea0:1ea1;1ea2:1ea3;1ea4:1ea5;1ea6:1ea7;1ea8:1ea9;1eaa:1eab;1eac:1ead;1eae:1eaf;1eb0:1eb1;1eb2:1eb3;1eb4:1eb5;1eb6:1eb7;1eb8:1eb9;1eba:1ebb;1ebc:1ebd;1ebe:1ebf;1ec0:1ec1;1ec2:1ec3;1ec4:1ec5;1ec6:1ec7;1ec8:1ec9;1eca:1ecb;1ecc:1ecd;1ece:1ecf;1ed0:1ed1;1ed2:1ed3;1ed4:1ed5;1ed6:1ed7;1ed8:1ed9;1eda:1edb;1edc:1edd;1ede:1edf;1ee0:1ee1;1ee2:1ee3;1ee4:1ee5;1ee6:1ee7;1ee8:1ee9;1eea:1eeb;1eec:1eed;1eee:1eef;1ef0:1ef1;1ef2:1ef3;1ef4:1ef5;1ef6:1ef7;1ef8:1ef9;1efa:1efb;1efc:1efd;1efe:1eff;1f08:1f00;1f09:1f01;1f0a:1f02;1f0b:1f03;1f0c:1f04;1f0d:1f05;1f0e:1f06;1f0f:1f07;1f18:1f10;1f19:1f11;1f1a:1f12;1f1b:1f13;1f1c:1f14;1f1d:1f15;1f28:1f20;1f29:1f21;1f2a:1f22;1f2b:1f23;1f2c:1f24;1f2d:1f25;1f2e:1f26;1f2f:1f27;1f38:1f30;1f39:1f31;1f3a:1f32;1f3b:1f33;1f3c:1f34;1f3d:1f35;1f3e:1f36;1f3f:1f37;1f48:1f40;1f49:1f41;1f4a:1f42;1f4b:1f43;1f4c:1f44;1f4d:1f45;1f50:03c5,0313;1f52:03c5,0313,0300;1f54:03c5,0313,0301;1f56:03c5,0313,0342;1f59:1f51;1f5b:1f53;1f5d:1f55;1f5f:1f57;1f68:1f60;1f69:1f61;1f6a:1f62;1f6b:1f63;1f6c:1f64;1f6d:1f65;1f6e:1f66;1f6f:1f67;1f80:1f00,03b9;1f81:1f01,03b9;1f82:1f02,03b9;1f83:1f03,03b9;1f84:1f04,03b9;1f85:1f05,03b9;1f86:1f06,03b9;1f87:1f07,03b9;1f88:1f00,03b9;1f89:1f01,03b9;1f8a:1f02,03b9;1f8b:1f03,03b9;1f8c:1f04,03b9;1f8d:1f05,03b9;1f8e:1f06,03b9;1f8f:1f07,03b9;1f90:1f20,03b9;1f91:1f21,03b9;1f92:1f22,03b9;1f93:1f23,03b9;1f94:1f24,03b9;1f95:1f25,03b9;1f96:1f26,03b9;1f97:1f27,03b9;1f98:1f20,03b9;1f99:1f21,03b9;1f9a:1f22,03b9;1f9b:1f23,03b9;1f9c:1f24,03b9;1f9d:1f25,03b9;1f9e:1f26,03b9;1f9f:1f27,03b9;1fa0:1f60,03b9;1fa1:1f61,03b9;1fa2:1f62,03b9;1fa3:1f63,03b9;1fa4:1f64,03b9;1fa5:1f65,03b9;1fa6:1f66,03b9;1fa7:1f67,03b9;1fa8:1f60,03b9;1fa9:1f61,03b9;1faa:1f62,03b9;1fab:1f63,03b9;1fac:1f64,03b9;1fad:1f65,03b9;1fae:1f66,03b9;1faf:1f67,03b9;1fb2:1f70,03b9;1fb3:03b1,03b9;1fb4:03ac,03b9;1fb6:03b1,0342;1fb7:03b1,0342,03b9;1fb8:1fb0;1fb9:1fb1;1fba:1f70;1fbb:1f71;1fbc:03b1,03b9;1fbe:03b9;1fc2:1f74,03b9;1fc3:03b7,03b9;1fc4:03ae,03b9;1fc6:03b7,0342;1fc7:03b7,0342,03b9;1fc8:1f72;1fc9:1f73;1fca:1f74;1fcb:1f75;1fcc:03b7,03b9;1fd2:03b9,0308,0300;1fd3:03b9,0308,0301;1fd6:03b9,0342;1fd7:03b9,0308,0342;1fd8:1fd0;1fd9:1fd1;1fda:1f76;1fdb:1f77;1fe2:03c5,0308,0300;1fe3:03c5,0308,0301;1fe4:03c1,0313;1fe6:03c5,0342;1fe7:03c5,0308,0342;1fe8:1fe0;1fe9:1fe1;1fea:1f7a;1feb:1f7b;1fec:1fe5;1ff2:1f7c,03b9;1ff3:03c9,03b9;1ff4:03ce,03b9;1ff6:03c9,0342;1ff7:03c9,0342,03b9;1ff8:1f78;1ff9:1f79;1ffa:1f7c;1ffb:1f7d;1ffc:03c9,03b9;2126:03c9;212a:006b;212b:00e5;2132:214e;2160:2170;2161:2171;2162:2172;2163:2173;2164:2174;2165:2175;2166:2176;2167:2177;2168:2178;2169:2179;216a:217a;216b:217b;216c:217c;216d:217d;216e:217e;216f:217f;2183:2184;24b6:24d0;24b7:24d1;24b8:24d2;24b9:24d3;24ba:24d4;24bb:24d5;24bc:24d6;24bd:24d7;24be:24d8;24bf:24d9;24c0:24da;24c1:24db;24c2:24dc;24c3:24dd;24c4:24de;24c5:24df;24c6:24e0;24c7:24e1;24c8:24e2;24c9:24e3;24ca:24e4;24cb:24e5;24cc:24e6;24cd:24e7;24ce:24e8;24cf:24e9;2c00:2c30;2c01:2c31;2c02:2c32;2c03:2c33;2c04:2c34;2c05:2c35;2c06:2c36;2c07:2c37;2c08:2c38;2c09:2c39;2c0a:2c3a;2c0b:2c3b;2c0c:2c3c;2c0d:2c3d;2c0e:2c3e;2c0f:2c3f;2c10:2c40;2c11:2c41;2c12:2c42;2c13:2c43;2c14:2c44;2c15:2c45;2c16:2c46;2c17:2c47;2c18:2c48;2c19:2c49;2c1a:2c4a;2c1b:2c4b;2c1c:2c4c;2c1d:2c4d;2c1e:2c4e;2c1f:2c4f;2c20:2c50;2c21:2c51;2c22:2c52;2c23:2c53;2c24:2c54;2c25:2c55;2c26:2c56;2c27:2c57;2c28:2c58;2c29:2c59;2c2a:2c5a;2c2b:2c5b;2c2c:2c5c;2c2d:2c5d;2c2e:2c5e;2c2f:2c5f;2c60:2c61;2c62:026b;2c63:1d7d;2c64:027d;2c67:2c68;2c69:2c6a;2c6b:2c6c;2c6d:0251;2c6e:0271;2c6f:0250;2c70:0252;2c72:2c73;2c75:2c76;2c7e:023f;2c7f:0240;2c80:2c81;2c82:2c83;2c84:2c85;2c86:2c87;2c88:2c89;2c8a:2c8b;2c8c:2c8d;2c8e:2c8f;2c90:2c91;2c92:2c93;2c94:2c95;2c96:2c97;2c98:2c99;2c9a:2c9b;2c9c:2c9d;2c9e:2c9f;2ca0:2ca1;2ca2:2ca3;2ca4:2ca5;2ca6:2ca7;2ca8:2ca9;2caa:2cab;2cac:2cad;2cae:2caf;2cb0:2cb1;2cb2:2cb3;2cb4:2cb5;2cb6:2cb7;2cb8:2cb9;2cba:2cbb;2cbc:2cbd;2cbe:2cbf;2cc0:2cc1;2cc2:2cc3;2cc4:2cc5;2cc6:2cc7;2cc8:2cc9;2cca:2ccb;2ccc:2ccd;2cce:2ccf;2cd0:2cd1;2cd2:2cd3;2cd4:2cd5;2cd6:2cd7;2cd8:2cd9;2cda:2cdb;2cdc:2cdd;2cde:2cdf;2ce0:2ce1;2ce2:2ce3;2ceb:2cec;2ced:2cee;2cf2:2cf3;a640:a641;a642:a643;a644:a645;a646:a647;a648:a649;a64a:a64b;a64c:a64d;a64e:a64f;a650:a651;a652:a653;a654:a655;a656:a657;a658:a659;a65a:a65b;a65c:a65d;a65e:a65f;a660:a661;a662:a663;a664:a665;a666:a667;a668:a669;a66a:a66b;a66c:a66d;a680:a681;a682:a683;a684:a685;a686:a687;a688:a689;a68a:a68b;a68c:a68d;a68e:a68f;a690:a691;a692:a693;a694:a695;a696:a697;a698:a699;a69a:a69b;a722:a723;a724:a725;a726:a727;a728:a729;a72a:a72b;a72c:a72d;a72e:a72f;a732:a733;a734:a735;a736:a737;a738:a739;a73a:a73b;a73c:a73d;a73e:a73f;a740:a741;a742:a743;a744:a745;a746:a747;a748:a749;a74a:a74b;a74c:a74d;a74e:a74f;a750:a751;a752:a753;a754:a755;a756:a757;a758:a759;a75a:a75b;a75c:a75d;a75e:a75f;a760:a761;a762:a763;a764:a765;a766:a767;a768:a769;a76a:a76b;a76c:a76d;a76e:a76f;a779:a77a;a77b:a77c;a77d:1d79;a77e:a77f;a780:a781;a782:a783;a784:a785;a786:a787;a78b:a78c;a78d:0265;a790:a791;a792:a793;a796:a797;a798:a799;a79a:a79b;a79c:a79d;a79e:a79f;a7a0:a7a1;a7a2:a7a3;a7a4:a7a5;a7a6:a7a7;a7a8:a7a9;a7aa:0266;a7ab:025c;a7ac:0261;a7ad:026c;a7ae:026a;a7b0:029e;a7b1:0287;a7b2:029d;a7b3:ab53;a7b4:a7b5;a7b6:a7b7;a7b8:a7b9;a7ba:a7bb;a7bc:a7bd;a7be:a7bf;a7c0:a7c1;a7c2:a7c3;a7c4:a794;a7c5:0282;a7c6:1d8e;a7c7:a7c8;a7c9:a7ca;a7cb:0264;a7cc:a7cd;a7ce:a7cf;a7d0:a7d1;a7d2:a7d3;a7d4:a7d5;a7d6:a7d7;a7d8:a7d9;a7da:a7db;a7dc:019b;a7f5:a7f6;ab70:13a0;ab71:13a1;ab72:13a2;ab73:13a3;ab74:13a4;ab75:13a5;ab76:13a6;ab77:13a7;ab78:13a8;ab79:13a9;ab7a:13aa;ab7b:13ab;ab7c:13ac;ab7d:13ad;ab7e:13ae;ab7f:13af;ab80:13b0;ab81:13b1;ab82:13b2;ab83:13b3;ab84:13b4;ab85:13b5;ab86:13b6;ab87:13b7;ab88:13b8;ab89:13b9;ab8a:13ba;ab8b:13bb;ab8c:13bc;ab8d:13bd;ab8e:13be;ab8f:13bf;ab90:13c0;ab91:13c1;ab92:13c2;ab93:13c3;ab94:13c4;ab95:13c5;ab96:13c6;ab97:13c7;ab98:13c8;ab99:13c9;ab9a:13ca;ab9b:13cb;ab9c:13cc;ab9d:13cd;ab9e:13ce;ab9f:13cf;aba0:13d0;aba1:13d1;aba2:13d2;aba3:13d3;aba4:13d4;aba5:13d5;aba6:13d6;aba7:13d7;aba8:13d8;aba9:13d9;abaa:13da;abab:13db;abac:13dc;abad:13dd;abae:13de;abaf:13df;abb0:13e0;abb1:13e1;abb2:13e2;abb3:13e3;abb4:13e4;abb5:13e5;abb6:13e6;abb7:13e7;abb8:13e8;abb9:13e9;abba:13ea;abbb:13eb;abbc:13ec;abbd:13ed;abbe:13ee;abbf:13ef;fb00:0066,0066;fb01:0066,0069;fb02:0066,006c;fb03:0066,0066,0069;fb04:0066,0066,006c;fb05:0073,0074;fb06:0073,0074;fb13:0574,0576;fb14:0574,0565;fb15:0574,056b;fb16:057e,0576;fb17:0574,056d;ff21:ff41;ff22:ff42;ff23:ff43;ff24:ff44;ff25:ff45;ff26:ff46;ff27:ff47;ff28:ff48;ff29:ff49;ff2a:ff4a;ff2b:ff4b;ff2c:ff4c;ff2d:ff4d;ff2e:ff4e;ff2f:ff4f;ff30:ff50;ff31:ff51;ff32:ff52;ff33:ff53;ff34:ff54;ff35:ff55;ff36:ff56;ff37:ff57;ff38:ff58;ff39:ff59;ff3a:ff5a;10400:10428;10401:10429;10402:1042a;10403:1042b;10404:1042c;10405:1042d;10406:1042e;10407:1042f;10408:10430;10409:10431;1040a:10432;1040b:10433;1040c:10434;1040d:10435;1040e:10436;1040f:10437;10410:10438;10411:10439;10412:1043a;10413:1043b;10414:1043c;10415:1043d;10416:1043e;10417:1043f;10418:10440;10419:10441;1041a:10442;1041b:10443;1041c:10444;1041d:10445;1041e:10446;1041f:10447;10420:10448;10421:10449;10422:1044a;10423:1044b;10424:1044c;10425:1044d;10426:1044e;10427:1044f;104b0:104d8;104b1:104d9;104b2:104da;104b3:104db;104b4:104dc;104b5:104dd;104b6:104de;104b7:104df;104b8:104e0;104b9:104e1;104ba:104e2;104bb:104e3;104bc:104e4;104bd:104e5;104be:104e6;104bf:104e7;104c0:104e8;104c1:104e9;104c2:104ea;104c3:104eb;104c4:104ec;104c5:104ed;104c6:104ee;104c7:104ef;104c8:104f0;104c9:104f1;104ca:104f2;104cb:104f3;104cc:104f4;104cd:104f5;104ce:104f6;104cf:104f7;104d0:104f8;104d1:104f9;104d2:104fa;104d3:104fb;10570:10597;10571:10598;10572:10599;10573:1059a;10574:1059b;10575:1059c;10576:1059d;10577:1059e;10578:1059f;10579:105a0;1057a:105a1;1057c:105a3;1057d:105a4;1057e:105a5;1057f:105a6;10580:105a7;10581:105a8;10582:105a9;10583:105aa;10584:105ab;10585:105ac;10586:105ad;10587:105ae;10588:105af;10589:105b0;1058a:105b1;1058c:105b3;1058d:105b4;1058e:105b5;1058f:105b6;10590:105b7;10591:105b8;10592:105b9;10594:105bb;10595:105bc;10c80:10cc0;10c81:10cc1;10c82:10cc2;10c83:10cc3;10c84:10cc4;10c85:10cc5;10c86:10cc6;10c87:10cc7;10c88:10cc8;10c89:10cc9;10c8a:10cca;10c8b:10ccb;10c8c:10ccc;10c8d:10ccd;10c8e:10cce;10c8f:10ccf;10c90:10cd0;10c91:10cd1;10c92:10cd2;10c93:10cd3;10c94:10cd4;10c95:10cd5;10c96:10cd6;10c97:10cd7;10c98:10cd8;10c99:10cd9;10c9a:10cda;10c9b:10cdb;10c9c:10cdc;10c9d:10cdd;10c9e:10cde;10c9f:10cdf;10ca0:10ce0;10ca1:10ce1;10ca2:10ce2;10ca3:10ce3;10ca4:10ce4;10ca5:10ce5;10ca6:10ce6;10ca7:10ce7;10ca8:10ce8;10ca9:10ce9;10caa:10cea;10cab:10ceb;10cac:10cec;10cad:10ced;10cae:10cee;10caf:10cef;10cb0:10cf0;10cb1:10cf1;10cb2:10cf2;10d50:10d70;10d51:10d71;10d52:10d72;10d53:10d73;10d54:10d74;10d55:10d75;10d56:10d76;10d57:10d77;10d58:10d78;10d59:10d79;10d5a:10d7a;10d5b:10d7b;10d5c:10d7c;10d5d:10d7d;10d5e:10d7e;10d5f:10d7f;10d60:10d80;10d61:10d81;10d62:10d82;10d63:10d83;10d64:10d84;10d65:10d85;118a0:118c0;118a1:118c1;118a2:118c2;118a3:118c3;118a4:118c4;118a5:118c5;118a6:118c6;118a7:118c7;118a8:118c8;118a9:118c9;118aa:118ca;118ab:118cb;118ac:118cc;118ad:118cd;118ae:118ce;118af:118cf;118b0:118d0;118b1:118d1;118b2:118d2;118b3:118d3;118b4:118d4;118b5:118d5;118b6:118d6;118b7:118d7;118b8:118d8;118b9:118d9;118ba:118da;118bb:118db;118bc:118dc;118bd:118dd;118be:118de;118bf:118df;16e40:16e60;16e41:16e61;16e42:16e62;16e43:16e63;16e44:16e64;16e45:16e65;16e46:16e66;16e47:16e67;16e48:16e68;16e49:16e69;16e4a:16e6a;16e4b:16e6b;16e4c:16e6c;16e4d:16e6d;16e4e:16e6e;16e4f:16e6f;16e50:16e70;16e51:16e71;16e52:16e72;16e53:16e73;16e54:16e74;16e55:16e75;16e56:16e76;16e57:16e77;16e58:16e78;16e59:16e79;16e5a:16e7a;16e5b:16e7b;16e5c:16e7c;16e5d:16e7d;16e5e:16e7e;16e5f:16e7f;16ea0:16ebb;16ea1:16ebc;16ea2:16ebd;16ea3:16ebe;16ea4:16ebf;16ea5:16ec0;16ea6:16ec1;16ea7:16ec2;16ea8:16ec3;16ea9:16ec4;16eaa:16ec5;16eab:16ec6;16eac:16ec7;16ead:16ec8;16eae:16ec9;16eaf:16eca;16eb0:16ecb;16eb1:16ecc;16eb2:16ecd;16eb3:16ece;16eb4:16ecf;16eb5:16ed0;16eb6:16ed1;16eb7:16ed2;16eb8:16ed3;1e900:1e922;1e901:1e923;1e902:1e924;1e903:1e925;1e904:1e926;1e905:1e927;1e906:1e928;1e907:1e929;1e908:1e92a;1e909:1e92b;1e90a:1e92c;1e90b:1e92d;1e90c:1e92e;1e90d:1e92f;1e90e:1e930;1e90f:1e931;1e910:1e932;1e911:1e933;1e912:1e934;1e913:1e935;1e914:1e936;1e915:1e937;1e916:1e938;1e917:1e939;1e918:1e93a;1e919:1e93b;1e91a:1e93c;1e91b:1e93d;1e91c:1e93e;1e91d:1e93f;1e91e:1e940;1e91f:1e941;1e920:1e942;1e921:1e943";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { PhysicalDocumentV1, SeatingGroup, UUID } from "./types.js";
|
|
2
|
+
import { type GeneratedSeat } from "./geometry/geometry.js";
|
|
3
|
+
export declare function generatedSeats(group: SeatingGroup): readonly GeneratedSeat[];
|
|
4
|
+
export type DocumentCatalog = {
|
|
5
|
+
groups: ReadonlyMap<UUID, SeatingGroup>;
|
|
6
|
+
seats: ReadonlyMap<UUID, {
|
|
7
|
+
group: SeatingGroup;
|
|
8
|
+
seat: GeneratedSeat;
|
|
9
|
+
}>;
|
|
10
|
+
rows: ReadonlyMap<UUID, SeatingGroup>;
|
|
11
|
+
sections: ReadonlyMap<UUID, string>;
|
|
12
|
+
};
|
|
13
|
+
/** Immutable, derived lookup; never an editable store. Untouched group geometry is shared. */
|
|
14
|
+
export declare function documentCatalog(document: PhysicalDocumentV1): DocumentCatalog;
|
|
15
|
+
export declare function inventoryAddress(document: PhysicalDocumentV1, seat: GeneratedSeat): string;
|
package/dist/catalog.js
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { generateGroup } from "./geometry/geometry.js";
|
|
2
|
+
const generated = new WeakMap();
|
|
3
|
+
export function generatedSeats(group) {
|
|
4
|
+
let cached = generated.get(group);
|
|
5
|
+
if (!cached) {
|
|
6
|
+
cached = Object.freeze([...generateGroup(group)]);
|
|
7
|
+
generated.set(group, cached);
|
|
8
|
+
}
|
|
9
|
+
return cached;
|
|
10
|
+
}
|
|
11
|
+
const catalogs = new WeakMap();
|
|
12
|
+
/** Immutable, derived lookup; never an editable store. Untouched group geometry is shared. */
|
|
13
|
+
export function documentCatalog(document) {
|
|
14
|
+
let catalog = catalogs.get(document);
|
|
15
|
+
if (catalog)
|
|
16
|
+
return catalog;
|
|
17
|
+
const groups = new Map(document.seatingGroups.map((g) => [g.id, g])), seats = new Map(), rows = new Map();
|
|
18
|
+
for (const group of document.seatingGroups)
|
|
19
|
+
for (const seat of generatedSeats(group)) {
|
|
20
|
+
seats.set(seat.id, { group, seat });
|
|
21
|
+
if (seat.rowId)
|
|
22
|
+
rows.set(seat.rowId, group);
|
|
23
|
+
}
|
|
24
|
+
catalog = {
|
|
25
|
+
groups,
|
|
26
|
+
seats,
|
|
27
|
+
rows,
|
|
28
|
+
sections: new Map(document.sections.map((s) => [s.id, s.label])),
|
|
29
|
+
};
|
|
30
|
+
catalogs.set(document, catalog);
|
|
31
|
+
return catalog;
|
|
32
|
+
}
|
|
33
|
+
export function inventoryAddress(document, seat) {
|
|
34
|
+
return `${documentCatalog(document).sections.get(seat.sectionId ?? "") ?? "Unsectioned"}, ${seat.rowId ? "row" : "table"} ${seat.ownerLabel}, seat ${seat.label}`;
|
|
35
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { PointM, PolygonM } from "../types.js";
|
|
2
|
+
import { type Bounds } from "./primitives.js";
|
|
3
|
+
export declare enum BoundaryLocation {
|
|
4
|
+
Inside = "inside",
|
|
5
|
+
Boundary = "boundary",
|
|
6
|
+
Outside = "outside"
|
|
7
|
+
}
|
|
8
|
+
export declare const BoundaryToleranceM = 0.000001;
|
|
9
|
+
type Edge = {
|
|
10
|
+
a: PointM;
|
|
11
|
+
b: PointM;
|
|
12
|
+
bounds: Bounds;
|
|
13
|
+
};
|
|
14
|
+
export type PreparedBoundary = {
|
|
15
|
+
polygon: PolygonM;
|
|
16
|
+
edges: Edge[];
|
|
17
|
+
bounds: Bounds;
|
|
18
|
+
};
|
|
19
|
+
export declare function prepareBoundary(polygon: PolygonM): PreparedBoundary;
|
|
20
|
+
export declare function classifyBoundary(boundary: PreparedBoundary, p: PointM): BoundaryLocation;
|
|
21
|
+
export declare function footprintInBoundary(boundary: PreparedBoundary, points: PointM[]): boolean;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { containsPoint, pointsBounds, intersects, } from "./primitives.js";
|
|
2
|
+
export var BoundaryLocation;
|
|
3
|
+
(function (BoundaryLocation) {
|
|
4
|
+
BoundaryLocation["Inside"] = "inside";
|
|
5
|
+
BoundaryLocation["Boundary"] = "boundary";
|
|
6
|
+
BoundaryLocation["Outside"] = "outside";
|
|
7
|
+
})(BoundaryLocation || (BoundaryLocation = {}));
|
|
8
|
+
export const BoundaryToleranceM = 1e-6;
|
|
9
|
+
const prepared = new WeakMap();
|
|
10
|
+
export function prepareBoundary(polygon) {
|
|
11
|
+
const cached = prepared.get(polygon);
|
|
12
|
+
if (cached)
|
|
13
|
+
return cached;
|
|
14
|
+
const boundary = {
|
|
15
|
+
polygon,
|
|
16
|
+
bounds: pointsBounds(polygon.outer),
|
|
17
|
+
edges: [polygon.outer, ...polygon.holes].flatMap((r) => r.map((a, i) => ({
|
|
18
|
+
a,
|
|
19
|
+
b: r[(i + 1) % r.length],
|
|
20
|
+
bounds: pointsBounds([a, r[(i + 1) % r.length]]),
|
|
21
|
+
}))),
|
|
22
|
+
};
|
|
23
|
+
prepared.set(polygon, boundary);
|
|
24
|
+
return boundary;
|
|
25
|
+
}
|
|
26
|
+
function onEdge(edge, p) {
|
|
27
|
+
const dx = edge.b.x - edge.a.x, dy = edge.b.y - edge.a.y, t = Math.max(0, Math.min(1, ((p.x - edge.a.x) * dx + (p.y - edge.a.y) * dy) /
|
|
28
|
+
Math.max(1e-30, dx * dx + dy * dy)));
|
|
29
|
+
return (Math.hypot(p.x - edge.a.x - t * dx, p.y - edge.a.y - t * dy) <=
|
|
30
|
+
BoundaryToleranceM);
|
|
31
|
+
}
|
|
32
|
+
export function classifyBoundary(boundary, p) {
|
|
33
|
+
if (boundary.edges.some((e) => onEdge(e, p)))
|
|
34
|
+
return BoundaryLocation.Boundary;
|
|
35
|
+
if (!containsPoint(boundary.polygon.outer, p) ||
|
|
36
|
+
boundary.polygon.holes.some((h) => containsPoint(h, p)))
|
|
37
|
+
return BoundaryLocation.Outside;
|
|
38
|
+
return BoundaryLocation.Inside;
|
|
39
|
+
}
|
|
40
|
+
export function footprintInBoundary(boundary, points) {
|
|
41
|
+
if (points.some((p) => classifyBoundary(boundary, p) === BoundaryLocation.Outside))
|
|
42
|
+
return false;
|
|
43
|
+
for (let i = 0; i < points.length; i++) {
|
|
44
|
+
const a = points[i], b = points[(i + 1) % points.length], dx = b.x - a.x, dy = b.y - a.y, edgeBounds = pointsBounds([a, b]), cuts = [0, 1];
|
|
45
|
+
for (const edge of boundary.edges) {
|
|
46
|
+
if (!intersects(edgeBounds, edge.bounds))
|
|
47
|
+
continue;
|
|
48
|
+
const ex = edge.b.x - edge.a.x, ey = edge.b.y - edge.a.y, det = dx * ey - dy * ex;
|
|
49
|
+
if (Math.abs(det) < 1e-12)
|
|
50
|
+
continue;
|
|
51
|
+
const t = ((edge.a.x - a.x) * ey - (edge.a.y - a.y) * ex) / det, u = ((edge.a.x - a.x) * dy - (edge.a.y - a.y) * dx) / det;
|
|
52
|
+
if (t > 0 && t < 1 && u >= 0 && u <= 1)
|
|
53
|
+
cuts.push(t);
|
|
54
|
+
}
|
|
55
|
+
cuts.sort((l, r) => l - r);
|
|
56
|
+
for (let j = 1; j < cuts.length; j++) {
|
|
57
|
+
const t = (cuts[j - 1] + cuts[j]) / 2;
|
|
58
|
+
if (classifyBoundary(boundary, { x: a.x + t * dx, y: a.y + t * dy }) ===
|
|
59
|
+
BoundaryLocation.Outside)
|
|
60
|
+
return false;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return !boundary.polygon.holes.some((h) => h.some((p) => containsPoint(points, p) &&
|
|
64
|
+
!points.some((a, i) => onEdge({
|
|
65
|
+
a,
|
|
66
|
+
b: points[(i + 1) % points.length],
|
|
67
|
+
bounds: pointsBounds(points),
|
|
68
|
+
}, p))));
|
|
69
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type CurvedRows, type RowSlot } from "../types.js";
|
|
2
|
+
export declare enum CurveWarningKind {
|
|
3
|
+
Overrun = "overrun",
|
|
4
|
+
Clearance = "clearance"
|
|
5
|
+
}
|
|
6
|
+
export type CurveWarning = {
|
|
7
|
+
kind: CurveWarningKind;
|
|
8
|
+
row: number;
|
|
9
|
+
message: string;
|
|
10
|
+
};
|
|
11
|
+
/** Adjacent footprint clearance is advisory; it is not a promise of global collision freedom. */
|
|
12
|
+
export declare function curveWarnings(recipe: CurvedRows["recipe"], counts: readonly number[], size: {
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
}, slots?: readonly RowSlot[]): CurveWarning[];
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { CurveMode, SeatingKind, } from "../types.js";
|
|
2
|
+
import { ellipsePerimeter } from "./ellipse.js";
|
|
3
|
+
import { rowSeatGeometry } from "./seating-layout.js";
|
|
4
|
+
export var CurveWarningKind;
|
|
5
|
+
(function (CurveWarningKind) {
|
|
6
|
+
CurveWarningKind["Overrun"] = "overrun";
|
|
7
|
+
CurveWarningKind["Clearance"] = "clearance";
|
|
8
|
+
})(CurveWarningKind || (CurveWarningKind = {}));
|
|
9
|
+
/** Adjacent footprint clearance is advisory; it is not a promise of global collision freedom. */
|
|
10
|
+
export function curveWarnings(recipe, counts, size, slots) {
|
|
11
|
+
const warnings = [];
|
|
12
|
+
const layout = { kind: SeatingKind.Curved, recipe };
|
|
13
|
+
for (let row = 0; row < counts.length; row++) {
|
|
14
|
+
const count = counts[row], b = recipe.innerRadiusM + row * recipe.rowPitchM, a = recipe.innerRadiusM * (recipe.axisRatio ?? 1) + row * recipe.rowPitchM;
|
|
15
|
+
if (recipe.placement.kind === CurveMode.Pitch &&
|
|
16
|
+
(count - 1) * recipe.placement.seatPitchM + size.width >
|
|
17
|
+
ellipsePerimeter(a, b)) {
|
|
18
|
+
warnings.push({
|
|
19
|
+
kind: CurveWarningKind.Overrun,
|
|
20
|
+
row,
|
|
21
|
+
message: `Row ${row + 1} exceeds one turn. Reduce its count or pitch; no inventory was removed.`,
|
|
22
|
+
});
|
|
23
|
+
continue;
|
|
24
|
+
}
|
|
25
|
+
let previous = null;
|
|
26
|
+
for (let seat = 0; seat < count; seat++) {
|
|
27
|
+
const baseline = rowSeatGeometry(layout, row, seat, count, count).position, slot = slots?.[row]?.seats[seat], offset = slot?.override?.offsetM, rowOffset = slots?.[row]?.offsetM, point = {
|
|
28
|
+
x: baseline.x + (offset?.x ?? 0) + (rowOffset?.x ?? 0),
|
|
29
|
+
y: baseline.y + (offset?.y ?? 0) + (rowOffset?.y ?? 0),
|
|
30
|
+
}, seatSize = slot?.override?.sizeM ?? size;
|
|
31
|
+
if (previous &&
|
|
32
|
+
Math.hypot(point.x - previous.point.x, point.y - previous.point.y) <
|
|
33
|
+
Math.min(previous.size.width + seatSize.width, previous.size.height + seatSize.height) /
|
|
34
|
+
2) {
|
|
35
|
+
warnings.push({
|
|
36
|
+
kind: CurveWarningKind.Clearance,
|
|
37
|
+
row,
|
|
38
|
+
message: `Row ${row + 1} has adjacent seat footprints with insufficient clearance. Review the count, span or pitch.`,
|
|
39
|
+
});
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
previous = { point, size: seatSize };
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return warnings;
|
|
46
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const CurveToleranceM = 0.001;
|
|
2
|
+
export declare function ellipseSegments(a: number, b: number, sweep?: number): number;
|
|
3
|
+
export declare function ellipseArcLength(a: number, b: number, angle: number): number;
|
|
4
|
+
export declare function ellipseAngleAtDistance(a: number, b: number, center: number, distance: number): number;
|
|
5
|
+
export declare function ellipsePerimeter(a: number, b: number): number;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/** Bounded, immutable arc tables. Simpson integration keeps pitch independent of tessellation. */
|
|
2
|
+
const cache = new Map();
|
|
3
|
+
export const CurveToleranceM = 0.001;
|
|
4
|
+
const tau = 2 * Math.PI;
|
|
5
|
+
export function ellipseSegments(a, b, sweep = tau) {
|
|
6
|
+
const radius = Math.max(a, b);
|
|
7
|
+
const step = 2 * Math.acos(Math.max(-1, 1 - CurveToleranceM / radius));
|
|
8
|
+
const count = Math.max(8, Math.ceil(Math.abs(sweep) / step));
|
|
9
|
+
if (count > 9998)
|
|
10
|
+
throw new Error("The curve exceeds the 1mm / 10,000-vertex limit. Reduce its radii.");
|
|
11
|
+
return count;
|
|
12
|
+
}
|
|
13
|
+
function table(a, b) {
|
|
14
|
+
const key = `${a}:${b}`;
|
|
15
|
+
const previous = cache.get(key);
|
|
16
|
+
if (previous)
|
|
17
|
+
return previous;
|
|
18
|
+
const count = Math.max(256, ellipseSegments(a, b));
|
|
19
|
+
const angles = new Float64Array(count + 1), lengths = new Float64Array(count + 1);
|
|
20
|
+
const speed = (t) => Math.hypot(a * Math.sin(t), b * Math.cos(t));
|
|
21
|
+
for (let i = 1; i <= count; i++) {
|
|
22
|
+
const start = (tau * (i - 1)) / count, end = (tau * i) / count;
|
|
23
|
+
angles[i] = end;
|
|
24
|
+
lengths[i] =
|
|
25
|
+
lengths[i - 1] +
|
|
26
|
+
((end - start) *
|
|
27
|
+
(speed(start) + 4 * speed((start + end) / 2) + speed(end))) /
|
|
28
|
+
6;
|
|
29
|
+
}
|
|
30
|
+
const result = { angles, lengths, perimeter: lengths[count] };
|
|
31
|
+
if (cache.size >= 128)
|
|
32
|
+
cache.delete(cache.keys().next().value);
|
|
33
|
+
cache.set(key, result);
|
|
34
|
+
return result;
|
|
35
|
+
}
|
|
36
|
+
function interval(keys, value) {
|
|
37
|
+
let low = 0, high = keys.length - 1;
|
|
38
|
+
while (high - low > 1) {
|
|
39
|
+
const mid = (low + high) >>> 1;
|
|
40
|
+
if (keys[mid] <= value)
|
|
41
|
+
low = mid;
|
|
42
|
+
else
|
|
43
|
+
high = mid;
|
|
44
|
+
}
|
|
45
|
+
return low;
|
|
46
|
+
}
|
|
47
|
+
function partial(a, b, start, end) {
|
|
48
|
+
const speed = (t) => Math.hypot(a * Math.sin(t), b * Math.cos(t));
|
|
49
|
+
return (((end - start) *
|
|
50
|
+
(speed(start) + 4 * speed((start + end) / 2) + speed(end))) /
|
|
51
|
+
6);
|
|
52
|
+
}
|
|
53
|
+
export function ellipseArcLength(a, b, angle) {
|
|
54
|
+
if (a === b)
|
|
55
|
+
return a * angle;
|
|
56
|
+
const t = table(a, b), turns = Math.floor(angle / tau), within = angle - turns * tau, i = interval(t.angles, within);
|
|
57
|
+
return (turns * t.perimeter + t.lengths[i] + partial(a, b, t.angles[i], within));
|
|
58
|
+
}
|
|
59
|
+
export function ellipseAngleAtDistance(a, b, center, distance) {
|
|
60
|
+
if (a === b)
|
|
61
|
+
return center + distance / a;
|
|
62
|
+
const t = table(a, b), length = ellipseArcLength(a, b, center) + distance, turns = Math.floor(length / t.perimeter), within = length - turns * t.perimeter, i = interval(t.lengths, within);
|
|
63
|
+
let angle = t.angles[i] +
|
|
64
|
+
((within - t.lengths[i]) / (t.lengths[i + 1] - t.lengths[i])) *
|
|
65
|
+
(t.angles[i + 1] - t.angles[i]);
|
|
66
|
+
for (let n = 0; n < 5; n++) {
|
|
67
|
+
const error = t.lengths[i] + partial(a, b, t.angles[i], angle) - within;
|
|
68
|
+
angle = Math.max(t.angles[i], Math.min(t.angles[i + 1], angle - error / Math.hypot(a * Math.sin(angle), b * Math.cos(angle))));
|
|
69
|
+
}
|
|
70
|
+
return turns * tau + angle;
|
|
71
|
+
}
|
|
72
|
+
export function ellipsePerimeter(a, b) {
|
|
73
|
+
return a === b ? tau * a : table(a, b).perimeter;
|
|
74
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type PhysicalDocumentV1, type PointM, type PolygonM, type SeatingGroup, type SeatSlot, type SizeM, type Transform, type UUID } from "../types.js";
|
|
2
|
+
export type Matrix = {
|
|
3
|
+
a: number;
|
|
4
|
+
b: number;
|
|
5
|
+
c: number;
|
|
6
|
+
d: number;
|
|
7
|
+
tx: number;
|
|
8
|
+
ty: number;
|
|
9
|
+
};
|
|
10
|
+
import { type Bounds } from "./primitives.js";
|
|
11
|
+
export { containsPoint, emptyBounds, extend, intersects, pointsBounds, type Bounds, } from "./primitives.js";
|
|
12
|
+
export type GeneratedSeat = {
|
|
13
|
+
id: UUID;
|
|
14
|
+
groupId: UUID;
|
|
15
|
+
rowId: UUID | null;
|
|
16
|
+
sectionId: UUID | null;
|
|
17
|
+
label: string;
|
|
18
|
+
ownerLabel: string;
|
|
19
|
+
position: PointM;
|
|
20
|
+
rotationDeg: number;
|
|
21
|
+
size: SizeM;
|
|
22
|
+
slot: SeatSlot;
|
|
23
|
+
};
|
|
24
|
+
export declare const identityMatrix: Matrix;
|
|
25
|
+
export declare const radians: (value: number) => number;
|
|
26
|
+
export declare const normalizeAngle: (value: number) => number;
|
|
27
|
+
export declare function transformMatrix(t: Transform): Matrix;
|
|
28
|
+
export declare function multiply(l: Matrix, r: Matrix): Matrix;
|
|
29
|
+
export declare function inverse(m: Matrix): Matrix;
|
|
30
|
+
export declare function project(m: Matrix, p: PointM): PointM;
|
|
31
|
+
/** Table bodies remain part of drawable bounds even with chairs on one side. */
|
|
32
|
+
export declare function tableBodyBounds(group: SeatingGroup, matrix: Matrix): Bounds | null;
|
|
33
|
+
export declare function worldMatrices(document: PhysicalDocumentV1): Map<UUID, Matrix>;
|
|
34
|
+
export declare function generateGroup(group: SeatingGroup): Generator<GeneratedSeat>;
|
|
35
|
+
export declare function footprint(seat: GeneratedSeat, world?: Matrix): PointM[];
|
|
36
|
+
export declare function footprintInside(points: PointM[], polygon: PolygonM): boolean;
|
|
37
|
+
export declare function invalidPolygon(polygon: PolygonM): boolean;
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import { rowSeatGeometry, roundChairGeometry, rectangularChairGeometry, TableSide, } from "./seating-layout.js";
|
|
2
|
+
import { SeatingKind, } from "../types.js";
|
|
3
|
+
import { sequenceLabel } from "../labels.js";
|
|
4
|
+
import { containsPoint, intersects, pointsBounds, } from "./primitives.js";
|
|
5
|
+
export { containsPoint, emptyBounds, extend, intersects, pointsBounds, } from "./primitives.js";
|
|
6
|
+
import { prepareBoundary, footprintInBoundary } from "./boundary.js";
|
|
7
|
+
export const identityMatrix = { a: 1, b: 0, c: 0, d: 1, tx: 0, ty: 0 };
|
|
8
|
+
export const radians = (value) => (value * Math.PI) / 180;
|
|
9
|
+
export const normalizeAngle = (value) => ((((value + 180) % 360) + 360) % 360) - 180;
|
|
10
|
+
export function transformMatrix(t) {
|
|
11
|
+
const cos = Math.cos(radians(t.rotationDeg));
|
|
12
|
+
const sin = Math.sin(radians(t.rotationDeg));
|
|
13
|
+
const x = t.flipX ? -1 : 1;
|
|
14
|
+
const y = t.flipY ? -1 : 1;
|
|
15
|
+
return {
|
|
16
|
+
a: cos * x,
|
|
17
|
+
b: sin * x,
|
|
18
|
+
c: -sin * y,
|
|
19
|
+
d: cos * y,
|
|
20
|
+
tx: t.positionM.x,
|
|
21
|
+
ty: t.positionM.y,
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export function multiply(l, r) {
|
|
25
|
+
return {
|
|
26
|
+
a: l.a * r.a + l.c * r.b,
|
|
27
|
+
b: l.b * r.a + l.d * r.b,
|
|
28
|
+
c: l.a * r.c + l.c * r.d,
|
|
29
|
+
d: l.b * r.c + l.d * r.d,
|
|
30
|
+
tx: l.a * r.tx + l.c * r.ty + l.tx,
|
|
31
|
+
ty: l.b * r.tx + l.d * r.ty + l.ty,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function inverse(m) {
|
|
35
|
+
const det = m.a * m.d - m.b * m.c;
|
|
36
|
+
return {
|
|
37
|
+
a: m.d / det,
|
|
38
|
+
b: -m.b / det,
|
|
39
|
+
c: -m.c / det,
|
|
40
|
+
d: m.a / det,
|
|
41
|
+
tx: (m.c * m.ty - m.d * m.tx) / det,
|
|
42
|
+
ty: (m.b * m.tx - m.a * m.ty) / det,
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export function project(m, p) {
|
|
46
|
+
return { x: m.a * p.x + m.c * p.y + m.tx, y: m.b * p.x + m.d * p.y + m.ty };
|
|
47
|
+
}
|
|
48
|
+
/** Table bodies remain part of drawable bounds even with chairs on one side. */
|
|
49
|
+
export function tableBodyBounds(group, matrix) {
|
|
50
|
+
if (group.kind === SeatingKind.Round) {
|
|
51
|
+
const radius = group.recipe.diameterM / 2;
|
|
52
|
+
return {
|
|
53
|
+
minX: matrix.tx - radius,
|
|
54
|
+
minY: matrix.ty - radius,
|
|
55
|
+
maxX: matrix.tx + radius,
|
|
56
|
+
maxY: matrix.ty + radius,
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
if (group.kind !== SeatingKind.Rectangular)
|
|
60
|
+
return null;
|
|
61
|
+
const halfWidth = group.recipe.widthM / 2, halfHeight = group.recipe.depthM / 2;
|
|
62
|
+
return pointsBounds([
|
|
63
|
+
{ x: -halfWidth, y: -halfHeight },
|
|
64
|
+
{ x: halfWidth, y: -halfHeight },
|
|
65
|
+
{ x: halfWidth, y: halfHeight },
|
|
66
|
+
{ x: -halfWidth, y: halfHeight },
|
|
67
|
+
].map((point) => project(matrix, point)));
|
|
68
|
+
}
|
|
69
|
+
export function worldMatrices(document) {
|
|
70
|
+
const collections = new Map(document.collections.map((c) => [c.id, c]));
|
|
71
|
+
const result = new Map();
|
|
72
|
+
const resolve = (id) => {
|
|
73
|
+
const cached = result.get(id);
|
|
74
|
+
if (cached)
|
|
75
|
+
return cached;
|
|
76
|
+
const c = collections.get(id);
|
|
77
|
+
const m = multiply(c.parentId ? resolve(c.parentId) : identityMatrix, transformMatrix(c.transform));
|
|
78
|
+
result.set(id, m);
|
|
79
|
+
return m;
|
|
80
|
+
};
|
|
81
|
+
for (const c of document.collections)
|
|
82
|
+
resolve(c.id);
|
|
83
|
+
for (const entity of [
|
|
84
|
+
...document.seatingGroups,
|
|
85
|
+
...document.areas,
|
|
86
|
+
...document.decorations,
|
|
87
|
+
])
|
|
88
|
+
result.set(entity.id, multiply(entity.parentId ? resolve(entity.parentId) : identityMatrix, transformMatrix(entity.transform)));
|
|
89
|
+
return result;
|
|
90
|
+
}
|
|
91
|
+
export function* generateGroup(group) {
|
|
92
|
+
const emit = (slot, p, rotationDeg, label, ownerLabel, rowId) => ({
|
|
93
|
+
id: slot.id,
|
|
94
|
+
groupId: group.id,
|
|
95
|
+
rowId,
|
|
96
|
+
sectionId: group.sectionId,
|
|
97
|
+
label: slot.labelOverride ?? label,
|
|
98
|
+
ownerLabel,
|
|
99
|
+
position: {
|
|
100
|
+
x: p.x + (slot.override?.offsetM?.x ?? 0),
|
|
101
|
+
y: p.y + (slot.override?.offsetM?.y ?? 0),
|
|
102
|
+
},
|
|
103
|
+
rotationDeg: normalizeAngle(rotationDeg + (slot.override?.rotationDeltaDeg ?? 0)),
|
|
104
|
+
size: slot.override?.sizeM ?? group.seatSizeM,
|
|
105
|
+
slot,
|
|
106
|
+
});
|
|
107
|
+
if (group.kind === SeatingKind.Straight ||
|
|
108
|
+
group.kind === SeatingKind.Curved) {
|
|
109
|
+
const longestRow = group.rows.reduce((max, row) => Math.max(max, row.seats.length), 0);
|
|
110
|
+
for (let r = 0; r < group.rows.length; r++) {
|
|
111
|
+
const row = group.rows[r];
|
|
112
|
+
const owner = row.labelOverride ??
|
|
113
|
+
sequenceLabel(group.labels.rows, r, group.rows.length);
|
|
114
|
+
for (let i = 0; i < row.seats.length; i++) {
|
|
115
|
+
const geometry = rowSeatGeometry(group, r, i, row.seats.length, longestRow);
|
|
116
|
+
let p = geometry.position;
|
|
117
|
+
const rotation = geometry.rotationDeg;
|
|
118
|
+
p = { x: p.x + (row.offsetM?.x ?? 0), y: p.y + (row.offsetM?.y ?? 0) };
|
|
119
|
+
yield emit(row.seats[i], p, rotation, sequenceLabel(row.seatSequenceOverride ?? group.labels.seats, i, row.seats.length), owner, row.id);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
else if (group.kind === SeatingKind.Round) {
|
|
124
|
+
for (let i = 0; i < group.chairs.length; i++) {
|
|
125
|
+
const geometry = roundChairGeometry(group.recipe, group.seatSizeM.height, i, group.chairs.length);
|
|
126
|
+
yield emit(group.chairs[i], geometry.position, geometry.rotationDeg, sequenceLabel(group.labels.chairs, i, group.chairs.length), group.labels.table, null);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
const sides = Object.values(TableSide);
|
|
131
|
+
const total = sides.reduce((n, s) => n + group.chairsBySide[s].length, 0);
|
|
132
|
+
let ordinal = 0;
|
|
133
|
+
for (const side of sides) {
|
|
134
|
+
const list = group.chairsBySide[side];
|
|
135
|
+
for (let i = 0; i < list.length; i++) {
|
|
136
|
+
const geometry = rectangularChairGeometry(group.recipe, group.seatSizeM.height, side, i, list.length);
|
|
137
|
+
yield emit(list[i], geometry.position, geometry.rotationDeg, sequenceLabel(group.labels.chairs, ordinal++, total), group.labels.table, null);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
export function footprint(seat, world = identityMatrix) {
|
|
143
|
+
const m = multiply(world, transformMatrix({
|
|
144
|
+
positionM: seat.position,
|
|
145
|
+
rotationDeg: seat.rotationDeg,
|
|
146
|
+
}));
|
|
147
|
+
return [
|
|
148
|
+
{ x: -seat.size.width / 2, y: -seat.size.height / 2 },
|
|
149
|
+
{ x: seat.size.width / 2, y: -seat.size.height / 2 },
|
|
150
|
+
{ x: seat.size.width / 2, y: seat.size.height / 2 },
|
|
151
|
+
{ x: -seat.size.width / 2, y: seat.size.height / 2 },
|
|
152
|
+
].map((p) => project(m, p));
|
|
153
|
+
}
|
|
154
|
+
function crosses(a, b, c, d) {
|
|
155
|
+
const side = (p, q, r) => (q.x - p.x) * (r.y - p.y) - (q.y - p.y) * (r.x - p.x);
|
|
156
|
+
return (side(a, b, c) * side(a, b, d) < -1e-12 &&
|
|
157
|
+
side(c, d, a) * side(c, d, b) < -1e-12);
|
|
158
|
+
}
|
|
159
|
+
export function footprintInside(points, polygon) {
|
|
160
|
+
return footprintInBoundary(prepareBoundary(polygon), points);
|
|
161
|
+
}
|
|
162
|
+
const polygonValidity = new WeakMap();
|
|
163
|
+
export function invalidPolygon(polygon) {
|
|
164
|
+
const cached = polygonValidity.get(polygon);
|
|
165
|
+
if (cached !== undefined)
|
|
166
|
+
return cached;
|
|
167
|
+
const result = calculateInvalidPolygon(polygon);
|
|
168
|
+
polygonValidity.set(polygon, result);
|
|
169
|
+
return result;
|
|
170
|
+
}
|
|
171
|
+
function calculateInvalidPolygon(polygon) {
|
|
172
|
+
const selfIntersects = (ring) => {
|
|
173
|
+
const twiceArea = ring.reduce((n, p, i) => {
|
|
174
|
+
const q = ring[(i + 1) % ring.length];
|
|
175
|
+
return n + p.x * q.y - q.x * p.y;
|
|
176
|
+
}, 0);
|
|
177
|
+
if (Math.abs(twiceArea) < 1e-10 ||
|
|
178
|
+
ring.some((p, i) => {
|
|
179
|
+
const q = ring[(i + 1) % ring.length];
|
|
180
|
+
return p.x === q.x && p.y === q.y;
|
|
181
|
+
}))
|
|
182
|
+
return true;
|
|
183
|
+
const edges = ring
|
|
184
|
+
.map((a, i) => ({
|
|
185
|
+
a,
|
|
186
|
+
b: ring[(i + 1) % ring.length],
|
|
187
|
+
index: i,
|
|
188
|
+
bounds: pointsBounds([a, ring[(i + 1) % ring.length]]),
|
|
189
|
+
}))
|
|
190
|
+
.sort((a, b) => a.bounds.minX - b.bounds.minX);
|
|
191
|
+
for (let i = 0; i < edges.length; i++)
|
|
192
|
+
for (let j = i + 1; j < edges.length && edges[j].bounds.minX <= edges[i].bounds.maxX; j++) {
|
|
193
|
+
const a = edges[i], b = edges[j];
|
|
194
|
+
if (Math.abs(a.index - b.index) === 1 ||
|
|
195
|
+
Math.abs(a.index - b.index) === ring.length - 1)
|
|
196
|
+
continue;
|
|
197
|
+
if (intersects(a.bounds, b.bounds) &&
|
|
198
|
+
(crosses(a.a, a.b, b.a, b.b) ||
|
|
199
|
+
containsPoint([a.a, a.b], b.a) ||
|
|
200
|
+
containsPoint([a.a, a.b], b.b) ||
|
|
201
|
+
containsPoint([b.a, b.b], a.a) ||
|
|
202
|
+
containsPoint([b.a, b.b], a.b)))
|
|
203
|
+
return true;
|
|
204
|
+
}
|
|
205
|
+
return false;
|
|
206
|
+
};
|
|
207
|
+
if ([polygon.outer, ...polygon.holes].some(selfIntersects))
|
|
208
|
+
return true;
|
|
209
|
+
if (polygon.holes.some((h) => !footprintInside(h, { outer: polygon.outer, holes: [] })))
|
|
210
|
+
return true;
|
|
211
|
+
for (let i = 0; i < polygon.holes.length; i++)
|
|
212
|
+
for (let j = i + 1; j < polygon.holes.length; j++)
|
|
213
|
+
if (!footprintInside(polygon.holes[i], {
|
|
214
|
+
outer: polygon.outer,
|
|
215
|
+
holes: [polygon.holes[j]],
|
|
216
|
+
}))
|
|
217
|
+
return true;
|
|
218
|
+
return false;
|
|
219
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { PointM } from "../types.js";
|
|
2
|
+
export type Bounds = {
|
|
3
|
+
minX: number;
|
|
4
|
+
minY: number;
|
|
5
|
+
maxX: number;
|
|
6
|
+
maxY: number;
|
|
7
|
+
};
|
|
8
|
+
export declare function emptyBounds(): Bounds;
|
|
9
|
+
export declare function extend(bounds: Bounds, p: PointM): void;
|
|
10
|
+
export declare function intersects(a: Bounds, b: Bounds): boolean;
|
|
11
|
+
export declare function pointsBounds(points: PointM[]): Bounds;
|
|
12
|
+
export declare function containsPoint(ring: PointM[], p: PointM): boolean;
|