realreport-designer 1.11.17 → 1.11.18

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.
@@ -5181,15 +5181,17 @@ declare class FocusView extends VisualElement {
5181
5181
  protected _initDom(doc: Document, dom: HTMLElement): void;
5182
5182
  }
5183
5183
 
5184
- declare type FontFormat = 'truetype' | 'opentype' | 'woff';
5184
+ declare type FontFormat = 'truetype' | 'opentype' | 'woff' | 'woff2';
5185
5185
 
5186
5186
  /**
5187
- * FontManager 폰트 관련 리소스 관리
5187
+ * FontResource 폰트 관련 리소스 관리
5188
5188
  * 폰트 관련 리소스를 base64로 보관하고 가져다 사용할 수 있도록 작성
5189
5189
  */
5190
- declare class FontManager extends EventAware {
5191
- static readonly FONT_ADDED = "onFontManagerFontAdded";
5192
- static readonly FONT_REMOVED = "onFontManagerFontRemoved";
5190
+ declare class FontResource extends EventAware {
5191
+ static readonly FONT_ADDED = "onFontResourceFontAdded";
5192
+ static readonly FONT_REMOVED = "onFontResourceFontRemoved";
5193
+ private static readonly FONT_TYPES;
5194
+ private static readonly FONT_SIGNATURES;
5193
5195
  private _fontSources;
5194
5196
  constructor();
5195
5197
  protected _doDispose(): void;
@@ -5199,19 +5201,32 @@ declare class FontManager extends EventAware {
5199
5201
  getFonts(name: string, weight?: FontWeight): FontSource[];
5200
5202
  getFontsByWeight(weight: FontWeight): FontSource[];
5201
5203
  private $_convertFontWeight;
5204
+ /**
5205
+ * Font MIME Types 변환
5206
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules/@font-face#font_mime_types
5207
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules/@font-face/src#font_formats
5208
+ * @param fontType
5209
+ * @returns font face에서 정의할 font format 문자열
5210
+ */
5202
5211
  private $_convertFontType;
5212
+ private $_detectFontType;
5213
+ private $_matchSignature;
5203
5214
  private $_fireFontAdded;
5204
5215
  private $_fireFontRemoved;
5205
5216
  }
5206
5217
 
5218
+ /**
5219
+ * blob 형태로 관리하면 폰트를 가져올 때 사용하기 용이하다.
5220
+ * url 생성 및 해제도 간편하고, font-face에서 요구하는 형식이 blob url이기 때문
5221
+ */
5207
5222
  declare type FontSource = {
5208
5223
  name: string;
5209
- source: string;
5210
- fontWeight: FontWeight;
5224
+ source: Blob;
5225
+ weight: FontWeight;
5211
5226
  format: FontFormat;
5212
5227
  };
5213
5228
 
5214
- declare type FontWeight = 'normal' | 'bold';
5229
+ declare type FontWeight = '100' | '200' | '300' | '400' | '500' | '600' | 'normal' | 'bold';
5215
5230
 
5216
5231
  declare abstract class FormulaConverterError extends Error {
5217
5232
  code: FormulaConverterErrorCode;
@@ -10750,7 +10765,7 @@ declare abstract class ReportBase<T extends ReportPageBase = ReportPageBase> ext
10750
10765
  private _unit;
10751
10766
  private _assetRoot;
10752
10767
  protected _assets: AssetManager;
10753
- private _fontManager;
10768
+ private _fontResource;
10754
10769
  private _data;
10755
10770
  protected _designData: DesignDataManager;
10756
10771
  protected _i18n: I18nManager;
@@ -10838,13 +10853,13 @@ declare abstract class ReportBase<T extends ReportPageBase = ReportPageBase> ext
10838
10853
  get reportItemRegistry(): ReportItemRegistry;
10839
10854
  /** assets */
10840
10855
  get assets(): AssetManager;
10841
- /** fontManager */
10842
- get fontManager(): FontManager;
10856
+ /** fontResource */
10857
+ get fontResource(): FontResource;
10843
10858
  /**
10844
10859
  * Setter Injection인 이유는 리소스는 외부에서 한번만 생성후에 관리한다.
10845
10860
  * 새로운 리포트 모델을 생성할 때 폰트관련 리소스는 외부 정보이므로 주입받아서 사용하자.
10846
10861
  */
10847
- set fontManager(fontManager: FontManager);
10862
+ set fontResource(fontResource: FontResource);
10848
10863
  /** editing */
10849
10864
  get editing(): ReportEditableObject<ReportRootItem>;
10850
10865
  get root(): ReportRootItem;
@@ -11101,7 +11116,7 @@ declare class ReportDesigner_2 extends VisualContainer {
11101
11116
  private _itembarMode;
11102
11117
  private _panelMode;
11103
11118
  private _report;
11104
- private _fontManager;
11119
+ private _fontResource;
11105
11120
  private _defaultFont;
11106
11121
  private _server;
11107
11122
  private _isRemote;
@@ -11253,7 +11268,7 @@ declare class ReportDesigner_2 extends VisualContainer {
11253
11268
  get inspector(): PropertyInspector;
11254
11269
  get dataPanel(): DataPanel;
11255
11270
  get dialog(): DialogView;
11256
- get fontManager(): FontManager;
11271
+ get fontResource(): FontResource;
11257
11272
  get defaultFont(): string;
11258
11273
  set defaultFont(fontName: string);
11259
11274
  get tableContainerDesigner(): TableDesigner;
@@ -11397,8 +11412,6 @@ declare class ReportDesigner_2 extends VisualContainer {
11397
11412
  private $_disposeViewer;
11398
11413
  private $_loadPreviewData;
11399
11414
  private $_refreshPanel;
11400
- private $_addFontManagerListener;
11401
- private $_appendFontFaceStyle;
11402
11415
  /**
11403
11416
  * 에디터 관련 doLayout을 수행함.
11404
11417
  * 리포트 타입에 따라, 리포트에디터, 엑셀에디터 전용 doLayout함수를 호출함.
@@ -17007,10 +17020,20 @@ export declare interface UserDataTemplateGroup {
17007
17020
  items: IUserDataTemplateItem[];
17008
17021
  }
17009
17022
 
17023
+ /**
17024
+ * 사용자가 등록할 폰트 소스 정보
17025
+ */
17010
17026
  declare type UserFontSource = {
17027
+ /** 폰트 이름 */
17011
17028
  name: string;
17012
- source: string;
17029
+ /** 폰트 데이터 (URL, Blob 등) */
17030
+ source: string | Blob;
17031
+ /**
17032
+ * @deprecated Use `weight` instead. This property will be removed in a future version.
17033
+ */
17013
17034
  fontWeight: FontWeight;
17035
+ /** 폰트 굵기 */
17036
+ weight: FontWeight;
17014
17037
  };
17015
17038
 
17016
17039
  export declare interface UserReportCategoryTemplate {