vim-format
Advanced tools
Comparing version 1.0.6-dev.205 to 1.0.6-dev.206
@@ -6,5 +6,5 @@ /** | ||
export declare class VimLoader { | ||
static loadFromBfast(bfast: BFast, ignoreStrings: boolean): Promise<[BFast | undefined, string[] | undefined]>; | ||
static loadFromBfast(bfast: BFast, download: boolean, ignoreStrings: boolean): Promise<[BFast | undefined, string[] | undefined]>; | ||
private static requestStrings; | ||
private static requestEntities; | ||
} |
@@ -8,5 +8,5 @@ "use strict"; | ||
class VimLoader { | ||
static async loadFromBfast(bfast, ignoreStrings) { | ||
static async loadFromBfast(bfast, download, ignoreStrings) { | ||
const [entity, strings] = await Promise.all([ | ||
VimLoader.requestEntities(bfast), | ||
VimLoader.requestEntities(bfast, download), | ||
ignoreStrings ? Promise.resolve(undefined) : VimLoader.requestStrings(bfast) | ||
@@ -25,4 +25,6 @@ ]); | ||
} | ||
static async requestEntities(bfast) { | ||
const entities = await bfast.getBfast('entities'); | ||
static async requestEntities(bfast, download) { | ||
const entities = download | ||
? await bfast.getLocalBfast('entities') | ||
: await bfast.getBfast('entities'); | ||
if (!entities) { | ||
@@ -29,0 +31,0 @@ console.error('Could not get String Data from VIM file. Bim features will be disabled.'); |
{ | ||
"name": "vim-format", | ||
"version": "1.0.6-dev.205", | ||
"version": "1.0.6-dev.206", | ||
"description": "The VIM format is a modern and efficient open 3D data interchange format designed for BIM and manufacturing data optimized for efficient loading and rendering on low-power devices.", | ||
@@ -5,0 +5,0 @@ "directories": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
819578
18686