Fix App.jsx two-page workflow JSX render and update study app layout
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
import { XmlComponent } from '../xml-components';
|
||||
import { CharacterSet } from './font';
|
||||
export declare const createRegularFont: ({ name, index, fontKey, characterSet, }: {
|
||||
readonly name: string;
|
||||
readonly index: number;
|
||||
readonly fontKey: string;
|
||||
readonly characterSet?: (typeof CharacterSet)[keyof typeof CharacterSet];
|
||||
}) => XmlComponent;
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
import { XmlComponent } from '../xml-components';
|
||||
import { CharacterSet } from './font';
|
||||
import { FontOptionsWithKey } from './font-wrapper';
|
||||
export type FontOptions = {
|
||||
readonly name: string;
|
||||
readonly data: Buffer;
|
||||
readonly characterSet?: (typeof CharacterSet)[keyof typeof CharacterSet];
|
||||
};
|
||||
export declare const createFontTable: (fonts: readonly FontOptionsWithKey[]) => XmlComponent;
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
import { IViewWrapper } from '../document-wrapper';
|
||||
import { Relationships } from '../relationships';
|
||||
import { XmlComponent } from '../xml-components';
|
||||
import { FontOptions } from './font-table';
|
||||
export type FontOptionsWithKey = FontOptions & {
|
||||
readonly fontKey: string;
|
||||
};
|
||||
export declare class FontWrapper implements IViewWrapper {
|
||||
readonly options: readonly FontOptions[];
|
||||
private readonly fontTable;
|
||||
private readonly relationships;
|
||||
readonly fontOptionsWithKey: readonly FontOptionsWithKey[];
|
||||
constructor(options: readonly FontOptions[]);
|
||||
get View(): XmlComponent;
|
||||
get Relationships(): Relationships;
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
import { XmlComponent } from '../xml-components';
|
||||
export type IFontRelationshipOptions = {
|
||||
readonly id: string;
|
||||
readonly fontKey?: string;
|
||||
readonly subsetted?: boolean;
|
||||
};
|
||||
export declare const CharacterSet: {
|
||||
readonly ANSI: "00";
|
||||
readonly DEFAULT: "01";
|
||||
readonly SYMBOL: "02";
|
||||
readonly MAC: "4D";
|
||||
readonly JIS: "80";
|
||||
readonly HANGUL: "81";
|
||||
readonly JOHAB: "82";
|
||||
readonly GB_2312: "86";
|
||||
readonly CHINESEBIG5: "88";
|
||||
readonly GREEK: "A1";
|
||||
readonly TURKISH: "A2";
|
||||
readonly VIETNAMESE: "A3";
|
||||
readonly HEBREW: "B1";
|
||||
readonly ARABIC: "B2";
|
||||
readonly BALTIC: "BA";
|
||||
readonly RUSSIAN: "CC";
|
||||
readonly THAI: "DE";
|
||||
readonly EASTEUROPE: "EE";
|
||||
readonly OEM: "FF";
|
||||
};
|
||||
export type FontOptions = {
|
||||
readonly name: string;
|
||||
readonly altName?: string;
|
||||
readonly panose1?: string;
|
||||
readonly charset?: (typeof CharacterSet)[keyof typeof CharacterSet];
|
||||
readonly family?: string;
|
||||
readonly notTrueType?: boolean;
|
||||
readonly pitch?: string;
|
||||
readonly sig?: {
|
||||
readonly usb0: string;
|
||||
readonly usb1: string;
|
||||
readonly usb2: string;
|
||||
readonly usb3: string;
|
||||
readonly csb0: string;
|
||||
readonly csb1: string;
|
||||
};
|
||||
readonly embedRegular?: IFontRelationshipOptions;
|
||||
readonly embedBold?: IFontRelationshipOptions;
|
||||
readonly embedItalic?: IFontRelationshipOptions;
|
||||
readonly embedBoldItalic?: IFontRelationshipOptions;
|
||||
};
|
||||
export declare const createFont: ({ name, altName, panose1, charset, family, notTrueType, pitch, sig, embedRegular, embedBold, embedItalic, embedBoldItalic, }: FontOptions) => XmlComponent;
|
||||
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
+1
@@ -0,0 +1 @@
|
||||
export { CharacterSet } from './font';
|
||||
+1
@@ -0,0 +1 @@
|
||||
export declare const obfuscate: (buf: Uint8Array, fontKey: string) => Uint8Array;
|
||||
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
Reference in New Issue
Block a user