Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps-dev): bump eslint from 8.56.0 to 8.57.0 #1256

Merged
merged 1 commit into from
May 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@
"devDependencies": {
"@types/mocha": "^10.0.1",
"@types/three": "^0.161.0",
"@typescript-eslint/eslint-plugin": "^7.0.1",
"@typescript-eslint/parser": "^7.0.1",
"@typescript-eslint/eslint-plugin": "^7.9.0",
"@typescript-eslint/parser": "^7.9.0",
"alive-server": "^1.3.0",
"cross-env": "^7.0.3",
"esbuild-plugin-external-global": "^1.0.1",
"esbuild-sass-plugin": "^3.1.0",
"eslint": "^8.56.0",
"eslint": "^8.57.0",
"mocha": "^10.2.0",
"postcss": "^8.4.21",
"prettier": "^2.8.8",
Expand Down
6 changes: 3 additions & 3 deletions packages/markers-plugin/src/markers/MarkerPolygon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class MarkerPolygon extends AbstractDomMarker {
return this.type === MarkerType.polyline || this.type === MarkerType.polylinePixels;
}

private get coords(): [number, number][][] {
private get coords(): Array<Array<[number, number]>> {
return this.definition;
}

Expand Down Expand Up @@ -124,7 +124,7 @@ export class MarkerPolygon extends AbstractDomMarker {

// convert texture coordinates to spherical coordinates
if (this.isPixels) {
this.definition = (actualPoly as [number, number][][]).map((coords) => {
this.definition = (actualPoly as Array<Array<[number, number]>>).map((coords) => {
return coords.map((coord) => {
const sphericalCoords = this.viewer.dataHelper.textureCoordsToSphericalCoords({
textureX: coord[0],
Expand All @@ -136,7 +136,7 @@ export class MarkerPolygon extends AbstractDomMarker {
}
// clean angles
else {
this.definition = (actualPoly as [number, number][][] | [string, string][][]).map((coords) => {
this.definition = (actualPoly as Array<Array<[number, number]>> | Array<Array<[string, string]>>).map((coords) => {
return coords.map((coord) => {
return [utils.parseAngle(coord[0]), utils.parseAngle(coord[1], true)];
});
Expand Down
12 changes: 6 additions & 6 deletions packages/markers-plugin/src/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,17 @@ export type MarkerConfig = {
*/
// eslint-disable-next-line @typescript-eslint/array-type
polygon?:
| [number, number][]
| [number, number][][]
| [string, string][]
| [string, string][][];
| Array<[number, number]>
| Array<Array<[number, number]>>
| Array<[string, string]>
| Array<Array<[string, string]>>;
/**
* Array of points defining the polygon in pixel coordinates on the panorama image
*/
// eslint-disable-next-line @typescript-eslint/array-type
polygonPixels?:
| [number, number][]
| [number, number][][];
| Array<[number, number]>
| Array<Array<[number, number]>>;
/**
* Array of points defining the polyline in spherical coordinates
*/
Expand Down
Loading
Loading