@contrail/document-util 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,12 @@
1
+ export declare const DEFAULT_TEXT_FONT_FAMILY = "Roboto";
2
+ export declare const DEFAULT_TEXT_FONT_SIZE = 11;
3
+ export declare const DEFAULT_LINE_HEIGHT = 1.2;
4
+ export declare const DEFAULT_LETTER_SPACING = 0.25;
5
+ export declare const DEFAULT_TEXT_VALIGN = "top";
6
+ export declare const DEFAULT_TEXT_ALIGN = "left";
7
+ export declare const DEFAULT_TEXT_FONT_COLOR = "#000000";
8
+ export declare const TEXT_TOOL_PADDING = 0;
9
+ export declare const TEXT_BOX_PADDING = 10;
1
10
  export declare class DocumentStyleUtil {
2
11
  static getFirstInlineStyleValue(text: string, pattern: string): string;
3
12
  static getFirstFontSize(text: string, toPt?: boolean): string;
@@ -1,6 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DocumentStyleUtil = void 0;
3
+ exports.DocumentStyleUtil = exports.TEXT_BOX_PADDING = exports.TEXT_TOOL_PADDING = exports.DEFAULT_TEXT_FONT_COLOR = exports.DEFAULT_TEXT_ALIGN = exports.DEFAULT_TEXT_VALIGN = exports.DEFAULT_LETTER_SPACING = exports.DEFAULT_LINE_HEIGHT = exports.DEFAULT_TEXT_FONT_SIZE = exports.DEFAULT_TEXT_FONT_FAMILY = void 0;
4
+ exports.DEFAULT_TEXT_FONT_FAMILY = 'Roboto';
5
+ exports.DEFAULT_TEXT_FONT_SIZE = 11;
6
+ exports.DEFAULT_LINE_HEIGHT = 1.2;
7
+ exports.DEFAULT_LETTER_SPACING = 0.25;
8
+ exports.DEFAULT_TEXT_VALIGN = 'top';
9
+ exports.DEFAULT_TEXT_ALIGN = 'left';
10
+ exports.DEFAULT_TEXT_FONT_COLOR = '#000000';
11
+ exports.TEXT_TOOL_PADDING = 0;
12
+ exports.TEXT_BOX_PADDING = 10;
4
13
  class DocumentStyleUtil {
5
14
  static getFirstInlineStyleValue(text, pattern) {
6
15
  if (!text)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/document-util",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Documents util library for contrail platform",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",