@pixelverse/strichjs-sdk 1.6.1 → 1.7.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/CHANGELOG.md CHANGED
@@ -2,6 +2,19 @@
2
2
 
3
3
  The structure of this file follows the recommendations from: https://keepachangelog.com/en/1.1.0/
4
4
 
5
+ ## [1.7.0] - 2025-01-28
6
+
7
+ ### Added
8
+
9
+ - Improved performance in situations where lighting is uneven.
10
+ - New QR Code decoder now supports rounded finder patterns via the `roundedFPs` symbology config option.
11
+ - New QR Code decoder now supports codes printed on curved surfaces via the `curved` symbology config option.
12
+ - If audio feedback is enabled and the [Audio Session API](https://www.w3.org/TR/audio-session/) is available, the audio session type is set to `transient`.
13
+
14
+ ### Changed
15
+
16
+ - Downgraded target from ES2020 to ES2019 to avoid issues with the optional chaining operator and Webpack 4.x builds. Special thanks to Gaetan from GCK Technology Consulting for providing a minimum reproducible sample.
17
+
5
18
  ## [1.6.1] - 2024-12-16
6
19
 
7
20
  ### Added
package/NOTICE CHANGED
@@ -2,7 +2,7 @@ This project uses code from the following projects.
2
2
 
3
3
  ================================================================================
4
4
 
5
- ZXing: https://github.com/zxing/zxing
5
+ ZXing (Data Matrix bitstream decoding): https://github.com/zxing/zxing
6
6
 
7
7
  Apache License
8
8
  Version 2.0, January 2004
@@ -254,7 +254,7 @@ THE SOFTWARE.
254
254
 
255
255
  ================================================================================
256
256
 
257
- quirc: https://github.com/dlbeer/quirc
257
+ quirc (QR Code bitstream decoding): https://github.com/dlbeer/quirc
258
258
 
259
259
  quirc -- QR-code recognition library
260
260
  Copyright (C) 2010-2012 Daniel Beer <dlbeer@gmail.com>
@@ -303,3 +303,382 @@ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
303
303
  COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
304
304
  IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
305
305
  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
306
+
307
+ ================================================================================
308
+
309
+ Eigen: https://gitlab.com/libeigen/eigen (Linear Algebra routines)
310
+
311
+ Mozilla Public License Version 2.0
312
+ ==================================
313
+
314
+ 1. Definitions
315
+ --------------
316
+
317
+ 1.1. "Contributor"
318
+ means each individual or legal entity that creates, contributes to
319
+ the creation of, or owns Covered Software.
320
+
321
+ 1.2. "Contributor Version"
322
+ means the combination of the Contributions of others (if any) used
323
+ by a Contributor and that particular Contributor's Contribution.
324
+
325
+ 1.3. "Contribution"
326
+ means Covered Software of a particular Contributor.
327
+
328
+ 1.4. "Covered Software"
329
+ means Source Code Form to which the initial Contributor has attached
330
+ the notice in Exhibit A, the Executable Form of such Source Code
331
+ Form, and Modifications of such Source Code Form, in each case
332
+ including portions thereof.
333
+
334
+ 1.5. "Incompatible With Secondary Licenses"
335
+ means
336
+
337
+ (a) that the initial Contributor has attached the notice described
338
+ in Exhibit B to the Covered Software; or
339
+
340
+ (b) that the Covered Software was made available under the terms of
341
+ version 1.1 or earlier of the License, but not also under the
342
+ terms of a Secondary License.
343
+
344
+ 1.6. "Executable Form"
345
+ means any form of the work other than Source Code Form.
346
+
347
+ 1.7. "Larger Work"
348
+ means a work that combines Covered Software with other material, in
349
+ a separate file or files, that is not Covered Software.
350
+
351
+ 1.8. "License"
352
+ means this document.
353
+
354
+ 1.9. "Licensable"
355
+ means having the right to grant, to the maximum extent possible,
356
+ whether at the time of the initial grant or subsequently, any and
357
+ all of the rights conveyed by this License.
358
+
359
+ 1.10. "Modifications"
360
+ means any of the following:
361
+
362
+ (a) any file in Source Code Form that results from an addition to,
363
+ deletion from, or modification of the contents of Covered
364
+ Software; or
365
+
366
+ (b) any new file in Source Code Form that contains any Covered
367
+ Software.
368
+
369
+ 1.11. "Patent Claims" of a Contributor
370
+ means any patent claim(s), including without limitation, method,
371
+ process, and apparatus claims, in any patent Licensable by such
372
+ Contributor that would be infringed, but for the grant of the
373
+ License, by the making, using, selling, offering for sale, having
374
+ made, import, or transfer of either its Contributions or its
375
+ Contributor Version.
376
+
377
+ 1.12. "Secondary License"
378
+ means either the GNU General Public License, Version 2.0, the GNU
379
+ Lesser General Public License, Version 2.1, the GNU Affero General
380
+ Public License, Version 3.0, or any later versions of those
381
+ licenses.
382
+
383
+ 1.13. "Source Code Form"
384
+ means the form of the work preferred for making modifications.
385
+
386
+ 1.14. "You" (or "Your")
387
+ means an individual or a legal entity exercising rights under this
388
+ License. For legal entities, "You" includes any entity that
389
+ controls, is controlled by, or is under common control with You. For
390
+ purposes of this definition, "control" means (a) the power, direct
391
+ or indirect, to cause the direction or management of such entity,
392
+ whether by contract or otherwise, or (b) ownership of more than
393
+ fifty percent (50%) of the outstanding shares or beneficial
394
+ ownership of such entity.
395
+
396
+ 2. License Grants and Conditions
397
+ --------------------------------
398
+
399
+ 2.1. Grants
400
+
401
+ Each Contributor hereby grants You a world-wide, royalty-free,
402
+ non-exclusive license:
403
+
404
+ (a) under intellectual property rights (other than patent or trademark)
405
+ Licensable by such Contributor to use, reproduce, make available,
406
+ modify, display, perform, distribute, and otherwise exploit its
407
+ Contributions, either on an unmodified basis, with Modifications, or
408
+ as part of a Larger Work; and
409
+
410
+ (b) under Patent Claims of such Contributor to make, use, sell, offer
411
+ for sale, have made, import, and otherwise transfer either its
412
+ Contributions or its Contributor Version.
413
+
414
+ 2.2. Effective Date
415
+
416
+ The licenses granted in Section 2.1 with respect to any Contribution
417
+ become effective for each Contribution on the date the Contributor first
418
+ distributes such Contribution.
419
+
420
+ 2.3. Limitations on Grant Scope
421
+
422
+ The licenses granted in this Section 2 are the only rights granted under
423
+ this License. No additional rights or licenses will be implied from the
424
+ distribution or licensing of Covered Software under this License.
425
+ Notwithstanding Section 2.1(b) above, no patent license is granted by a
426
+ Contributor:
427
+
428
+ (a) for any code that a Contributor has removed from Covered Software;
429
+ or
430
+
431
+ (b) for infringements caused by: (i) Your and any other third party's
432
+ modifications of Covered Software, or (ii) the combination of its
433
+ Contributions with other software (except as part of its Contributor
434
+ Version); or
435
+
436
+ (c) under Patent Claims infringed by Covered Software in the absence of
437
+ its Contributions.
438
+
439
+ This License does not grant any rights in the trademarks, service marks,
440
+ or logos of any Contributor (except as may be necessary to comply with
441
+ the notice requirements in Section 3.4).
442
+
443
+ 2.4. Subsequent Licenses
444
+
445
+ No Contributor makes additional grants as a result of Your choice to
446
+ distribute the Covered Software under a subsequent version of this
447
+ License (see Section 10.2) or under the terms of a Secondary License (if
448
+ permitted under the terms of Section 3.3).
449
+
450
+ 2.5. Representation
451
+
452
+ Each Contributor represents that the Contributor believes its
453
+ Contributions are its original creation(s) or it has sufficient rights
454
+ to grant the rights to its Contributions conveyed by this License.
455
+
456
+ 2.6. Fair Use
457
+
458
+ This License is not intended to limit any rights You have under
459
+ applicable copyright doctrines of fair use, fair dealing, or other
460
+ equivalents.
461
+
462
+ 2.7. Conditions
463
+
464
+ Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
465
+ in Section 2.1.
466
+
467
+ 3. Responsibilities
468
+ -------------------
469
+
470
+ 3.1. Distribution of Source Form
471
+
472
+ All distribution of Covered Software in Source Code Form, including any
473
+ Modifications that You create or to which You contribute, must be under
474
+ the terms of this License. You must inform recipients that the Source
475
+ Code Form of the Covered Software is governed by the terms of this
476
+ License, and how they can obtain a copy of this License. You may not
477
+ attempt to alter or restrict the recipients' rights in the Source Code
478
+ Form.
479
+
480
+ 3.2. Distribution of Executable Form
481
+
482
+ If You distribute Covered Software in Executable Form then:
483
+
484
+ (a) such Covered Software must also be made available in Source Code
485
+ Form, as described in Section 3.1, and You must inform recipients of
486
+ the Executable Form how they can obtain a copy of such Source Code
487
+ Form by reasonable means in a timely manner, at a charge no more
488
+ than the cost of distribution to the recipient; and
489
+
490
+ (b) You may distribute such Executable Form under the terms of this
491
+ License, or sublicense it under different terms, provided that the
492
+ license for the Executable Form does not attempt to limit or alter
493
+ the recipients' rights in the Source Code Form under this License.
494
+
495
+ 3.3. Distribution of a Larger Work
496
+
497
+ You may create and distribute a Larger Work under terms of Your choice,
498
+ provided that You also comply with the requirements of this License for
499
+ the Covered Software. If the Larger Work is a combination of Covered
500
+ Software with a work governed by one or more Secondary Licenses, and the
501
+ Covered Software is not Incompatible With Secondary Licenses, this
502
+ License permits You to additionally distribute such Covered Software
503
+ under the terms of such Secondary License(s), so that the recipient of
504
+ the Larger Work may, at their option, further distribute the Covered
505
+ Software under the terms of either this License or such Secondary
506
+ License(s).
507
+
508
+ 3.4. Notices
509
+
510
+ You may not remove or alter the substance of any license notices
511
+ (including copyright notices, patent notices, disclaimers of warranty,
512
+ or limitations of liability) contained within the Source Code Form of
513
+ the Covered Software, except that You may alter any license notices to
514
+ the extent required to remedy known factual inaccuracies.
515
+
516
+ 3.5. Application of Additional Terms
517
+
518
+ You may choose to offer, and to charge a fee for, warranty, support,
519
+ indemnity or liability obligations to one or more recipients of Covered
520
+ Software. However, You may do so only on Your own behalf, and not on
521
+ behalf of any Contributor. You must make it absolutely clear that any
522
+ such warranty, support, indemnity, or liability obligation is offered by
523
+ You alone, and You hereby agree to indemnify every Contributor for any
524
+ liability incurred by such Contributor as a result of warranty, support,
525
+ indemnity or liability terms You offer. You may include additional
526
+ disclaimers of warranty and limitations of liability specific to any
527
+ jurisdiction.
528
+
529
+ 4. Inability to Comply Due to Statute or Regulation
530
+ ---------------------------------------------------
531
+
532
+ If it is impossible for You to comply with any of the terms of this
533
+ License with respect to some or all of the Covered Software due to
534
+ statute, judicial order, or regulation then You must: (a) comply with
535
+ the terms of this License to the maximum extent possible; and (b)
536
+ describe the limitations and the code they affect. Such description must
537
+ be placed in a text file included with all distributions of the Covered
538
+ Software under this License. Except to the extent prohibited by statute
539
+ or regulation, such description must be sufficiently detailed for a
540
+ recipient of ordinary skill to be able to understand it.
541
+
542
+ 5. Termination
543
+ --------------
544
+
545
+ 5.1. The rights granted under this License will terminate automatically
546
+ if You fail to comply with any of its terms. However, if You become
547
+ compliant, then the rights granted under this License from a particular
548
+ Contributor are reinstated (a) provisionally, unless and until such
549
+ Contributor explicitly and finally terminates Your grants, and (b) on an
550
+ ongoing basis, if such Contributor fails to notify You of the
551
+ non-compliance by some reasonable means prior to 60 days after You have
552
+ come back into compliance. Moreover, Your grants from a particular
553
+ Contributor are reinstated on an ongoing basis if such Contributor
554
+ notifies You of the non-compliance by some reasonable means, this is the
555
+ first time You have received notice of non-compliance with this License
556
+ from such Contributor, and You become compliant prior to 30 days after
557
+ Your receipt of the notice.
558
+
559
+ 5.2. If You initiate litigation against any entity by asserting a patent
560
+ infringement claim (excluding declaratory judgment actions,
561
+ counter-claims, and cross-claims) alleging that a Contributor Version
562
+ directly or indirectly infringes any patent, then the rights granted to
563
+ You by any and all Contributors for the Covered Software under Section
564
+ 2.1 of this License shall terminate.
565
+
566
+ 5.3. In the event of termination under Sections 5.1 or 5.2 above, all
567
+ end user license agreements (excluding distributors and resellers) which
568
+ have been validly granted by You or Your distributors under this License
569
+ prior to termination shall survive termination.
570
+
571
+ ************************************************************************
572
+ * *
573
+ * 6. Disclaimer of Warranty *
574
+ * ------------------------- *
575
+ * *
576
+ * Covered Software is provided under this License on an "as is" *
577
+ * basis, without warranty of any kind, either expressed, implied, or *
578
+ * statutory, including, without limitation, warranties that the *
579
+ * Covered Software is free of defects, merchantable, fit for a *
580
+ * particular purpose or non-infringing. The entire risk as to the *
581
+ * quality and performance of the Covered Software is with You. *
582
+ * Should any Covered Software prove defective in any respect, You *
583
+ * (not any Contributor) assume the cost of any necessary servicing, *
584
+ * repair, or correction. This disclaimer of warranty constitutes an *
585
+ * essential part of this License. No use of any Covered Software is *
586
+ * authorized under this License except under this disclaimer. *
587
+ * *
588
+ ************************************************************************
589
+
590
+ ************************************************************************
591
+ * *
592
+ * 7. Limitation of Liability *
593
+ * -------------------------- *
594
+ * *
595
+ * Under no circumstances and under no legal theory, whether tort *
596
+ * (including negligence), contract, or otherwise, shall any *
597
+ * Contributor, or anyone who distributes Covered Software as *
598
+ * permitted above, be liable to You for any direct, indirect, *
599
+ * special, incidental, or consequential damages of any character *
600
+ * including, without limitation, damages for lost profits, loss of *
601
+ * goodwill, work stoppage, computer failure or malfunction, or any *
602
+ * and all other commercial damages or losses, even if such party *
603
+ * shall have been informed of the possibility of such damages. This *
604
+ * limitation of liability shall not apply to liability for death or *
605
+ * personal injury resulting from such party's negligence to the *
606
+ * extent applicable law prohibits such limitation. Some *
607
+ * jurisdictions do not allow the exclusion or limitation of *
608
+ * incidental or consequential damages, so this exclusion and *
609
+ * limitation may not apply to You. *
610
+ * *
611
+ ************************************************************************
612
+
613
+ 8. Litigation
614
+ -------------
615
+
616
+ Any litigation relating to this License may be brought only in the
617
+ courts of a jurisdiction where the defendant maintains its principal
618
+ place of business and such litigation shall be governed by laws of that
619
+ jurisdiction, without reference to its conflict-of-law provisions.
620
+ Nothing in this Section shall prevent a party's ability to bring
621
+ cross-claims or counter-claims.
622
+
623
+ 9. Miscellaneous
624
+ ----------------
625
+
626
+ This License represents the complete agreement concerning the subject
627
+ matter hereof. If any provision of this License is held to be
628
+ unenforceable, such provision shall be reformed only to the extent
629
+ necessary to make it enforceable. Any law or regulation which provides
630
+ that the language of a contract shall be construed against the drafter
631
+ shall not be used to construe this License against a Contributor.
632
+
633
+ 10. Versions of the License
634
+ ---------------------------
635
+
636
+ 10.1. New Versions
637
+
638
+ Mozilla Foundation is the license steward. Except as provided in Section
639
+ 10.3, no one other than the license steward has the right to modify or
640
+ publish new versions of this License. Each version will be given a
641
+ distinguishing version number.
642
+
643
+ 10.2. Effect of New Versions
644
+
645
+ You may distribute the Covered Software under the terms of the version
646
+ of the License under which You originally received the Covered Software,
647
+ or under the terms of any subsequent version published by the license
648
+ steward.
649
+
650
+ 10.3. Modified Versions
651
+
652
+ If you create software not governed by this License, and you want to
653
+ create a new license for such software, you may create and use a
654
+ modified version of this License if you rename the license and remove
655
+ any references to the name of the license steward (except to note that
656
+ such modified license differs from this License).
657
+
658
+ 10.4. Distributing Source Code Form that is Incompatible With Secondary
659
+ Licenses
660
+
661
+ If You choose to distribute Source Code Form that is Incompatible With
662
+ Secondary Licenses under the terms of this version of the License, the
663
+ notice described in Exhibit B of this License must be attached.
664
+
665
+ Exhibit A - Source Code Form License Notice
666
+ -------------------------------------------
667
+
668
+ This Source Code Form is subject to the terms of the Mozilla Public
669
+ License, v. 2.0. If a copy of the MPL was not distributed with this
670
+ file, You can obtain one at http://mozilla.org/MPL/2.0/.
671
+
672
+ If it is not possible or desirable to put the notice in a particular
673
+ file, then You may include the notice in a location (such as a LICENSE
674
+ file in a relevant directory) where a recipient would be likely to look
675
+ for such a notice.
676
+
677
+ You may add additional accurate notices of copyright ownership.
678
+
679
+ Exhibit B - "Incompatible With Secondary Licenses" Notice
680
+ ---------------------------------------------------------
681
+
682
+ This Source Code Form is "Incompatible With Secondary Licenses", as
683
+ defined by the Mozilla Public License, v. 2.0.
684
+