Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@steelbreeze/landscape

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@steelbreeze/landscape - npm Package Compare versions

Comparing version 3.8.5 to 3.8.6

2

docs/dist/landscape.min.js

@@ -1,1 +0,1 @@

var landscape;(()=>{"use strict";var e={};(()=>{var l=e;Object.defineProperty(l,"__esModule",{value:!0}),l.merge=l.table=void 0,l.table=(e,l,s,r,p=Math.max)=>{const c=a(e,s),n=l.x.map(((e,l)=>r?p(...c.map((e=>e[l].length))):1));return o(c,c.map((e=>r?1:p(...e.map((e=>e.length))))),l.x[0].map(((e,a)=>o(l.x,n,l.y[0].map((()=>t("axis xy"))),(e=>t(`axis x ${e[a].key}`,e[a].value))))),((e,a,s,r)=>o(e,n,l.y[r].map((e=>t(`axis y ${e.key}`,e.value))),((e,l,t)=>({...e[Math.floor(e.length*(s+t)/(l*a))]})))))},l.merge=(e,l,a)=>{let s;p(e,((t,o)=>{p(t,((p,c)=>{a&&o&&r(s=e[o-1][c],p,"cols")?(s.rows+=p.rows,t.splice(c,1)):l&&c&&r(s=t[c-1],p,"rows")&&(s.cols+=p.cols,t.splice(c,1))}))}))};const a=(e,l)=>e.map((e=>e.map((e=>e.length?s(e,l):[t("empty")])))),s=(e,l)=>{const a=[];return e.forEach(((s,t)=>{const o=l(s,t,e);a.some((e=>r(e,o)))||a.push({...o,rows:1,cols:1})})),a},t=(e,l="",a="")=>({key:a,value:l,style:e,rows:1,cols:1}),o=(e,l,a,s)=>{for(let t=e.length,o=0;o<t;++o)for(let t=l[o],r=0;r<t;++r)a.push(s(e[o],t,r,o));return a},r=(e,l,a)=>e?.value===l.value&&e.style===l.style&&(!a||e[a]===l[a]),p=(e,l)=>{for(let a=e.length;a--;)l(e[a],a)}})(),landscape=e})();
var landscape;(()=>{"use strict";var e={};(()=>{var l=e;Object.defineProperty(l,"__esModule",{value:!0}),l.merge=l.table=void 0,l.table=(e,l,o,r,p=Math.max)=>{const c=e.map((e=>e.map((e=>e.length?a(e,o):[s("empty")])))),n=l.x.map(((e,l)=>r?p(...c.map((e=>e[l].length))):1));return t(c,c.map((e=>r?1:p(...e.map((e=>e.length))))),l.x[0].map(((e,a)=>t(l.x,n,l.y[0].map((()=>s("axis xy"))),(e=>s(`axis x ${e[a].key}`,e[a].value))))),((e,a,o,r)=>t(e,n,l.y[r].map((e=>s(`axis y ${e.key}`,e.value))),((e,l,s)=>({...e[Math.floor(e.length*(o+s)/(l*a))]})))))},l.merge=(e,l,a)=>{let s;r(e,((t,p)=>{r(t,((r,c)=>{a&&p&&o(s=e[p-1][c],r,"cols")?(s.rows+=r.rows,t.splice(c,1)):l&&c&&o(s=t[c-1],r,"rows")&&(s.cols+=r.cols,t.splice(c,1))}))}))};const a=(e,l)=>{const a=[];return e.forEach(((s,t)=>{const r=l(s,t,e);a.some((e=>o(e,r)))||a.push({...r,rows:1,cols:1})})),a},s=(e,l="",a="")=>({key:a,value:l,style:e,rows:1,cols:1}),t=(e,l,a,s)=>{for(let t=e.length,o=0;o<t;++o)for(let t=l[o],r=0;r<t;++r)a.push(s(e[o],t,r,o));return a},o=(e,l,a)=>e?.value===l.value&&e.style===l.style&&(!a||e[a]===l[a]),r=(e,l)=>{for(let a=e.length;a--;)l(e[a],a)}})(),landscape=e})();
import { Callback, FunctionVA, Pair } from '@steelbreeze/types';
import { Axes, Cube } from '@steelbreeze/pivot';
/** Styling information for rendering purposes. */
export interface Style {

@@ -9,2 +10,3 @@ /** The class name to use in the final table rendering. */

}
/** Table layout for rendering purposes. */
export interface Layout {

@@ -11,0 +13,0 @@ /** The number of rows to occupy. */

@@ -14,3 +14,3 @@ "use strict";

// transform the cube of rows into a cube of cells
const cells = transform(cube, getElement);
const cells = cube.map(slice => slice.map(table => table.length ? transform(table, getElement) : [cell('empty')]));
// calcuate the x splits required (y splits inlined below)

@@ -57,11 +57,6 @@ const xSplits = axes.x.map((_, iX) => onX ? method(...cells.map(row => row[iX].length)) : 1);

/**
* Transform a cube of rows into a cube of cells.
* @hidden
*/
const transform = (cube, getElement) => cube.map(row => row.map(table => table.length ? cells(table, getElement) : [cell('empty')]));
/**
* Transform an array of rows into an array of cells.
* @hidden
*/
const cells = (table, getElement) => {
const transform = (table, getElement) => {
const result = [];

@@ -68,0 +63,0 @@ table.forEach((row, index) => {

@@ -1,1 +0,1 @@

var landscape;(()=>{"use strict";var e={};(()=>{var l=e;Object.defineProperty(l,"__esModule",{value:!0}),l.merge=l.table=void 0,l.table=(e,l,s,r,p=Math.max)=>{const c=a(e,s),n=l.x.map(((e,l)=>r?p(...c.map((e=>e[l].length))):1));return o(c,c.map((e=>r?1:p(...e.map((e=>e.length))))),l.x[0].map(((e,a)=>o(l.x,n,l.y[0].map((()=>t("axis xy"))),(e=>t(`axis x ${e[a].key}`,e[a].value))))),((e,a,s,r)=>o(e,n,l.y[r].map((e=>t(`axis y ${e.key}`,e.value))),((e,l,t)=>({...e[Math.floor(e.length*(s+t)/(l*a))]})))))},l.merge=(e,l,a)=>{let s;p(e,((t,o)=>{p(t,((p,c)=>{a&&o&&r(s=e[o-1][c],p,"cols")?(s.rows+=p.rows,t.splice(c,1)):l&&c&&r(s=t[c-1],p,"rows")&&(s.cols+=p.cols,t.splice(c,1))}))}))};const a=(e,l)=>e.map((e=>e.map((e=>e.length?s(e,l):[t("empty")])))),s=(e,l)=>{const a=[];return e.forEach(((s,t)=>{const o=l(s,t,e);a.some((e=>r(e,o)))||a.push({...o,rows:1,cols:1})})),a},t=(e,l="",a="")=>({key:a,value:l,style:e,rows:1,cols:1}),o=(e,l,a,s)=>{for(let t=e.length,o=0;o<t;++o)for(let t=l[o],r=0;r<t;++r)a.push(s(e[o],t,r,o));return a},r=(e,l,a)=>e?.value===l.value&&e.style===l.style&&(!a||e[a]===l[a]),p=(e,l)=>{for(let a=e.length;a--;)l(e[a],a)}})(),landscape=e})();
var landscape;(()=>{"use strict";var e={};(()=>{var l=e;Object.defineProperty(l,"__esModule",{value:!0}),l.merge=l.table=void 0,l.table=(e,l,o,r,p=Math.max)=>{const c=e.map((e=>e.map((e=>e.length?a(e,o):[s("empty")])))),n=l.x.map(((e,l)=>r?p(...c.map((e=>e[l].length))):1));return t(c,c.map((e=>r?1:p(...e.map((e=>e.length))))),l.x[0].map(((e,a)=>t(l.x,n,l.y[0].map((()=>s("axis xy"))),(e=>s(`axis x ${e[a].key}`,e[a].value))))),((e,a,o,r)=>t(e,n,l.y[r].map((e=>s(`axis y ${e.key}`,e.value))),((e,l,s)=>({...e[Math.floor(e.length*(o+s)/(l*a))]})))))},l.merge=(e,l,a)=>{let s;r(e,((t,p)=>{r(t,((r,c)=>{a&&p&&o(s=e[p-1][c],r,"cols")?(s.rows+=r.rows,t.splice(c,1)):l&&c&&o(s=t[c-1],r,"rows")&&(s.cols+=r.cols,t.splice(c,1))}))}))};const a=(e,l)=>{const a=[];return e.forEach(((s,t)=>{const r=l(s,t,e);a.some((e=>o(e,r)))||a.push({...r,rows:1,cols:1})})),a},s=(e,l="",a="")=>({key:a,value:l,style:e,rows:1,cols:1}),t=(e,l,a,s)=>{for(let t=e.length,o=0;o<t;++o)for(let t=l[o],r=0;r<t;++r)a.push(s(e[o],t,r,o));return a},o=(e,l,a)=>e?.value===l.value&&e.style===l.style&&(!a||e[a]===l[a]),r=(e,l)=>{for(let a=e.length;a--;)l(e[a],a)}})(),landscape=e})();
{
"name": "@steelbreeze/landscape",
"version": "3.8.5",
"version": "3.8.6",
"description": "Landscape map viewpoint visualisation",

@@ -5,0 +5,0 @@ "main": "lib/node/index.js",

import { Callback, FunctionVA, Pair } from '@steelbreeze/types';
import { Axes, Cube } from '@steelbreeze/pivot';
/** Styling information for rendering purposes. */
export interface Style {

@@ -12,2 +13,3 @@ /** The class name to use in the final table rendering. */

/** Table layout for rendering purposes. */
export interface Layout {

@@ -37,3 +39,3 @@ /** The number of rows to occupy. */

// transform the cube of rows into a cube of cells
const cells = transform(cube, getElement);
const cells = cube.map(slice => slice.map(table => table.length ? transform(table, getElement) : [cell('empty')]));

@@ -87,13 +89,6 @@ // calcuate the x splits required (y splits inlined below)

/**
* Transform a cube of rows into a cube of cells.
* @hidden
*/
const transform = <TRow>(cube: Cube<TRow>, getElement: Callback<TRow, Element>): Cube<Cell> =>
cube.map(row => row.map(table => table.length ? cells(table, getElement) : [cell('empty')]));
/**
* Transform an array of rows into an array of cells.
* @hidden
*/
const cells = <TRow>(table: Array<TRow>, getElement: Callback<TRow, Element>): Array<Cell> => {
const transform = <TRow>(table: Array<TRow>, getElement: Callback<TRow, Element>): Array<Cell> => {
const result: Array<Cell> = [];

@@ -100,0 +95,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc