dxfview 0.0.2

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.
Files changed (258) hide show
  1. package/README.md +1 -0
  2. package/dist/dxfview.esm.min.js +7 -0
  3. package/dist/types/components/dxf-layout-bar/DxfLayoutBar.d.ts +26 -0
  4. package/dist/types/components/dxf-layout-bar/index.d.ts +1 -0
  5. package/dist/types/components/pop-panel/PopPanel.d.ts +14 -0
  6. package/dist/types/components/pop-panel/index.d.ts +1 -0
  7. package/dist/types/components/progress-bar/ProgressBar.d.ts +34 -0
  8. package/dist/types/components/progress-bar/index.d.ts +1 -0
  9. package/dist/types/components/settings/ProjectSettingsDef.d.ts +44 -0
  10. package/dist/types/components/settings/index.d.ts +1 -0
  11. package/dist/types/components/tool-tip/Tooltip.d.ts +20 -0
  12. package/dist/types/components/tool-tip/index.d.ts +1 -0
  13. package/dist/types/core/Configs.d.ts +238 -0
  14. package/dist/types/core/Constants.d.ts +164 -0
  15. package/dist/types/core/Units.d.ts +16 -0
  16. package/dist/types/core/VersionManager.d.ts +3 -0
  17. package/dist/types/core/camera-controls/CameraControls.d.ts +773 -0
  18. package/dist/types/core/camera-controls/Constants.d.ts +2 -0
  19. package/dist/types/core/camera-controls/EventDispatcher.d.ts +41 -0
  20. package/dist/types/core/camera-controls/index.d.ts +2 -0
  21. package/dist/types/core/camera-controls/types.d.ts +112 -0
  22. package/dist/types/core/camera-controls/utils/extractClientCoordFromEvent.d.ts +3 -0
  23. package/dist/types/core/camera-controls/utils/math-utils.d.ts +11 -0
  24. package/dist/types/core/camera-controls/utils/notSupportedInOrthographicCamera.d.ts +2 -0
  25. package/dist/types/core/canvas/CanvasRender.d.ts +52 -0
  26. package/dist/types/core/canvas/Constants.d.ts +28 -0
  27. package/dist/types/core/canvas/Drawable.d.ts +87 -0
  28. package/dist/types/core/canvas/DrawableList.d.ts +29 -0
  29. package/dist/types/core/canvas/index.d.ts +4 -0
  30. package/dist/types/core/compare/BaseDxfCompareHelper.d.ts +104 -0
  31. package/dist/types/core/compare/CompareDrawable.d.ts +17 -0
  32. package/dist/types/core/compare/DxfCompareHelper.d.ts +69 -0
  33. package/dist/types/core/compare/DxfCompareMarkupManager.d.ts +11 -0
  34. package/dist/types/core/compare/index.d.ts +4 -0
  35. package/dist/types/core/controls/CameraControlsEx.d.ts +34 -0
  36. package/dist/types/core/controls/index.d.ts +1 -0
  37. package/dist/types/core/dxf/DxfCompare.d.ts +151 -0
  38. package/dist/types/core/dxf/DxfConstants.d.ts +15 -0
  39. package/dist/types/core/dxf/DxfLoader.d.ts +526 -0
  40. package/dist/types/core/dxf/DxfObject.d.ts +32 -0
  41. package/dist/types/core/dxf/DxfUtils.d.ts +79 -0
  42. package/dist/types/core/dxf/HatchPatternShaders.d.ts +12 -0
  43. package/dist/types/core/dxf/LinePatternShaders.d.ts +12 -0
  44. package/dist/types/core/dxf/bspline.d.ts +8 -0
  45. package/dist/types/core/dxf/dxfom-mtext.d.ts +46 -0
  46. package/dist/types/core/dxf/dxfom-text.d.ts +16 -0
  47. package/dist/types/core/dxf/index.d.ts +10 -0
  48. package/dist/types/core/dxf/round10.d.ts +2 -0
  49. package/dist/types/core/dxf-parser/AutoCadColorIndex.d.ts +8 -0
  50. package/dist/types/core/dxf-parser/DxfBaseReader.d.ts +12 -0
  51. package/dist/types/core/dxf-parser/DxfBinaryReader.d.ts +14 -0
  52. package/dist/types/core/dxf-parser/DxfParser.d.ts +327 -0
  53. package/dist/types/core/dxf-parser/DxfTextReader.d.ts +31 -0
  54. package/dist/types/core/dxf-parser/ParseHelpers.d.ts +36 -0
  55. package/dist/types/core/dxf-parser/entities/3dface.d.ts +11 -0
  56. package/dist/types/core/dxf-parser/entities/arc.d.ts +16 -0
  57. package/dist/types/core/dxf-parser/entities/attdef.d.ts +31 -0
  58. package/dist/types/core/dxf-parser/entities/attrib.d.ts +31 -0
  59. package/dist/types/core/dxf-parser/entities/circle.d.ts +13 -0
  60. package/dist/types/core/dxf-parser/entities/dimension.d.ts +22 -0
  61. package/dist/types/core/dxf-parser/entities/ellipse.d.ts +15 -0
  62. package/dist/types/core/dxf-parser/entities/geomtry.d.ts +40 -0
  63. package/dist/types/core/dxf-parser/entities/hatch.d.ts +108 -0
  64. package/dist/types/core/dxf-parser/entities/image.d.ts +37 -0
  65. package/dist/types/core/dxf-parser/entities/insert.d.ts +20 -0
  66. package/dist/types/core/dxf-parser/entities/leader.d.ts +23 -0
  67. package/dist/types/core/dxf-parser/entities/line.d.ts +10 -0
  68. package/dist/types/core/dxf-parser/entities/lwpolyline.d.ts +21 -0
  69. package/dist/types/core/dxf-parser/entities/mleader.d.ts +101 -0
  70. package/dist/types/core/dxf-parser/entities/mtext.d.ts +18 -0
  71. package/dist/types/core/dxf-parser/entities/ole2frame.d.ts +20 -0
  72. package/dist/types/core/dxf-parser/entities/point.d.ts +11 -0
  73. package/dist/types/core/dxf-parser/entities/polyline.d.ts +20 -0
  74. package/dist/types/core/dxf-parser/entities/ray.d.ts +10 -0
  75. package/dist/types/core/dxf-parser/entities/region.d.ts +10 -0
  76. package/dist/types/core/dxf-parser/entities/seqend.d.ts +8 -0
  77. package/dist/types/core/dxf-parser/entities/solid.d.ts +10 -0
  78. package/dist/types/core/dxf-parser/entities/spline.d.ts +23 -0
  79. package/dist/types/core/dxf-parser/entities/table.d.ts +42 -0
  80. package/dist/types/core/dxf-parser/entities/text.d.ts +18 -0
  81. package/dist/types/core/dxf-parser/entities/vertex.d.ts +20 -0
  82. package/dist/types/core/dxf-parser/entities/viewport.d.ts +46 -0
  83. package/dist/types/core/dxf-parser/entities/xline.d.ts +10 -0
  84. package/dist/types/core/dxf-parser/index.d.ts +27 -0
  85. package/dist/types/core/dxf-parser/objects/common.d.ts +15 -0
  86. package/dist/types/core/dxf-parser/objects/dictionary.d.ts +19 -0
  87. package/dist/types/core/dxf-parser/objects/imagedef.d.ts +24 -0
  88. package/dist/types/core/dxf-parser/objects/layout.d.ts +29 -0
  89. package/dist/types/core/dxf-parser/objects/sortentstable.d.ts +12 -0
  90. package/dist/types/core/dxf-parser/objects/spatialfilter.d.ts +22 -0
  91. package/dist/types/core/dxf-parser/objects/xrecord.d.ts +11 -0
  92. package/dist/types/core/font/BaseFont.d.ts +88 -0
  93. package/dist/types/core/font/FontManager.d.ts +107 -0
  94. package/dist/types/core/font/MeshFont.d.ts +44 -0
  95. package/dist/types/core/font/ShxFont.d.ts +108 -0
  96. package/dist/types/core/font/index.d.ts +1 -0
  97. package/dist/types/core/font/shx/ExtraLettersTemplate.d.ts +1 -0
  98. package/dist/types/core/font/shx/Shx.constants.d.ts +11 -0
  99. package/dist/types/core/font/shx/ShxParser.d.ts +18 -0
  100. package/dist/types/core/font/shx/TextShape.d.ts +24 -0
  101. package/dist/types/core/font/shx/gbk/index.d.ts +4 -0
  102. package/dist/types/core/font/shx/index.d.ts +1 -0
  103. package/dist/types/core/font/shx/util/BitConverter.d.ts +18 -0
  104. package/dist/types/core/geometry-offset/Edge.d.ts +27 -0
  105. package/dist/types/core/geometry-offset/Offset.d.ts +46 -0
  106. package/dist/types/core/geometry-offset/index.d.ts +1 -0
  107. package/dist/types/core/helpers/BinaryReader.d.ts +24 -0
  108. package/dist/types/core/helpers/BoxSelectHelper.d.ts +44 -0
  109. package/dist/types/core/helpers/LoadingHelper.d.ts +46 -0
  110. package/dist/types/core/helpers/MobileTouchHelperDrawable.d.ts +26 -0
  111. package/dist/types/core/helpers/OSnapHelper.d.ts +167 -0
  112. package/dist/types/core/helpers/ObjectPixelSizeHelper.d.ts +13 -0
  113. package/dist/types/core/helpers/PickMarkupHelper.d.ts +29 -0
  114. package/dist/types/core/helpers/RafHelper.d.ts +18 -0
  115. package/dist/types/core/helpers/ZoomToRectHelper.d.ts +17 -0
  116. package/dist/types/core/helpers/index.d.ts +9 -0
  117. package/dist/types/core/index.d.ts +18 -0
  118. package/dist/types/core/indexeddb/AnnotationTable.d.ts +14 -0
  119. package/dist/types/core/indexeddb/BaseTable.d.ts +36 -0
  120. package/dist/types/core/indexeddb/DxfDataTable.d.ts +22 -0
  121. package/dist/types/core/indexeddb/FontDataTable.d.ts +32 -0
  122. package/dist/types/core/indexeddb/IndexedDbManager.d.ts +29 -0
  123. package/dist/types/core/indexeddb/ViewpointTable.d.ts +14 -0
  124. package/dist/types/core/indexeddb/index.d.ts +6 -0
  125. package/dist/types/core/input/InputManager.d.ts +161 -0
  126. package/dist/types/core/input/index.d.ts +1 -0
  127. package/dist/types/core/license/AutoConfig.d.ts +17 -0
  128. package/dist/types/core/license/LicenseManager.d.ts +107 -0
  129. package/dist/types/core/license/PublicKey.d.ts +1 -0
  130. package/dist/types/core/license/index.d.ts +1 -0
  131. package/dist/types/core/markup/ArrowMarkup.d.ts +14 -0
  132. package/dist/types/core/markup/BaseMarkup.d.ts +28 -0
  133. package/dist/types/core/markup/CircleMarkup.d.ts +12 -0
  134. package/dist/types/core/markup/CloudLineMarkup.d.ts +10 -0
  135. package/dist/types/core/markup/CloudRectMarkup.d.ts +11 -0
  136. package/dist/types/core/markup/CloudRectWithTextMarkup.d.ts +43 -0
  137. package/dist/types/core/markup/Constants.d.ts +17 -0
  138. package/dist/types/core/markup/DotMarkup.d.ts +9 -0
  139. package/dist/types/core/markup/EllipseMarkup.d.ts +12 -0
  140. package/dist/types/core/markup/LeaderLineMarkup.d.ts +25 -0
  141. package/dist/types/core/markup/MarkupManager.d.ts +91 -0
  142. package/dist/types/core/markup/PolylineMarkup.d.ts +11 -0
  143. package/dist/types/core/markup/RectMarkup.d.ts +10 -0
  144. package/dist/types/core/markup/TextMarkup.d.ts +40 -0
  145. package/dist/types/core/markup/XMarkup.d.ts +10 -0
  146. package/dist/types/core/markup/index.d.ts +13 -0
  147. package/dist/types/core/model/Constants.d.ts +51 -0
  148. package/dist/types/core/model/Model.d.ts +18 -0
  149. package/dist/types/core/model/Model2d.d.ts +115 -0
  150. package/dist/types/core/model/index.d.ts +3 -0
  151. package/dist/types/core/patches/Constants.d.ts +4 -0
  152. package/dist/types/core/patches/Line.d.ts +2 -0
  153. package/dist/types/core/patches/Mesh.d.ts +2 -0
  154. package/dist/types/core/patches/Points.d.ts +2 -0
  155. package/dist/types/core/patches/index.d.ts +4 -0
  156. package/dist/types/core/undo-redo/AddAnnotationCommand.d.ts +11 -0
  157. package/dist/types/core/undo-redo/AddMarkupCommand.d.ts +10 -0
  158. package/dist/types/core/undo-redo/AddMeasurementCommand.d.ts +9 -0
  159. package/dist/types/core/undo-redo/Command.d.ts +6 -0
  160. package/dist/types/core/undo-redo/RemoveAnnotationCommand.d.ts +11 -0
  161. package/dist/types/core/undo-redo/RemoveMarkupCommand.d.ts +10 -0
  162. package/dist/types/core/undo-redo/RemoveMeasurementCommand.d.ts +9 -0
  163. package/dist/types/core/undo-redo/UndoRedoManager.d.ts +21 -0
  164. package/dist/types/core/undo-redo/UpdateMarkupCommand.d.ts +11 -0
  165. package/dist/types/core/undo-redo/index.d.ts +9 -0
  166. package/dist/types/core/utils/CSS2DObjectUtils.d.ts +14 -0
  167. package/dist/types/core/utils/ColorUtils.d.ts +21 -0
  168. package/dist/types/core/utils/CommonUtils.d.ts +125 -0
  169. package/dist/types/core/utils/CoordinateUtils.d.ts +81 -0
  170. package/dist/types/core/utils/DecimalPrecisionUtils.d.ts +4 -0
  171. package/dist/types/core/utils/DeviceUtils.d.ts +15 -0
  172. package/dist/types/core/utils/EdgeUtils.d.ts +14 -0
  173. package/dist/types/core/utils/Event.d.ts +33 -0
  174. package/dist/types/core/utils/FpsUtils.d.ts +13 -0
  175. package/dist/types/core/utils/GeometryUtils.d.ts +111 -0
  176. package/dist/types/core/utils/Locale.d.ts +190 -0
  177. package/dist/types/core/utils/LogUtils.d.ts +7 -0
  178. package/dist/types/core/utils/MaterialUtils.d.ts +40 -0
  179. package/dist/types/core/utils/MathUtils.d.ts +59 -0
  180. package/dist/types/core/utils/MergeUtils.d.ts +638 -0
  181. package/dist/types/core/utils/ObjectUtils.d.ts +87 -0
  182. package/dist/types/core/utils/PolygonUtils.d.ts +8 -0
  183. package/dist/types/core/utils/SVGObjectUtils.d.ts +16 -0
  184. package/dist/types/core/utils/SceneUtils.d.ts +26 -0
  185. package/dist/types/core/utils/SectionUtils.d.ts +11 -0
  186. package/dist/types/core/utils/UnitConversionUtils.d.ts +31 -0
  187. package/dist/types/core/utils/index.d.ts +21 -0
  188. package/dist/types/core/viewers/BaseViewer.d.ts +265 -0
  189. package/dist/types/core/viewers/DxfViewer.d.ts +1372 -0
  190. package/dist/types/core/viewers/Plugin.d.ts +29 -0
  191. package/dist/types/core/viewers/ViewerEvent.d.ts +178 -0
  192. package/dist/types/core/viewers/index.d.ts +4 -0
  193. package/dist/types/export.doc.d.ts +10 -0
  194. package/dist/types/fetch-polyfill.d.ts +2 -0
  195. package/dist/types/index.d.ts +8 -0
  196. package/dist/types/plugins/annotation/AnnotationPlugin.d.ts +139 -0
  197. package/dist/types/plugins/annotation/AutoDrawAnnotation.d.ts +63 -0
  198. package/dist/types/plugins/annotation/BaseAnnotation.d.ts +113 -0
  199. package/dist/types/plugins/annotation/BaseAnnotationDrawable.d.ts +139 -0
  200. package/dist/types/plugins/annotation/CopyAnnotation.d.ts +36 -0
  201. package/dist/types/plugins/annotation/CopyDrawable.d.ts +26 -0
  202. package/dist/types/plugins/annotation/FreeDrawAnnotation.d.ts +59 -0
  203. package/dist/types/plugins/annotation/RectAnnotation.d.ts +53 -0
  204. package/dist/types/plugins/annotation/RectDrawable.d.ts +42 -0
  205. package/dist/types/plugins/annotation/ShapeFinder.d.ts +51 -0
  206. package/dist/types/plugins/annotation/freeDrawDrawable.d.ts +21 -0
  207. package/dist/types/plugins/annotation/index.d.ts +8 -0
  208. package/dist/types/plugins/annotation/type.d.ts +182 -0
  209. package/dist/types/plugins/axis-gizmo/AxisGizmoPlugin.d.ts +49 -0
  210. package/dist/types/plugins/axis-gizmo/CoordinateAxes.d.ts +12 -0
  211. package/dist/types/plugins/axis-gizmo/index.d.ts +1 -0
  212. package/dist/types/plugins/bottom-bar/BottomBarPlugin.d.ts +44 -0
  213. package/dist/types/plugins/bottom-bar/index.d.ts +1 -0
  214. package/dist/types/plugins/divide/CoverLayerManager.d.ts +44 -0
  215. package/dist/types/plugins/divide/DivGeometryUtils.d.ts +66 -0
  216. package/dist/types/plugins/divide/DividePlugin.d.ts +181 -0
  217. package/dist/types/plugins/divide/FrameAnnotation.d.ts +142 -0
  218. package/dist/types/plugins/divide/FrameDrawable.d.ts +75 -0
  219. package/dist/types/plugins/divide/index.d.ts +6 -0
  220. package/dist/types/plugins/divide/types.d.ts +38 -0
  221. package/dist/types/plugins/hotpoint/HotpointPlugin.d.ts +93 -0
  222. package/dist/types/plugins/hotpoint/index.d.ts +1 -0
  223. package/dist/types/plugins/index.d.ts +12 -0
  224. package/dist/types/plugins/layer-manager/LayerManagerPlugin.d.ts +59 -0
  225. package/dist/types/plugins/layer-manager/index.d.ts +1 -0
  226. package/dist/types/plugins/local-model-uploader/IUploader.d.ts +10 -0
  227. package/dist/types/plugins/local-model-uploader/LocalDxfUploader.d.ts +19 -0
  228. package/dist/types/plugins/local-model-uploader/index.d.ts +1 -0
  229. package/dist/types/plugins/measure/AngleMeasureDrawable.d.ts +12 -0
  230. package/dist/types/plugins/measure/AngleMeasurement.d.ts +16 -0
  231. package/dist/types/plugins/measure/AreaMeasureDrawable.d.ts +14 -0
  232. package/dist/types/plugins/measure/AreaMeasurement.d.ts +31 -0
  233. package/dist/types/plugins/measure/BaseMeasureDrawable.d.ts +35 -0
  234. package/dist/types/plugins/measure/BaseMeasurement.d.ts +127 -0
  235. package/dist/types/plugins/measure/CoordinateMeasureDrawable.d.ts +10 -0
  236. package/dist/types/plugins/measure/CoordinateMeasurement.d.ts +15 -0
  237. package/dist/types/plugins/measure/DistanceMeasureDrawable.d.ts +15 -0
  238. package/dist/types/plugins/measure/DistanceMeasurement.d.ts +28 -0
  239. package/dist/types/plugins/measure/MeasurementPlugin.d.ts +131 -0
  240. package/dist/types/plugins/measure/index.d.ts +3 -0
  241. package/dist/types/plugins/overview-map/ImageDrawable.d.ts +41 -0
  242. package/dist/types/plugins/overview-map/LineDrawable.d.ts +20 -0
  243. package/dist/types/plugins/overview-map/OverviewMapDrawable.d.ts +24 -0
  244. package/dist/types/plugins/overview-map/OverviewMapPlugin.d.ts +156 -0
  245. package/dist/types/plugins/overview-map/TextDrawable.d.ts +50 -0
  246. package/dist/types/plugins/overview-map/index.d.ts +5 -0
  247. package/dist/types/plugins/screenshot/ScreenshotPlugin.d.ts +88 -0
  248. package/dist/types/plugins/screenshot/index.d.ts +1 -0
  249. package/dist/types/plugins/stats/StatsPlugin.d.ts +20 -0
  250. package/dist/types/plugins/stats/index.d.ts +1 -0
  251. package/dist/types/plugins/toolbars/DxfViewerToolbarPlugin.d.ts +67 -0
  252. package/dist/types/plugins/toolbars/MarkupToolbar.d.ts +33 -0
  253. package/dist/types/plugins/toolbars/Toolbar.config.d.ts +5 -0
  254. package/dist/types/plugins/toolbars/Toolbar.constants.d.ts +96 -0
  255. package/dist/types/plugins/toolbars/Toolbar.d.ts +102 -0
  256. package/dist/types/plugins/toolbars/index.d.ts +5 -0
  257. package/dist/types/version.d.ts +2 -0
  258. package/package.json +90 -0
@@ -0,0 +1,24 @@
1
+ import * as THREE from "three";
2
+ /**
3
+ * Text shape, to describe a specific character.
4
+ */
5
+ export declare class TextShape extends THREE.Shape {
6
+ width: number;
7
+ lastPoint: THREE.Vector2;
8
+ polylines: Array<Array<THREE.Vector2>>;
9
+ private bounds;
10
+ constructor(lastPoint: THREE.Vector2, polylines: Array<Array<THREE.Vector2>>);
11
+ /**
12
+ * Gets an offsetted new TextShape
13
+ */
14
+ offset(vector: THREE.Vector2): TextShape;
15
+ /**
16
+ * Gets an transformed new TextShape
17
+ */
18
+ transform(matrix: THREE.Matrix3): TextShape;
19
+ protected calcWidth(polylines: THREE.Vector2[][]): number;
20
+ /**
21
+ * Converts a TextShape to THREE.BufferGeometry
22
+ */
23
+ toThreeGeometry(): THREE.BufferGeometry<THREE.NormalBufferAttributes>;
24
+ }
@@ -0,0 +1,4 @@
1
+ export declare function encode(str: string): Uint8Array;
2
+ export declare function traditionalChineseToSimpliled(text: string): string;
3
+ export declare function isChinese(text: string): boolean;
4
+ export declare function isTraditionalChinese(text: string): boolean;
@@ -0,0 +1 @@
1
+ export * from "./Shx.constants";
@@ -0,0 +1,18 @@
1
+ export declare class BitConverter {
2
+ static GetBytes(value: string | number | boolean | []): Uint8Array;
3
+ static Get1Bytes(value: number | boolean | []): Uint8Array;
4
+ static byteTosbyte(byte: number): number;
5
+ static ToBoolean(value: Uint8Array, startIndex: number): boolean;
6
+ static ToInt8(value: Uint8Array, startIndex: number): number;
7
+ static ToUInt8(value: Uint8Array, startIndex: number): number;
8
+ static ToInt16(value: Uint8Array, startIndex: number): number;
9
+ static ToInt32(value: Uint8Array, startIndex: number): number;
10
+ static ToUInt16(value: Uint8Array, startIndex: number): number;
11
+ static ToUInt32(value: Uint8Array, startIndex: number): number;
12
+ static ToChar(value: Uint8Array, startIndex: number): string;
13
+ static ToAscii(value: Uint8Array, startIndex: number): string;
14
+ static ToAsciiString(value: Uint8Array, startIndex: number, length: number): string;
15
+ static ToUTF16String(value: Uint8Array, startIndex: number, length: number): string;
16
+ static ToFloat32(value: Uint8Array, startIndex: number): number;
17
+ static ToFloat64(value: Uint8Array, startIndex: number): number;
18
+ }
@@ -0,0 +1,27 @@
1
+ import type { Pair } from "polygon-clipping";
2
+ /**
3
+ * Offset edge
4
+ * @internal
5
+ */
6
+ export declare class Edge {
7
+ current: Pair;
8
+ next: Pair;
9
+ inNormal: Pair;
10
+ outNormal: Pair;
11
+ constructor(current: Pair, next: Pair);
12
+ /**
13
+ * Creates outwards normal
14
+ */
15
+ private outwardsNormal;
16
+ /**
17
+ * Creates inwards normal
18
+ */
19
+ private inwardsNormal;
20
+ /**
21
+ * Offsets the edge by dx, dy
22
+ */
23
+ offset(dx: number, dy: number): Edge;
24
+ inverseOffset(dx: number, dy: number): Edge;
25
+ inverse(): Edge;
26
+ static offsetEdge(current: Pair, next: Pair, dx: number, dy: number): Edge;
27
+ }
@@ -0,0 +1,46 @@
1
+ import type { MultiPolygon, Pair, Polygon, Ring } from "polygon-clipping";
2
+ import { Edge } from "./Edge";
3
+ /**
4
+ * Offset builder
5
+ * @internal
6
+ */
7
+ export declare class Offset {
8
+ vertices: Pair | Ring | Polygon;
9
+ edges: Edge[] | Edge[][];
10
+ private arcSegments;
11
+ private distance;
12
+ constructor(vertices: Pair | Ring | Polygon, arcSegments?: number);
13
+ /**
14
+ * Recursively process contour to create normals
15
+ */
16
+ private processContour;
17
+ setArcSegments(arcSegments: number): this;
18
+ /**
19
+ * Creates arch between two edges
20
+ *
21
+ * @param {Array.<Object>} vertices
22
+ * @param {Object} center
23
+ * @param {Number} radius
24
+ * @param {Object} startVertex
25
+ * @param {Object} endVertex
26
+ * @param {Number} segments
27
+ * @param {Boolean} bOutwards
28
+ */
29
+ private createArc;
30
+ setDistance(dist: number): this;
31
+ private ensureLastPoint;
32
+ /**
33
+ * Decides by the sign if it's a padding or a margin
34
+ */
35
+ offset(dist: number): Pair | Ring | Polygon | MultiPolygon;
36
+ private offsetSegment;
37
+ private margin;
38
+ private padding;
39
+ offsetLine(dist: number): Pair | Ring | Polygon | MultiPolygon;
40
+ /**
41
+ * Just offsets lines, no fill
42
+ */
43
+ private offsetLines;
44
+ private offsetContour;
45
+ offsetPoint(distance: number): MultiPolygon;
46
+ }
@@ -0,0 +1 @@
1
+ export * from "./Offset";
@@ -0,0 +1,24 @@
1
+ import JSBI from "jsbi";
2
+ export declare class BinaryReader {
3
+ private endian;
4
+ private position;
5
+ private data;
6
+ private decoder;
7
+ constructor(arraybuffer: ArrayBuffer, endian?: string);
8
+ readAsciiString(length: number): string;
9
+ readUtf8String(length: number): string;
10
+ readBytes(length?: number): Uint8Array;
11
+ readUint8(): number;
12
+ readInt8(): number;
13
+ readUint16(): number;
14
+ readInt16(): number;
15
+ readUint32(): number;
16
+ readInt32(): number;
17
+ readFloat32(): number;
18
+ readFloat64(): number;
19
+ readInt64(): JSBI;
20
+ readUint64(): JSBI;
21
+ getPosition(): number;
22
+ setPosition(position: number): void;
23
+ isEnd(): boolean;
24
+ }
@@ -0,0 +1,44 @@
1
+ import * as THREE from "three";
2
+ import { Tooltip } from "../../components/tool-tip";
3
+ import { mouseButtonAction, singleTouchAction } from "../../core/camera-controls/types";
4
+ import type { EventInfo, InputManager } from "../../core/input/InputManager";
5
+ import type { BaseViewer } from "../../core/viewers";
6
+ /**
7
+ * Box select an area in screen coordinate.
8
+ * @internal
9
+ */
10
+ export declare class BoxSelectHelper {
11
+ protected viewer: BaseViewer;
12
+ protected input: InputManager;
13
+ protected mouseDown: boolean;
14
+ protected mouseMove: boolean;
15
+ protected mouseDownPositionX: number;
16
+ protected mouseDownPositionY: number;
17
+ protected tempKey?: mouseButtonAction;
18
+ protected tempTouch?: singleTouchAction;
19
+ protected tempEnableRotate: boolean;
20
+ protected rectDom?: HTMLDivElement;
21
+ protected tooltip?: Tooltip;
22
+ private active;
23
+ static readonly BORDER_COLOR = "#fff000";
24
+ static readonly BORDER_WIDTH = "2px";
25
+ protected resolve?: (value: THREE.Box2 | PromiseLike<THREE.Box2> | undefined) => void;
26
+ protected reject?: (reason: any) => void;
27
+ protected isResolvedOrRejected: boolean;
28
+ constructor(viewer: BaseViewer);
29
+ private get viewerContainer();
30
+ isActive(): boolean;
31
+ activate(): void;
32
+ deactivate(): void;
33
+ private mousedown;
34
+ private mousemove;
35
+ private mouseup;
36
+ keydown: (e: EventInfo) => void;
37
+ private drawRect;
38
+ private setRectDomVisible;
39
+ /**
40
+ * Starts to select a box area
41
+ */
42
+ select(): Promise<THREE.Box2 | undefined>;
43
+ destroy(): void;
44
+ }
@@ -0,0 +1,46 @@
1
+ import * as THREE from "three";
2
+ import type { DxfData, DxfLoaderConfig } from "../../core/dxf";
3
+ import type { FontManager } from "../../core/font";
4
+ export declare class LoadingHelper {
5
+ private static decoderPath;
6
+ private gltfLoader?;
7
+ private font?;
8
+ private manager?;
9
+ constructor(manager?: THREE.LoadingManager);
10
+ /**
11
+ * Loads a model from local
12
+ * @param url Created by URL.createObjectURL(file)
13
+ * @param src Source filename, used to find out format
14
+ * @param onProgress On progress callback
15
+ * @returns Loaded object
16
+ */
17
+ loadLocalModel(url: string, src: string, onProgress?: (event: ProgressEvent) => void): Promise<THREE.Object3D>;
18
+ loadModel(src: string, fileFormat?: string, onProgress?: (event: ProgressEvent) => void): Promise<THREE.Object3D | void>;
19
+ loadGltf(url: string, onProgress?: (event: ProgressEvent) => void): Promise<THREE.Object3D>;
20
+ parseGltf(data: ArrayBuffer | string, path: string, onLoad: (object: THREE.Object3D) => void, onError?: (event: ErrorEvent) => void): void;
21
+ loadFbx(url: string, onProgress?: (event: ProgressEvent) => void): Promise<THREE.Object3D>;
22
+ loadObj(url: string, onProgress?: (event: ProgressEvent) => void): Promise<THREE.Object3D>;
23
+ loadStl(url: string, onProgress?: (event: ProgressEvent) => void): Promise<THREE.Object3D>;
24
+ loadDae(url: string, onProgress?: (event: ProgressEvent) => void): Promise<THREE.Object3D>;
25
+ loadDxf(url: string, onProgress?: (event: ProgressEvent) => void): Promise<THREE.Object3D>;
26
+ loadPly(url: string, onProgress?: (event: ProgressEvent) => void): Promise<THREE.Object3D>;
27
+ /**
28
+ * It is kind of tricky to load image into scene, but we'll do this by creating a sprite.
29
+ */
30
+ loadImage(url: string, onProgress?: (event: ProgressEvent) => void): Promise<THREE.Object3D>;
31
+ /**
32
+ * Loads dxf data, including entities, tables(layers, blocks), etc.
33
+ */
34
+ loadDxfData(url: string, dxfDataId?: string, onProgress?: (event: ProgressEvent) => void, onLoad?: () => void, cfg?: DxfLoaderConfig): Promise<DxfData>;
35
+ /**
36
+ * Sets font.
37
+ * Font is required for DxfViewer to view Chinese, etc.
38
+ */
39
+ setFont(font: FontManager): void;
40
+ /**
41
+ * Sets decoder path for draco loader.
42
+ * @param decoderPath e.g., "libs/draco/gltf/"
43
+ */
44
+ static setDracoDecoderPath(path: string): void;
45
+ private getGltfLoader;
46
+ }
@@ -0,0 +1,26 @@
1
+ import * as THREE from "three";
2
+ import { Drawable } from "../../core/canvas";
3
+ import { EventInfo } from "../../core/input/InputManager";
4
+ /**
5
+ * Touch helper for mobile
6
+ */
7
+ export declare class MobileTouchHelperDrawable extends Drawable {
8
+ private position;
9
+ needsFrustumCulled: boolean;
10
+ renderOrder: number;
11
+ constructor(position: THREE.Vector2);
12
+ setPosition(position: THREE.Vector2): void;
13
+ isPointInPath(p: THREE.Vector3, raycaster?: THREE.Raycaster | undefined): boolean;
14
+ draw(ctx: CanvasRenderingContext2D, camera: THREE.Camera): void;
15
+ drawInnerCircle(ctx: CanvasRenderingContext2D): void;
16
+ drawOuterRing(ctx: CanvasRenderingContext2D): void;
17
+ drawSnapTriangle(ctx: CanvasRenderingContext2D): void;
18
+ translate(tx: number, ty: number): void;
19
+ getTouchPoint(): {
20
+ x: number;
21
+ y: number;
22
+ };
23
+ isIntersect(e: EventInfo): boolean;
24
+ drawSelect(ctx: CanvasRenderingContext2D, camera: THREE.Camera): void;
25
+ getClassType(): string;
26
+ }
@@ -0,0 +1,167 @@
1
+ import * as THREE from "three";
2
+ import { CanvasRender, Drawable, DrawableList } from "../../core/canvas";
3
+ import { ILine, OSnapMarkerType } from "../../core/utils";
4
+ /**
5
+ * SnapDrawable:用于在 overlay canvas 上绘制对象捕捉(OSnap)标记。
6
+ * 它继承自 Drawable 并提供多种标记样式(十字、方块、三角等)以及可选的捕捉辅助线。
7
+ */
8
+ export declare class SnapDrawable extends Drawable {
9
+ static lineColor: string;
10
+ static readonly FILL_COLOR_NONE = "rgba(0, 0, 0, 0)";
11
+ static readonly SNAP_LINE_COLOR = "rgba(255, 240, 0, 0.3)";
12
+ static lineWidth: number;
13
+ static iconSize: number;
14
+ needsFrustumCulled: boolean;
15
+ renderOrder: number;
16
+ snapType: OSnapMarkerType;
17
+ private osnapInfo?;
18
+ private drawSnapFunctions;
19
+ private snapLineVisible;
20
+ constructor(type: OSnapMarkerType);
21
+ setSnapLineVisible(visible: boolean): void;
22
+ draw(ctx: CanvasRenderingContext2D, camera: THREE.Camera): void;
23
+ drawDebug(ctx: CanvasRenderingContext2D, camera: THREE.Camera): void;
24
+ drawSelect(ctx: CanvasRenderingContext2D, camera: THREE.Camera): void;
25
+ isPointInPath(p: THREE.Vector3): boolean;
26
+ drawSnapLine(ctx: CanvasRenderingContext2D, camera: THREE.Camera): void;
27
+ /**
28
+ * p1
29
+ * |
30
+ * | point (origin)
31
+ * / \
32
+ * / \
33
+ * p2 p3
34
+ */
35
+ drawTripleCorss(ctx: CanvasRenderingContext2D, camera: THREE.Camera): void;
36
+ drawSquare(ctx: CanvasRenderingContext2D, camera: THREE.Camera): void;
37
+ drawTriangle(ctx: CanvasRenderingContext2D, camera: THREE.Camera): void;
38
+ /**
39
+ * Snap marker for circle center.
40
+ */
41
+ drawCircleWithCross(ctx: CanvasRenderingContext2D, camera: THREE.Camera): void;
42
+ drawCross(ctx: CanvasRenderingContext2D, camera: THREE.Camera): void;
43
+ /**
44
+ * p4|\
45
+ * | \
46
+ * p2|____\ p1 (origin)
47
+ * | | \
48
+ * |____|___\
49
+ * P5 p3 P6
50
+ */
51
+ drawPerpendicular(ctx: CanvasRenderingContext2D, camera: THREE.Camera): void;
52
+ update(osnapInfo: OSnapInfo): void;
53
+ getClassType(): string;
54
+ }
55
+ /**
56
+ * OSnapType:对象捕捉类型枚举,用于表示可捕捉的几何点类型。
57
+ * 数值设计为位掩码(便于使用按位或来开启/关闭不同类型)。
58
+ */
59
+ export declare enum OSnapType {
60
+ None = 0,
61
+ Vertex = 1,
62
+ MiddlePoint = 2,
63
+ Edge = 4,
64
+ Face = 8,
65
+ FootOfPerpendicular = 16,
66
+ Intersection = 32,
67
+ CircleCenter = 64
68
+ }
69
+ interface OSnapInfo {
70
+ point: THREE.Vector3;
71
+ distance: number;
72
+ type: OSnapType;
73
+ line?: ILine;
74
+ }
75
+ export declare class OSnapHelper {
76
+ protected drawableList: DrawableList;
77
+ protected overlayRender?: CanvasRender;
78
+ protected markers: Record<number, SnapDrawable>;
79
+ protected activeOSnapType: OSnapType;
80
+ protected snapToleranceInWorldCoord: number;
81
+ protected intersectionLimit: number;
82
+ /**
83
+ * OSnapType 的优先级,数值越小优先级越高。
84
+ * 在多种捕捉结果出现时,依据优先级与距离选择最终的捕捉点。
85
+ */
86
+ osnapTypePriorities: Record<OSnapType, number>;
87
+ protected enabledOSnapTypes: number;
88
+ constructor(overlayRender: CanvasRender);
89
+ private initOSnapMarkers;
90
+ /**
91
+ * If a specific OSnapType is enabled.
92
+ */
93
+ isOSnapTypeEnabled(type: OSnapType): boolean;
94
+ /**
95
+ * Enables a specific OSnapType.
96
+ */
97
+ setOSnapTypeEnabled(type: OSnapType, enabled: boolean): void;
98
+ /**
99
+ * Sets snap tolerance in world coordinate.
100
+ */
101
+ setSnapTolerance(toleranceInWorldCoord: number): void;
102
+ /**
103
+ * Gets snap tolerance in world coordinate.
104
+ */
105
+ getSnapTolerance(): number;
106
+ setIntersectionLimit(val: number): void;
107
+ getIntersectionLimit(): number;
108
+ /**
109
+ * Gets osnap marker line color.
110
+ * @returns rgb/rgba number array, each value is between 0 and 1. e.g. [0.92, 0.95, 0.96].
111
+ */
112
+ getMarkerLineColor(): number[];
113
+ /**
114
+ * Sets osnap marker line color.
115
+ * @param color rgb/rgba number array, each value is between 0 and 1. e.g. [0.92, 0.95, 0.96].
116
+ */
117
+ setMarkerLineColor(color: number[]): void;
118
+ /**
119
+ * Gets osnap marker line width.
120
+ */
121
+ getMarkerLineWidth(): number;
122
+ /**
123
+ * Sets osnap marker line width.
124
+ */
125
+ setMarkerLineWidth(width: number): void;
126
+ /**
127
+ * Gets osnap marker icon size in pixel.
128
+ */
129
+ getMarkerIconSize(): number;
130
+ /**
131
+ * Sets osnap marker icon size in pixel.
132
+ */
133
+ setMarkerIconSize(size: number): void;
134
+ getMarker(type: OSnapType): SnapDrawable;
135
+ setAllSnapLinesVisible(visible: boolean): void;
136
+ deactivate(): void;
137
+ destroy(): void;
138
+ /**
139
+ * Tries to find a proper snap point and display corresponding marker.
140
+ * @param intersections The raycaster intersections, must have been sorted by distance.
141
+ * @param is3d If it is a 3d or 2d viewer.
142
+ * @param lastMouseDownPosition Used in order to to get foot of perpendicular.
143
+ * @returns Target snap point if any
144
+ */
145
+ handleSnap(rayCasterResult: THREE.Intersection[], is3d: boolean, lastMouseDownPosition?: THREE.Vector3): THREE.Vector3 | undefined;
146
+ /**
147
+ * Tries to find a proper snap point and display corresponding marker.
148
+ * @param mousePosition Mouse position in world coordinate.
149
+ * @param intersections
150
+ * @param is3d If it is a 3d or 2d viewer.
151
+ * @param lastMouseDownPosition Used in order to to get foot of perpendicular.
152
+ * @returns Target snap point if any
153
+ */
154
+ protected getSnapPointAndUpdateMarker(mousePosition: THREE.Vector3, intersections: THREE.Intersection[], is3d: boolean, lastMouseDownPosition?: THREE.Vector3): THREE.Vector3 | undefined;
155
+ activateMarker(type: OSnapType, osnapInfo?: OSnapInfo): void;
156
+ private getFootOfPerpendicular;
157
+ private getSnapInfo;
158
+ private getOsnapInfoListFromMesh;
159
+ private getOsnapInfoFromSegment;
160
+ private getOsnapInfoListFromLine;
161
+ private getOsnapInfoListFromPoint;
162
+ /**
163
+ * Used for 3d scene to get outline info by faces.
164
+ */
165
+ private getIntersectsIncludeOutline;
166
+ }
167
+ export {};
@@ -0,0 +1,13 @@
1
+ import * as THREE from "three";
2
+ import { CameraControlsEx } from "../../core/controls";
3
+ /**
4
+ * Helper class to adjust object visual size
5
+ */
6
+ export declare class ObjectPixelSizeHelper {
7
+ private object;
8
+ private camera;
9
+ targetPixelHeight: number;
10
+ canvasHeight: number;
11
+ constructor(camera: THREE.Camera, controls: CameraControlsEx, object: THREE.Object3D, targetPixelHeight: number, canvasHeight: number);
12
+ adjustSize(): void;
13
+ }
@@ -0,0 +1,29 @@
1
+ import * as THREE from "three";
2
+ import { Tooltip } from "../../components/tool-tip";
3
+ import { EventInfo } from "../../core/input/InputManager";
4
+ import type { BaseViewer } from "../../core/viewers";
5
+ /**
6
+ * Box select an area in screen coordinate.
7
+ * @internal
8
+ */
9
+ export declare class PickMarkupHelper {
10
+ protected viewer: BaseViewer;
11
+ private active;
12
+ protected tooltip?: Tooltip;
13
+ protected resolve?: (value: THREE.Box2 | PromiseLike<THREE.Box2> | undefined) => void;
14
+ protected reject?: (reason: any) => void;
15
+ protected isResolvedOrRejected: boolean;
16
+ constructor(viewer: BaseViewer);
17
+ private get viewerContainer();
18
+ private get camera();
19
+ isActive(): boolean;
20
+ private mouseClicked;
21
+ activate(): void;
22
+ deactivate(): void;
23
+ keydown: (e: EventInfo) => void;
24
+ /**
25
+ * Starts to pick a markup area.
26
+ */
27
+ pick(): Promise<THREE.Box2 | undefined>;
28
+ destroy(): void;
29
+ }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This class implemented setTimeout and setInterval using RequestAnimationFrame
3
+ * This code references to
4
+ * https://github.com/aisriver/myHome3D/blob/master/src/utils/RAF.ts
5
+ * @internal
6
+ */
7
+ export declare class RafHelper {
8
+ readonly TIMEOUT = "timeout";
9
+ readonly INTERVAL = "interval";
10
+ private timeoutMap;
11
+ private intervalMap;
12
+ private run;
13
+ private setIdMap;
14
+ setTimeout(cb: () => void, interval: number): symbol;
15
+ clearTimeout(timer: symbol): void;
16
+ setInterval(cb: () => void, interval: number): symbol;
17
+ clearInterval(timer: symbol): void;
18
+ }
@@ -0,0 +1,17 @@
1
+ import * as THREE from "three";
2
+ import type { DxfViewer } from "../../core/viewers";
3
+ export declare class ZoomToRectHelper {
4
+ protected viewer: DxfViewer;
5
+ private boxSelectHelper?;
6
+ private active;
7
+ constructor(viewer: DxfViewer);
8
+ private get viewerContainer();
9
+ get camera(): THREE.OrthographicCamera | THREE.PerspectiveCamera;
10
+ get raycaster(): THREE.Raycaster;
11
+ isActive(): boolean;
12
+ activate(): void;
13
+ deactivate(): void;
14
+ protected pickPositionByScreenPoint(p: THREE.Vector2): THREE.Vector3 | undefined;
15
+ protected handleZoomToRect(leftTop: THREE.Vector2, rightBottom: THREE.Vector2): void;
16
+ destroy(): void;
17
+ }
@@ -0,0 +1,9 @@
1
+ export * from "./RafHelper";
2
+ export * from "./BinaryReader";
3
+ export * from "./LoadingHelper";
4
+ export * from "./ObjectPixelSizeHelper";
5
+ export * from "./OSnapHelper";
6
+ export * from "./PickMarkupHelper";
7
+ export * from "./BoxSelectHelper";
8
+ export * from "./ZoomToRectHelper";
9
+ export * from "./MobileTouchHelperDrawable";
@@ -0,0 +1,18 @@
1
+ export * from "./canvas";
2
+ export * from "./compare";
3
+ export * from "./controls";
4
+ export * from "./dxf";
5
+ export * from "./dxf-parser";
6
+ export * from "./geometry-offset";
7
+ export * from "./helpers";
8
+ export * from "./input";
9
+ export * from "./markup";
10
+ export * from "./font";
11
+ export * from "./utils";
12
+ export * from "./model";
13
+ export * from "./viewers";
14
+ export * from "./Configs";
15
+ export * from "./Constants";
16
+ export * from "./Units";
17
+ export * from "./VersionManager";
18
+ export * from "./license/index";
@@ -0,0 +1,14 @@
1
+ import { BaseTable } from "./BaseTable";
2
+ /**
3
+ * Table is known as ObjectStore in IndexedDb
4
+ * AnnotationTable in IndexedDb
5
+ */
6
+ export declare class AnnotationTable extends BaseTable {
7
+ tableName(): string;
8
+ /**
9
+ * Singleton design pattern
10
+ */
11
+ private static _instance;
12
+ static instance(): AnnotationTable;
13
+ query(projectId: string, successCallback?: any, errorCallback?: any): void;
14
+ }
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Table is known as ObjectStore in IndexedDb
3
+ */
4
+ export declare class BaseTable {
5
+ db?: IDBDatabase;
6
+ isCreatingTable: boolean;
7
+ constructor();
8
+ /**
9
+ * Derived class have to override this method and return a table name!
10
+ */
11
+ tableName(): string;
12
+ /**
13
+ * Adds a record to a table
14
+ */
15
+ add(record: any, successCallback?: any, errorCallback?: any): void;
16
+ /**
17
+ * Saves a record
18
+ */
19
+ save(record: any, successCallback?: any, errorCallback?: any): void;
20
+ /**
21
+ * Deletes a record
22
+ */
23
+ delete(key: string, successCallback?: any, errorCallback?: any): void;
24
+ /**
25
+ * Updates a record
26
+ */
27
+ update(): void;
28
+ /**
29
+ * Queries records in a table
30
+ * @param cursorHandler callback to handle records one by one
31
+ */
32
+ query(cursorHandler?: any, errorCallback?: any): void;
33
+ queryByIndex(indexName: any, indexValue: any, successCallback?: any, errorCallback?: any): void;
34
+ queryAll(successCallback?: any, errorCallback?: any): void;
35
+ clearAll(successCallback?: any, errorCallback?: any): void;
36
+ }
@@ -0,0 +1,22 @@
1
+ import { BaseTable } from "./BaseTable";
2
+ export interface DxfDataTableRecord {
3
+ dxfDataId: string;
4
+ dxf: object;
5
+ }
6
+ /**
7
+ * DxfDataTable in IndexedDb
8
+ * Table is known as ObjectStore in IndexedDb
9
+ */
10
+ export declare class DxfDataTable extends BaseTable {
11
+ tableName(): string;
12
+ /**
13
+ * Singleton design pattern
14
+ */
15
+ private static _instance;
16
+ static instance(): DxfDataTable;
17
+ /**
18
+ * Queires a dxf data
19
+ * @param dxfDataId should be a unique id to identify different dxf files
20
+ */
21
+ query(dxfDataId: string, successCallback?: any, errorCallback?: any): void;
22
+ }
@@ -0,0 +1,32 @@
1
+ import { BaseTable } from "./BaseTable";
2
+ import type { Orientation, ShxFontType } from "../../core/font/shx";
3
+ export interface FontDataTableRecord {
4
+ fontType?: ShxFontType;
5
+ order: number;
6
+ data: Record<number, Uint8Array>;
7
+ info: string;
8
+ orientation: Orientation;
9
+ baseUp: number;
10
+ baseDown: number;
11
+ fileName: string;
12
+ fileHeader: string;
13
+ fileVersion: string;
14
+ }
15
+ /**
16
+ * DxfDataTable in IndexedDb
17
+ * Table is known as ObjectStore in IndexedDb
18
+ */
19
+ export declare class FontDataTable extends BaseTable {
20
+ tableName(): string;
21
+ /**
22
+ * Singleton design pattern
23
+ */
24
+ private static _instance;
25
+ static instance(): FontDataTable;
26
+ /**
27
+ * Queires a dxf data
28
+ * @param fileId should be a unique id to identify different dxf files
29
+ */
30
+ query(fileName: string): Promise<FontDataTableRecord>;
31
+ queryAll(): Promise<FontDataTableRecord[]>;
32
+ }