@realsee/five 6.0.0-alpha.72 → 6.0.0-alpha.74

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/docs/assets/search.js +1 -1
  2. package/docs/classes/five.Model.html +2 -2
  3. package/docs/classes/five.Work.html +13 -13
  4. package/docs/functions/five.parseWork.html +1 -1
  5. package/docs/types/five.ModelMaterialValues.html +1 -1
  6. package/docs/types/five.Models.html +4 -4
  7. package/docs/types/five.ParseWorkOptions.html +2 -2
  8. package/docs/types/five.Works.html +1 -1
  9. package/docs/variables/five.defaultPbmParameters.html +1 -1
  10. package/five/index.d.ts +6 -0
  11. package/five/index.js +71 -71
  12. package/five/index.mjs +1339 -1353
  13. package/gltf-loader/index.js +3 -3
  14. package/gltf-loader/index.mjs +3 -3
  15. package/line/index.js +3 -3
  16. package/line/index.mjs +3 -3
  17. package/package.json +2 -8
  18. package/react/index.js +2 -2
  19. package/react/index.mjs +2 -2
  20. package/scripts/five-staticify.js +183 -2
  21. package/sticker/index.js +3 -3
  22. package/sticker/index.mjs +3 -3
  23. package/umd/five-gltf-loader.js +3 -3
  24. package/umd/five-line.js +3 -3
  25. package/umd/five-react.js +2 -2
  26. package/umd/five-sticker.js +3 -3
  27. package/umd/five-vfx.js +2 -2
  28. package/umd/five-vue.js +2 -2
  29. package/umd/five.js +20 -20
  30. package/vfx/index.js +2 -2
  31. package/vfx/index.mjs +2 -2
  32. package/vue/index.js +2 -2
  33. package/vue/index.mjs +2 -2
  34. package/exporters/staticify.js +0 -210
  35. package/scripts/five-plugin-init.js +0 -83
  36. package/scripts/five-quick-start-init.js +0 -80
  37. package/scripts/five-react-component-init.js +0 -83
  38. package/templates/plugin/README.md +0 -38
  39. package/templates/plugin/devtools/external-five.js +0 -5
  40. package/templates/plugin/devtools/external-three.js +0 -5
  41. package/templates/plugin/devtools/tsconfig.build.json +0 -18
  42. package/templates/plugin/devtools/webpack.bundle.js +0 -44
  43. package/templates/plugin/devtools/webpack.example.js +0 -39
  44. package/templates/plugin/docs/.gitkeep +0 -0
  45. package/templates/plugin/examples/data.json +0 -507
  46. package/templates/plugin/examples/index.html +0 -28
  47. package/templates/plugin/examples/index.ts +0 -12
  48. package/templates/plugin/lib/index.ts +0 -30
  49. package/templates/plugin/package.json +0 -32
  50. package/templates/plugin/tsconfig.json +0 -26
  51. package/templates/quick-start/README.md +0 -47
  52. package/templates/quick-start/assets/work.json +0 -507
  53. package/templates/quick-start/index.html +0 -54
  54. package/templates/quick-start/index.tsx +0 -123
  55. package/templates/quick-start/package.json +0 -25
  56. package/templates/quick-start/tsconfig.json +0 -27
  57. package/templates/quick-start/webpack.config.js +0 -45
  58. package/templates/quick-start/webpack.production.js +0 -42
  59. package/templates/react-component/README.md +0 -32
  60. package/templates/react-component/devtools/external-five.js +0 -5
  61. package/templates/react-component/devtools/external-react.js +0 -5
  62. package/templates/react-component/devtools/external-three.js +0 -5
  63. package/templates/react-component/devtools/tsconfig.build.json +0 -19
  64. package/templates/react-component/devtools/webpack.bundle.js +0 -44
  65. package/templates/react-component/devtools/webpack.example.js +0 -39
  66. package/templates/react-component/docs/.gitkeep +0 -0
  67. package/templates/react-component/examples/data.json +0 -507
  68. package/templates/react-component/examples/index.html +0 -17
  69. package/templates/react-component/examples/index.tsx +0 -62
  70. package/templates/react-component/lib/index.tsx +0 -157
  71. package/templates/react-component/package.json +0 -38
  72. package/templates/react-component/tsconfig.json +0 -27
package/five/index.d.ts CHANGED
@@ -2281,6 +2281,12 @@ export declare type ParseWorkOptions = {
2281
2281
  shortPath?: boolean;
2282
2282
  /** 资源使用 jsonp 方式发布 */
2283
2283
  jsonp?: boolean;
2284
+ traverseResource?: (resource: {
2285
+ origin: string;
2286
+ absolute: string;
2287
+ relative: string;
2288
+ type: "panorama" | "texture" | "model";
2289
+ }) => void;
2284
2290
  /** 调试 */
2285
2291
  debug?: boolean;
2286
2292
  /** 位姿 */