fix imports mjs
This commit is contained in:
parent
5cb3cc02b1
commit
4c6dfbd198
|
@ -3,14 +3,16 @@
|
||||||
*/
|
*/
|
||||||
import fs from 'node-fs'
|
import fs from 'node-fs'
|
||||||
import minimist from 'minimist'
|
import minimist from 'minimist'
|
||||||
import mappingConfigIRVE from 'mappings/configIRVE'
|
import mappingConfigIRVE from './mappings/configIRVE.mjs'
|
||||||
import mapping_engine from "./mappings/engine";
|
import mapping_engine from "./mappings/engine.mjs";
|
||||||
import {debugLog} from "./mappings/utils";
|
import custom_utils from "./mappings/utils.mjs";
|
||||||
|
|
||||||
|
const {debugLog} = custom_utils;
|
||||||
|
|
||||||
// let debugLog = custom_utils.debugLog
|
// let debugLog = custom_utils.debugLog
|
||||||
|
|
||||||
let mapping_engine = new mapping_engine(mappingConfigIRVE);
|
|
||||||
let use_mappping_engine = false;
|
let use_mappping_engine = false;
|
||||||
|
let Mapping_engine = new mapping_engine(mappingConfigIRVE);
|
||||||
|
|
||||||
let mini_arguments = minimist(process.argv.slice(2))
|
let mini_arguments = minimist(process.argv.slice(2))
|
||||||
|
|
||||||
|
@ -150,8 +152,8 @@ function convertDataForIRVE(sourceFilePath, mapping, pointCounterMax, boundingBo
|
||||||
let mapped_point = {};
|
let mapped_point = {};
|
||||||
|
|
||||||
if (use_mappping_engine) {
|
if (use_mappping_engine) {
|
||||||
mapping_engine.setConfig(mapping)
|
Mapping_engine.setConfig(mapping)
|
||||||
mapped_point = mapping_engine.mapFeaturePoint(feature_point)
|
mapped_point = Mapping_engine.mapFeaturePoint(feature_point)
|
||||||
} else {
|
} else {
|
||||||
mapped_point = mapElementFromConfSimple(feature_point, mapping)
|
mapped_point = mapElementFromConfSimple(feature_point, mapping)
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import debugLog from 'utils'
|
import debugLog from './utils.mjs'
|
||||||
|
|
||||||
export default class {
|
export default class {
|
||||||
config = {}
|
config = {}
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue