@rickosborne/hexgrid 2026.2.13 → 2026.2.16
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/README.md +10 -10
- package/package.json +9 -10
package/README.md
CHANGED
|
@@ -447,7 +447,7 @@ evenRFromQRS: (point: BareQRSPoint) => EvenRPoint
|
|
|
447
447
|
<a id="api-flatqrsfrompixel"></a>
|
|
448
448
|
|
|
449
449
|
```typescript
|
|
450
|
-
flatQRSFromPixel: <P extends QRSPoint<S>, S extends QRSSystem>(
|
|
450
|
+
flatQRSFromPixel: <P extends QRSPoint<S>, S extends QRSSystem>(input: {
|
|
451
451
|
x: number;
|
|
452
452
|
y: number;
|
|
453
453
|
}, builder: QRSBuilder<P>, scale?: number) => P
|
|
@@ -570,7 +570,7 @@ offsetNeighbor: <S extends OffsetSystem>(offset: OffsetPoint<S>, direction: Offs
|
|
|
570
570
|
<a id="api-pixelfromflatqrs"></a>
|
|
571
571
|
|
|
572
572
|
```typescript
|
|
573
|
-
pixelFromFlatQRS: (
|
|
573
|
+
pixelFromFlatQRS: (input: BareQRSPoint, scale?: number) => PointXY
|
|
574
574
|
```
|
|
575
575
|
|
|
576
576
|
#### pixelFromPointyQRS
|
|
@@ -578,7 +578,7 @@ pixelFromFlatQRS: ({ q, r }: BareQRSPoint, scale?: number) => PointXY
|
|
|
578
578
|
<a id="api-pixelfrompointyqrs"></a>
|
|
579
579
|
|
|
580
580
|
```typescript
|
|
581
|
-
pixelFromPointyQRS: (
|
|
581
|
+
pixelFromPointyQRS: (input: BareQRSPoint, scale?: number) => PointXY
|
|
582
582
|
```
|
|
583
583
|
|
|
584
584
|
#### pixelFromQRS
|
|
@@ -586,7 +586,7 @@ pixelFromPointyQRS: ({ q, r }: BareQRSPoint, scale?: number) => PointXY
|
|
|
586
586
|
<a id="api-pixelfromqrs"></a>
|
|
587
587
|
|
|
588
588
|
```typescript
|
|
589
|
-
pixelFromQRS: (
|
|
589
|
+
pixelFromQRS: (input: BareQRSPoint, input2: HexLayout) => PointXY
|
|
590
590
|
```
|
|
591
591
|
|
|
592
592
|
#### pixelOffsetOfCorner
|
|
@@ -602,7 +602,7 @@ pixelOffsetOfCorner: (t: HexCorner, u: HexLayout) => Readonly<PointXY>
|
|
|
602
602
|
<a id="api-pointyqrsfrompixel"></a>
|
|
603
603
|
|
|
604
604
|
```typescript
|
|
605
|
-
pointyQRSFromPixel: <P extends QRSPoint<S>, S extends QRSSystem>(
|
|
605
|
+
pointyQRSFromPixel: <P extends QRSPoint<S>, S extends QRSSystem>(input: {
|
|
606
606
|
x: number;
|
|
607
607
|
y: number;
|
|
608
608
|
}, builder: QRSBuilder<P>, scale?: number) => P
|
|
@@ -637,7 +637,7 @@ qrsFromDoubleWidth: <S extends QRSSystem, P extends QRSPoint<S>>(double: DoubleW
|
|
|
637
637
|
<a id="api-qrsfrompixel"></a>
|
|
638
638
|
|
|
639
639
|
```typescript
|
|
640
|
-
qrsFromPixel: <P extends QRSPoint<S>, S extends QRSSystem>(
|
|
640
|
+
qrsFromPixel: <P extends QRSPoint<S>, S extends QRSSystem>(input: PointXY, input2: HexLayout, builder: QRSBuilder<P>) => P
|
|
641
641
|
```
|
|
642
642
|
|
|
643
643
|
#### qrsHashCode
|
|
@@ -645,7 +645,7 @@ qrsFromPixel: <P extends QRSPoint<S>, S extends QRSSystem>({ x, y }: PointXY, {
|
|
|
645
645
|
<a id="api-qrshashcode"></a>
|
|
646
646
|
|
|
647
647
|
```typescript
|
|
648
|
-
qrsHashCode: (
|
|
648
|
+
qrsHashCode: (input: BareQRSPoint) => bigint
|
|
649
649
|
```
|
|
650
650
|
|
|
651
651
|
Generate a (very simplistic) hash code for a hex point which could be used as a Map/Hash key.
|
|
@@ -707,7 +707,7 @@ qrsSubtract: <P extends QRSPoint<S>, S extends QRSSystem>(left: P, right: P, bui
|
|
|
707
707
|
<a id="api-stringifyaxial"></a>
|
|
708
708
|
|
|
709
709
|
```typescript
|
|
710
|
-
stringifyAxial: (
|
|
710
|
+
stringifyAxial: (input: AxialPoint | BareQRSPoint) => string
|
|
711
711
|
```
|
|
712
712
|
|
|
713
713
|
#### stringifyCube
|
|
@@ -715,7 +715,7 @@ stringifyAxial: ({ q, r }: AxialPoint | BareQRSPoint) => string
|
|
|
715
715
|
<a id="api-stringifycube"></a>
|
|
716
716
|
|
|
717
717
|
```typescript
|
|
718
|
-
stringifyCube: (
|
|
718
|
+
stringifyCube: (input: BareHexCubePoint) => string
|
|
719
719
|
```
|
|
720
720
|
|
|
721
721
|
#### stringifyOffset
|
|
@@ -723,7 +723,7 @@ stringifyCube: ({ q, r, s }: BareHexCubePoint) => string
|
|
|
723
723
|
<a id="api-stringifyoffset"></a>
|
|
724
724
|
|
|
725
725
|
```typescript
|
|
726
|
-
stringifyOffset: (
|
|
726
|
+
stringifyOffset: (input: OffsetPoint<OffsetSystem>) => string
|
|
727
727
|
```
|
|
728
728
|
|
|
729
729
|
#### svgForHexGrid
|
package/package.json
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
"url": "https://rickosborne.org"
|
|
5
5
|
},
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@rickosborne/foundation": "2026.2.
|
|
8
|
-
"@rickosborne/guard": "2026.2.
|
|
9
|
-
"@rickosborne/typical": "2026.2.
|
|
7
|
+
"@rickosborne/foundation": "2026.2.16",
|
|
8
|
+
"@rickosborne/guard": "2026.2.16",
|
|
9
|
+
"@rickosborne/typical": "2026.2.16"
|
|
10
10
|
},
|
|
11
11
|
"description": "Rick Osborne's collection of hexagonal grid-related code.",
|
|
12
12
|
"engines": {
|
|
@@ -364,12 +364,11 @@
|
|
|
364
364
|
},
|
|
365
365
|
"git": {
|
|
366
366
|
"authorName": "Rick Osborne",
|
|
367
|
-
"commitDateISO": "2026-02-
|
|
368
|
-
"commitHash": "
|
|
369
|
-
"commitLink": "https://github.com/rickosborne/es-js-ts/commits/
|
|
370
|
-
"parentHash": "
|
|
371
|
-
"signingKeyId": "8e61c433fe39d4a4679ce1d5b873fb3c48464f3c"
|
|
372
|
-
"tag": "v2026.2.13"
|
|
367
|
+
"commitDateISO": "2026-02-16T18:13:37.000Z",
|
|
368
|
+
"commitHash": "72d2d07aba028ad4c475190c056b5e631242c7bb",
|
|
369
|
+
"commitLink": "https://github.com/rickosborne/es-js-ts/commits/72d2d07aba028ad4c475190c056b5e631242c7bb",
|
|
370
|
+
"parentHash": "38d31a198cf30896f6c95ff44871cc91cf94f5a0",
|
|
371
|
+
"signingKeyId": "8e61c433fe39d4a4679ce1d5b873fb3c48464f3c"
|
|
373
372
|
},
|
|
374
373
|
"homepage": "https://github.com/rickosborne/es-js-ts",
|
|
375
374
|
"keywords": [
|
|
@@ -394,5 +393,5 @@
|
|
|
394
393
|
},
|
|
395
394
|
"types": "./index.d.ts",
|
|
396
395
|
"typings": "./index.d.ts",
|
|
397
|
-
"version": "2026.2.
|
|
396
|
+
"version": "2026.2.16"
|
|
398
397
|
}
|