Skip to content

Commit 9d49873

Browse files
authored
revert: "fix: Use virtual-webgl to circumvent browser limits on WebGL contexts (#2349)" (#2356)
This reverts commit 6a20d69.
1 parent 25563dc commit 9d49873

12 files changed

+23
-1226
lines changed

Diff for: jest.setup.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import '@testing-library/jest-dom';
22
import { TextDecoder, TextEncoder } from 'util';
33
import { performance } from 'perf_hooks';
4-
import 'jest-webgl-canvas-mock';
4+
import 'jest-canvas-mock';
55
import './__mocks__/dh-core';
66
import Log from '@deephaven/log';
77
import { TestUtils } from '@deephaven/test-utils';

Diff for: package-lock.json

+21-21
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
"identity-obj-proxy": "^3.0.0",
118118
"jasmine": "4.0.2",
119119
"jest": "^29.3.1",
120-
"jest-webgl-canvas-mock": "2.5.3",
120+
"jest-canvas-mock": "^2.4.0",
121121
"jest-environment-jsdom": "^29.3.1",
122122
"jest-runner-eslint": "^1.1.0",
123123
"jest-runner-stylelint": "^2.3.7",

Diff for: packages/chart/src/index.ts

-13
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
1-
import Log from '@deephaven/log';
2-
import { initializeVirtualWebGL } from './virtual-webgl';
3-
4-
const log = Log.module('@deephaven/chart index');
5-
6-
try {
7-
// Used to show many WebGL plots on the same page
8-
// https://github.com/plotly/plotly.js/?tab=readme-ov-file#need-to-have-several-webgl-graphs-on-a-page
9-
initializeVirtualWebGL();
10-
} catch (e) {
11-
log.warn('Failed to initialize virtual WebGL', e);
12-
}
13-
141
export { default as Chart } from './LazyChart';
152
export { default as ChartModelFactory } from './ChartModelFactory';
163
export { default as ChartModel } from './ChartModel';

0 commit comments

Comments
 (0)