Skip to content

Commit

Permalink
move internal-helpers.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
tbouffard committed Aug 17, 2023
1 parent 93ad6fd commit bd7ab50
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dev/ts/component/DropFileUserInterface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

import { logErrorAndOpenAlert } from '../utils/internal-helpers';
import { logErrorAndOpenAlert } from '../internal/internal-helpers';

export class DropFileUserInterface {
private document: Document;
Expand Down
2 changes: 1 addition & 1 deletion dev/ts/component/ThemedBpmnVisualization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ limitations under the License.
*/

import { BpmnVisualization, FlowKind, ShapeBpmnElementKind, ShapeUtil, StyleConfigurator, StyleDefault } from '../../../src/bpmn-visualization';
import { logStartup } from '../utils/internal-helpers';
import { logStartup } from '../internal/internal-helpers';
import { mxConstants } from '../../../src/component/mxgraph/initializer';

interface Theme {
Expand Down
2 changes: 1 addition & 1 deletion dev/ts/component/download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

import { logDownload } from '../utils/internal-helpers';
import { logDownload } from '../internal/internal-helpers';

// inspired from https://ourcodeworld.com/articles/read/189/how-to-create-a-file-and-generate-a-download-with-javascript-in-the-browser-without-a-server
function download(filename: string, contentType: string, text: string): void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

import { log } from './shared-helpers';
import { log } from '../utils/shared-helpers';

export function _log(header: string, message: unknown, ...optionalParams: unknown[]): void {
// eslint-disable-next-line no-console
Expand Down
2 changes: 1 addition & 1 deletion dev/ts/utils/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import type {
GradientDirection,
} from '../../../src/bpmn-visualization';
import { FlowKind, ShapeBpmnElementKind } from '../../../src/bpmn-visualization';
import { fetchBpmnContent, logDownload, logError, logErrorAndOpenAlert, logStartup } from './internal-helpers';
import { fetchBpmnContent, logDownload, logError, logErrorAndOpenAlert, logStartup } from '../internal/internal-helpers';
import { log } from './shared-helpers';
import { DropFileUserInterface } from '../component/DropFileUserInterface';
import { SvgExporter } from '../component/SvgExporter';
Expand Down
4 changes: 2 additions & 2 deletions dev/ts/utils/shared-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

import { _log } from './internal-helpers';
import { _log } from '../internal/internal-helpers';

export function documentReady(callbackFunction: () => void): void {
// see if DOM is already available
Expand All @@ -30,4 +30,4 @@ export function log(message?: string, ...optionalParams: unknown[]): void {
_log('[DEMO]', message, ...optionalParams);
}

export { logError } from './internal-helpers';
export { logError } from '../internal/internal-helpers';

0 comments on commit bd7ab50

Please sign in to comment.