web3dlink 2.1.5 → 2.1.6

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
@@ -3140,6 +3140,28 @@ function getInfo(e = {}) {
3140
3140
  normalized: n
3141
3141
  };
3142
3142
  }
3143
+ function getFieldRange(e = {}) {
3144
+ let t = [], n = { ...e };
3145
+ return t.push(...validateRequiredString({
3146
+ normalized: n,
3147
+ field: "id",
3148
+ value: e.id
3149
+ })), t.push(...validateRequiredString({
3150
+ normalized: n,
3151
+ field: "fieldName",
3152
+ value: e.fieldName
3153
+ })), t.push(...validateOptionalArray({
3154
+ normalized: n,
3155
+ field: "indexList",
3156
+ value: e.indexList,
3157
+ defaultValue: []
3158
+ })), Array.isArray(n.indexList) && (n.indexList.forEach((e, n) => {
3159
+ Number.isFinite(Number(e)) || t.push(`[indexList[${n}]]必须是数字`);
3160
+ }), n.indexList = n.indexList.map(Number)), {
3161
+ errors: t,
3162
+ normalized: n
3163
+ };
3164
+ }
3143
3165
  function create(e = {}) {
3144
3166
  let t = [], n = { ...e };
3145
3167
  return t.push(...validateRequiredString({
@@ -3350,6 +3372,7 @@ function offMouseClick(e = {}) {
3350
3372
  //#region ../api/vtk/vtkApi.js
3351
3373
  var validator = {
3352
3374
  getInfo,
3375
+ getFieldRange,
3353
3376
  create,
3354
3377
  close,
3355
3378
  allClose,