archiyou 0.7.0

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 (83) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +215 -0
  3. package/dist/archiyou.js +35969 -0
  4. package/dist/index.d.ts +2 -0
  5. package/dist/src/Annotator.d.ts +55 -0
  6. package/dist/src/AnnotatorBaseAnnotation.d.ts +16 -0
  7. package/dist/src/AnnotatorDimensionLine.d.ts +92 -0
  8. package/dist/src/Bbox.d.ts +126 -0
  9. package/dist/src/Beams.d.ts +316 -0
  10. package/dist/src/Brep.d.ts +152 -0
  11. package/dist/src/Calc.d.ts +48 -0
  12. package/dist/src/CalcDb.d.ts +33 -0
  13. package/dist/src/CalcTable.d.ts +60 -0
  14. package/dist/src/CalcTableIO.d.ts +130 -0
  15. package/dist/src/CodeParser.d.ts +58 -0
  16. package/dist/src/ComponentManager.d.ts +33 -0
  17. package/dist/src/Console.d.ts +34 -0
  18. package/dist/src/Doc.d.ts +181 -0
  19. package/dist/src/DocDocument.d.ts +27 -0
  20. package/dist/src/DocPDFExporter.d.ts +105 -0
  21. package/dist/src/DocPage.d.ts +75 -0
  22. package/dist/src/DocPageContainer.d.ts +65 -0
  23. package/dist/src/DocPageContainerGraphic.d.ts +10 -0
  24. package/dist/src/DocPageContainerImage.d.ts +21 -0
  25. package/dist/src/DocPageContainerTable.d.ts +21 -0
  26. package/dist/src/DocPageContainerText.d.ts +23 -0
  27. package/dist/src/DocPageContainerTextArea.d.ts +23 -0
  28. package/dist/src/DocPageContainerView.d.ts +22 -0
  29. package/dist/src/DocUtils.d.ts +12 -0
  30. package/dist/src/DocViewSVGManager.d.ts +91 -0
  31. package/dist/src/Edge.d.ts +190 -0
  32. package/dist/src/Exporter.d.ts +100 -0
  33. package/dist/src/Face.d.ts +134 -0
  34. package/dist/src/GLTFBuilder.d.ts +30 -0
  35. package/dist/src/IO.d.ts +87 -0
  36. package/dist/src/LibraryConnector.d.ts +56 -0
  37. package/dist/src/Make.d.ts +85 -0
  38. package/dist/src/MakeOperations.d.ts +32 -0
  39. package/dist/src/OBbox.d.ts +121 -0
  40. package/dist/src/Obj.d.ts +104 -0
  41. package/dist/src/OcLoader.d.ts +39 -0
  42. package/dist/src/ParamManager.d.ts +57 -0
  43. package/dist/src/ParamManagerOperator.d.ts +68 -0
  44. package/dist/src/Pipeline.d.ts +20 -0
  45. package/dist/src/Point.d.ts +88 -0
  46. package/dist/src/Runner.d.ts +230 -0
  47. package/dist/src/RunnerComponentImporter.d.ts +71 -0
  48. package/dist/src/RunnerOps.d.ts +15 -0
  49. package/dist/src/Script.d.ts +78 -0
  50. package/dist/src/ScriptOutputManager.d.ts +19 -0
  51. package/dist/src/ScriptOutputPath.d.ts +48 -0
  52. package/dist/src/ScriptParam.d.ts +78 -0
  53. package/dist/src/Selector.d.ts +48 -0
  54. package/dist/src/Services.d.ts +68 -0
  55. package/dist/src/Shape.d.ts +628 -0
  56. package/dist/src/ShapeCollection.d.ts +429 -0
  57. package/dist/src/Shell.d.ts +48 -0
  58. package/dist/src/Sketch.d.ts +162 -0
  59. package/dist/src/Solid.d.ts +54 -0
  60. package/dist/src/Vector.d.ts +167 -0
  61. package/dist/src/Vertex.d.ts +57 -0
  62. package/dist/src/VertexCollection.d.ts +11 -0
  63. package/dist/src/Wire.d.ts +180 -0
  64. package/dist/src/constants.d.ts +112 -0
  65. package/dist/src/decorators.d.ts +27 -0
  66. package/dist/src/garbageCollection.d.ts +4 -0
  67. package/dist/src/init.d.ts +5 -0
  68. package/dist/src/internal.d.ts +67 -0
  69. package/dist/src/models.d.ts +40 -0
  70. package/dist/src/typeguards.d.ts +88 -0
  71. package/dist/src/types.d.ts +944 -0
  72. package/dist/src/utils.d.ts +140 -0
  73. package/dist/src/wasm/build-scripts/build_wasm_base64.d.ts +8 -0
  74. package/dist/src/wasm/index.d.ts +8 -0
  75. package/dist/src/workerUtils.d.ts +14 -0
  76. package/dist/wasm/README.md +13 -0
  77. package/dist/wasm/archiyou-opencascade.d.ts +9933 -0
  78. package/dist/wasm/archiyou-opencascade.js +16 -0
  79. package/dist/wasm/archiyou-opencascade.wasm +0 -0
  80. package/dist/wasm/index.js +32 -0
  81. package/dist/wasm/node.d.ts +16 -0
  82. package/dist/wasm/node.js +40 -0
  83. package/package.json +66 -0
@@ -0,0 +1,67 @@
1
+ /** To be able to use func.name
2
+ See: https://github.com/Microsoft/TypeScript/issues/2076
3
+ */
4
+ export * from './types';
5
+ export * from './constants';
6
+ export * from './garbageCollection';
7
+ export * from './Point';
8
+ export * from './Vector';
9
+ export * from './Obj';
10
+ export * from './Bbox';
11
+ export * from './Shape';
12
+ export * from './ShapeCollection';
13
+ export * from './Vertex';
14
+ export * from './VertexCollection';
15
+ export * from './Edge';
16
+ export * from './Wire';
17
+ export * from './Face';
18
+ export * from './Shell';
19
+ export * from './Solid';
20
+ export * from './Sketch';
21
+ export * from './Pipeline';
22
+ export * from './Exporter';
23
+ export * from './OBbox';
24
+ export * from './Brep';
25
+ export * from './workerUtils';
26
+ export * from './AnnotatorBaseAnnotation';
27
+ export * from './AnnotatorDimensionLine';
28
+ export * from './Annotator';
29
+ export * from './IO';
30
+ export * from './GLTFBuilder';
31
+ export * from './typeguards';
32
+ export * from './decorators';
33
+ export * from './utils';
34
+ export * from './Selector';
35
+ export * from './Console';
36
+ export * from './CodeParser';
37
+ export * from './Doc';
38
+ export * from './DocDocument';
39
+ export * from './DocPage';
40
+ export * from './DocPageContainer';
41
+ export * from './DocPageContainerView';
42
+ export * from './DocPageContainerImage';
43
+ export * from './DocPageContainerText';
44
+ export * from './DocPageContainerTextArea';
45
+ export * from './DocPageContainerTable';
46
+ export * from './DocPageContainerGraphic';
47
+ export * from './DocUtils';
48
+ export * from './DocPDFExporter';
49
+ export * from './CalcTable';
50
+ export * from './CalcDb';
51
+ export * from './Calc';
52
+ export * from './CalcTableIO';
53
+ export * from './ParamManager';
54
+ export * from './ParamManagerOperator';
55
+ export * from './Make';
56
+ export * from './Beams';
57
+ export * from './init';
58
+ export * from './OcLoader';
59
+ export * from './Runner';
60
+ export * from './RunnerOps';
61
+ export * from './RunnerComponentImporter';
62
+ export * from './Script';
63
+ export * from './ScriptParam';
64
+ export * from './LibraryConnector';
65
+ export * from './ScriptOutputPath';
66
+ export * from './ScriptOutputManager';
67
+ export * from './Services';
@@ -0,0 +1,40 @@
1
+ import { Statement, ScriptParam } from './internal';
2
+ /** Define a Param: both as a structure and an instance */
3
+ export interface Param {
4
+ id?: string;
5
+ type: string;
6
+ name: string;
7
+ default: any;
8
+ value?: any;
9
+ start?: number;
10
+ end?: number;
11
+ step?: number;
12
+ }
13
+ /** Saved Scripts by Version */
14
+ export interface ScriptVersion {
15
+ id?: string;
16
+ file_id?: string;
17
+ user_id?: string;
18
+ user_name?: string;
19
+ file_name?: string;
20
+ prev_version_id?: string;
21
+ created_at?: string;
22
+ updated_at?: string;
23
+ params?: Array<ScriptParam>;
24
+ code: string;
25
+ shared?: boolean;
26
+ shared_version_tag?: string;
27
+ shared_auto_sync?: boolean;
28
+ shared_category?: string;
29
+ shared_description?: string;
30
+ }
31
+ export interface ImportStatement {
32
+ code: string;
33
+ userName: string;
34
+ name: string;
35
+ versionTag: string;
36
+ paramValues?: {
37
+ [key: string]: string | number;
38
+ };
39
+ statement: Statement;
40
+ }
@@ -0,0 +1,88 @@
1
+ import { DimensionLineData, DimensionLevel, DimensionLevelSettings, PipelineType, Beam, DocUnitsWithPerc, Side, Plane, CoordArray, Coord, Cursor, MainAxis, Axis, SketchPlaneName, ObjStyle, PointLike, ShapeType, ShapeTypes, LinearShape, PointLikeOrAnyShape, AnyShape, PointLikeSequence, AnyShapeCollection, AnyShapeSequence, AnyShapeOrCollection, AnyShapeOrSequence, PointLikeOrAnyShapeOrCollection, ColorInput, Pivot, Alignment, BboxAlignment, LinearShapeTail, ThickenDirection, MakeShapeCollectionInput, MakeWireInput, MakeFaceInput, MakeShellInput, MakeSolidInput, SelectionString, AnyShapeOrCollectionOrSelectionString, SelectorPointRange, PointLikeOrAnyShapeOrCollectionOrSelectionString, LayoutOptions, PointLikeOrVertexCollection, ModelUnits, ShapeAttributes, DataRowColumnValue, DataRowsValues, DataRowsColumnValue, DocUnits, PercentageString, WidthHeightInput, BeamBaseLineAlignment, AnnotationAutoDimStrategy, RunnerScriptExecutionResult, RunnerScriptExecutionRequest, ScriptOutputPathData, ScriptOutputCategory, ScriptOutputFormat, ScriptOutputDataWrapper, ParamType, ScriptParam, ScriptParamData, BaseStyle, ContainerAlignment, ContainerPositionRel, ContainerPositionAbs, ScaleInput, DataRows, TextAreaAlign, PageSize, PageOrientation, AnyPageContainer, ContainerHAlignment, ContainerVAlignment, MetricName, ContainerTableInput, ContainerPositionLike, ContainerPositionCoordRel, ContainerPositionCoordAbs, OrientationXY } from './internal';
2
+ export declare function isScriptParamType(o: any): o is ParamType;
3
+ export declare function isScriptParam(o: any): o is ScriptParam;
4
+ export declare function isScriptParamData(o: any): o is ScriptParamData;
5
+ export declare function isModelUnits(o: any): o is ModelUnits;
6
+ export declare function isSide(o: any): o is Side;
7
+ export declare function isPlane(o: any): o is Plane;
8
+ export declare function isSketchPlaneName(o: any): o is SketchPlaneName;
9
+ export declare function isCoordArray(p: any): p is CoordArray;
10
+ export declare function isCoord(c: any): c is Coord;
11
+ export declare function isMainAxis(o: any): o is MainAxis;
12
+ export declare function isAxis(o: any): o is Axis;
13
+ export declare function isBboxAlignment(o: any): o is BboxAlignment;
14
+ export declare function isOrientationXY(o: any): o is OrientationXY;
15
+ export declare function isPointLike(p?: any): p is PointLike;
16
+ export declare function isCursor(o: any): o is Cursor;
17
+ export declare function isShapeType(o: any): o is ShapeType;
18
+ export declare function isShapeTypes(o: any): o is ShapeTypes;
19
+ export declare function isAnyShape(o: any): o is AnyShape;
20
+ export declare function isPointLikeOrAnyShape(o: any): o is PointLikeOrAnyShape;
21
+ export declare function isAnyShapeCollection(o: any, ...args: any[]): o is AnyShapeCollection;
22
+ export declare function isAnyShapeSequence(o: any, ...args: any[]): o is AnyShapeSequence;
23
+ export declare function isAnyShapeOrCollection(o: any): o is AnyShapeOrCollection;
24
+ export declare function isAnyShapeOrSequence(o: any): o is AnyShapeOrSequence;
25
+ export declare function isPointLikeOrAnyShapeOrCollection(o: any): o is PointLikeOrAnyShapeOrCollection;
26
+ export declare function isPointLikeOrVertexCollection(o: any): o is PointLikeOrVertexCollection;
27
+ export declare function isLinearShape(o: any): o is LinearShape;
28
+ export declare function isLinearShapeTail(o: any): o is LinearShapeTail;
29
+ export declare function isThickenDirection(o: any): o is ThickenDirection;
30
+ export declare function isShapeAttributes(o: any): o is ShapeAttributes;
31
+ export declare function isPointLikeSequence(o: any, ...args: any[]): o is PointLikeSequence;
32
+ export declare function isColorInput(o: any): o is ColorInput;
33
+ export declare function isAlignment(o: any): o is Alignment;
34
+ export declare function isPivot(o: any): o is Pivot;
35
+ export declare function isBaseStyle(o: any): o is BaseStyle;
36
+ export declare function isObjStyle(o: any): o is ObjStyle;
37
+ export declare function isMakeShapeCollectionInput(o: any, ...args: any[]): o is MakeShapeCollectionInput;
38
+ export declare function isMakeWireInput(o: any): o is MakeWireInput;
39
+ export declare function isMakeFaceInput(o: any, ...args: any[]): o is MakeFaceInput;
40
+ export declare function isMakeShellInput(o: any, ...args: any[]): o is MakeShellInput;
41
+ export declare function isMakeSolidInput(o: any): o is MakeSolidInput;
42
+ export declare function isDimensionOptions(o: any): o is DimensionLineData;
43
+ export declare function isDimensionLevel(o: any): o is DimensionLevel;
44
+ export declare function isDimensionLevelSettings(o: any): o is DimensionLevelSettings;
45
+ export declare function isAnnotationAutoDimStrategy(o: any): o is AnnotationAutoDimStrategy;
46
+ export declare function isSelectionString(o: any): o is SelectionString;
47
+ export declare function isAnyShapeOrCollectionOrSelectionString(o: any): o is AnyShapeOrCollectionOrSelectionString;
48
+ export declare function isPointLikeOrAnyShapeOrCollectionOrSelectionString(o: any): o is PointLikeOrAnyShapeOrCollectionOrSelectionString;
49
+ export declare function isSelectorPointRange(o: any): o is SelectorPointRange;
50
+ export declare function isLayoutOptions(o: any): o is LayoutOptions;
51
+ export declare const PIPELINE_VALID_NAMES: string[];
52
+ export declare function isPipelineType(o: any): o is PipelineType;
53
+ export declare function isDataRowColumnValue(o: any): o is DataRowColumnValue;
54
+ export declare function isDataRowValues(o: any): o is DataRowsValues;
55
+ export declare function isDataRowsColumnValue(o: any): o is DataRowsColumnValue;
56
+ export declare function isDataRowsValues(o: any): o is DataRowsValues;
57
+ export declare function isMetricName(o: any): o is MetricName;
58
+ export declare function isDataRows(o: any): o is DataRows;
59
+ export declare function isContainerHAlignment(o: any): o is ContainerHAlignment;
60
+ export declare function isContainerVAlignment(o: any): o is ContainerVAlignment;
61
+ export declare function isContainerAlignment(o: any): o is ContainerAlignment;
62
+ /** A absolute container position coord: 10mm, 10(=default unit) */
63
+ export declare function isContainerPositionCoordAbs(o: any): o is ContainerPositionCoordAbs;
64
+ export declare function isContainerPositionCoordRel(o: any): o is ContainerPositionCoordRel;
65
+ export declare function isContainerPositionRel(o: any): o is ContainerPositionRel;
66
+ export declare function isContainerPositionAbs(o: any): o is ContainerPositionAbs;
67
+ /** Things that can be turned into a ContainerPositionRel (Array<number|number>) */
68
+ export declare function isContainerPositionLike(o: any): o is ContainerPositionLike;
69
+ export declare function isScaleInput(o: any): o is ScaleInput;
70
+ export declare function isTextAreaAlign(o: any): o is TextAreaAlign;
71
+ export declare function isPageSize(o: any): o is PageSize;
72
+ export declare function isPageOrientation(o: any): o is PageOrientation;
73
+ export declare function isAnyPageContainer(o: any): o is AnyPageContainer;
74
+ export declare function isDocUnits(o: any): o is DocUnits;
75
+ export declare function isDocUnitsWithPerc(o: any): o is DocUnitsWithPerc;
76
+ export declare function isPercentageString(o: any): o is PercentageString;
77
+ export declare function isValueWithUnitsString(o: any): o is PercentageString;
78
+ export declare function isWidthHeightInput(o: any): o is WidthHeightInput;
79
+ export declare function isContainerTableInput(o: any): o is ContainerTableInput;
80
+ export declare function isBeam(o: any): o is Beam;
81
+ export declare function isBeamBaseLineAlignment(o: any): o is BeamBaseLineAlignment;
82
+ export declare function isRunnerScriptExecutionResult(r: any): r is RunnerScriptExecutionResult;
83
+ export declare function isRunnerScriptExecutionRequest(o: any): o is RunnerScriptExecutionRequest;
84
+ export declare function isScriptOutputCategory(o: any): o is ScriptOutputCategory;
85
+ /** Main typeguard for OutputFormat - Please update constants.ts when introducing a new format! */
86
+ export declare function isScriptOutputFormat(o: any): o is ScriptOutputFormat;
87
+ export declare function isScriptOutputDataWrapper(o: any): o is ScriptOutputDataWrapper;
88
+ export declare function isScriptOutputPathData(o: any): o is ScriptOutputPathData;