the editable site (validation-lab)

This commit is contained in:
kpgarrod committed 2026-11-21 08:03:55 +01:00
commit 3ac81d5a52
13454 files changed
+2227005

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t||self).terraDraw={})}(this,function(t){function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i<e;i++)n[i]=t[i];return n}function i(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,d(n.key),n)}}function n(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function o(t,i){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,i){if(t){if("string"==typeof t)return e(t,i);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e(t,i):void 0}}(t))||i&&t&&"number"==typeof t.length){n&&(t=n);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)({}).hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},r.apply(null,arguments)}function s(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,a(t,e)}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function d(t){var e=function(t){if("object"!=typeof t||!t)return t;var e;if("undefined"!=typeof Symbol&&void 0!==(e=t[Symbol.toPrimitive])){var i=e.call(t,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}var u,h="draw",l="edit",c="deleteCoordinate",p="insertMidpoint";!function(t){t.Commit="commit",t.Provisional="provisional",t.Finish="finish"}(u||(u={}));var g="https://raw.githubusercontent.com/JamesLMilner/terra-draw/refs/heads/main/assets/markers/marker-blue.png",y={SELECTED:"selected",MID_POINT:"midPoint",SELECTION_POINT_FEATURE_ID:"selectionPointFeatureId",SELECTION_POINT:"selectionPoint"},f={MODE:"mode",CURRENTLY_DRAWING:"currentlyDrawing",EDITED:"edited",CLOSING_POINT:"closingPoint",SNAPPING_POINT:"snappingPoint",COORDINATE_POINT:"coordinatePoint",COORDINATE_POINT_FEATURE_ID:"coordinatePointFeatureId",COORDINATE_POINT_IDS:"coordinatePointIds",PROVISIONAL_COORDINATE_COUNT:"provisionalCoordinateCount",COMMITTED_COORDINATE_COUNT:"committedCoordinateCount",MARKER:"marker"},v=10,m=20,C=30;function P(t){return Boolean(t&&"object"==typeof t&&null!==t&&!Array.isArray(t))}function I(t){return Boolean(t&&"object"==typeof t&&"properties"in t&&"object"==typeof t.properties&&null!==t.properties&&"mode"in t.properties)}function S(t){return!!function(t){return"number"==typeof t&&!isNaN(new Date(t).valueOf())}(t)}var F,O="Feature is not a Polygon",w="Feature mode property does not match the mode being added to",x=function(t){return"number"==typeof t&&t>=0&&Number.isFinite(t)},M=function(t){return"boolean"==typeof t},E=function(t){return null===t},D=function(t){return"object"==typeof t&&null!==t},k=function(t){return"string"==typeof t&&t.length>0},b=function(t){return"click-move"===t||"click-drag"===t||"click-move-or-drag"===t};!function(t){t.Drawing="drawing",t.Select="select",t.Static="static",t.Render="render"}(F||(F={}));var N={rightClick:!0,contextMenu:!1,leftClick:!0,onDragStart:!0,onDrag:!0,onDragEnd:!0},T=/*#__PURE__*/function(){function t(t,e){void 0===e&&(e=!1),this._state="unregistered",this._styles={},this.pointerEvents=N,this.behaviors=[],this.validate=void 0,this.pointerDistance=40,this.coordinatePrecision=void 0,this.undoRedoMaxStackSize=void 0,this.onStyleChange=void 0,this.store=void 0,this.projection="web-mercator",this.setDoubleClickToZoom=void 0,this.unproject=void 0,this.project=void 0,this.setCursor=void 0,this.isInitialUpdate=!1,this.type=F.Drawing,this.mode="base",e?this.isInitialUpdate=!0:this.updateOptions(r({},t))}var e=t.prototype;return e.registerBehaviors=function(t){},e.updateOptions=function(t){D(null==t?void 0:t.styles)&&(this.styles=r({},this._styles,t.styles)),x(null==t?void 0:t.pointerDistance)&&(this.pointerDistance=t.pointerDistance),"function"==typeof(null==t?void 0:t.validation)&&(this.validate=t.validation),k(null==t?void 0:t.projection)&&(this.projection=t.projection),D(null==t?void 0:t.pointerEvents)&&(this.pointerEvents=t.pointerEvents),k(null==t?void 0:t.modeName)&&!0===this.isInitialUpdate&&(this.mode=t.modeName),this.isInitialUpdate=!1},e.allowPointerEvent=function(t,e){return"boolean"==typeof t?t:"function"!=typeof t||t(e)},e.setDrawing=function(){if("started"!==this._state)throw new Error("Mode must beLine truncated
//# sourceMappingURL=terra-draw.umd.js.map