0.0.8 • Published 6 months ago

@senx/discovery-plugin-marauder v0.0.8

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
6 months ago

Marauder's map Discovery plugin

Addon for Discovery that adds a map of Marauder's map.

Usage

<head>
  <title>Test</title>
</head>
<body>
<discovery-dashboard url="https://warp.senx.io/api/v0/exec" dashboard-title="Test">
{
  'title' 'Test'
  'description' 'Dashboard test'
  'tiles' [
    {
      'title' 'test'
      'x' 0 'y' 0 'w' 12 'h' 4
      'type' 'marauder'
      'macro' <%
        [ 1 4 <%
          NEWGTS 'g' STORE
            1 100 <%
              'ts' STORE $g $ts RAND + STU * NOW + RAND 10.0 * RAND 10.0 * NaN RAND ADDVALUE DROP
            %> FOR
            $g
        %> F FOR ] 'data' STORE
        {
          'data' $data
          'globalParams' {
            'map' {
              'step' 1 s
              'delay' 1000 // ms
              'mapType' 'CARTODB'
            }
          }
        }
      %>
    }
  ]
}
</discovery-dashboard>
<!-- core -->
<script nomodule src="https://unpkg.com/@senx/discovery-widgets/dist/discovery/discovery.js"></script>
<script type="module" src="https://unpkg.com/@senx/discovery-widgets/dist/discovery/discovery.esm.js"></script>

<!-- plugins -->
<script type="module" src="https://unpkg.com/@senx/discovery-plugin-marauder/dist/discovery-plugin-marauder.esm.js"></script>
<script nomodule src="https://unpkg.com/@senx/discovery-plugin-marauder/dist/discovery-plugin-marauder.js"></script>

</body>
</html>