@xiping/react-components 1.0.18 → 1.0.20
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.
- package/dist/cjs/_virtual/_commonjsHelpers.js +1 -0
- package/dist/cjs/_virtual/alignment-pattern.js +1 -0
- package/dist/cjs/_virtual/browser.js +1 -0
- package/dist/cjs/_virtual/browser2.js +1 -0
- package/dist/cjs/_virtual/canvas.js +1 -0
- package/dist/cjs/_virtual/dijkstra.js +1 -0
- package/dist/cjs/_virtual/error-correction-code.js +1 -0
- package/dist/cjs/_virtual/error-correction-level.js +1 -0
- package/dist/cjs/_virtual/finder-pattern.js +1 -0
- package/dist/cjs/_virtual/format-info.js +1 -0
- package/dist/cjs/_virtual/galois-field.js +1 -0
- package/dist/cjs/_virtual/generateBounds.js +1 -0
- package/dist/cjs/_virtual/generateCreateBody.js +1 -0
- package/dist/cjs/_virtual/generateCreateDragForce.js +1 -0
- package/dist/cjs/_virtual/generateCreateSpringForce.js +1 -0
- package/dist/cjs/_virtual/generateIntegrator.js +1 -0
- package/dist/cjs/_virtual/generateQuadTree.js +1 -0
- package/dist/cjs/_virtual/index.js +1 -0
- package/dist/cjs/_virtual/index2.js +1 -0
- package/dist/cjs/_virtual/index3.js +1 -0
- package/dist/cjs/_virtual/index4.js +1 -0
- package/dist/cjs/_virtual/index5.js +1 -0
- package/dist/cjs/_virtual/index6.js +1 -0
- package/dist/cjs/_virtual/index7.js +1 -0
- package/dist/cjs/_virtual/mask-pattern.js +1 -0
- package/dist/cjs/_virtual/mode.js +1 -0
- package/dist/cjs/_virtual/polynomial.js +1 -0
- package/dist/cjs/_virtual/qrcode.js +1 -0
- package/dist/cjs/_virtual/react-is.development.js +1 -0
- package/dist/cjs/_virtual/react-is.production.min.js +1 -0
- package/dist/cjs/_virtual/regex.js +1 -0
- package/dist/cjs/_virtual/segments.js +1 -0
- package/dist/cjs/_virtual/svg-tag.js +1 -0
- package/dist/cjs/_virtual/utils.js +1 -0
- package/dist/cjs/_virtual/utils2.js +1 -0
- package/dist/cjs/_virtual/version-check.js +1 -0
- package/dist/cjs/_virtual/version.js +1 -0
- package/dist/cjs/components/qr-code/index.js +1 -0
- package/dist/cjs/components/react-force-graph-3d/index.d.ts +1 -0
- package/dist/cjs/index.d.ts +2 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/node_modules/.pnpm/3d-force-graph@1.77.0/node_modules/3d-force-graph/dist/3d-force-graph.js +28 -0
- package/dist/cjs/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/construct.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/extends.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@tweenjs_tween.js@23.1.3/node_modules/@tweenjs/tween.js/dist/tween.esm.js +1 -0
- package/dist/cjs/node_modules/.pnpm/accessor-fn@1.5.3/node_modules/accessor-fn/dist/accessor-fn.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-array@1.2.4/node_modules/d3-array/src/ascending.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-array@1.2.4/node_modules/d3-array/src/bisect.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-array@1.2.4/node_modules/d3-array/src/bisector.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-array@1.2.4/node_modules/d3-array/src/max.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-array@1.2.4/node_modules/d3-array/src/min.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree/src/add.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree/src/binarytree.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree/src/cover.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree/src/data.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree/src/extent.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree/src/find.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree/src/half.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree/src/remove.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree/src/root.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree/src/size.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree/src/visit.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree/src/visitAfter.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree/src/x.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-dispatch@3.0.1/node_modules/d3-dispatch/src/dispatch.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-force-3d@3.0.6/node_modules/d3-force-3d/src/center.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-force-3d@3.0.6/node_modules/d3-force-3d/src/constant.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-force-3d@3.0.6/node_modules/d3-force-3d/src/jiggle.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-force-3d@3.0.6/node_modules/d3-force-3d/src/lcg.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-force-3d@3.0.6/node_modules/d3-force-3d/src/link.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-force-3d@3.0.6/node_modules/d3-force-3d/src/manyBody.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-force-3d@3.0.6/node_modules/d3-force-3d/src/radial.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-force-3d@3.0.6/node_modules/d3-force-3d/src/simulation.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/add.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/cover.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/data.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/extent.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/find.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/findAll.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/octant.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/octree.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/remove.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/root.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/size.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/visit.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/visitAfter.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/x.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/y.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/z.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/add.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/cover.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/data.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/extent.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/find.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/quad.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/quadtree.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/remove.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/root.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/size.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/visit.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/visitAfter.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/x.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/y.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-scale-chromatic@3.1.0/node_modules/d3-scale-chromatic/src/categorical/Paired.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-scale-chromatic@3.1.0/node_modules/d3-scale-chromatic/src/colors.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/init.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/ordinal.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/array.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/constant.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/creator.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/matcher.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/namespace.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/namespaces.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/pointer.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/select.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/append.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/attr.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/call.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/classed.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/clone.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/data.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/datum.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/dispatch.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/each.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/empty.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/enter.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/exit.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/filter.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/html.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/index.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/insert.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/iterator.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/join.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/lower.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/merge.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/node.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/nodes.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/on.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/order.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/property.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/raise.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/remove.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/select.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectAll.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectChild.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectChildren.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/size.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/sort.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/sparse.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/style.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/text.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selector.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selectorAll.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/sourceEvent.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/window.js +1 -0
- package/dist/cjs/node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timer.js +1 -0
- package/dist/cjs/node_modules/.pnpm/data-bind-mapper@1.0.3/node_modules/data-bind-mapper/dist/data-bind-mapper.js +3 -0
- package/dist/cjs/node_modules/.pnpm/dijkstrajs@1.0.3/node_modules/dijkstrajs/dijkstra.js +1 -0
- package/dist/cjs/node_modules/.pnpm/float-tooltip@1.7.5/node_modules/float-tooltip/dist/float-tooltip.js +13 -0
- package/dist/cjs/node_modules/.pnpm/internmap@2.0.3/node_modules/internmap/src/index.js +1 -0
- package/dist/cjs/node_modules/.pnpm/jerrypick@1.1.2/node_modules/jerrypick/dist/jerrypick.js +3 -0
- package/dist/cjs/node_modules/.pnpm/kapsule@1.16.3/node_modules/kapsule/dist/kapsule.js +2 -0
- package/dist/cjs/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTrim.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_trimmedEndIndex.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/debounce.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/now.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toNumber.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ngraph.events@1.2.2/node_modules/ngraph.events/index.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ngraph.forcelayout@3.3.1/node_modules/ngraph.forcelayout/index.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ngraph.forcelayout@3.3.1/node_modules/ngraph.forcelayout/lib/codeGenerators/createPatternBuilder.js +2 -0
- package/dist/cjs/node_modules/.pnpm/ngraph.forcelayout@3.3.1/node_modules/ngraph.forcelayout/lib/codeGenerators/generateBounds.js +55 -0
- package/dist/cjs/node_modules/.pnpm/ngraph.forcelayout@3.3.1/node_modules/ngraph.forcelayout/lib/codeGenerators/generateCreateBody.js +47 -0
- package/dist/cjs/node_modules/.pnpm/ngraph.forcelayout@3.3.1/node_modules/ngraph.forcelayout/lib/codeGenerators/generateCreateDragForce.js +9 -0
- package/dist/cjs/node_modules/.pnpm/ngraph.forcelayout@3.3.1/node_modules/ngraph.forcelayout/lib/codeGenerators/generateCreateSpringForce.js +33 -0
- package/dist/cjs/node_modules/.pnpm/ngraph.forcelayout@3.3.1/node_modules/ngraph.forcelayout/lib/codeGenerators/generateIntegrator.js +35 -0
- package/dist/cjs/node_modules/.pnpm/ngraph.forcelayout@3.3.1/node_modules/ngraph.forcelayout/lib/codeGenerators/generateQuadTree.js +325 -0
- package/dist/cjs/node_modules/.pnpm/ngraph.forcelayout@3.3.1/node_modules/ngraph.forcelayout/lib/codeGenerators/getVariableName.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ngraph.forcelayout@3.3.1/node_modules/ngraph.forcelayout/lib/createPhysicsSimulator.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ngraph.forcelayout@3.3.1/node_modules/ngraph.forcelayout/lib/spring.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ngraph.graph@20.0.1/node_modules/ngraph.graph/index.js +3 -0
- package/dist/cjs/node_modules/.pnpm/ngraph.merge@1.0.0/node_modules/ngraph.merge/index.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ngraph.random@1.2.0/node_modules/ngraph.random/index.js +1 -0
- package/dist/cjs/node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js +5 -0
- package/dist/cjs/node_modules/.pnpm/polished@4.3.1/node_modules/polished/dist/polished.esm.js +149 -0
- package/dist/cjs/node_modules/.pnpm/preact@10.26.9/node_modules/preact/dist/preact.module.js +1 -0
- package/dist/cjs/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js +1 -0
- package/dist/cjs/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithThrowingShims.js +1 -0
- package/dist/cjs/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js +2 -0
- package/dist/cjs/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +1 -0
- package/dist/cjs/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js +1 -0
- package/dist/cjs/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js +1 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/browser.js +1 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/can-promise.js +1 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alignment-pattern.js +1 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alphanumeric-data.js +1 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-buffer.js +1 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-matrix.js +1 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/byte-data.js +1 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-code.js +1 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-level.js +1 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/finder-pattern.js +1 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/format-info.js +1 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/galois-field.js +1 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/kanji-data.js +2 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mask-pattern.js +1 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mode.js +1 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/numeric-data.js +1 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/polynomial.js +1 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/qrcode.js +4 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/reed-solomon-encoder.js +1 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/regex.js +2 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/segments.js +2 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js +1 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version-check.js +1 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version.js +1 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/canvas.js +1 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/svg-tag.js +2 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js +1 -0
- package/dist/cjs/node_modules/.pnpm/react-force-graph-3d@1.27.0_react@18.3.1/node_modules/react-force-graph-3d/dist/react-force-graph-3d.js +1 -0
- package/dist/cjs/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js +8 -0
- package/dist/cjs/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js +8 -0
- package/dist/cjs/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +1 -0
- package/dist/cjs/node_modules/.pnpm/react-kapsule@2.5.7_react@18.3.1/node_modules/react-kapsule/dist/react-kapsule.js +3 -0
- package/dist/cjs/node_modules/.pnpm/three-forcegraph@1.42.13_three@0.171.0/node_modules/three-forcegraph/dist/three-forcegraph.js +3 -0
- package/dist/cjs/node_modules/.pnpm/three-render-objects@1.40.2_three@0.171.0/node_modules/three-render-objects/dist/three-render-objects.js +18 -0
- package/dist/cjs/node_modules/.pnpm/three@0.171.0/node_modules/three/build/three.core.js +44 -0
- package/dist/cjs/node_modules/.pnpm/three@0.171.0/node_modules/three/build/three.module.js +3789 -0
- package/dist/cjs/node_modules/.pnpm/three@0.171.0/node_modules/three/build/three.webgpu.js +373 -0
- package/dist/cjs/node_modules/.pnpm/three@0.171.0/node_modules/three/examples/jsm/controls/DragControls.js +1 -0
- package/dist/cjs/node_modules/.pnpm/three@0.171.0/node_modules/three/examples/jsm/controls/FlyControls.js +1 -0
- package/dist/cjs/node_modules/.pnpm/three@0.171.0/node_modules/three/examples/jsm/controls/OrbitControls.js +1 -0
- package/dist/cjs/node_modules/.pnpm/three@0.171.0/node_modules/three/examples/jsm/controls/TrackballControls.js +1 -0
- package/dist/cjs/node_modules/.pnpm/three@0.171.0/node_modules/three/examples/jsm/postprocessing/EffectComposer.js +1 -0
- package/dist/cjs/node_modules/.pnpm/three@0.171.0/node_modules/three/examples/jsm/postprocessing/MaskPass.js +1 -0
- package/dist/cjs/node_modules/.pnpm/three@0.171.0/node_modules/three/examples/jsm/postprocessing/Pass.js +1 -0
- package/dist/cjs/node_modules/.pnpm/three@0.171.0/node_modules/three/examples/jsm/postprocessing/RenderPass.js +1 -0
- package/dist/cjs/node_modules/.pnpm/three@0.171.0/node_modules/three/examples/jsm/postprocessing/ShaderPass.js +1 -0
- package/dist/cjs/node_modules/.pnpm/three@0.171.0/node_modules/three/examples/jsm/shaders/CopyShader.js +24 -0
- package/dist/cjs/node_modules/.pnpm/tinycolor2@1.6.0/node_modules/tinycolor2/esm/tinycolor.js +1 -0
- package/dist/es/_virtual/_commonjsHelpers.js +6 -0
- package/dist/es/_virtual/alignment-pattern.js +4 -0
- package/dist/es/_virtual/browser.js +7 -0
- package/dist/es/_virtual/browser2.js +4 -0
- package/dist/es/_virtual/canvas.js +4 -0
- package/dist/es/_virtual/dijkstra.js +4 -0
- package/dist/es/_virtual/error-correction-code.js +4 -0
- package/dist/es/_virtual/error-correction-level.js +4 -0
- package/dist/es/_virtual/finder-pattern.js +4 -0
- package/dist/es/_virtual/format-info.js +4 -0
- package/dist/es/_virtual/galois-field.js +4 -0
- package/dist/es/_virtual/generateBounds.js +4 -0
- package/dist/es/_virtual/generateCreateBody.js +4 -0
- package/dist/es/_virtual/generateCreateDragForce.js +4 -0
- package/dist/es/_virtual/generateCreateSpringForce.js +4 -0
- package/dist/es/_virtual/generateIntegrator.js +4 -0
- package/dist/es/_virtual/generateQuadTree.js +4 -0
- package/dist/es/_virtual/index.js +7 -0
- package/dist/es/_virtual/index2.js +4 -0
- package/dist/es/_virtual/index3.js +4 -0
- package/dist/es/_virtual/index4.js +7 -0
- package/dist/es/_virtual/index5.js +7 -0
- package/dist/es/_virtual/index6.js +4 -0
- package/dist/es/_virtual/index7.js +4 -0
- package/dist/es/_virtual/mask-pattern.js +4 -0
- package/dist/es/_virtual/mode.js +4 -0
- package/dist/es/_virtual/polynomial.js +4 -0
- package/dist/es/_virtual/qrcode.js +4 -0
- package/dist/es/_virtual/react-is.development.js +4 -0
- package/dist/es/_virtual/react-is.production.min.js +4 -0
- package/dist/es/_virtual/regex.js +4 -0
- package/dist/es/_virtual/segments.js +4 -0
- package/dist/es/_virtual/svg-tag.js +4 -0
- package/dist/es/_virtual/utils.js +4 -0
- package/dist/es/_virtual/utils2.js +4 -0
- package/dist/es/_virtual/version-check.js +4 -0
- package/dist/es/_virtual/version.js +4 -0
- package/dist/es/components/qr-code/index.js +49 -0
- package/dist/es/components/react-force-graph-3d/index.d.ts +1 -0
- package/dist/es/index.d.ts +2 -0
- package/dist/es/index.js +18 -14
- package/dist/es/node_modules/.pnpm/3d-force-graph@1.77.0/node_modules/3d-force-graph/dist/3d-force-graph.js +398 -0
- package/dist/es/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +7 -0
- package/dist/es/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/construct.js +12 -0
- package/dist/es/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/extends.js +12 -0
- package/dist/es/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +8 -0
- package/dist/es/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +7 -0
- package/dist/es/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js +10 -0
- package/dist/es/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +13 -0
- package/dist/es/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +8 -0
- package/dist/es/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js +29 -0
- package/dist/es/node_modules/.pnpm/@tweenjs_tween.js@23.1.3/node_modules/@tweenjs/tween.js/dist/tween.esm.js +379 -0
- package/dist/es/node_modules/.pnpm/accessor-fn@1.5.3/node_modules/accessor-fn/dist/accessor-fn.js +10 -0
- package/dist/es/node_modules/.pnpm/d3-array@1.2.4/node_modules/d3-array/src/ascending.js +6 -0
- package/dist/es/node_modules/.pnpm/d3-array@1.2.4/node_modules/d3-array/src/bisect.js +3 -0
- package/dist/es/node_modules/.pnpm/d3-array@1.2.4/node_modules/d3-array/src/bisector.js +27 -0
- package/dist/es/node_modules/.pnpm/d3-array@1.2.4/node_modules/d3-array/src/max.js +17 -0
- package/dist/es/node_modules/.pnpm/d3-array@1.2.4/node_modules/d3-array/src/min.js +17 -0
- package/dist/es/node_modules/.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree/src/add.js +32 -0
- package/dist/es/node_modules/.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree/src/binarytree.js +48 -0
- package/dist/es/node_modules/.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree/src/cover.js +22 -0
- package/dist/es/node_modules/.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree/src/data.js +11 -0
- package/dist/es/node_modules/.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree/src/extent.js +6 -0
- package/dist/es/node_modules/.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree/src/find.js +20 -0
- package/dist/es/node_modules/.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree/src/half.js +6 -0
- package/dist/es/node_modules/.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree/src/remove.js +20 -0
- package/dist/es/node_modules/.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree/src/root.js +6 -0
- package/dist/es/node_modules/.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree/src/size.js +11 -0
- package/dist/es/node_modules/.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree/src/visit.js +13 -0
- package/dist/es/node_modules/.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree/src/visitAfter.js +18 -0
- package/dist/es/node_modules/.pnpm/d3-binarytree@1.0.2/node_modules/d3-binarytree/src/x.js +10 -0
- package/dist/es/node_modules/.pnpm/d3-dispatch@3.0.1/node_modules/d3-dispatch/src/dispatch.js +64 -0
- package/dist/es/node_modules/.pnpm/d3-force-3d@3.0.6/node_modules/d3-force-3d/src/center.js +25 -0
- package/dist/es/node_modules/.pnpm/d3-force-3d@3.0.6/node_modules/d3-force-3d/src/constant.js +8 -0
- package/dist/es/node_modules/.pnpm/d3-force-3d@3.0.6/node_modules/d3-force-3d/src/jiggle.js +6 -0
- package/dist/es/node_modules/.pnpm/d3-force-3d@3.0.6/node_modules/d3-force-3d/src/lcg.js +7 -0
- package/dist/es/node_modules/.pnpm/d3-force-3d@3.0.6/node_modules/d3-force-3d/src/link.js +58 -0
- package/dist/es/node_modules/.pnpm/d3-force-3d@3.0.6/node_modules/d3-force-3d/src/manyBody.js +58 -0
- package/dist/es/node_modules/.pnpm/d3-force-3d@3.0.6/node_modules/d3-force-3d/src/radial.js +34 -0
- package/dist/es/node_modules/.pnpm/d3-force-3d@3.0.6/node_modules/d3-force-3d/src/simulation.js +95 -0
- package/dist/es/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/add.js +32 -0
- package/dist/es/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/cover.js +40 -0
- package/dist/es/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/data.js +11 -0
- package/dist/es/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/extent.js +6 -0
- package/dist/es/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/find.js +29 -0
- package/dist/es/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/findAll.js +15 -0
- package/dist/es/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/octant.js +6 -0
- package/dist/es/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/octree.js +54 -0
- package/dist/es/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/remove.js +20 -0
- package/dist/es/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/root.js +6 -0
- package/dist/es/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/size.js +11 -0
- package/dist/es/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/visit.js +13 -0
- package/dist/es/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/visitAfter.js +18 -0
- package/dist/es/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/x.js +10 -0
- package/dist/es/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/y.js +10 -0
- package/dist/es/node_modules/.pnpm/d3-octree@1.1.0/node_modules/d3-octree/src/z.js +10 -0
- package/dist/es/node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/add.js +29 -0
- package/dist/es/node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/cover.js +28 -0
- package/dist/es/node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/data.js +11 -0
- package/dist/es/node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/extent.js +6 -0
- package/dist/es/node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/find.js +25 -0
- package/dist/es/node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/quad.js +6 -0
- package/dist/es/node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/quadtree.js +50 -0
- package/dist/es/node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/remove.js +20 -0
- package/dist/es/node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/root.js +6 -0
- package/dist/es/node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/size.js +11 -0
- package/dist/es/node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/visit.js +13 -0
- package/dist/es/node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/visitAfter.js +18 -0
- package/dist/es/node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/x.js +10 -0
- package/dist/es/node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/y.js +10 -0
- package/dist/es/node_modules/.pnpm/d3-scale-chromatic@3.1.0/node_modules/d3-scale-chromatic/src/categorical/Paired.js +5 -0
- package/dist/es/node_modules/.pnpm/d3-scale-chromatic@3.1.0/node_modules/d3-scale-chromatic/src/colors.js +7 -0
- package/dist/es/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/init.js +16 -0
- package/dist/es/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/ordinal.js +31 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/array.js +6 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/constant.js +8 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/creator.js +20 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/matcher.js +14 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/namespace.js +8 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/namespaces.js +12 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/pointer.js +18 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/select.js +7 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/append.js +10 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/attr.js +44 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/call.js +7 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/classed.js +54 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/clone.js +14 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/data.js +42 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/datum.js +6 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/dispatch.js +21 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/each.js +9 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/empty.js +6 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/enter.js +27 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/exit.js +8 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/filter.js +12 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/html.js +20 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/index.js +83 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/insert.js +14 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/iterator.js +8 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/join.js +7 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/lower.js +9 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/merge.js +12 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/node.js +11 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/nodes.js +6 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/on.js +52 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/order.js +9 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/property.js +22 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/raise.js +9 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/remove.js +10 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/select.js +12 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectAll.js +18 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectChild.js +16 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectChildren.js +16 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/size.js +8 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/sort.js +19 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/sparse.js +6 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/style.js +27 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/text.js +20 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selector.js +10 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selectorAll.js +11 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/sourceEvent.js +8 -0
- package/dist/es/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/window.js +6 -0
- package/dist/es/node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timer.js +62 -0
- package/dist/es/node_modules/.pnpm/data-bind-mapper@1.0.3/node_modules/data-bind-mapper/dist/data-bind-mapper.js +173 -0
- package/dist/es/node_modules/.pnpm/dijkstrajs@1.0.3/node_modules/dijkstrajs/dijkstra.js +72 -0
- package/dist/es/node_modules/.pnpm/float-tooltip@1.7.5/node_modules/float-tooltip/dist/float-tooltip.js +169 -0
- package/dist/es/node_modules/.pnpm/internmap@2.0.3/node_modules/internmap/src/index.js +35 -0
- package/dist/es/node_modules/.pnpm/jerrypick@1.1.2/node_modules/jerrypick/dist/jerrypick.js +92 -0
- package/dist/es/node_modules/.pnpm/kapsule@1.16.3/node_modules/kapsule/dist/kapsule.js +113 -0
- package/dist/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js +5 -0
- package/dist/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js +10 -0
- package/dist/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTrim.js +8 -0
- package/dist/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js +4 -0
- package/dist/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js +15 -0
- package/dist/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js +7 -0
- package/dist/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js +5 -0
- package/dist/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_trimmedEndIndex.js +9 -0
- package/dist/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/debounce.js +54 -0
- package/dist/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js +7 -0
- package/dist/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js +6 -0
- package/dist/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.js +9 -0
- package/dist/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/now.js +7 -0
- package/dist/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toNumber.js +22 -0
- package/dist/es/node_modules/.pnpm/ngraph.events@1.2.2/node_modules/ngraph.events/index.js +57 -0
- package/dist/es/node_modules/.pnpm/ngraph.forcelayout@3.3.1/node_modules/ngraph.forcelayout/index.js +239 -0
- package/dist/es/node_modules/.pnpm/ngraph.forcelayout@3.3.1/node_modules/ngraph.forcelayout/lib/codeGenerators/createPatternBuilder.js +22 -0
- package/dist/es/node_modules/.pnpm/ngraph.forcelayout@3.3.1/node_modules/ngraph.forcelayout/lib/codeGenerators/generateBounds.js +74 -0
- package/dist/es/node_modules/.pnpm/ngraph.forcelayout@3.3.1/node_modules/ngraph.forcelayout/lib/codeGenerators/generateCreateBody.js +74 -0
- package/dist/es/node_modules/.pnpm/ngraph.forcelayout@3.3.1/node_modules/ngraph.forcelayout/lib/codeGenerators/generateCreateDragForce.js +28 -0
- package/dist/es/node_modules/.pnpm/ngraph.forcelayout@3.3.1/node_modules/ngraph.forcelayout/lib/codeGenerators/generateCreateSpringForce.js +53 -0
- package/dist/es/node_modules/.pnpm/ngraph.forcelayout@3.3.1/node_modules/ngraph.forcelayout/lib/codeGenerators/generateIntegrator.js +55 -0
- package/dist/es/node_modules/.pnpm/ngraph.forcelayout@3.3.1/node_modules/ngraph.forcelayout/lib/codeGenerators/generateQuadTree.js +403 -0
- package/dist/es/node_modules/.pnpm/ngraph.forcelayout@3.3.1/node_modules/ngraph.forcelayout/lib/codeGenerators/getVariableName.js +9 -0
- package/dist/es/node_modules/.pnpm/ngraph.forcelayout@3.3.1/node_modules/ngraph.forcelayout/lib/createPhysicsSimulator.js +273 -0
- package/dist/es/node_modules/.pnpm/ngraph.forcelayout@3.3.1/node_modules/ngraph.forcelayout/lib/spring.js +12 -0
- package/dist/es/node_modules/.pnpm/ngraph.graph@20.0.1/node_modules/ngraph.graph/index.js +319 -0
- package/dist/es/node_modules/.pnpm/ngraph.merge@1.0.0/node_modules/ngraph.merge/index.js +20 -0
- package/dist/es/node_modules/.pnpm/ngraph.random@1.2.0/node_modules/ngraph.random/index.js +71 -0
- package/dist/es/node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js +54 -0
- package/dist/es/node_modules/.pnpm/polished@4.3.1/node_modules/polished/dist/polished.esm.js +717 -0
- package/dist/es/node_modules/.pnpm/preact@10.26.9/node_modules/preact/dist/preact.module.js +257 -0
- package/dist/es/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js +54 -0
- package/dist/es/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithThrowingShims.js +52 -0
- package/dist/es/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js +329 -0
- package/dist/es/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +17 -0
- package/dist/es/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js +10 -0
- package/dist/es/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js +7 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/browser.js +44 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/can-promise.js +9 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alignment-pattern.js +26 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alphanumeric-data.js +73 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-buffer.js +28 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-matrix.js +23 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/byte-data.js +23 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-code.js +362 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-level.js +41 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/finder-pattern.js +22 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/format-info.js +18 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/galois-field.js +24 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/kanji-data.js +36 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mask-pattern.js +102 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mode.js +68 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/numeric-data.js +26 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/polynomial.js +34 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/qrcode.js +154 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/reed-solomon-encoder.js +27 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/regex.js +23 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/segments.js +146 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js +74 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version-check.js +10 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version.js +75 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/canvas.js +32 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/svg-tag.js +32 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js +58 -0
- package/dist/es/node_modules/.pnpm/react-force-graph-3d@1.27.0_react@18.3.1/node_modules/react-force-graph-3d/dist/react-force-graph-3d.js +145 -0
- package/dist/es/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js +95 -0
- package/dist/es/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js +78 -0
- package/dist/es/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +10 -0
- package/dist/es/node_modules/.pnpm/react-kapsule@2.5.7_react@18.3.1/node_modules/react-kapsule/dist/react-kapsule.js +113 -0
- package/dist/es/node_modules/.pnpm/three-forcegraph@1.42.13_three@0.171.0/node_modules/three-forcegraph/dist/three-forcegraph.js +1020 -0
- package/dist/es/node_modules/.pnpm/three-render-objects@1.40.2_three@0.171.0/node_modules/three-render-objects/dist/three-render-objects.js +453 -0
- package/dist/es/node_modules/.pnpm/three@0.171.0/node_modules/three/build/three.core.js +6662 -0
- package/dist/es/node_modules/.pnpm/three@0.171.0/node_modules/three/build/three.module.js +9671 -0
- package/dist/es/node_modules/.pnpm/three@0.171.0/node_modules/three/build/three.webgpu.js +13421 -0
- package/dist/es/node_modules/.pnpm/three@0.171.0/node_modules/three/examples/jsm/controls/DragControls.js +109 -0
- package/dist/es/node_modules/.pnpm/three@0.171.0/node_modules/three/examples/jsm/controls/FlyControls.js +182 -0
- package/dist/es/node_modules/.pnpm/three@0.171.0/node_modules/three/examples/jsm/controls/OrbitControls.js +422 -0
- package/dist/es/node_modules/.pnpm/three@0.171.0/node_modules/three/examples/jsm/controls/TrackballControls.js +211 -0
- package/dist/es/node_modules/.pnpm/three@0.171.0/node_modules/three/examples/jsm/postprocessing/EffectComposer.js +77 -0
- package/dist/es/node_modules/.pnpm/three@0.171.0/node_modules/three/examples/jsm/postprocessing/MaskPass.js +24 -0
- package/dist/es/node_modules/.pnpm/three@0.171.0/node_modules/three/examples/jsm/postprocessing/Pass.js +42 -0
- package/dist/es/node_modules/.pnpm/three@0.171.0/node_modules/three/examples/jsm/postprocessing/RenderPass.js +17 -0
- package/dist/es/node_modules/.pnpm/three@0.171.0/node_modules/three/examples/jsm/postprocessing/ShaderPass.js +23 -0
- package/dist/es/node_modules/.pnpm/three@0.171.0/node_modules/three/examples/jsm/shaders/CopyShader.js +41 -0
- package/dist/es/node_modules/.pnpm/tinycolor2@1.6.0/node_modules/tinycolor2/esm/tinycolor.js +711 -0
- package/package.json +2 -2
|
@@ -0,0 +1,422 @@
|
|
|
1
|
+
import "../../../build/three.module.js";
|
|
2
|
+
import { Controls as S, Vector3 as p, MOUSE as u, TOUCH as _, Quaternion as E, Spherical as P, Vector2 as c, Ray as w, Plane as O, MathUtils as R } from "../../../build/three.core.js";
|
|
3
|
+
const D = { type: "change" }, b = { type: "start" }, M = { type: "end" }, f = new w(), T = new O(), j = Math.cos(70 * R.DEG2RAD), n = new p(), r = 2 * Math.PI, o = {
|
|
4
|
+
NONE: -1,
|
|
5
|
+
ROTATE: 0,
|
|
6
|
+
DOLLY: 1,
|
|
7
|
+
PAN: 2,
|
|
8
|
+
TOUCH_ROTATE: 3,
|
|
9
|
+
TOUCH_PAN: 4,
|
|
10
|
+
TOUCH_DOLLY_PAN: 5,
|
|
11
|
+
TOUCH_DOLLY_ROTATE: 6
|
|
12
|
+
}, y = 1e-6;
|
|
13
|
+
class v extends S {
|
|
14
|
+
constructor(t, e = null) {
|
|
15
|
+
super(t, e), this.state = o.NONE, this.enabled = !0, this.target = new p(), this.cursor = new p(), this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minTargetRadius = 0, this.maxTargetRadius = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = 0.05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }, this.mouseButtons = { LEFT: u.ROTATE, MIDDLE: u.DOLLY, RIGHT: u.PAN }, this.touches = { ONE: _.ROTATE, TWO: _.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this._lastPosition = new p(), this._lastQuaternion = new E(), this._lastTargetPosition = new p(), this._quat = new E().setFromUnitVectors(t.up, new p(0, 1, 0)), this._quatInverse = this._quat.clone().invert(), this._spherical = new P(), this._sphericalDelta = new P(), this._scale = 1, this._panOffset = new p(), this._rotateStart = new c(), this._rotateEnd = new c(), this._rotateDelta = new c(), this._panStart = new c(), this._panEnd = new c(), this._panDelta = new c(), this._dollyStart = new c(), this._dollyEnd = new c(), this._dollyDelta = new c(), this._dollyDirection = new p(), this._mouse = new c(), this._performCursorZoom = !1, this._pointers = [], this._pointerPositions = {}, this._controlActive = !1, this._onPointerMove = L.bind(this), this._onPointerDown = A.bind(this), this._onPointerUp = x.bind(this), this._onContextMenu = Z.bind(this), this._onMouseWheel = N.bind(this), this._onKeyDown = Y.bind(this), this._onTouchStart = I.bind(this), this._onTouchMove = U.bind(this), this._onMouseDown = C.bind(this), this._onMouseMove = k.bind(this), this._interceptControlDown = z.bind(this), this._interceptControlUp = K.bind(this), this.domElement !== null && this.connect(), this.update();
|
|
16
|
+
}
|
|
17
|
+
connect() {
|
|
18
|
+
this.domElement.addEventListener("pointerdown", this._onPointerDown), this.domElement.addEventListener("pointercancel", this._onPointerUp), this.domElement.addEventListener("contextmenu", this._onContextMenu), this.domElement.addEventListener("wheel", this._onMouseWheel, { passive: !1 }), this.domElement.getRootNode().addEventListener("keydown", this._interceptControlDown, { passive: !0, capture: !0 }), this.domElement.style.touchAction = "none";
|
|
19
|
+
}
|
|
20
|
+
disconnect() {
|
|
21
|
+
this.domElement.removeEventListener("pointerdown", this._onPointerDown), this.domElement.removeEventListener("pointermove", this._onPointerMove), this.domElement.removeEventListener("pointerup", this._onPointerUp), this.domElement.removeEventListener("pointercancel", this._onPointerUp), this.domElement.removeEventListener("wheel", this._onMouseWheel), this.domElement.removeEventListener("contextmenu", this._onContextMenu), this.stopListenToKeyEvents(), this.domElement.getRootNode().removeEventListener("keydown", this._interceptControlDown, { capture: !0 }), this.domElement.style.touchAction = "auto";
|
|
22
|
+
}
|
|
23
|
+
dispose() {
|
|
24
|
+
this.disconnect();
|
|
25
|
+
}
|
|
26
|
+
getPolarAngle() {
|
|
27
|
+
return this._spherical.phi;
|
|
28
|
+
}
|
|
29
|
+
getAzimuthalAngle() {
|
|
30
|
+
return this._spherical.theta;
|
|
31
|
+
}
|
|
32
|
+
getDistance() {
|
|
33
|
+
return this.object.position.distanceTo(this.target);
|
|
34
|
+
}
|
|
35
|
+
listenToKeyEvents(t) {
|
|
36
|
+
t.addEventListener("keydown", this._onKeyDown), this._domElementKeyEvents = t;
|
|
37
|
+
}
|
|
38
|
+
stopListenToKeyEvents() {
|
|
39
|
+
this._domElementKeyEvents !== null && (this._domElementKeyEvents.removeEventListener("keydown", this._onKeyDown), this._domElementKeyEvents = null);
|
|
40
|
+
}
|
|
41
|
+
saveState() {
|
|
42
|
+
this.target0.copy(this.target), this.position0.copy(this.object.position), this.zoom0 = this.object.zoom;
|
|
43
|
+
}
|
|
44
|
+
reset() {
|
|
45
|
+
this.target.copy(this.target0), this.object.position.copy(this.position0), this.object.zoom = this.zoom0, this.object.updateProjectionMatrix(), this.dispatchEvent(D), this.update(), this.state = o.NONE;
|
|
46
|
+
}
|
|
47
|
+
update(t = null) {
|
|
48
|
+
const e = this.object.position;
|
|
49
|
+
n.copy(e).sub(this.target), n.applyQuaternion(this._quat), this._spherical.setFromVector3(n), this.autoRotate && this.state === o.NONE && this._rotateLeft(this._getAutoRotationAngle(t)), this.enableDamping ? (this._spherical.theta += this._sphericalDelta.theta * this.dampingFactor, this._spherical.phi += this._sphericalDelta.phi * this.dampingFactor) : (this._spherical.theta += this._sphericalDelta.theta, this._spherical.phi += this._sphericalDelta.phi);
|
|
50
|
+
let s = this.minAzimuthAngle, a = this.maxAzimuthAngle;
|
|
51
|
+
isFinite(s) && isFinite(a) && (s < -Math.PI ? s += r : s > Math.PI && (s -= r), a < -Math.PI ? a += r : a > Math.PI && (a -= r), s <= a ? this._spherical.theta = Math.max(s, Math.min(a, this._spherical.theta)) : this._spherical.theta = this._spherical.theta > (s + a) / 2 ? Math.max(s, this._spherical.theta) : Math.min(a, this._spherical.theta)), this._spherical.phi = Math.max(this.minPolarAngle, Math.min(this.maxPolarAngle, this._spherical.phi)), this._spherical.makeSafe(), this.enableDamping === !0 ? this.target.addScaledVector(this._panOffset, this.dampingFactor) : this.target.add(this._panOffset), this.target.sub(this.cursor), this.target.clampLength(this.minTargetRadius, this.maxTargetRadius), this.target.add(this.cursor);
|
|
52
|
+
let h = !1;
|
|
53
|
+
if (this.zoomToCursor && this._performCursorZoom || this.object.isOrthographicCamera)
|
|
54
|
+
this._spherical.radius = this._clampDistance(this._spherical.radius);
|
|
55
|
+
else {
|
|
56
|
+
const l = this._spherical.radius;
|
|
57
|
+
this._spherical.radius = this._clampDistance(this._spherical.radius * this._scale), h = l != this._spherical.radius;
|
|
58
|
+
}
|
|
59
|
+
if (n.setFromSpherical(this._spherical), n.applyQuaternion(this._quatInverse), e.copy(this.target).add(n), this.object.lookAt(this.target), this.enableDamping === !0 ? (this._sphericalDelta.theta *= 1 - this.dampingFactor, this._sphericalDelta.phi *= 1 - this.dampingFactor, this._panOffset.multiplyScalar(1 - this.dampingFactor)) : (this._sphericalDelta.set(0, 0, 0), this._panOffset.set(0, 0, 0)), this.zoomToCursor && this._performCursorZoom) {
|
|
60
|
+
let l = null;
|
|
61
|
+
if (this.object.isPerspectiveCamera) {
|
|
62
|
+
const d = n.length();
|
|
63
|
+
l = this._clampDistance(d * this._scale);
|
|
64
|
+
const m = d - l;
|
|
65
|
+
this.object.position.addScaledVector(this._dollyDirection, m), this.object.updateMatrixWorld(), h = !!m;
|
|
66
|
+
} else if (this.object.isOrthographicCamera) {
|
|
67
|
+
const d = new p(this._mouse.x, this._mouse.y, 0);
|
|
68
|
+
d.unproject(this.object);
|
|
69
|
+
const m = this.object.zoom;
|
|
70
|
+
this.object.zoom = Math.max(this.minZoom, Math.min(this.maxZoom, this.object.zoom / this._scale)), this.object.updateProjectionMatrix(), h = m !== this.object.zoom;
|
|
71
|
+
const g = new p(this._mouse.x, this._mouse.y, 0);
|
|
72
|
+
g.unproject(this.object), this.object.position.sub(g).add(d), this.object.updateMatrixWorld(), l = n.length();
|
|
73
|
+
} else
|
|
74
|
+
console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."), this.zoomToCursor = !1;
|
|
75
|
+
l !== null && (this.screenSpacePanning ? this.target.set(0, 0, -1).transformDirection(this.object.matrix).multiplyScalar(l).add(this.object.position) : (f.origin.copy(this.object.position), f.direction.set(0, 0, -1).transformDirection(this.object.matrix), Math.abs(this.object.up.dot(f.direction)) < j ? this.object.lookAt(this.target) : (T.setFromNormalAndCoplanarPoint(this.object.up, this.target), f.intersectPlane(T, this.target))));
|
|
76
|
+
} else if (this.object.isOrthographicCamera) {
|
|
77
|
+
const l = this.object.zoom;
|
|
78
|
+
this.object.zoom = Math.max(this.minZoom, Math.min(this.maxZoom, this.object.zoom / this._scale)), l !== this.object.zoom && (this.object.updateProjectionMatrix(), h = !0);
|
|
79
|
+
}
|
|
80
|
+
return this._scale = 1, this._performCursorZoom = !1, h || this._lastPosition.distanceToSquared(this.object.position) > y || 8 * (1 - this._lastQuaternion.dot(this.object.quaternion)) > y || this._lastTargetPosition.distanceToSquared(this.target) > y ? (this.dispatchEvent(D), this._lastPosition.copy(this.object.position), this._lastQuaternion.copy(this.object.quaternion), this._lastTargetPosition.copy(this.target), !0) : !1;
|
|
81
|
+
}
|
|
82
|
+
_getAutoRotationAngle(t) {
|
|
83
|
+
return t !== null ? r / 60 * this.autoRotateSpeed * t : r / 60 / 60 * this.autoRotateSpeed;
|
|
84
|
+
}
|
|
85
|
+
_getZoomScale(t) {
|
|
86
|
+
const e = Math.abs(t * 0.01);
|
|
87
|
+
return Math.pow(0.95, this.zoomSpeed * e);
|
|
88
|
+
}
|
|
89
|
+
_rotateLeft(t) {
|
|
90
|
+
this._sphericalDelta.theta -= t;
|
|
91
|
+
}
|
|
92
|
+
_rotateUp(t) {
|
|
93
|
+
this._sphericalDelta.phi -= t;
|
|
94
|
+
}
|
|
95
|
+
_panLeft(t, e) {
|
|
96
|
+
n.setFromMatrixColumn(e, 0), n.multiplyScalar(-t), this._panOffset.add(n);
|
|
97
|
+
}
|
|
98
|
+
_panUp(t, e) {
|
|
99
|
+
this.screenSpacePanning === !0 ? n.setFromMatrixColumn(e, 1) : (n.setFromMatrixColumn(e, 0), n.crossVectors(this.object.up, n)), n.multiplyScalar(t), this._panOffset.add(n);
|
|
100
|
+
}
|
|
101
|
+
// deltaX and deltaY are in pixels; right and down are positive
|
|
102
|
+
_pan(t, e) {
|
|
103
|
+
const s = this.domElement;
|
|
104
|
+
if (this.object.isPerspectiveCamera) {
|
|
105
|
+
const a = this.object.position;
|
|
106
|
+
n.copy(a).sub(this.target);
|
|
107
|
+
let h = n.length();
|
|
108
|
+
h *= Math.tan(this.object.fov / 2 * Math.PI / 180), this._panLeft(2 * t * h / s.clientHeight, this.object.matrix), this._panUp(2 * e * h / s.clientHeight, this.object.matrix);
|
|
109
|
+
} else this.object.isOrthographicCamera ? (this._panLeft(t * (this.object.right - this.object.left) / this.object.zoom / s.clientWidth, this.object.matrix), this._panUp(e * (this.object.top - this.object.bottom) / this.object.zoom / s.clientHeight, this.object.matrix)) : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."), this.enablePan = !1);
|
|
110
|
+
}
|
|
111
|
+
_dollyOut(t) {
|
|
112
|
+
this.object.isPerspectiveCamera || this.object.isOrthographicCamera ? this._scale /= t : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."), this.enableZoom = !1);
|
|
113
|
+
}
|
|
114
|
+
_dollyIn(t) {
|
|
115
|
+
this.object.isPerspectiveCamera || this.object.isOrthographicCamera ? this._scale *= t : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."), this.enableZoom = !1);
|
|
116
|
+
}
|
|
117
|
+
_updateZoomParameters(t, e) {
|
|
118
|
+
if (!this.zoomToCursor)
|
|
119
|
+
return;
|
|
120
|
+
this._performCursorZoom = !0;
|
|
121
|
+
const s = this.domElement.getBoundingClientRect(), a = t - s.left, h = e - s.top, l = s.width, d = s.height;
|
|
122
|
+
this._mouse.x = a / l * 2 - 1, this._mouse.y = -(h / d) * 2 + 1, this._dollyDirection.set(this._mouse.x, this._mouse.y, 1).unproject(this.object).sub(this.object.position).normalize();
|
|
123
|
+
}
|
|
124
|
+
_clampDistance(t) {
|
|
125
|
+
return Math.max(this.minDistance, Math.min(this.maxDistance, t));
|
|
126
|
+
}
|
|
127
|
+
//
|
|
128
|
+
// event callbacks - update the object state
|
|
129
|
+
//
|
|
130
|
+
_handleMouseDownRotate(t) {
|
|
131
|
+
this._rotateStart.set(t.clientX, t.clientY);
|
|
132
|
+
}
|
|
133
|
+
_handleMouseDownDolly(t) {
|
|
134
|
+
this._updateZoomParameters(t.clientX, t.clientX), this._dollyStart.set(t.clientX, t.clientY);
|
|
135
|
+
}
|
|
136
|
+
_handleMouseDownPan(t) {
|
|
137
|
+
this._panStart.set(t.clientX, t.clientY);
|
|
138
|
+
}
|
|
139
|
+
_handleMouseMoveRotate(t) {
|
|
140
|
+
this._rotateEnd.set(t.clientX, t.clientY), this._rotateDelta.subVectors(this._rotateEnd, this._rotateStart).multiplyScalar(this.rotateSpeed);
|
|
141
|
+
const e = this.domElement;
|
|
142
|
+
this._rotateLeft(r * this._rotateDelta.x / e.clientHeight), this._rotateUp(r * this._rotateDelta.y / e.clientHeight), this._rotateStart.copy(this._rotateEnd), this.update();
|
|
143
|
+
}
|
|
144
|
+
_handleMouseMoveDolly(t) {
|
|
145
|
+
this._dollyEnd.set(t.clientX, t.clientY), this._dollyDelta.subVectors(this._dollyEnd, this._dollyStart), this._dollyDelta.y > 0 ? this._dollyOut(this._getZoomScale(this._dollyDelta.y)) : this._dollyDelta.y < 0 && this._dollyIn(this._getZoomScale(this._dollyDelta.y)), this._dollyStart.copy(this._dollyEnd), this.update();
|
|
146
|
+
}
|
|
147
|
+
_handleMouseMovePan(t) {
|
|
148
|
+
this._panEnd.set(t.clientX, t.clientY), this._panDelta.subVectors(this._panEnd, this._panStart).multiplyScalar(this.panSpeed), this._pan(this._panDelta.x, this._panDelta.y), this._panStart.copy(this._panEnd), this.update();
|
|
149
|
+
}
|
|
150
|
+
_handleMouseWheel(t) {
|
|
151
|
+
this._updateZoomParameters(t.clientX, t.clientY), t.deltaY < 0 ? this._dollyIn(this._getZoomScale(t.deltaY)) : t.deltaY > 0 && this._dollyOut(this._getZoomScale(t.deltaY)), this.update();
|
|
152
|
+
}
|
|
153
|
+
_handleKeyDown(t) {
|
|
154
|
+
let e = !1;
|
|
155
|
+
switch (t.code) {
|
|
156
|
+
case this.keys.UP:
|
|
157
|
+
t.ctrlKey || t.metaKey || t.shiftKey ? this.enableRotate && this._rotateUp(r * this.rotateSpeed / this.domElement.clientHeight) : this.enablePan && this._pan(0, this.keyPanSpeed), e = !0;
|
|
158
|
+
break;
|
|
159
|
+
case this.keys.BOTTOM:
|
|
160
|
+
t.ctrlKey || t.metaKey || t.shiftKey ? this.enableRotate && this._rotateUp(-r * this.rotateSpeed / this.domElement.clientHeight) : this.enablePan && this._pan(0, -this.keyPanSpeed), e = !0;
|
|
161
|
+
break;
|
|
162
|
+
case this.keys.LEFT:
|
|
163
|
+
t.ctrlKey || t.metaKey || t.shiftKey ? this.enableRotate && this._rotateLeft(r * this.rotateSpeed / this.domElement.clientHeight) : this.enablePan && this._pan(this.keyPanSpeed, 0), e = !0;
|
|
164
|
+
break;
|
|
165
|
+
case this.keys.RIGHT:
|
|
166
|
+
t.ctrlKey || t.metaKey || t.shiftKey ? this.enableRotate && this._rotateLeft(-r * this.rotateSpeed / this.domElement.clientHeight) : this.enablePan && this._pan(-this.keyPanSpeed, 0), e = !0;
|
|
167
|
+
break;
|
|
168
|
+
}
|
|
169
|
+
e && (t.preventDefault(), this.update());
|
|
170
|
+
}
|
|
171
|
+
_handleTouchStartRotate(t) {
|
|
172
|
+
if (this._pointers.length === 1)
|
|
173
|
+
this._rotateStart.set(t.pageX, t.pageY);
|
|
174
|
+
else {
|
|
175
|
+
const e = this._getSecondPointerPosition(t), s = 0.5 * (t.pageX + e.x), a = 0.5 * (t.pageY + e.y);
|
|
176
|
+
this._rotateStart.set(s, a);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
_handleTouchStartPan(t) {
|
|
180
|
+
if (this._pointers.length === 1)
|
|
181
|
+
this._panStart.set(t.pageX, t.pageY);
|
|
182
|
+
else {
|
|
183
|
+
const e = this._getSecondPointerPosition(t), s = 0.5 * (t.pageX + e.x), a = 0.5 * (t.pageY + e.y);
|
|
184
|
+
this._panStart.set(s, a);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
_handleTouchStartDolly(t) {
|
|
188
|
+
const e = this._getSecondPointerPosition(t), s = t.pageX - e.x, a = t.pageY - e.y, h = Math.sqrt(s * s + a * a);
|
|
189
|
+
this._dollyStart.set(0, h);
|
|
190
|
+
}
|
|
191
|
+
_handleTouchStartDollyPan(t) {
|
|
192
|
+
this.enableZoom && this._handleTouchStartDolly(t), this.enablePan && this._handleTouchStartPan(t);
|
|
193
|
+
}
|
|
194
|
+
_handleTouchStartDollyRotate(t) {
|
|
195
|
+
this.enableZoom && this._handleTouchStartDolly(t), this.enableRotate && this._handleTouchStartRotate(t);
|
|
196
|
+
}
|
|
197
|
+
_handleTouchMoveRotate(t) {
|
|
198
|
+
if (this._pointers.length == 1)
|
|
199
|
+
this._rotateEnd.set(t.pageX, t.pageY);
|
|
200
|
+
else {
|
|
201
|
+
const s = this._getSecondPointerPosition(t), a = 0.5 * (t.pageX + s.x), h = 0.5 * (t.pageY + s.y);
|
|
202
|
+
this._rotateEnd.set(a, h);
|
|
203
|
+
}
|
|
204
|
+
this._rotateDelta.subVectors(this._rotateEnd, this._rotateStart).multiplyScalar(this.rotateSpeed);
|
|
205
|
+
const e = this.domElement;
|
|
206
|
+
this._rotateLeft(r * this._rotateDelta.x / e.clientHeight), this._rotateUp(r * this._rotateDelta.y / e.clientHeight), this._rotateStart.copy(this._rotateEnd);
|
|
207
|
+
}
|
|
208
|
+
_handleTouchMovePan(t) {
|
|
209
|
+
if (this._pointers.length === 1)
|
|
210
|
+
this._panEnd.set(t.pageX, t.pageY);
|
|
211
|
+
else {
|
|
212
|
+
const e = this._getSecondPointerPosition(t), s = 0.5 * (t.pageX + e.x), a = 0.5 * (t.pageY + e.y);
|
|
213
|
+
this._panEnd.set(s, a);
|
|
214
|
+
}
|
|
215
|
+
this._panDelta.subVectors(this._panEnd, this._panStart).multiplyScalar(this.panSpeed), this._pan(this._panDelta.x, this._panDelta.y), this._panStart.copy(this._panEnd);
|
|
216
|
+
}
|
|
217
|
+
_handleTouchMoveDolly(t) {
|
|
218
|
+
const e = this._getSecondPointerPosition(t), s = t.pageX - e.x, a = t.pageY - e.y, h = Math.sqrt(s * s + a * a);
|
|
219
|
+
this._dollyEnd.set(0, h), this._dollyDelta.set(0, Math.pow(this._dollyEnd.y / this._dollyStart.y, this.zoomSpeed)), this._dollyOut(this._dollyDelta.y), this._dollyStart.copy(this._dollyEnd);
|
|
220
|
+
const l = (t.pageX + e.x) * 0.5, d = (t.pageY + e.y) * 0.5;
|
|
221
|
+
this._updateZoomParameters(l, d);
|
|
222
|
+
}
|
|
223
|
+
_handleTouchMoveDollyPan(t) {
|
|
224
|
+
this.enableZoom && this._handleTouchMoveDolly(t), this.enablePan && this._handleTouchMovePan(t);
|
|
225
|
+
}
|
|
226
|
+
_handleTouchMoveDollyRotate(t) {
|
|
227
|
+
this.enableZoom && this._handleTouchMoveDolly(t), this.enableRotate && this._handleTouchMoveRotate(t);
|
|
228
|
+
}
|
|
229
|
+
// pointers
|
|
230
|
+
_addPointer(t) {
|
|
231
|
+
this._pointers.push(t.pointerId);
|
|
232
|
+
}
|
|
233
|
+
_removePointer(t) {
|
|
234
|
+
delete this._pointerPositions[t.pointerId];
|
|
235
|
+
for (let e = 0; e < this._pointers.length; e++)
|
|
236
|
+
if (this._pointers[e] == t.pointerId) {
|
|
237
|
+
this._pointers.splice(e, 1);
|
|
238
|
+
return;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
_isTrackingPointer(t) {
|
|
242
|
+
for (let e = 0; e < this._pointers.length; e++)
|
|
243
|
+
if (this._pointers[e] == t.pointerId) return !0;
|
|
244
|
+
return !1;
|
|
245
|
+
}
|
|
246
|
+
_trackPointer(t) {
|
|
247
|
+
let e = this._pointerPositions[t.pointerId];
|
|
248
|
+
e === void 0 && (e = new c(), this._pointerPositions[t.pointerId] = e), e.set(t.pageX, t.pageY);
|
|
249
|
+
}
|
|
250
|
+
_getSecondPointerPosition(t) {
|
|
251
|
+
const e = t.pointerId === this._pointers[0] ? this._pointers[1] : this._pointers[0];
|
|
252
|
+
return this._pointerPositions[e];
|
|
253
|
+
}
|
|
254
|
+
//
|
|
255
|
+
_customWheelEvent(t) {
|
|
256
|
+
const e = t.deltaMode, s = {
|
|
257
|
+
clientX: t.clientX,
|
|
258
|
+
clientY: t.clientY,
|
|
259
|
+
deltaY: t.deltaY
|
|
260
|
+
};
|
|
261
|
+
switch (e) {
|
|
262
|
+
case 1:
|
|
263
|
+
s.deltaY *= 16;
|
|
264
|
+
break;
|
|
265
|
+
case 2:
|
|
266
|
+
s.deltaY *= 100;
|
|
267
|
+
break;
|
|
268
|
+
}
|
|
269
|
+
return t.ctrlKey && !this._controlActive && (s.deltaY *= 10), s;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
function A(i) {
|
|
273
|
+
this.enabled !== !1 && (this._pointers.length === 0 && (this.domElement.setPointerCapture(i.pointerId), this.domElement.addEventListener("pointermove", this._onPointerMove), this.domElement.addEventListener("pointerup", this._onPointerUp)), !this._isTrackingPointer(i) && (this._addPointer(i), i.pointerType === "touch" ? this._onTouchStart(i) : this._onMouseDown(i)));
|
|
274
|
+
}
|
|
275
|
+
function L(i) {
|
|
276
|
+
this.enabled !== !1 && (i.pointerType === "touch" ? this._onTouchMove(i) : this._onMouseMove(i));
|
|
277
|
+
}
|
|
278
|
+
function x(i) {
|
|
279
|
+
switch (this._removePointer(i), this._pointers.length) {
|
|
280
|
+
case 0:
|
|
281
|
+
this.domElement.releasePointerCapture(i.pointerId), this.domElement.removeEventListener("pointermove", this._onPointerMove), this.domElement.removeEventListener("pointerup", this._onPointerUp), this.dispatchEvent(M), this.state = o.NONE;
|
|
282
|
+
break;
|
|
283
|
+
case 1:
|
|
284
|
+
const t = this._pointers[0], e = this._pointerPositions[t];
|
|
285
|
+
this._onTouchStart({ pointerId: t, pageX: e.x, pageY: e.y });
|
|
286
|
+
break;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
function C(i) {
|
|
290
|
+
let t;
|
|
291
|
+
switch (i.button) {
|
|
292
|
+
case 0:
|
|
293
|
+
t = this.mouseButtons.LEFT;
|
|
294
|
+
break;
|
|
295
|
+
case 1:
|
|
296
|
+
t = this.mouseButtons.MIDDLE;
|
|
297
|
+
break;
|
|
298
|
+
case 2:
|
|
299
|
+
t = this.mouseButtons.RIGHT;
|
|
300
|
+
break;
|
|
301
|
+
default:
|
|
302
|
+
t = -1;
|
|
303
|
+
}
|
|
304
|
+
switch (t) {
|
|
305
|
+
case u.DOLLY:
|
|
306
|
+
if (this.enableZoom === !1) return;
|
|
307
|
+
this._handleMouseDownDolly(i), this.state = o.DOLLY;
|
|
308
|
+
break;
|
|
309
|
+
case u.ROTATE:
|
|
310
|
+
if (i.ctrlKey || i.metaKey || i.shiftKey) {
|
|
311
|
+
if (this.enablePan === !1) return;
|
|
312
|
+
this._handleMouseDownPan(i), this.state = o.PAN;
|
|
313
|
+
} else {
|
|
314
|
+
if (this.enableRotate === !1) return;
|
|
315
|
+
this._handleMouseDownRotate(i), this.state = o.ROTATE;
|
|
316
|
+
}
|
|
317
|
+
break;
|
|
318
|
+
case u.PAN:
|
|
319
|
+
if (i.ctrlKey || i.metaKey || i.shiftKey) {
|
|
320
|
+
if (this.enableRotate === !1) return;
|
|
321
|
+
this._handleMouseDownRotate(i), this.state = o.ROTATE;
|
|
322
|
+
} else {
|
|
323
|
+
if (this.enablePan === !1) return;
|
|
324
|
+
this._handleMouseDownPan(i), this.state = o.PAN;
|
|
325
|
+
}
|
|
326
|
+
break;
|
|
327
|
+
default:
|
|
328
|
+
this.state = o.NONE;
|
|
329
|
+
}
|
|
330
|
+
this.state !== o.NONE && this.dispatchEvent(b);
|
|
331
|
+
}
|
|
332
|
+
function k(i) {
|
|
333
|
+
switch (this.state) {
|
|
334
|
+
case o.ROTATE:
|
|
335
|
+
if (this.enableRotate === !1) return;
|
|
336
|
+
this._handleMouseMoveRotate(i);
|
|
337
|
+
break;
|
|
338
|
+
case o.DOLLY:
|
|
339
|
+
if (this.enableZoom === !1) return;
|
|
340
|
+
this._handleMouseMoveDolly(i);
|
|
341
|
+
break;
|
|
342
|
+
case o.PAN:
|
|
343
|
+
if (this.enablePan === !1) return;
|
|
344
|
+
this._handleMouseMovePan(i);
|
|
345
|
+
break;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
function N(i) {
|
|
349
|
+
this.enabled === !1 || this.enableZoom === !1 || this.state !== o.NONE || (i.preventDefault(), this.dispatchEvent(b), this._handleMouseWheel(this._customWheelEvent(i)), this.dispatchEvent(M));
|
|
350
|
+
}
|
|
351
|
+
function Y(i) {
|
|
352
|
+
this.enabled !== !1 && this._handleKeyDown(i);
|
|
353
|
+
}
|
|
354
|
+
function I(i) {
|
|
355
|
+
switch (this._trackPointer(i), this._pointers.length) {
|
|
356
|
+
case 1:
|
|
357
|
+
switch (this.touches.ONE) {
|
|
358
|
+
case _.ROTATE:
|
|
359
|
+
if (this.enableRotate === !1) return;
|
|
360
|
+
this._handleTouchStartRotate(i), this.state = o.TOUCH_ROTATE;
|
|
361
|
+
break;
|
|
362
|
+
case _.PAN:
|
|
363
|
+
if (this.enablePan === !1) return;
|
|
364
|
+
this._handleTouchStartPan(i), this.state = o.TOUCH_PAN;
|
|
365
|
+
break;
|
|
366
|
+
default:
|
|
367
|
+
this.state = o.NONE;
|
|
368
|
+
}
|
|
369
|
+
break;
|
|
370
|
+
case 2:
|
|
371
|
+
switch (this.touches.TWO) {
|
|
372
|
+
case _.DOLLY_PAN:
|
|
373
|
+
if (this.enableZoom === !1 && this.enablePan === !1) return;
|
|
374
|
+
this._handleTouchStartDollyPan(i), this.state = o.TOUCH_DOLLY_PAN;
|
|
375
|
+
break;
|
|
376
|
+
case _.DOLLY_ROTATE:
|
|
377
|
+
if (this.enableZoom === !1 && this.enableRotate === !1) return;
|
|
378
|
+
this._handleTouchStartDollyRotate(i), this.state = o.TOUCH_DOLLY_ROTATE;
|
|
379
|
+
break;
|
|
380
|
+
default:
|
|
381
|
+
this.state = o.NONE;
|
|
382
|
+
}
|
|
383
|
+
break;
|
|
384
|
+
default:
|
|
385
|
+
this.state = o.NONE;
|
|
386
|
+
}
|
|
387
|
+
this.state !== o.NONE && this.dispatchEvent(b);
|
|
388
|
+
}
|
|
389
|
+
function U(i) {
|
|
390
|
+
switch (this._trackPointer(i), this.state) {
|
|
391
|
+
case o.TOUCH_ROTATE:
|
|
392
|
+
if (this.enableRotate === !1) return;
|
|
393
|
+
this._handleTouchMoveRotate(i), this.update();
|
|
394
|
+
break;
|
|
395
|
+
case o.TOUCH_PAN:
|
|
396
|
+
if (this.enablePan === !1) return;
|
|
397
|
+
this._handleTouchMovePan(i), this.update();
|
|
398
|
+
break;
|
|
399
|
+
case o.TOUCH_DOLLY_PAN:
|
|
400
|
+
if (this.enableZoom === !1 && this.enablePan === !1) return;
|
|
401
|
+
this._handleTouchMoveDollyPan(i), this.update();
|
|
402
|
+
break;
|
|
403
|
+
case o.TOUCH_DOLLY_ROTATE:
|
|
404
|
+
if (this.enableZoom === !1 && this.enableRotate === !1) return;
|
|
405
|
+
this._handleTouchMoveDollyRotate(i), this.update();
|
|
406
|
+
break;
|
|
407
|
+
default:
|
|
408
|
+
this.state = o.NONE;
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
function Z(i) {
|
|
412
|
+
this.enabled !== !1 && i.preventDefault();
|
|
413
|
+
}
|
|
414
|
+
function z(i) {
|
|
415
|
+
i.key === "Control" && (this._controlActive = !0, this.domElement.getRootNode().addEventListener("keyup", this._interceptControlUp, { passive: !0, capture: !0 }));
|
|
416
|
+
}
|
|
417
|
+
function K(i) {
|
|
418
|
+
i.key === "Control" && (this._controlActive = !1, this.domElement.getRootNode().removeEventListener("keyup", this._interceptControlUp, { passive: !0, capture: !0 }));
|
|
419
|
+
}
|
|
420
|
+
export {
|
|
421
|
+
v as OrbitControls
|
|
422
|
+
};
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import "../../../build/three.module.js";
|
|
2
|
+
import { Controls as O, MOUSE as r, Vector3 as o, Vector2 as n, Quaternion as S, MathUtils as f } from "../../../build/three.core.js";
|
|
3
|
+
const u = { type: "change" }, E = { type: "start" }, b = { type: "end" }, P = 1e-6, s = { NONE: -1, ROTATE: 0, ZOOM: 1, PAN: 2, TOUCH_ROTATE: 3, TOUCH_ZOOM_PAN: 4 }, p = new n(), h = new n(), M = new o(), _ = new o(), y = new o(), a = new S(), w = new o(), m = new o(), g = new o(), l = new o();
|
|
4
|
+
class K extends O {
|
|
5
|
+
constructor(t, i = null) {
|
|
6
|
+
super(t, i), this.enabled = !0, this.screen = { left: 0, top: 0, width: 0, height: 0 }, this.rotateSpeed = 1, this.zoomSpeed = 1.2, this.panSpeed = 0.3, this.noRotate = !1, this.noZoom = !1, this.noPan = !1, this.staticMoving = !1, this.dynamicDampingFactor = 0.2, this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.keys = [
|
|
7
|
+
"KeyA",
|
|
8
|
+
"KeyS",
|
|
9
|
+
"KeyD"
|
|
10
|
+
/*D*/
|
|
11
|
+
], this.mouseButtons = { LEFT: r.ROTATE, MIDDLE: r.DOLLY, RIGHT: r.PAN }, this.state = s.NONE, this.keyState = s.NONE, this.target = new o(), this._lastPosition = new o(), this._lastZoom = 1, this._touchZoomDistanceStart = 0, this._touchZoomDistanceEnd = 0, this._lastAngle = 0, this._eye = new o(), this._movePrev = new n(), this._moveCurr = new n(), this._lastAxis = new o(), this._zoomStart = new n(), this._zoomEnd = new n(), this._panStart = new n(), this._panEnd = new n(), this._pointers = [], this._pointerPositions = {}, this._onPointerMove = j.bind(this), this._onPointerDown = C.bind(this), this._onPointerUp = T.bind(this), this._onPointerCancel = k.bind(this), this._onContextMenu = L.bind(this), this._onMouseWheel = N.bind(this), this._onKeyDown = z.bind(this), this._onKeyUp = D.bind(this), this._onTouchStart = U.bind(this), this._onTouchMove = R.bind(this), this._onTouchEnd = Y.bind(this), this._onMouseDown = A.bind(this), this._onMouseMove = x.bind(this), this._onMouseUp = Z.bind(this), this._target0 = this.target.clone(), this._position0 = this.object.position.clone(), this._up0 = this.object.up.clone(), this._zoom0 = this.object.zoom, i !== null && (this.connect(), this.handleResize()), this.update();
|
|
12
|
+
}
|
|
13
|
+
connect() {
|
|
14
|
+
window.addEventListener("keydown", this._onKeyDown), window.addEventListener("keyup", this._onKeyUp), this.domElement.addEventListener("pointerdown", this._onPointerDown), this.domElement.addEventListener("pointercancel", this._onPointerCancel), this.domElement.addEventListener("wheel", this._onMouseWheel, { passive: !1 }), this.domElement.addEventListener("contextmenu", this._onContextMenu), this.domElement.style.touchAction = "none";
|
|
15
|
+
}
|
|
16
|
+
disconnect() {
|
|
17
|
+
window.removeEventListener("keydown", this._onKeyDown), window.removeEventListener("keyup", this._onKeyUp), this.domElement.removeEventListener("pointerdown", this._onPointerDown), this.domElement.removeEventListener("pointermove", this._onPointerMove), this.domElement.removeEventListener("pointerup", this._onPointerUp), this.domElement.removeEventListener("pointercancel", this._onPointerCancel), this.domElement.removeEventListener("wheel", this._onMouseWheel), this.domElement.removeEventListener("contextmenu", this._onContextMenu), this.domElement.style.touchAction = "auto";
|
|
18
|
+
}
|
|
19
|
+
dispose() {
|
|
20
|
+
this.disconnect();
|
|
21
|
+
}
|
|
22
|
+
handleResize() {
|
|
23
|
+
const t = this.domElement.getBoundingClientRect(), i = this.domElement.ownerDocument.documentElement;
|
|
24
|
+
this.screen.left = t.left + window.pageXOffset - i.clientLeft, this.screen.top = t.top + window.pageYOffset - i.clientTop, this.screen.width = t.width, this.screen.height = t.height;
|
|
25
|
+
}
|
|
26
|
+
update() {
|
|
27
|
+
this._eye.subVectors(this.object.position, this.target), this.noRotate || this._rotateCamera(), this.noZoom || this._zoomCamera(), this.noPan || this._panCamera(), this.object.position.addVectors(this.target, this._eye), this.object.isPerspectiveCamera ? (this._checkDistances(), this.object.lookAt(this.target), this._lastPosition.distanceToSquared(this.object.position) > P && (this.dispatchEvent(u), this._lastPosition.copy(this.object.position))) : this.object.isOrthographicCamera ? (this.object.lookAt(this.target), (this._lastPosition.distanceToSquared(this.object.position) > P || this._lastZoom !== this.object.zoom) && (this.dispatchEvent(u), this._lastPosition.copy(this.object.position), this._lastZoom = this.object.zoom)) : console.warn("THREE.TrackballControls: Unsupported camera type.");
|
|
28
|
+
}
|
|
29
|
+
reset() {
|
|
30
|
+
this.state = s.NONE, this.keyState = s.NONE, this.target.copy(this._target0), this.object.position.copy(this._position0), this.object.up.copy(this._up0), this.object.zoom = this._zoom0, this.object.updateProjectionMatrix(), this._eye.subVectors(this.object.position, this.target), this.object.lookAt(this.target), this.dispatchEvent(u), this._lastPosition.copy(this.object.position), this._lastZoom = this.object.zoom;
|
|
31
|
+
}
|
|
32
|
+
_panCamera() {
|
|
33
|
+
if (h.copy(this._panEnd).sub(this._panStart), h.lengthSq()) {
|
|
34
|
+
if (this.object.isOrthographicCamera) {
|
|
35
|
+
const t = (this.object.right - this.object.left) / this.object.zoom / this.domElement.clientWidth, i = (this.object.top - this.object.bottom) / this.object.zoom / this.domElement.clientWidth;
|
|
36
|
+
h.x *= t, h.y *= i;
|
|
37
|
+
}
|
|
38
|
+
h.multiplyScalar(this._eye.length() * this.panSpeed), _.copy(this._eye).cross(this.object.up).setLength(h.x), _.add(M.copy(this.object.up).setLength(h.y)), this.object.position.add(_), this.target.add(_), this.staticMoving ? this._panStart.copy(this._panEnd) : this._panStart.add(h.subVectors(this._panEnd, this._panStart).multiplyScalar(this.dynamicDampingFactor));
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
_rotateCamera() {
|
|
42
|
+
l.set(this._moveCurr.x - this._movePrev.x, this._moveCurr.y - this._movePrev.y, 0);
|
|
43
|
+
let t = l.length();
|
|
44
|
+
t ? (this._eye.copy(this.object.position).sub(this.target), w.copy(this._eye).normalize(), m.copy(this.object.up).normalize(), g.crossVectors(m, w).normalize(), m.setLength(this._moveCurr.y - this._movePrev.y), g.setLength(this._moveCurr.x - this._movePrev.x), l.copy(m.add(g)), y.crossVectors(l, this._eye).normalize(), t *= this.rotateSpeed, a.setFromAxisAngle(y, t), this._eye.applyQuaternion(a), this.object.up.applyQuaternion(a), this._lastAxis.copy(y), this._lastAngle = t) : !this.staticMoving && this._lastAngle && (this._lastAngle *= Math.sqrt(1 - this.dynamicDampingFactor), this._eye.copy(this.object.position).sub(this.target), a.setFromAxisAngle(this._lastAxis, this._lastAngle), this._eye.applyQuaternion(a), this.object.up.applyQuaternion(a)), this._movePrev.copy(this._moveCurr);
|
|
45
|
+
}
|
|
46
|
+
_zoomCamera() {
|
|
47
|
+
let t;
|
|
48
|
+
this.state === s.TOUCH_ZOOM_PAN ? (t = this._touchZoomDistanceStart / this._touchZoomDistanceEnd, this._touchZoomDistanceStart = this._touchZoomDistanceEnd, this.object.isPerspectiveCamera ? this._eye.multiplyScalar(t) : this.object.isOrthographicCamera ? (this.object.zoom = f.clamp(this.object.zoom / t, this.minZoom, this.maxZoom), this._lastZoom !== this.object.zoom && this.object.updateProjectionMatrix()) : console.warn("THREE.TrackballControls: Unsupported camera type")) : (t = 1 + (this._zoomEnd.y - this._zoomStart.y) * this.zoomSpeed, t !== 1 && t > 0 && (this.object.isPerspectiveCamera ? this._eye.multiplyScalar(t) : this.object.isOrthographicCamera ? (this.object.zoom = f.clamp(this.object.zoom / t, this.minZoom, this.maxZoom), this._lastZoom !== this.object.zoom && this.object.updateProjectionMatrix()) : console.warn("THREE.TrackballControls: Unsupported camera type")), this.staticMoving ? this._zoomStart.copy(this._zoomEnd) : this._zoomStart.y += (this._zoomEnd.y - this._zoomStart.y) * this.dynamicDampingFactor);
|
|
49
|
+
}
|
|
50
|
+
_getMouseOnScreen(t, i) {
|
|
51
|
+
return p.set(
|
|
52
|
+
(t - this.screen.left) / this.screen.width,
|
|
53
|
+
(i - this.screen.top) / this.screen.height
|
|
54
|
+
), p;
|
|
55
|
+
}
|
|
56
|
+
_getMouseOnCircle(t, i) {
|
|
57
|
+
return p.set(
|
|
58
|
+
(t - this.screen.width * 0.5 - this.screen.left) / (this.screen.width * 0.5),
|
|
59
|
+
(this.screen.height + 2 * (this.screen.top - i)) / this.screen.width
|
|
60
|
+
// screen.width intentional
|
|
61
|
+
), p;
|
|
62
|
+
}
|
|
63
|
+
_addPointer(t) {
|
|
64
|
+
this._pointers.push(t);
|
|
65
|
+
}
|
|
66
|
+
_removePointer(t) {
|
|
67
|
+
delete this._pointerPositions[t.pointerId];
|
|
68
|
+
for (let i = 0; i < this._pointers.length; i++)
|
|
69
|
+
if (this._pointers[i].pointerId == t.pointerId) {
|
|
70
|
+
this._pointers.splice(i, 1);
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
_trackPointer(t) {
|
|
75
|
+
let i = this._pointerPositions[t.pointerId];
|
|
76
|
+
i === void 0 && (i = new n(), this._pointerPositions[t.pointerId] = i), i.set(t.pageX, t.pageY);
|
|
77
|
+
}
|
|
78
|
+
_getSecondPointerPosition(t) {
|
|
79
|
+
const i = t.pointerId === this._pointers[0].pointerId ? this._pointers[1] : this._pointers[0];
|
|
80
|
+
return this._pointerPositions[i.pointerId];
|
|
81
|
+
}
|
|
82
|
+
_checkDistances() {
|
|
83
|
+
(!this.noZoom || !this.noPan) && (this._eye.lengthSq() > this.maxDistance * this.maxDistance && (this.object.position.addVectors(this.target, this._eye.setLength(this.maxDistance)), this._zoomStart.copy(this._zoomEnd)), this._eye.lengthSq() < this.minDistance * this.minDistance && (this.object.position.addVectors(this.target, this._eye.setLength(this.minDistance)), this._zoomStart.copy(this._zoomEnd)));
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
function C(e) {
|
|
87
|
+
this.enabled !== !1 && (this._pointers.length === 0 && (this.domElement.setPointerCapture(e.pointerId), this.domElement.addEventListener("pointermove", this._onPointerMove), this.domElement.addEventListener("pointerup", this._onPointerUp)), this._addPointer(e), e.pointerType === "touch" ? this._onTouchStart(e) : this._onMouseDown(e));
|
|
88
|
+
}
|
|
89
|
+
function j(e) {
|
|
90
|
+
this.enabled !== !1 && (e.pointerType === "touch" ? this._onTouchMove(e) : this._onMouseMove(e));
|
|
91
|
+
}
|
|
92
|
+
function T(e) {
|
|
93
|
+
this.enabled !== !1 && (e.pointerType === "touch" ? this._onTouchEnd(e) : this._onMouseUp(), this._removePointer(e), this._pointers.length === 0 && (this.domElement.releasePointerCapture(e.pointerId), this.domElement.removeEventListener("pointermove", this._onPointerMove), this.domElement.removeEventListener("pointerup", this._onPointerUp)));
|
|
94
|
+
}
|
|
95
|
+
function k(e) {
|
|
96
|
+
this._removePointer(e);
|
|
97
|
+
}
|
|
98
|
+
function D() {
|
|
99
|
+
this.enabled !== !1 && (this.keyState = s.NONE, window.addEventListener("keydown", this._onKeyDown));
|
|
100
|
+
}
|
|
101
|
+
function z(e) {
|
|
102
|
+
this.enabled !== !1 && (window.removeEventListener("keydown", this._onKeyDown), this.keyState === s.NONE && (e.code === this.keys[s.ROTATE] && !this.noRotate ? this.keyState = s.ROTATE : e.code === this.keys[s.ZOOM] && !this.noZoom ? this.keyState = s.ZOOM : e.code === this.keys[s.PAN] && !this.noPan && (this.keyState = s.PAN)));
|
|
103
|
+
}
|
|
104
|
+
function A(e) {
|
|
105
|
+
let t;
|
|
106
|
+
switch (e.button) {
|
|
107
|
+
case 0:
|
|
108
|
+
t = this.mouseButtons.LEFT;
|
|
109
|
+
break;
|
|
110
|
+
case 1:
|
|
111
|
+
t = this.mouseButtons.MIDDLE;
|
|
112
|
+
break;
|
|
113
|
+
case 2:
|
|
114
|
+
t = this.mouseButtons.RIGHT;
|
|
115
|
+
break;
|
|
116
|
+
default:
|
|
117
|
+
t = -1;
|
|
118
|
+
}
|
|
119
|
+
switch (t) {
|
|
120
|
+
case r.DOLLY:
|
|
121
|
+
this.state = s.ZOOM;
|
|
122
|
+
break;
|
|
123
|
+
case r.ROTATE:
|
|
124
|
+
this.state = s.ROTATE;
|
|
125
|
+
break;
|
|
126
|
+
case r.PAN:
|
|
127
|
+
this.state = s.PAN;
|
|
128
|
+
break;
|
|
129
|
+
default:
|
|
130
|
+
this.state = s.NONE;
|
|
131
|
+
}
|
|
132
|
+
const i = this.keyState !== s.NONE ? this.keyState : this.state;
|
|
133
|
+
i === s.ROTATE && !this.noRotate ? (this._moveCurr.copy(this._getMouseOnCircle(e.pageX, e.pageY)), this._movePrev.copy(this._moveCurr)) : i === s.ZOOM && !this.noZoom ? (this._zoomStart.copy(this._getMouseOnScreen(e.pageX, e.pageY)), this._zoomEnd.copy(this._zoomStart)) : i === s.PAN && !this.noPan && (this._panStart.copy(this._getMouseOnScreen(e.pageX, e.pageY)), this._panEnd.copy(this._panStart)), this.dispatchEvent(E);
|
|
134
|
+
}
|
|
135
|
+
function x(e) {
|
|
136
|
+
const t = this.keyState !== s.NONE ? this.keyState : this.state;
|
|
137
|
+
t === s.ROTATE && !this.noRotate ? (this._movePrev.copy(this._moveCurr), this._moveCurr.copy(this._getMouseOnCircle(e.pageX, e.pageY))) : t === s.ZOOM && !this.noZoom ? this._zoomEnd.copy(this._getMouseOnScreen(e.pageX, e.pageY)) : t === s.PAN && !this.noPan && this._panEnd.copy(this._getMouseOnScreen(e.pageX, e.pageY));
|
|
138
|
+
}
|
|
139
|
+
function Z() {
|
|
140
|
+
this.state = s.NONE, this.dispatchEvent(b);
|
|
141
|
+
}
|
|
142
|
+
function N(e) {
|
|
143
|
+
if (this.enabled !== !1 && this.noZoom !== !0) {
|
|
144
|
+
switch (e.preventDefault(), e.deltaMode) {
|
|
145
|
+
case 2:
|
|
146
|
+
this._zoomStart.y -= e.deltaY * 0.025;
|
|
147
|
+
break;
|
|
148
|
+
case 1:
|
|
149
|
+
this._zoomStart.y -= e.deltaY * 0.01;
|
|
150
|
+
break;
|
|
151
|
+
default:
|
|
152
|
+
this._zoomStart.y -= e.deltaY * 25e-5;
|
|
153
|
+
break;
|
|
154
|
+
}
|
|
155
|
+
this.dispatchEvent(E), this.dispatchEvent(b);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
function L(e) {
|
|
159
|
+
this.enabled !== !1 && e.preventDefault();
|
|
160
|
+
}
|
|
161
|
+
function U(e) {
|
|
162
|
+
switch (this._trackPointer(e), this._pointers.length) {
|
|
163
|
+
case 1:
|
|
164
|
+
this.state = s.TOUCH_ROTATE, this._moveCurr.copy(this._getMouseOnCircle(this._pointers[0].pageX, this._pointers[0].pageY)), this._movePrev.copy(this._moveCurr);
|
|
165
|
+
break;
|
|
166
|
+
default:
|
|
167
|
+
this.state = s.TOUCH_ZOOM_PAN;
|
|
168
|
+
const t = this._pointers[0].pageX - this._pointers[1].pageX, i = this._pointers[0].pageY - this._pointers[1].pageY;
|
|
169
|
+
this._touchZoomDistanceEnd = this._touchZoomDistanceStart = Math.sqrt(t * t + i * i);
|
|
170
|
+
const c = (this._pointers[0].pageX + this._pointers[1].pageX) / 2, d = (this._pointers[0].pageY + this._pointers[1].pageY) / 2;
|
|
171
|
+
this._panStart.copy(this._getMouseOnScreen(c, d)), this._panEnd.copy(this._panStart);
|
|
172
|
+
break;
|
|
173
|
+
}
|
|
174
|
+
this.dispatchEvent(E);
|
|
175
|
+
}
|
|
176
|
+
function R(e) {
|
|
177
|
+
switch (this._trackPointer(e), this._pointers.length) {
|
|
178
|
+
case 1:
|
|
179
|
+
this._movePrev.copy(this._moveCurr), this._moveCurr.copy(this._getMouseOnCircle(e.pageX, e.pageY));
|
|
180
|
+
break;
|
|
181
|
+
default:
|
|
182
|
+
const t = this._getSecondPointerPosition(e), i = e.pageX - t.x, c = e.pageY - t.y;
|
|
183
|
+
this._touchZoomDistanceEnd = Math.sqrt(i * i + c * c);
|
|
184
|
+
const d = (e.pageX + t.x) / 2, v = (e.pageY + t.y) / 2;
|
|
185
|
+
this._panEnd.copy(this._getMouseOnScreen(d, v));
|
|
186
|
+
break;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
function Y(e) {
|
|
190
|
+
switch (this._pointers.length) {
|
|
191
|
+
case 0:
|
|
192
|
+
this.state = s.NONE;
|
|
193
|
+
break;
|
|
194
|
+
case 1:
|
|
195
|
+
this.state = s.TOUCH_ROTATE, this._moveCurr.copy(this._getMouseOnCircle(e.pageX, e.pageY)), this._movePrev.copy(this._moveCurr);
|
|
196
|
+
break;
|
|
197
|
+
case 2:
|
|
198
|
+
this.state = s.TOUCH_ZOOM_PAN;
|
|
199
|
+
for (let t = 0; t < this._pointers.length; t++)
|
|
200
|
+
if (this._pointers[t].pointerId !== e.pointerId) {
|
|
201
|
+
const i = this._pointerPositions[this._pointers[t].pointerId];
|
|
202
|
+
this._moveCurr.copy(this._getMouseOnCircle(i.x, i.y)), this._movePrev.copy(this._moveCurr);
|
|
203
|
+
break;
|
|
204
|
+
}
|
|
205
|
+
break;
|
|
206
|
+
}
|
|
207
|
+
this.dispatchEvent(b);
|
|
208
|
+
}
|
|
209
|
+
export {
|
|
210
|
+
K as TrackballControls
|
|
211
|
+
};
|