Visualisierungsmodul für SuperX http://www.superx-projekt.de/doku/viz_modul/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3 lines
104 KiB

// @observablehq/plot v0.4.3 Copyright 2020-2022 Observable, Inc.
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("d3@7.4.4/dist/d3.min.js")):"function"==typeof define&&define.amd?define(["exports","d3@7.4.4/dist/d3.min.js"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).Plot=t.Plot||{},t.d3)}(this,(function(t,e){"use strict";function n(t,e){if(t instanceof Date||(t=new Date(+t)),isNaN(t))return"function"==typeof e?e(t):e;const n=t.getUTCHours(),o=t.getUTCMinutes(),i=t.getUTCSeconds(),a=t.getUTCMilliseconds();return`${s=t.getUTCFullYear(),s<0?`-${r(-s,6)}`:s>9999?`+${r(s,6)}`:r(s,4)}-${r(t.getUTCMonth()+1,2)}-${r(t.getUTCDate(),2)}${n||o||i||a?`T${r(n,2)}:${r(o,2)}${i||a?`:${r(i,2)}${a?`.${r(a,3)}`:""}`:""}Z`:""}`;var s}function r(t,e){return`${t}`.padStart(e,"0")}const o=/^(?:[-+]\d{2})?\d{4}(?:-\d{2}(?:-\d{2})?)?(?:T\d{2}:\d{2}(?::\d{2}(?:\.\d{3})?)?(?:Z|[-+]\d{2}:?\d{2})?)?$/;function i(t,e){return o.test(t+="")?new Date(t):"function"==typeof e?e(t):e}const a=Object.getPrototypeOf(Uint8Array),s=Object.prototype.toString;function l(t,e,n){const r=void 0===n?Array:n,o=typeof e;return"string"===o?r.from(t,c(e)):"function"===o?r.from(t,e):"number"===o||e instanceof Date||"boolean"===o?r.from(t,v(e)):e&&"function"==typeof e.transform?M(e.transform(t),n):M(e,n)}const c=t=>e=>e[t],u=(t,e)=>e,f={transform:t=>t},d=()=>1,h=t=>null==t?t:`${t}`,p=t=>null==t?t:+t,m=t=>null==t?t:!!t,y=t=>t?t[0]:void 0,g=t=>t?t[1]:void 0,v=t=>()=>t;function x(t){const n=+`${t}`.slice(1)/100;return(t,r)=>e.quantile(t,n,r)}function w(t,e){return void 0===t&&(t=e),null===t?[void 0,"none"]:V(t)?[void 0,t]:[t,void 0]}function b(t,e){return void 0===t&&(t=e),null===t||"number"==typeof t?[void 0,t]:[t,void 0]}function k(t,e,n){if(null!=t)return $(t,e,n)}function $(t,e,n){const r=`${t}`.toLowerCase();if(!n.includes(r))throw new Error(`invalid ${e}: ${t}`);return r}function M(t,e){return null==t?t:void 0===e?t instanceof Array||t instanceof a?t:Array.from(t):t instanceof e?t:e.from(t)}function L(t){return t?.toString===s}function A(t){return L(t)&&(void 0!==t.type||void 0!==t.domain)}function R(t){return L(t)&&"function"!=typeof t.transform}function B(t,e,n,r=f){return void 0===e&&void 0===n?(e=0,n=void 0===t?r:t):void 0===e?e=void 0===t?0:t:void 0===n&&(n=void 0===t?0:t),[e,n]}function O(t,e){return void 0===t&&void 0===e?[y,g]:[t,e]}function C({z:t,fill:e,stroke:n}={}){return void 0===t&&([t]=w(e)),void 0===t&&([t]=w(n)),t}function S(t){return Uint32Array.from(t,u)}function z(t,e){return S(t).filter((n=>e(t[n],n,t)))}function N(t,e){return Array.from(e,(e=>t[e]))}function E(t){return null!==t&&"object"==typeof t?t.valueOf():t}function T(t,e){if(void 0!==e[t])return e[t];switch(t){case"x1":case"x2":t="x";break;case"y1":case"y2":t="y"}return e[t]}function D(t){let e;return[{transform:()=>e,label:Y(t)},t=>e=t]}function W(t){return null==t?[t]:D(t)}function Y(t,e){return"string"==typeof t?t:t&&void 0!==t.label?t.label:e}function P(t,e){return{transform(n){const r=t.transform(n),o=e.transform(n);return j(r)||j(o)?Array.from(r,((t,e)=>new Date((+r[e]+ +o[e])/2))):Float64Array.from(r,((t,e)=>(+r[e]+ +o[e])/2))},label:t.label}}function q(t){return void 0===t||R(t)?t:{value:t}}function _(t){for(const e of t)if(null!=e)return"object"!=typeof e||e instanceof Date}function F(t){for(const e of t){if(null==e)continue;const t=typeof e;return"string"===t||"boolean"===t}}function j(t){for(const e of t)if(null!=e)return e instanceof Date}function I(t){for(const e of t)if(null!=e)return"string"==typeof e&&isNaN(e)&&i(e)}function G(t){for(const e of t)if(null!=e&&""!==e)return"string"==typeof e&&!isNaN(e)}function X(t,e){for(const n of t)if(null!=n)return e(n)}function U(t,e){for(const n of t)if(null!=n&&!e(n))return!1;return!0}function V(t){return"string"==typeof t&&("none"===(t=t.toLowerCase().trim())||"currentcolor"===t||t.startsWith("url(")&&t.endsWith(")")||t.startsWith("var(")&&t.endsWith(")")||null!==e.color(t))}function H(t){return null==t||Z(t)}function Z(t){return/^\s*none\s*$/i.test(t)}const Q=new Map([["asterisk",e.symbolAsterisk],["circle",e.symbolCircle],["cross",e.symbolCross