fix imports mjs

This commit is contained in:
Tykayn 2023-07-30 18:41:47 +02:00 committed by tykayn
parent 5cb3cc02b1
commit 4c6dfbd198
5 changed files with 341 additions and 7311 deletions

View File

@ -3,14 +3,16 @@
*/
import fs from 'node-fs'
import minimist from 'minimist'
import mappingConfigIRVE from 'mappings/configIRVE'
import mapping_engine from "./mappings/engine";
import {debugLog} from "./mappings/utils";
import mappingConfigIRVE from './mappings/configIRVE.mjs'
import mapping_engine from "./mappings/engine.mjs";
import custom_utils from "./mappings/utils.mjs";
const {debugLog} = custom_utils;
// let debugLog = custom_utils.debugLog
let mapping_engine = new mapping_engine(mappingConfigIRVE);
let use_mappping_engine = false;
let Mapping_engine = new mapping_engine(mappingConfigIRVE);
let mini_arguments = minimist(process.argv.slice(2))
@ -150,8 +152,8 @@ function convertDataForIRVE(sourceFilePath, mapping, pointCounterMax, boundingBo
let mapped_point = {};
if (use_mappping_engine) {
mapping_engine.setConfig(mapping)
mapped_point = mapping_engine.mapFeaturePoint(feature_point)
Mapping_engine.setConfig(mapping)
mapped_point = Mapping_engine.mapFeaturePoint(feature_point)
} else {
mapped_point = mapElementFromConfSimple(feature_point, mapping)
}

View File

@ -1,4 +1,4 @@
import debugLog from 'utils'
import debugLog from './utils.mjs'
export default class {
config = {}