1 | export const __esModule: boolean;
|
2 | /**
|
3 | * Function that appends font-face CSS for the Sutton SignWriting fonts for system installed fonts, relative directory fonts, or content delivery network
|
4 | * @function font.cssAppend
|
5 | * @param {string} dir - an optional relative directory for font location
|
6 | * @example
|
7 | * font.cssAppend('./font/')
|
8 | */
|
9 | export function cssAppend(dir?: string): void;
|
10 | /**
|
11 | * Function that executes a callback function once the Sutton SignWriiting Line and Fill fonts are ready to use
|
12 | * @function font.cssLoaded
|
13 | * @param {function} callback - a callback function to execute when fonts are ready
|
14 | * @example
|
15 | * const callback = () => {
|
16 | * console.log("Sutton SignWriting Line and Fill fonts are ready to use")
|
17 | * }
|
18 | *
|
19 | * font.cssLoaded( callback )
|
20 | */
|
21 | export function cssLoaded(callback: Function): void;
|
22 | /**
|
23 | * Function that executes a callback function once the Sutton SignWriiting Fill font is ready to use
|
24 | * @function font.cssLoadedFill
|
25 | * @param {function} callback - a callback function to execute when fill font is ready
|
26 | * @example
|
27 | * const callback = () => {
|
28 | * console.log("Sutton SignWriting Fill font is ready to use")
|
29 | * }
|
30 | *
|
31 | * font.cssLoadedFill( callback )
|
32 | */
|
33 | export function cssLoadedFill(callback: Function): void;
|
34 | /**
|
35 | * Function that executes a callback function once the Sutton SignWriiting Line font is ready to use
|
36 | * @function font.cssLoadedLine
|
37 | * @param {function} callback - a callback function to execute when line font is ready
|
38 | * @example
|
39 | * const callback = () => {
|
40 | * console.log("Sutton SignWriting Line font is ready to use")
|
41 | * }
|
42 | *
|
43 | * font.cssLoadedLine( callback )
|
44 | */
|
45 | export function cssLoadedLine(callback: Function): void;
|
46 | /**
|
47 | * Function that returns a plane 16 character for a symbol fill using an id
|
48 | * @function font.symbolFill
|
49 | * @param {number} id - a 16-bit number of a symbol
|
50 | * @returns {string} character for symbol fill
|
51 | * @example
|
52 | * font.symbolFill(1)
|
53 | *
|
54 | * return ''
|
55 | */
|
56 | export function symbolFill(id: number): string;
|
57 | /**
|
58 | * Function that returns a plane 15 character for a symbol line using an id
|
59 | * @function font.symbolLine
|
60 | * @param {number} id - a 16-bit number of a symbol
|
61 | * @returns {string} character for symbol line
|
62 | * @example
|
63 | * font.symbolLine(1)
|
64 | *
|
65 | * return ''
|
66 | */
|
67 | export function symbolLine(id: number): string;
|
68 | /**
|
69 | * Function that returns the size of a symbol using an id
|
70 | * @function font.symbolSize
|
71 | * @param {number} id - a 16-bit number of a symbol
|
72 | * @returns {number[]} width and height of symbol
|
73 | * @example
|
74 | * font.symbolSize(1)
|
75 | *
|
76 | * return [15,30]
|
77 | */
|
78 | export function symbolSize(id: number): number[];
|
79 | /**
|
80 | * Function that creates two text elements for a symbol using an id
|
81 | * @function font.symbolText
|
82 | * @param {number} id - a 16-bit number of a symbol
|
83 | * @returns {string} SVG segment for line and fill
|
84 | * @example
|
85 | * font.symbolText(1)
|
86 | *
|
87 | * return ` <text class="sym-fill" fill="white" style="pointer-events:none;font-family:'SuttonSignWritingFill';font-size:30px;"></text>
|
88 | * <text class="sym-line" fill="black" style="pointer-events:none;font-family:'SuttonSignWritingLine';font-size:30px;"></text>`
|
89 | */
|
90 | export function symbolText(id: number): string;
|