@@ -1367,90 +1367,6 @@ export class CadLoadOptions extends LoadOptions {
13671367 }
13681368}
13691369
1370- /**
1371- * Csv document load options
1372- */
1373- // tslint:disable: completed-docs
1374- export class CsvLoadOptions extends LoadOptions {
1375-
1376- /**
1377- * Attribute type map
1378- */
1379- public static attributeTypeMap : Array < { name : string , baseName : string , type : string } > = [
1380- {
1381- name : "separator" ,
1382- baseName : "separator" ,
1383- type : "string" ,
1384- } ,
1385- {
1386- name : "isMultiEncoded" ,
1387- baseName : "isMultiEncoded" ,
1388- type : "boolean" ,
1389- } ,
1390- {
1391- name : "hasFormula" ,
1392- baseName : "hasFormula" ,
1393- type : "boolean" ,
1394- } ,
1395- {
1396- name : "convertNumericData" ,
1397- baseName : "convertNumericData" ,
1398- type : "boolean" ,
1399- } ,
1400- {
1401- name : "convertDateTimeData" ,
1402- baseName : "convertDateTimeData" ,
1403- type : "boolean" ,
1404- } ,
1405- {
1406- name : "encoding" ,
1407- baseName : "encoding" ,
1408- type : "string" ,
1409- } ] ;
1410-
1411- /**
1412- * Returns attribute type map
1413- */
1414- public static getAttributeTypeMap ( ) {
1415- return super . getAttributeTypeMap ( ) . concat ( CsvLoadOptions . attributeTypeMap ) ;
1416- }
1417-
1418- /**
1419- * Delimiter of a Csv file
1420- */
1421- public separator : string ;
1422-
1423- /**
1424- * True means the file contains several encodings
1425- */
1426- public isMultiEncoded : boolean ;
1427-
1428- /**
1429- * Indicates whether text is formula if it starts with \"=\"
1430- */
1431- public hasFormula : boolean ;
1432-
1433- /**
1434- * Indicates whether the string in the file is converted to numeric. Default is True
1435- */
1436- public convertNumericData : boolean ;
1437-
1438- /**
1439- * Indicates whether the string in the file is converted to date. Default is True
1440- */
1441- public convertDateTimeData : boolean ;
1442-
1443- /**
1444- * File encoding
1445- */
1446- public encoding : string ;
1447-
1448- public constructor ( init ?: Partial < CsvLoadOptions > ) {
1449- super ( init ) ;
1450- Object . assign ( this , init ) ;
1451- }
1452- }
1453-
14541370/**
14551371 * Diagram document load options
14561372 */
@@ -3303,6 +3219,90 @@ export class BmpLoadOptions extends ImageLoadOptions {
33033219 }
33043220}
33053221
3222+ /**
3223+ * Csv document load options
3224+ */
3225+ // tslint:disable: completed-docs
3226+ export class CsvLoadOptions extends SpreadsheetLoadOptions {
3227+
3228+ /**
3229+ * Attribute type map
3230+ */
3231+ public static attributeTypeMap : Array < { name : string , baseName : string , type : string } > = [
3232+ {
3233+ name : "separator" ,
3234+ baseName : "separator" ,
3235+ type : "string" ,
3236+ } ,
3237+ {
3238+ name : "isMultiEncoded" ,
3239+ baseName : "isMultiEncoded" ,
3240+ type : "boolean" ,
3241+ } ,
3242+ {
3243+ name : "hasFormula" ,
3244+ baseName : "hasFormula" ,
3245+ type : "boolean" ,
3246+ } ,
3247+ {
3248+ name : "convertNumericData" ,
3249+ baseName : "convertNumericData" ,
3250+ type : "boolean" ,
3251+ } ,
3252+ {
3253+ name : "convertDateTimeData" ,
3254+ baseName : "convertDateTimeData" ,
3255+ type : "boolean" ,
3256+ } ,
3257+ {
3258+ name : "encoding" ,
3259+ baseName : "encoding" ,
3260+ type : "string" ,
3261+ } ] ;
3262+
3263+ /**
3264+ * Returns attribute type map
3265+ */
3266+ public static getAttributeTypeMap ( ) {
3267+ return super . getAttributeTypeMap ( ) . concat ( CsvLoadOptions . attributeTypeMap ) ;
3268+ }
3269+
3270+ /**
3271+ * Delimiter of a Csv file
3272+ */
3273+ public separator : string ;
3274+
3275+ /**
3276+ * True means the file contains several encodings
3277+ */
3278+ public isMultiEncoded : boolean ;
3279+
3280+ /**
3281+ * Indicates whether text is formula if it starts with \"=\"
3282+ */
3283+ public hasFormula : boolean ;
3284+
3285+ /**
3286+ * Indicates whether the string in the file is converted to numeric. Default is True
3287+ */
3288+ public convertNumericData : boolean ;
3289+
3290+ /**
3291+ * Indicates whether the string in the file is converted to date. Default is True
3292+ */
3293+ public convertDateTimeData : boolean ;
3294+
3295+ /**
3296+ * File encoding
3297+ */
3298+ public encoding : string ;
3299+
3300+ public constructor ( init ?: Partial < CsvLoadOptions > ) {
3301+ super ( init ) ;
3302+ Object . assign ( this , init ) ;
3303+ }
3304+ }
3305+
33063306/**
33073307 * Dcm convert options
33083308 */
@@ -6755,7 +6755,6 @@ const typeMap = {
67556755 SupportedFormat,
67566756 WatermarkOptions,
67576757 CadLoadOptions,
6758- CsvLoadOptions,
67596758 DiagramLoadOptions,
67606759 EBookConvertOptions,
67616760 EmailLoadOptions,
@@ -6780,6 +6779,7 @@ const typeMap = {
67806779 XmlLoadOptions,
67816780 BmpConvertOptions,
67826781 BmpLoadOptions,
6782+ CsvLoadOptions,
67836783 DcmConvertOptions,
67846784 DcmLoadOptions,
67856785 DgnLoadOptions,
0 commit comments