Skip to content

Commit

Permalink
Merge pull request #151 from unchartedsoftware/deps_upgrades
Browse files Browse the repository at this point in the history
build(deps): dependency upgrades
  • Loading branch information
ccarmichael-uncharted authored Nov 28, 2023
2 parents 671a330 + 1001e48 commit 4c1ae96
Show file tree
Hide file tree
Showing 56 changed files with 1,243 additions and 981 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/rtlText.js
31 changes: 15 additions & 16 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,15 @@ module.exports = {
],

rules: {
'@typescript-eslint/no-parameter-properties': 2,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-var-requires': 2,
'@typescript-eslint/no-non-null-assertion': 2,
'@typescript-eslint/no-use-before-define': 2,
'@typescript-eslint/camelcase': 0,
'@typescript-eslint/no-empty-interface': 2,
'@typescript-eslint/explicit-function-return-type': 2,
'@typescript-eslint/ban-ts-ignore': 0,
'@typescript-eslint/no-inferrable-types': [2, {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-var-requires': 'error',
'@typescript-eslint/no-non-null-assertion': 'error',
'@typescript-eslint/no-use-before-define': 'error',
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/no-empty-interface': 'error',
'@typescript-eslint/explicit-function-return-type': 'error',
'@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/no-inferrable-types': ['error', {
ignoreParameters: true,
ignoreProperties: true,
}],
Expand All @@ -53,8 +52,8 @@ module.exports = {
],

rules: {
'import/no-namespace': 0,
'import/prefer-default-export': 0,
'import/no-namespace': 'off',
'import/prefer-default-export': 'off',
},
},
],
Expand All @@ -63,16 +62,16 @@ module.exports = {
'no-console': process.env.NODE_ENV === 'production' ? 'err' : 'warn',
'no-debugger': process.env.NODE_ENV === 'production' ? 'err' : 'warn',
// enforce comma dangle
'comma-dangle': [2, {
'comma-dangle': ['error', {
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'never'
}],
// semicolon stuff
'no-extra-semi': 2,
'semi-spacing': [1, { before: false, after: true }],
semi: [1, 'always'],
'no-extra-semi': 'error',
'semi-spacing': ['warn', { before: false, after: true }],
semi: ['warn', 'always'],
},
};
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
node-version: [16.x, 18.x]

steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions esbuild.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import esbuild from 'esbuild';
import yargs from 'yargs';
import globby from 'globby';
import { globbySync } from 'globby';
import { glslify } from 'esbuild-plugin-glslify';
import path from 'path';
import copy from 'copy';
Expand Down Expand Up @@ -96,7 +96,7 @@ function getExamplesBuild(watch) {

function getLibBuild(watch) {
const input = [];
globby.sync([
globbySync([
path.join('src/', '/**/*.{ts,js}'),
`!${path.join('src/', '/**/*.d.ts')}`,
]).forEach(file => {
Expand Down
3 changes: 2 additions & 1 deletion examples/src/HelpElements.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {css, CSSResult, customElement, html, LitElement} from 'lit-element';
import {css, CSSResult, html, LitElement} from 'lit';
import { customElement } from 'lit/decorators.js';

@customElement('mouse-interactions')
export class MouseInteractions extends LitElement {
Expand Down
2 changes: 1 addition & 1 deletion examples/src/UX/animation.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';
import {AnimationManager} from 'src/UX/animation/AnimationManager';
import {GraferController, UX} from '../../../src/mod';

Expand Down
4 changes: 2 additions & 2 deletions examples/src/UX/drag.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// disable lint rule to allow use of function hoisting
/* eslint-disable @typescript-eslint/no-use-before-define */

import {html, render} from 'lit-html';
import {html, render} from 'lit';
import {GraferController, UX} from '../../../src/mod';

export async function drag(container: HTMLElement): Promise<void> {
Expand Down Expand Up @@ -65,7 +65,7 @@ export async function drag(container: HTMLElement): Promise<void> {
const rect = e.target.getBoundingClientRect();
const x = e.clientX - rect.left; // x position within the element.
const y = (rect.height - e.clientY) + rect.top; // y position within the element.

// get world space coordinates at cursor
const newPointCoords = UX.coordinate.Coordinate.relativePixelCoordinateToWorldPoint(
controller,
Expand Down
2 changes: 1 addition & 1 deletion examples/src/UX/embedded.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';
import { mat4, vec4, vec2 } from 'gl-matrix';
import {GraferController, UX} from '../../../src/mod';

Expand Down
2 changes: 1 addition & 1 deletion examples/src/UX/overlay.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';
import {GraferController, UX} from '../../../src/mod';

const WINDOW_DEVICE_PIXEL_RATIO = window.devicePixelRatio;
Expand Down
2 changes: 1 addition & 1 deletion examples/src/UX/picking.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';
import {GraferController, UX} from '../../../src/mod';

export async function picking(container: HTMLElement): Promise<void> {
Expand Down
2 changes: 1 addition & 1 deletion examples/src/UX/tooltips.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';
import {GraferController, UX} from '../../../src/mod';

const WINDOW_DEVICE_PIXEL_RATIO = window.devicePixelRatio;
Expand Down
2 changes: 1 addition & 1 deletion examples/src/aske/bundledEdgesLoader.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';
import Tweakpane from 'tweakpane';
import {DataFile} from '@dekkai/data-source/build/lib/file/DataFile';
import {GraferController, graph, UX} from '../../../src/mod';
Expand Down
2 changes: 1 addition & 1 deletion examples/src/aske/knowledeViewLoader.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';
import Tweakpane from 'tweakpane';
import {
convertDataToGraferV4,
Expand Down
2 changes: 1 addition & 1 deletion examples/src/basic/edgeColors.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';
import {GraferController} from '../../../src/mod';

export async function edgeColors(container: HTMLElement): Promise<void> {
Expand Down
2 changes: 1 addition & 1 deletion examples/src/basic/glow.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import { html, render } from "lit";
import {GraferController, graph} from '../../../src/mod';

export async function glow(container: HTMLElement): Promise<void> {
Expand Down
2 changes: 1 addition & 1 deletion examples/src/basic/minimal.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';
import {GraferController} from '../../../src/mod';

export async function minimal(container: HTMLElement): Promise<void> {
Expand Down
2 changes: 1 addition & 1 deletion examples/src/basic/minimal3D.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';
import {CameraMode} from '../../../src/renderer/mod';
import {GraferController} from '../../../src/mod';

Expand Down
2 changes: 1 addition & 1 deletion examples/src/basic/nodeColors.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';
import {CameraMode} from '../../../src/renderer/mod';
import {GraferController} from '../../../src/mod';

Expand Down
2 changes: 1 addition & 1 deletion examples/src/basic/nodeID.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';
import {GraferController} from '../../../src/mod';

export async function nodeID(container: HTMLElement): Promise<void> {
Expand Down
2 changes: 1 addition & 1 deletion examples/src/basic/nodeRadius.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';
import {GraferController} from '../../../src/mod';

export async function nodeRadius(container: HTMLElement): Promise<void> {
Expand Down
2 changes: 1 addition & 1 deletion examples/src/benchmarks/benchmarkEdge.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';
import {
GraferController,
GraferEdgesData,
Expand Down
2 changes: 1 addition & 1 deletion examples/src/benchmarks/benchmarkLabel.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';
import {
GraferController,
GraferLabelsData,
Expand Down
2 changes: 1 addition & 1 deletion examples/src/benchmarks/benchmarkNode.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';
import {
GraferController,
GraferLayerData,
Expand Down
2 changes: 1 addition & 1 deletion examples/src/data/addPoints.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';
import {GraferController} from '../../../src/mod';

function generateRandomPointData(startIndex: number, count: number): unknown[] {
Expand Down
2 changes: 1 addition & 1 deletion examples/src/data/colorRegistryIndexed.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';
import {GraferController, GraferControllerOptions, renderer} from '../../../src/mod';

function getRandomColor(): string {
Expand Down
2 changes: 1 addition & 1 deletion examples/src/data/colors.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';
import {GraferController} from '../../../src/grafer/GraferController';
import {GraferInputColor} from '../../../src/renderer/colors/ColorRegistry';

Expand Down
2 changes: 1 addition & 1 deletion examples/src/data/mappings.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';
import {GraferController} from '../../../src/grafer/GraferController';
import {GraferInputColor} from '../../../src/renderer/colors/ColorRegistry';

Expand Down
2 changes: 1 addition & 1 deletion examples/src/data/points.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';
import {GraferController} from '../../../src/grafer/GraferController';

export async function points(container: HTMLElement): Promise<void> {
Expand Down
2 changes: 1 addition & 1 deletion examples/src/data/separateNodesEdges.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';
import {GraferController} from '../../../src/grafer/GraferController';

export async function separateNodesEdges(container: HTMLElement): Promise<void> {
Expand Down
2 changes: 1 addition & 1 deletion examples/src/edges/bundling.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';
import {GraferController} from '../../../src/grafer/GraferController';

function createClusterNodePoints(cluster: string, x: number, y: number, r: number, count: number): any[] {
Expand Down
2 changes: 1 addition & 1 deletion examples/src/edges/circuitBoard.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';
import {GraferController, GraferEdgesData, GraferLayerData} from '../../../src/grafer/GraferController';

export async function circuitBoard(container: HTMLElement): Promise<void> {
Expand Down
2 changes: 1 addition & 1 deletion examples/src/edges/curvedPaths.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';
import {GraferController, GraferEdgesData, GraferLayerData} from '../../../src/grafer/GraferController';
import {GraferInputColor} from '../../../src/renderer/colors/ColorRegistry';

Expand Down
2 changes: 1 addition & 1 deletion examples/src/edges/dashed.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';
import {GraferController, GraferEdgesData, GraferLayerData} from '../../../src/grafer/GraferController';

export async function dashed(container: HTMLElement): Promise<void> {
Expand Down
2 changes: 1 addition & 1 deletion examples/src/edges/straightPaths.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';
import {GraferController, GraferEdgesData} from '../../../src/grafer/GraferController';
import {GraferInputColor} from '../../../src/renderer/colors/ColorRegistry';

Expand Down
2 changes: 1 addition & 1 deletion examples/src/labels/circularLabel.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';
import {
GraferController,
GraferLabelsData,
Expand Down
2 changes: 1 addition & 1 deletion examples/src/labels/pointLabel.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';
import {
GraferController,
GraferLabelsData,
Expand Down
2 changes: 1 addition & 1 deletion examples/src/labels/ringLabel.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';
import {GraferController, GraferLabelsData, GraferLayerData} from '../../../src/grafer/GraferController';

function createNodePoints(count: number, radius: number = 10.0): any[] {
Expand Down
2 changes: 1 addition & 1 deletion examples/src/nodes/box.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';
import {GraferController, GraferLayerData, GraferNodesData} from '../../../src/grafer/GraferController';

function createNodePoints(count: number, radius: number = 10.0): any[] {
Expand Down
2 changes: 1 addition & 1 deletion examples/src/nodes/circle.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';
import {GraferController, GraferLayerData, GraferNodesData} from '../../../src/grafer/GraferController';

function createNodePoints(count: number, radius: number = 10.0): any[] {
Expand Down
2 changes: 1 addition & 1 deletion examples/src/nodes/cross.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';
import {GraferController, GraferLayerData, GraferNodesData} from '../../../src/grafer/GraferController';

function createNodePoints(count: number, radius: number = 10.0): any[] {
Expand Down
2 changes: 1 addition & 1 deletion examples/src/nodes/custom.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';
import {GraferController, GraferLayerData, GraferNodesData} from '../../../src/grafer/GraferController';

function createNodePoints(count: number, radius: number = 10.0): any[] {
Expand Down
2 changes: 1 addition & 1 deletion examples/src/nodes/octagon.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';
import {GraferController, GraferLayerData, GraferNodesData} from '../../../src/grafer/GraferController';

function createNodePoints(count: number, radius: number = 10.0): any[] {
Expand Down
2 changes: 1 addition & 1 deletion examples/src/nodes/pentagon.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';
import {GraferController, GraferLayerData, GraferNodesData} from '../../../src/grafer/GraferController';

function createNodePoints(count: number, radius: number = 10.0): any[] {
Expand Down
2 changes: 1 addition & 1 deletion examples/src/nodes/plus.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';
import {GraferController, GraferLayerData, GraferNodesData} from '../../../src/grafer/GraferController';

function createNodePoints(count: number, radius: number = 10.0): any[] {
Expand Down
2 changes: 1 addition & 1 deletion examples/src/nodes/ring.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';
import {GraferController, GraferLayerData, GraferNodesData} from '../../../src/grafer/GraferController';

function createNodePoints(count: number, radius: number = 10.0): any[] {
Expand Down
2 changes: 1 addition & 1 deletion examples/src/nodes/star.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';
import {GraferController, GraferLayerData, GraferNodesData} from '../../../src/grafer/GraferController';

function createNodePoints(count: number, radius: number = 10.0): any[] {
Expand Down
2 changes: 1 addition & 1 deletion examples/src/nodes/triangle.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';
import {GraferController, GraferLayerData, GraferNodesData} from '../../../src/grafer/GraferController';

function createNodePoints(count: number, radius: number = 10.0): any[] {
Expand Down
2 changes: 1 addition & 1 deletion examples/src/playground.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';

import Tweakpane from 'tweakpane';
import {FolderApi} from 'tweakpane/dist/types/api/folder';
Expand Down
2 changes: 1 addition & 1 deletion examples/src/quickstart/quickstart-1.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';
import {GraferController, graph, UX} from '../../../src/mod';

import nodesArray from './nodes.json';
Expand Down
2 changes: 1 addition & 1 deletion examples/src/quickstart/quickstart-2.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';
import {GraferController, graph, UX} from '../../../src/mod';

import nodesArray from './nodes.json';
Expand Down
2 changes: 1 addition & 1 deletion examples/src/quickstart/quickstart-3.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';
import {GraferController, graph, UX} from '../../../src/mod';

import nodesArray from './nodes.json';
Expand Down
2 changes: 1 addition & 1 deletion examples/src/quickstart/quickstart-4.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {html, render} from 'lit-html';
import {html, render} from 'lit';
import {GraferController, graph, UX} from '../../../src/mod';

import nodesArray from './nodes.json';
Expand Down
Loading

0 comments on commit 4c1ae96

Please sign in to comment.