@buerli.io/core 0.13.1-beta.6.apiversion → 0.13.1-beta.7.apiversion
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.
|
@@ -14,6 +14,9 @@ exports.graphicData = graphicData;
|
|
|
14
14
|
const graphicApi = (set, get, buerliApi) => ({
|
|
15
15
|
addPackages: (packages) => {
|
|
16
16
|
// Timing.dump('load', `add graphic packages ${graphic.length} ${graphic[0].containers.length}`)
|
|
17
|
+
if (!Array.isArray(packages)) {
|
|
18
|
+
packages = [packages];
|
|
19
|
+
}
|
|
17
20
|
let cacheChanged = false;
|
|
18
21
|
const newChache = Object.assign({}, get().geometry.cache);
|
|
19
22
|
const addedContainers = {};
|
|
@@ -10,6 +10,9 @@ export const graphicData = () => ({
|
|
|
10
10
|
export const graphicApi = (set, get, buerliApi) => ({
|
|
11
11
|
addPackages: (packages) => {
|
|
12
12
|
// Timing.dump('load', `add graphic packages ${graphic.length} ${graphic[0].containers.length}`)
|
|
13
|
+
if (!Array.isArray(packages)) {
|
|
14
|
+
packages = [packages];
|
|
15
|
+
}
|
|
13
16
|
let cacheChanged = false;
|
|
14
17
|
const newChache = Object.assign({}, get().geometry.cache);
|
|
15
18
|
const addedContainers = {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FacadeOptions, ScgArrayMem, ScgClassInheritance, ScgClassType, ScgContainerType, ScgCurveTypes, ScgEdgeTypes, ScgEntityTypes, ScgGraphicArc, ScgGraphicCone, ScgGraphicContainer, ScgGraphicCylinder, ScgGraphicEdge, ScgGraphicElement, ScgGraphicLine, ScgGraphicMesh, ScgGraphicPackage, ScgGraphicPlane, ScgGraphicSphere, ScgGraphicType, ScgIdMem, ScgMember, ScgMemberType, ScgMeshTypes, ScgObject,
|
|
1
|
+
import { FacadeOptions, ScgArrayMem, ScgClassInheritance, ScgClassType, ScgContainerType, ScgCurveTypes, ScgEdgeTypes, ScgEntityTypes, ScgGraphicArc, ScgGraphicCone, ScgGraphicContainer, ScgGraphicCylinder, ScgGraphicEdge, ScgGraphicElement, ScgGraphicLine, ScgGraphicMesh, ScgGraphicPackage, ScgGraphicPlane, ScgGraphicSphere, ScgGraphicType, ScgIdMem, ScgMember, ScgMemberType, ScgMeshTypes, ScgObject, ScgPoint, ScgPointMem, ScgPointTypes, ScgRealMem, ScgStringMem, ScgStructure, ScgStructurePatchOp, ScgTree } from '@classcad/api-js';
|
|
2
2
|
export { BooleanOperationType, ChamferType, DataType, ExtrusionType, FlipType, NOID, OrientationType, ReorientedType, SVGModusType, ViewType, WorkAxisType, WorkCoordSystemType, WorkPlaneType, WorkPointType, } from '@classcad/api-js';
|
|
3
|
-
export type { GraphicID, ObjectID, ObjectIdent, ScgArrayMem, ScgGraphicArc, ScgGraphicCone, ScgGraphicContainer, ScgGraphicCylinder, ScgGraphicEdge, ScgGraphicElement, ScgGraphicLine, ScgGraphicMesh, ScgGraphicPackage, ScgGraphicPlane, ScgGraphicSphere, ScgIdMem, ScgMember, ScgObject,
|
|
3
|
+
export type { GraphicID, ObjectID, ObjectIdent, ScgArrayMem, ScgGraphicArc, ScgGraphicCone, ScgGraphicContainer, ScgGraphicCylinder, ScgGraphicEdge, ScgGraphicElement, ScgGraphicLine, ScgGraphicMesh, ScgGraphicPackage, ScgGraphicPlane, ScgGraphicSphere, ScgIdMem, ScgMember, ScgObject, ScgPoint, ScgPointMem, ScgRealMem, ScgStringMem, ScgStructure, ScgStructurePatch, ScgStructurePatchOp, ScgTree, WorkGeomType, } from '@classcad/api-js';
|
|
4
4
|
export {
|
|
5
5
|
/** @deprecated */
|
|
6
6
|
ScgClassType as CCClasses,
|
|
@@ -31,7 +31,7 @@ export declare type IStructureObject = ScgObject;
|
|
|
31
31
|
/** @deprecated */
|
|
32
32
|
export declare type IStructureMember = ScgMember;
|
|
33
33
|
/** @deprecated */
|
|
34
|
-
export declare type IStructurePatch =
|
|
34
|
+
export declare type IStructurePatch = ScgStructurePatchOp;
|
|
35
35
|
/** @deprecated */
|
|
36
36
|
export declare type IGraphicPackage = ScgGraphicPackage;
|
|
37
37
|
/** @deprecated */
|
|
@@ -8,7 +8,7 @@ export declare type GraphicData = {
|
|
|
8
8
|
export declare type GraphicApi = ReturnType<typeof graphicApi>;
|
|
9
9
|
export declare const graphicData: () => GraphicData;
|
|
10
10
|
export declare const graphicApi: (set: StoreApi<DrawingState>['setState'], get: StoreApi<DrawingState>['getState'], buerliApi: StoreApi<BuerliState>) => {
|
|
11
|
-
addPackages: (packages: IGraphicPackage[]) => void;
|
|
11
|
+
addPackages: (packages: IGraphicPackage | IGraphicPackage[]) => void;
|
|
12
12
|
cleanupGraphicRecords: () => void;
|
|
13
13
|
filter: (cb: (elem: IGraphicElement) => boolean, options?: {
|
|
14
14
|
onlyOne?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@buerli.io/core",
|
|
3
|
-
"version": "0.13.1-beta.
|
|
3
|
+
"version": "0.13.1-beta.7.apiversion",
|
|
4
4
|
"description": "buerli state management",
|
|
5
5
|
"author": "AWV Informatik AG <info@awv-informatik.ch>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"typescript": "4.8.4"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@classcad/api-js": "https://awvstatic.com/classcad/download/dev/17.1.3-dev.
|
|
36
|
+
"@classcad/api-js": "https://awvstatic.com/classcad/download/dev/17.1.3-dev.366/classcad-api-js-17.1.3-dev.366.tgz",
|
|
37
37
|
"fast-json-patch": "^3.1.1",
|
|
38
38
|
"jsonpatch": "^3.1.0",
|
|
39
39
|
"uuid": "^9.0.0",
|