{"_id":"@c3dlabs/c3dviewer-api","name":"@c3dlabs/c3dviewer-api","dist-tags":{"latest":"1.6.0"},"versions":{"1.6.0":{"name":"@c3dlabs/c3dviewer-api","version":"1.6.0","description":"C3dViewer is 3D client located onto some HTML element and communicated with c3dservice.","author":{"name":"c3dlabs"},"main":"public/index.js","types":"public/types/index.d.ts","scripts":{"build":"webpack","build:watch":"nodemon --exec \"npm run build\" -e js,ts --watch src","lint":"eslint --ignore-path .eslintignore --ext .js,.ts src/","lint:fix":"eslint --ignore-path .eslintignore --fix --ext .js,.ts src/","release":"npm run lint:fix && npm run build"},"devDependencies":{"@c3dlabs/c3dservice-client":"1.3.2","@c3dlabs/c3dvision-js":"~1.5.0","@c3dlabs/c3dvision-wasm":"~1.6.0","@typescript-eslint/eslint-plugin":"^5.48.2","@typescript-eslint/parser":"^5.48.2","arraybuffer-loader":"1.0.8","eslint":"^8.41.0","eslint-config-prettier":"^8.6.0","eslint-plugin-editorconfig":"^4.0.3","eslint-plugin-prettier":"^4.2.1","file-loader":"6.2.0","nodemon":"^2.0.20","prettier":"^2.8.3","terser-webpack-plugin":"5.1.4","ts-loader":"8.0.0","webpack":"^5.75.0","webpack-cli":"^5.0.1"},"_id":"@c3dlabs/c3dviewer-api@1.6.0","gitHead":"d301aaf6f5380c03a7004ace9bdb37c63d593e1b","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-isvfa4fjE0/qTjMuzPImljdSdAFDDo9Gt74FUAFNbLzM7vF/Stc1qUvQz59f5KpO0hwU9IXAnB4EjIPXxDy09w==","shasum":"380b1bd61b7dabc104e0173298972c3c1b158559","tarball":"https://registry.npmjs.org/@c3dlabs/c3dviewer-api/-/c3dviewer-api-1.6.0.tgz","fileCount":22,"unpackedSize":4280400,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIHipM92ZtndIedTOgkeqHQr8kQam89VCtSeANhuympGoAiA/NFW7ScBSxeek1DITOv9oDcETIA77zifWWlliaBX+oQ=="}]},"_npmUser":{"name":"gce-nt","email":"milovanovdv@gmail.com"},"directories":{},"maintainers":[{"name":"gce-nt","email":"milovanovdv@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/c3dviewer-api_1.6.0_1784713618529_0.08929074188645303"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-22T09:46:58.345Z","1.6.0":"2026-07-22T09:46:58.757Z","modified":"2026-07-22T09:46:59.048Z"},"maintainers":[{"name":"gce-nt","email":"milovanovdv@gmail.com"}],"description":"C3dViewer is 3D client located onto some HTML element and communicated with c3dservice.","author":{"name":"c3dlabs"},"readme":"# C3dViewer\nC3dViewer is 3D client located onto some HTML element and communicated with c3dservice.\n\n[Full documentation](./doc/index.md)\n\n## Angle dimension\n\nAdded geometry representation for angle dimension.\n\n*Class of object (TypeScript):*\n```typescript\nexport type C3DViewAngleDimension = {\n    type: C3DViewObjectTypes.AngleDimension\n    uuid: string\n    points: {\n        p1: C3DViewPoint\n        p2: C3DViewPoint\n        p3: C3DViewPoint\n        tp?: C3DViewPoint\n    }\n    placement: C3DViewPlacement\n    options:C3DViewDimensionOptions\n    userData:C3DUserData\n}\n```\n\nAdded the angle dimension process to create an angle object by 3 points.\n\n*Class of process (TypeScript):*\n```typescript\nexport type AddAngleDimensionProcess = {\n    name: \"AddAngleDimension\"\n    options: C3DViewDimensionOptions\n    events: {\n        onNew?: () => string\n        onCreate?: (uuid: string) => C3DUserData\n        onValue?: (value: number) => string\n    }\n}\n```\n\n## User data \nThe methods **onCreate** of annotation process can return of custom user data.\n\n*Class of process (TypeScript):*\n```typescript\nexport type AddCommentProcess = {\n    onCreate?: (uuid: string) => C3DUserData\n}\n```\n\n## Section plane\nUpdated section plane editing\nEach section plane can contain the custom ID.\n\n*Class of object(TypeScript):*\n```typescript\nexport type C3DCuttingPlane = {\n    options?:{\n        id?:number\n    }\n}\n```\n\n Use the ID to edit the section plane\n\n *Class of editaion process (TypeScript):*\n```typescript\nexport type EditSectionPlaneProcess = {\n    name: \"EditSectionPlane\"\n    id?: number\n}\n```\n\n## Version compatibility\nThis client is compatibility with c3dservice 1.4.x and c3dservice 1.5.x","readmeFilename":"README.md","_rev":"1-6ce37071b7a1a5a5506816a736f26879"}