How to use the @igo2/utils.strEnum function in @igo2/utils

To help you get started, we’ve selected a few @igo2/utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github infra-geo-ouverte / igo2-lib / projects / geo / src / lib / print / shared / print.type.ts View on Github external
export type PrintOutputFormat = keyof typeof PrintOutputFormat;

export const PrintPaperFormat = strEnum([
  'A0',
  'A1',
  'A2',
  'A3',
  'A4',
  'A5',
  'Letter',
  'Legal'
]);
export type PrintPaperFormat = keyof typeof PrintPaperFormat;

export const PrintOrientation = strEnum(['landscape', 'portrait']);
export type PrintOrientation = keyof typeof PrintOrientation;

export const PrintResolution = strEnum(['72', '96', '150', '300']);
export type PrintResolution = keyof typeof PrintResolution;

export const PrintDimension = {
  A0: [841, 1189],
  A1: [594, 841],
  A2: [420, 594],
  A3: [297, 420],
  A4: [210, 297],
  A5: [148, 210],
  Letter: [216, 279],
  Legal: [216, 356]
};
github infra-geo-ouverte / igo2-lib / packages / geo / src / lib / import-export / shared / export.type.ts View on Github external
import { strEnum } from '@igo2/utils';

export const ExportFormat = strEnum(['GeoJSON', 'GML', 'GPX', 'KML', 'Shapefile', 'CSV']);
export type ExportFormat = keyof typeof ExportFormat;
github infra-geo-ouverte / igo2-lib / projects / geo / src / lib / print / shared / print.type.ts View on Github external
import { strEnum } from '@igo2/utils';

export const PrintOutputFormat = strEnum(['Pdf', 'Image']);

export type PrintOutputFormat = keyof typeof PrintOutputFormat;

export const PrintPaperFormat = strEnum([
  'A0',
  'A1',
  'A2',
  'A3',
  'A4',
  'A5',
  'Letter',
  'Legal'
]);
export type PrintPaperFormat = keyof typeof PrintPaperFormat;

export const PrintOrientation = strEnum(['landscape', 'portrait']);
github infra-geo-ouverte / igo2-lib / projects / geo / src / lib / print / shared / print.type.ts View on Github external
export const PrintPaperFormat = strEnum([
  'A0',
  'A1',
  'A2',
  'A3',
  'A4',
  'A5',
  'Letter',
  'Legal'
]);
export type PrintPaperFormat = keyof typeof PrintPaperFormat;

export const PrintOrientation = strEnum(['landscape', 'portrait']);
export type PrintOrientation = keyof typeof PrintOrientation;

export const PrintResolution = strEnum(['72', '96', '150', '300']);
export type PrintResolution = keyof typeof PrintResolution;

export const PrintDimension = {
  A0: [841, 1189],
  A1: [594, 841],
  A2: [420, 594],
  A3: [297, 420],
  A4: [210, 297],
  A5: [148, 210],
  Letter: [216, 279],
  Legal: [216, 356]
};

export const PrintSaveImageFormat = strEnum(['Jpeg', 'Png', 'Bmp', 'Gif', 'Tiff']);
export type PrintSaveImageFormat = keyof typeof PrintSaveImageFormat;
github infra-geo-ouverte / igo2-lib / projects / geo / src / lib / import-export / shared / import-export.type.ts View on Github external
import { strEnum } from '@igo2/utils';

export const ExportFormat = strEnum(['GeoJSON', 'KML', 'GPX', 'GML', 'shapefile']);
export type ExportFormat = keyof typeof ExportFormat;
github infra-geo-ouverte / igo2-lib / packages / geo / src / lib / print / shared / print.type.ts View on Github external
'A2',
  'A3',
  'A4',
  'A5',
  'Letter',
  'Legal'
]);
export type PrintPaperFormat = keyof typeof PrintPaperFormat;

export const PrintOrientation = strEnum(['landscape', 'portrait']);
export type PrintOrientation = keyof typeof PrintOrientation;

export const PrintResolution = strEnum(['72', '96', '150', '300']);
export type PrintResolution = keyof typeof PrintResolution;

export const PrintSaveImageFormat = strEnum([
  'Bmp',
  'Gif',
  'Jpeg',
  'Png',
  'Tiff'
]);
export type PrintSaveImageFormat = keyof typeof PrintSaveImageFormat;
github infra-geo-ouverte / igo2-lib / packages / geo / src / lib / print / shared / print.type.ts View on Github external
import { strEnum } from '@igo2/utils';

export const PrintOutputFormat = strEnum(['Pdf', 'Image']);

export type PrintOutputFormat = keyof typeof PrintOutputFormat;

export const PrintPaperFormat = strEnum([
  'A0',
  'A1',
  'A2',
  'A3',
  'A4',
  'A5',
  'Letter',
  'Legal'
]);
export type PrintPaperFormat = keyof typeof PrintPaperFormat;

export const PrintOrientation = strEnum(['landscape', 'portrait']);
github infra-geo-ouverte / igo2-lib / packages / geo / src / lib / print / shared / print.type.ts View on Github external
import { strEnum } from '@igo2/utils';

export const PrintOutputFormat = strEnum(['Pdf', 'Image']);

export type PrintOutputFormat = keyof typeof PrintOutputFormat;

export const PrintPaperFormat = strEnum([
  'A0',
  'A1',
  'A2',
  'A3',
  'A4',
  'A5',
  'Letter',
  'Legal'
]);
export type PrintPaperFormat = keyof typeof PrintPaperFormat;

export const PrintOrientation = strEnum(['landscape', 'portrait']);
export type PrintOrientation = keyof typeof PrintOrientation;

export const PrintResolution = strEnum(['72', '96', '150', '300']);
export type PrintResolution = keyof typeof PrintResolution;
github infra-geo-ouverte / igo2-lib / packages / geo / src / lib / print / shared / print.type.ts View on Github external
export type PrintOutputFormat = keyof typeof PrintOutputFormat;

export const PrintPaperFormat = strEnum([
  'A0',
  'A1',
  'A2',
  'A3',
  'A4',
  'A5',
  'Letter',
  'Legal'
]);
export type PrintPaperFormat = keyof typeof PrintPaperFormat;

export const PrintOrientation = strEnum(['landscape', 'portrait']);
export type PrintOrientation = keyof typeof PrintOrientation;

export const PrintResolution = strEnum(['72', '96', '150', '300']);
export type PrintResolution = keyof typeof PrintResolution;

export const PrintSaveImageFormat = strEnum([
  'Bmp',
  'Gif',
  'Jpeg',
  'Png',
  'Tiff'
]);
export type PrintSaveImageFormat = keyof typeof PrintSaveImageFormat;
github infra-geo-ouverte / igo2-lib / packages / geo / src / lib / print / shared / print.type.ts View on Github external
export const PrintPaperFormat = strEnum([
  'A0',
  'A1',
  'A2',
  'A3',
  'A4',
  'A5',
  'Letter',
  'Legal'
]);
export type PrintPaperFormat = keyof typeof PrintPaperFormat;

export const PrintOrientation = strEnum(['landscape', 'portrait']);
export type PrintOrientation = keyof typeof PrintOrientation;

export const PrintResolution = strEnum(['72', '96', '150', '300']);
export type PrintResolution = keyof typeof PrintResolution;

export const PrintSaveImageFormat = strEnum([
  'Bmp',
  'Gif',
  'Jpeg',
  'Png',
  'Tiff'
]);
export type PrintSaveImageFormat = keyof typeof PrintSaveImageFormat;