web3dlink 2.1.14 → 2.1.15

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/web3dlink.js CHANGED
@@ -1,5 +1,5 @@
1
1
  //#region \0rolldown/runtime.js
2
- var __commonJSMin = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), name = "web3dlink", version$1 = "2.1.14", description = "LarkSR / ZS 推流 GameAPI SDK", type = "module", main = "./dist/web3dlink.js", module$1 = "./dist/web3dlink.js", exports$1 = { ".": {
2
+ var __commonJSMin = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), name = "web3dlink", version$1 = "2.1.15", description = "LarkSR / ZS 推流 GameAPI SDK", type = "module", main = "./dist/web3dlink.js", module$1 = "./dist/web3dlink.js", exports$1 = { ".": {
3
3
  import: "./dist/web3dlink.js",
4
4
  default: "./dist/web3dlink.js"
5
5
  } }, files = ["dist"], scripts = {
@@ -2143,6 +2143,58 @@ function sediment(e) {
2143
2143
  normalized: n
2144
2144
  };
2145
2145
  }
2146
+ function materialParams(e = {}) {
2147
+ let t = [], n = { ...e };
2148
+ return t.push(...validateRequiredString({
2149
+ normalized: n,
2150
+ field: "key",
2151
+ value: e.key
2152
+ })), t.push(...validateOptionalNumber({
2153
+ normalized: n,
2154
+ field: "heightOffset",
2155
+ value: e.heightOffset,
2156
+ defaultValue: 0
2157
+ })), t.push(...validateOptionalNumber({
2158
+ normalized: n,
2159
+ field: "resolutionScale",
2160
+ value: e.resolutionScale,
2161
+ defaultValue: .2,
2162
+ min: 0
2163
+ })), t.push(...validateOptionalNumber({
2164
+ normalized: n,
2165
+ field: "cameraLODDistance",
2166
+ value: e.cameraLODDistance,
2167
+ defaultValue: 4e4,
2168
+ min: 0
2169
+ })), t.push(...validateOptionalNumber({
2170
+ normalized: n,
2171
+ field: "cameraLODNum",
2172
+ value: e.cameraLODNum,
2173
+ defaultValue: 4,
2174
+ min: 0
2175
+ })), t.push(...validateOptionalNumber({
2176
+ normalized: n,
2177
+ field: "cameraRemapMaxOffest",
2178
+ value: e.cameraRemapMaxOffest,
2179
+ defaultValue: 40,
2180
+ min: 0
2181
+ })), t.push(...validateOptionalNumber({
2182
+ normalized: n,
2183
+ field: "flowAmplitude",
2184
+ value: e.flowAmplitude,
2185
+ defaultValue: .5,
2186
+ min: 0
2187
+ })), t.push(...validateOptionalNumber({
2188
+ normalized: n,
2189
+ field: "flowFrequency",
2190
+ value: e.flowFrequency,
2191
+ defaultValue: .5,
2192
+ min: 0
2193
+ })), {
2194
+ errors: t,
2195
+ normalized: n
2196
+ };
2197
+ }
2146
2198
  function close$1(e) {
2147
2199
  let t = [], n = { ...e };
2148
2200
  return t.push(...validateRequiredString({
@@ -2161,6 +2213,7 @@ var validator$6 = {
2161
2213
  waterFlow,
2162
2214
  waterDepth,
2163
2215
  sediment,
2216
+ materialParams,
2164
2217
  close: close$1
2165
2218
  }, HydrodynamicForceApi = class {
2166
2219
  constructor(e) {