@equinor/esv-intersection 3.1.1 → 3.1.2

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.
@@ -1,6 +1,6 @@
1
1
  import { ZoomTransform } from 'd3-zoom';
2
2
  import { Graphics } from 'pixi.js';
3
- import Vector2 from '@equinor/videx-vector2';
3
+ import { default as Vector2 } from '@equinor/videx-vector2';
4
4
  import { ScaleLinear } from 'd3-scale';
5
5
  import { ExtendedCurveInterpolator } from './control/ExtendedCurveInterpolator';
6
6
  import { CurveInterpolator } from 'curve-interpolator';
@@ -1,5 +1,4 @@
1
- import { MeshGeometry } from 'pixi.js';
2
- import type { IPoint } from 'pixi.js';
1
+ import { MeshGeometry, IPoint } from 'pixi.js';
3
2
  /**
4
3
  * UniformTextureStretchRopeGeometry allows you to draw a geometry across several points and then manipulate these points.
5
4
  */
@@ -1,4 +1,4 @@
1
- import Vector2 from '@equinor/videx-vector2';
1
+ import { default as Vector2 } from '@equinor/videx-vector2';
2
2
  import { CanvasLayer } from './base/CanvasLayer';
3
3
  import { OnUpdateEvent, OnRescaleEvent, OnMountEvent } from '../interfaces';
4
4
  import { SurfaceArea, SurfaceLine, SurfaceData } from '../datautils';
@@ -1,5 +1,5 @@
1
1
  import { IPoint, Point } from 'pixi.js';
2
- import Vector2 from '@equinor/videx-vector2';
2
+ import { default as Vector2 } from '@equinor/videx-vector2';
3
3
  export declare const pointToVector: (p: IPoint) => Vector2;
4
4
  export declare const pointToArray: (p: IPoint) => [number, number];
5
5
  export declare const vectorToPoint: (v: Vector2) => Point;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/esv-intersection",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "description": "Intersection component package with testing and automatic documentation.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -15,11 +15,12 @@
15
15
  ],
16
16
  "types": "dist/index.d.ts",
17
17
  "scripts": {
18
+ "start": "vite build --watch",
18
19
  "prebuild": "rimraf dist",
19
20
  "build": "vite build",
20
21
  "lint:eslint": "eslint --ext .js,.jsx,.ts,.tsx src test",
21
22
  "lint:tsc": "tsc -b",
22
- "lint": "run-p lint:tsc lint:eslint",
23
+ "lint": "npm run lint:tsc && npm run lint:eslint",
23
24
  "test": "vitest",
24
25
  "test:watch": "vitest --watch",
25
26
  "predocs": "rimraf docs_out",
@@ -51,9 +52,9 @@
51
52
  },
52
53
  "homepage": "https://github.com/equinor/esv-intersection#readme",
53
54
  "devDependencies": {
54
- "@changesets/cli": "^2.26.2",
55
- "@storybook/addon-storysource": "^8.3.5",
56
- "@storybook/html-vite": "^8.3.5",
55
+ "@changesets/cli": "^2.27.10",
56
+ "@storybook/addon-storysource": "^8.4.0",
57
+ "@storybook/html-vite": "^8.4.0",
57
58
  "@types/d3": "^7.4.2",
58
59
  "@types/mock-raf": "^1.0.5",
59
60
  "@typescript-eslint/eslint-plugin": "^6.8.0",
@@ -64,19 +65,18 @@
64
65
  "eslint-plugin-prettier": "^5.0.1",
65
66
  "eslint-plugin-storybook": "^0.9.0",
66
67
  "husky": "^8.0.3",
67
- "lint-staged": "^15.0.1",
68
+ "lint-staged": "^15.2.4",
68
69
  "mock-raf": "^1.0.1",
69
- "npm-run-all": "^4.1.5",
70
70
  "pixi.js": "^7.3.1",
71
71
  "prettier": "^3.0.3",
72
72
  "rimraf": "^5.0.5",
73
- "storybook": "^8.3.5",
73
+ "storybook": "^8.4.0",
74
74
  "storybook-dark-mode": "^4.0.2",
75
75
  "tslib": "^2.6.2",
76
76
  "typedoc": "^0.25.2",
77
77
  "typescript": "^5.2.2",
78
- "vite": "^4.5.0",
79
- "vite-plugin-dts": "^3.6.0",
78
+ "vite": "^4.5.5",
79
+ "vite-plugin-dts": "^4.0.0",
80
80
  "vitest": "^0.34.6",
81
81
  "vitest-canvas-mock": "^0.3.3"
82
82
  },