fix imports mjs
This commit is contained in:
parent
5cb3cc02b1
commit
4c6dfbd198
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import debugLog from 'utils'
|
||||
import debugLog from './utils.mjs'
|
||||
|
||||
export default class {
|
||||
config = {}
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue