更新版本
This commit is contained in:
		
							
								
								
									
										5
									
								
								types/Add-on/TextStyle/Command_FontStyle.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								types/Add-on/TextStyle/Command_FontStyle.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
			
		||||
import { Command } from "../../Editor/CommandMachine";
 | 
			
		||||
export declare class Command_FontStyle implements Command {
 | 
			
		||||
    exec(): Promise<void>;
 | 
			
		||||
}
 | 
			
		||||
//# sourceMappingURL=Command_FontStyle.d.ts.map
 | 
			
		||||
							
								
								
									
										1
									
								
								types/Add-on/TextStyle/Command_FontStyle.d.ts.map
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								types/Add-on/TextStyle/Command_FontStyle.d.ts.map
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
{"version":3,"file":"Command_FontStyle.d.ts","sourceRoot":"","sources":["../../../../src/Add-on/TextStyle/Command_FontStyle.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAItD,qBAAa,iBAAkB,YAAW,OAAO;IAEvC,IAAI;CAIb"}
 | 
			
		||||
							
								
								
									
										20
									
								
								types/Add-on/TextStyle/FontStyleInterface.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								types/Add-on/TextStyle/FontStyleInterface.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,20 @@
 | 
			
		||||
export interface FontStyleInfoOption {
 | 
			
		||||
    height: number;
 | 
			
		||||
    fontType: FontType;
 | 
			
		||||
    widthFactor: number;
 | 
			
		||||
}
 | 
			
		||||
export declare enum FontType {
 | 
			
		||||
    YaHei = "yahei",
 | 
			
		||||
    SongTi = "songti",
 | 
			
		||||
    KaiTi = "KaiTi",
 | 
			
		||||
    FangSong = "FangSong",
 | 
			
		||||
    LiShu = "LiShu",
 | 
			
		||||
    HeiTi = "HeiTi",
 | 
			
		||||
    HuaWenLiShu = "HuaWenLiShu",
 | 
			
		||||
    HuaWenXingKai = "HuaWenXingKai"
 | 
			
		||||
}
 | 
			
		||||
export declare const FontTypeOption: {
 | 
			
		||||
    label: string;
 | 
			
		||||
    value: FontType;
 | 
			
		||||
}[];
 | 
			
		||||
//# sourceMappingURL=FontStyleInterface.d.ts.map
 | 
			
		||||
							
								
								
									
										1
									
								
								types/Add-on/TextStyle/FontStyleInterface.d.ts.map
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								types/Add-on/TextStyle/FontStyleInterface.d.ts.map
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
{"version":3,"file":"FontStyleInterface.d.ts","sourceRoot":"","sources":["../../../../src/Add-on/TextStyle/FontStyleInterface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAEhC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,QAAQ,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,oBAAY,QAAQ;IAEhB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,WAAW,gBAAgB;IAC3B,aAAa,kBAAkB;CAClC;AAED,eAAO,MAAM,cAAc;;;GAS1B,CAAC"}
 | 
			
		||||
							
								
								
									
										43
									
								
								types/Add-on/TextStyle/FontStylePanel.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										43
									
								
								types/Add-on/TextStyle/FontStylePanel.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,43 @@
 | 
			
		||||
import React, { Component } from 'react';
 | 
			
		||||
import { OrthographicCamera, Scene, WebGLRenderer } from 'three';
 | 
			
		||||
import { FontStyleRecord } from '../../DatabaseServices/FontStyle/FontsStyleRecord';
 | 
			
		||||
import { Text } from '../../DatabaseServices/Text/Text';
 | 
			
		||||
import "./FontStyleCSS.less";
 | 
			
		||||
import { FontStyleInfoOption } from './FontStyleInterface';
 | 
			
		||||
import { FontStyleStore } from './FontStyleStore';
 | 
			
		||||
export declare class FontStylePanel extends Component<{
 | 
			
		||||
    store: FontStyleStore;
 | 
			
		||||
}> {
 | 
			
		||||
    _CurrentStyleName: string;
 | 
			
		||||
    _CurrentDBStyleName: string;
 | 
			
		||||
    _Preview: React.RefObject<HTMLCanvasElement>;
 | 
			
		||||
    _PreviewScence: Scene;
 | 
			
		||||
    _Camera: OrthographicCamera;
 | 
			
		||||
    _Renderer: WebGLRenderer;
 | 
			
		||||
    _NameInput: React.RefObject<HTMLInputElement>;
 | 
			
		||||
    constructor(props: any);
 | 
			
		||||
    componentDidMount(): Promise<void>;
 | 
			
		||||
    componentWillUnmount(): void;
 | 
			
		||||
    componentDidUpdate(prevProps: any, prevState: any): Promise<void>;
 | 
			
		||||
    UpdateScene: () => Promise<void>;
 | 
			
		||||
    render(): JSX.Element;
 | 
			
		||||
    AddStyleRecord: () => Promise<void>;
 | 
			
		||||
    ApplyParams(fontStyleRecord: FontStyleRecord, option: FontStyleInfoOption): boolean;
 | 
			
		||||
    GetCurrentFontStyleRecordTexts(): Text[];
 | 
			
		||||
    SaveConfig: () => Promise<void>;
 | 
			
		||||
    SetToCurrent(): void;
 | 
			
		||||
    /**
 | 
			
		||||
     * 删除Database里的标注样式
 | 
			
		||||
     * @memberof FontStylePanel
 | 
			
		||||
     */
 | 
			
		||||
    Delete: () => Promise<void>;
 | 
			
		||||
    /**
 | 
			
		||||
    * @param {string} name 目标名称 app.Database.FontStyleTable.Symbols.get(name)
 | 
			
		||||
    * @param {FontStyleStore} store  赋值对象 store.m_Option
 | 
			
		||||
    * @memberof FontStylePanel
 | 
			
		||||
    */
 | 
			
		||||
    GetFontStyle: (name: string, store: FontStyleStore) => Promise<void>;
 | 
			
		||||
    SetFontStyleId(fontStyle: FontStyleRecord): void;
 | 
			
		||||
    Cancel: () => void;
 | 
			
		||||
}
 | 
			
		||||
//# sourceMappingURL=FontStylePanel.d.ts.map
 | 
			
		||||
							
								
								
									
										1
									
								
								types/Add-on/TextStyle/FontStylePanel.d.ts.map
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								types/Add-on/TextStyle/FontStylePanel.d.ts.map
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
{"version":3,"file":"FontStylePanel.d.ts","sourceRoot":"","sources":["../../../../src/Add-on/TextStyle/FontStylePanel.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAA2B,kBAAkB,EAAE,KAAK,EAA0B,aAAa,EAAE,MAAM,OAAO,CAAC;AAGlH,OAAO,EAAE,eAAe,EAAE,MAAM,mDAAmD,CAAC;AAEpF,OAAO,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAQxD,OAAO,qBAAqB,CAAC;AAC7B,OAAO,EAAE,mBAAmB,EAA4B,MAAM,sBAAsB,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIlD,qBACa,cAAe,SAAQ,SAAS,CAAC;IAAE,KAAK,EAAE,cAAc,CAAC;CAAE,CAAC;IAEzD,iBAAiB,SAAM;IACvB,mBAAmB,SAAM;IACrC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAqB;IACjE,cAAc,EAAE,KAAK,CAAe;IACpC,OAAO,qBAA2D;IAClE,SAAS,EAAE,aAAa,CAAC;IACzB,UAAU,oCAAuC;gBAErC,KAAK,KAAA;IASX,iBAAiB;IAOvB,oBAAoB;IASd,kBAAkB,CAAC,SAAS,KAAA,EAAE,SAAS,KAAA;IAM7C,WAAW,sBA4BT;IAEF,MAAM;IAqKN,cAAc,sBAoBZ;IAGF,WAAW,CAAC,eAAe,EAAE,eAAe,EAAE,MAAM,EAAE,mBAAmB,GAAG,OAAO;IAgBnF,8BAA8B,IAAI,IAAI,EAAE;IAoBxC,UAAU,sBAwBR;IAGF,YAAY;IAWZ;;;OAGG;IACH,MAAM,sBA6BJ;IAEF;;;;MAIE;IACF,YAAY,SAAgB,MAAM,SAAS,cAAc,mBAWvD;IAEF,cAAc,CAAC,SAAS,EAAE,eAAe;IAMzC,MAAM,aAGJ;CACL"}
 | 
			
		||||
							
								
								
									
										7
									
								
								types/Add-on/TextStyle/FontStyleStore.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								types/Add-on/TextStyle/FontStyleStore.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,7 @@
 | 
			
		||||
import { Singleton } from "../../Common/Singleton";
 | 
			
		||||
import { FontStyleInfoOption } from "./FontStyleInterface";
 | 
			
		||||
export declare class FontStyleStore extends Singleton {
 | 
			
		||||
    m_Option: FontStyleInfoOption;
 | 
			
		||||
}
 | 
			
		||||
export declare const fontStyleStore: FontStyleStore;
 | 
			
		||||
//# sourceMappingURL=FontStyleStore.d.ts.map
 | 
			
		||||
							
								
								
									
										1
									
								
								types/Add-on/TextStyle/FontStyleStore.d.ts.map
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								types/Add-on/TextStyle/FontStyleStore.d.ts.map
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
{"version":3,"file":"FontStyleStore.d.ts","sourceRoot":"","sources":["../../../../src/Add-on/TextStyle/FontStyleStore.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE3D,qBAAa,cAAe,SAAQ,SAAS;IAE7B,QAAQ,EAAE,mBAAmB,CAAiC;CAC7E;AAED,eAAO,MAAM,cAAc,gBAA+B,CAAC"}
 | 
			
		||||
		Reference in New Issue
	
	Block a user