Skip to content

Commit

Permalink
fix(setImmediate): import local implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Aug 18, 2021
1 parent a574351 commit fe6d8da
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Common/Core/CompositeClosureHelper/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { setImmediate } from 'paraviewweb/src/Common/Core';

// ----------------------------------------------------------------------------
// capitalize provided string
// ----------------------------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions src/Common/Core/LookupTableManager/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Monologue from 'monologue.js';

import { setImmediate } from 'paraviewweb/src/Common/Core';
import LookupTable from 'paraviewweb/src/Common/Core/LookupTable';

const TOPIC = {
Expand Down
4 changes: 4 additions & 0 deletions src/Common/Core/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ import CompositeClosureHelper from './CompositeClosureHelper';
import LookupTable from './LookupTable';
import LookupTableManager from './LookupTableManager';

export function setImmediate(fn) {
return setTimeout(fn, 0);
}

export default {
CompositeClosureHelper,
LookupTable,
Expand Down
2 changes: 1 addition & 1 deletion src/Component/Native/ToggleControl/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* global document */

import { setImmediate } from 'paraviewweb/src/Common/Core';
import style from 'PVWStyle/ComponentNative/ToggleControl.mcss';

const SELECTOR_BUTTON_CLASS = style.jsControlButton;
Expand Down
1 change: 1 addition & 0 deletions src/IO/Core/QueryDataModel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import now from 'mout/src/time/now';
import omit from 'mout/object/omit';
import size from 'mout/object/size';

import { setImmediate } from 'paraviewweb/src/Common/Core';
import DataManager from 'paraviewweb/src/IO/Core/DataManager';

// ============================================================================
Expand Down
1 change: 1 addition & 0 deletions src/InfoViz/Native/HistogramSelector/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import d3 from 'd3';
import style from 'PVWStyle/InfoVizNative/HistogramSelector.mcss';

import { setImmediate } from 'paraviewweb/src/Common/Core';
import CompositeClosureHelper from 'paraviewweb/src/Common/Core/CompositeClosureHelper';
import multiClicker from 'paraviewweb/src/InfoViz/Core/D3MultiClick';
import score from 'paraviewweb/src/InfoViz/Native/HistogramSelector/score';
Expand Down
1 change: 1 addition & 0 deletions src/InfoViz/Native/ParallelCoordinates/AxesManager.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { setImmediate } from 'paraviewweb/src/Common/Core';
import { dataToScreen } from 'paraviewweb/src/InfoViz/Native/ParallelCoordinates';
import Axis from 'paraviewweb/src/InfoViz/Native/ParallelCoordinates/Axis';
import SelectionBuilder from 'paraviewweb/src/Common/Misc/SelectionBuilder';
Expand Down
1 change: 1 addition & 0 deletions src/React/CollapsibleControls/LightControl/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';

import { setImmediate } from 'paraviewweb/src/Common/Core';
import style from 'PVWStyle/ReactCollapsibleControls/LightControl.mcss';

import CollapsibleWidget from '../../Widgets/CollapsibleWidget';
Expand Down
1 change: 1 addition & 0 deletions src/React/CollapsibleControls/ProbeControl/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';

import { setImmediate } from 'paraviewweb/src/Common/Core';
import NumberSliderWidget from '../../Widgets/NumberSliderWidget';
import CollapsibleWidget from '../../Widgets/CollapsibleWidget';

Expand Down
1 change: 1 addition & 0 deletions src/React/Containers/OverlayWindow/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';

import { setImmediate } from 'paraviewweb/src/Common/Core';
import style from 'PVWStyle/ReactContainers/OverlayWindow.mcss';

/* eslint-disable react/no-unused-prop-types */
Expand Down
2 changes: 2 additions & 0 deletions src/React/Viewers/Probe3DViewer/example/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import 'normalize.css';
import React from 'react';
import ReactDOM from 'react-dom';

import { setImmediate } from 'paraviewweb/src/Common/Core';

import jsonData from 'tonic-arctic-sample-data/data/probe/index.json';

import ImageBuilder from 'paraviewweb/src/Rendering/Image/DataProberImageBuilder';
Expand Down
1 change: 1 addition & 0 deletions src/React/Widgets/TextInputWidget/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';

import { setImmediate } from 'paraviewweb/src/Common/Core';
import style from 'PVWStyle/ReactWidgets/TextInputWidget.mcss';

export default class TextInputWidget extends React.Component {
Expand Down

0 comments on commit fe6d8da

Please sign in to comment.