{"_id":"@clevercloud/warp10-cubism","_rev":"4-c8dc47464f7966e509360e2e57c930ec","name":"@clevercloud/warp10-cubism","dist-tags":{"latest":"5.1.0"},"versions":{"4.1.0":{"name":"@clevercloud/warp10-cubism","version":"4.1.0","author":{"name":"Arnaud Lefebvre","email":"arnaud.lefebvre@clever-cloud.com"},"license":"MIT","_id":"@clevercloud/warp10-cubism@4.1.0","maintainers":[{"name":"judu","email":"julien.durillon@clever-cloud.com"},{"name":"blackyoup","email":"a.lefebvre@outlook.fr"},{"name":"galimede","email":"mat.degand@outlook.fr"},{"name":"clevercloud-ci","email":"ci@clever-cloud.com"},{"name":"hsablonniere","email":"hubert.sablonniere@gmail.com"},{"name":"kannarfr","email":"alexanduval@wanadoo.fr"},{"name":"heleneamouzou","email":"helene.amouzou@clever-cloud.com"},{"name":"roberttran-cc","email":"robert.tran@clever-cloud.com"},{"name":"pdesoyres-cc","email":"pierre.de-soyres@clever-cloud.com"},{"name":"flsan","email":"florian.sanders@clever-cloud.com"},{"name":"miton18","email":"remi+npm@collignon-ducret.fr"}],"dist":{"shasum":"6bf7ac184eeb90c81a7b4b86ecf8c9fed1e88795","tarball":"https://registry.npmjs.org/@clevercloud/warp10-cubism/-/warp10-cubism-4.1.0.tgz","fileCount":48,"integrity":"sha512-HMuPVgEHmuXeYqoQF3J1sEpxvYWgPhlb8YqKSQE2RSEaQREHbPtgohRSmlrNdwmGtVtKUp25KfIdMjECy0DmCg==","signatures":[{"sig":"MEUCIQDBVsq8Wrb1S9Pz+RZ4a3Tq7QhiLR+SAaY082nS4Wx9agIgPhyITJDDiG4H0jcYu0XJ3LGQ+N6iRjVbI6OtUSTRbHM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":88955},"main":"src/metrics.js","gitHead":"4bc5cee541d9e5f7eb2dc9bb41a2c12232a4d722","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"hsablonniere","actor":{"name":"hsablonniere","type":"user","email":"hubert.sablonniere@gmail.com"},"email":"hubert.sablonniere@gmail.com"},"_npmVersion":"10.9.2","description":"Warp10 Cubism =============","directories":{},"_nodeVersion":"22.14.0","dependencies":{"d3":"3.x","jquery":"^3.3.1","lodash":"^4.17.4","baconjs":"0.7.94","@clevercloud/cubism":"2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"grunt":"^1.0.1","grunt-cli":"^1.2.0","grunt-contrib-jst":"^1.0.0","grunt-contrib-less":"^1.4.1"},"_npmOperationalInternal":{"tmp":"tmp/warp10-cubism_4.1.0_1750254679347_0.10297250754129106","host":"s3://npm-registry-packages-npm-production"}},"5.0.0":{"name":"@clevercloud/warp10-cubism","version":"5.0.0","author":{"name":"Arnaud Lefebvre","email":"arnaud.lefebvre@clever-cloud.com"},"license":"MIT","_id":"@clevercloud/warp10-cubism@5.0.0","maintainers":[{"name":"judu","email":"julien.durillon@clever-cloud.com"},{"name":"blackyoup","email":"a.lefebvre@outlook.fr"},{"name":"galimede","email":"mat.degand@outlook.fr"},{"name":"clevercloud-ci","email":"ci@clever-cloud.com"},{"name":"hsablonniere","email":"hubert.sablonniere@gmail.com"},{"name":"kannarfr","email":"alexanduval@wanadoo.fr"},{"name":"heleneamouzou","email":"helene.amouzou@clever-cloud.com"},{"name":"roberttran-cc","email":"robert.tran@clever-cloud.com"},{"name":"pdesoyres-cc","email":"pierre.de-soyres@clever-cloud.com"},{"name":"flsan","email":"florian.sanders@clever-cloud.com"},{"name":"miton18","email":"remi+npm@collignon-ducret.fr"}],"dist":{"shasum":"019e3a228312777567d9029cf1dc0970359a2913","tarball":"https://registry.npmjs.org/@clevercloud/warp10-cubism/-/warp10-cubism-5.0.0.tgz","fileCount":48,"integrity":"sha512-nFEzc43WYflJK2ZEA/6OWmieSCoo+nFig5b0rNkFoCUqwC+gT1hiEc9bL5csBYWHcJhWblpr4kDp9ruOj3F5Vg==","signatures":[{"sig":"MEUCIHtee32JZj1vGyuxmxkZSGIHwL/+0/1TcaEenMPLxKYPAiEAySRC9rifeX7Bb7puC7X3MfEyklDja30fcugpBZL/qaU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":89010},"main":"src/metrics.js","gitHead":"318c566cc86778467f86f7d4cd00aa1d1d80f9a2","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"hsablonniere","actor":{"name":"hsablonniere","type":"user","email":"hubert.sablonniere@gmail.com"},"email":"hubert.sablonniere@gmail.com"},"_npmVersion":"10.9.2","description":"Warp10 Cubism =============","directories":{},"_nodeVersion":"22.14.0","dependencies":{"d3":"3.x","jquery":"^3.3.1","lodash":"^4.17.4","baconjs":"0.7.94","@clevercloud/cubism":"2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"grunt":"^1.0.1","grunt-cli":"^1.2.0","grunt-contrib-jst":"^1.0.0","grunt-contrib-less":"^1.4.1"},"_npmOperationalInternal":{"tmp":"tmp/warp10-cubism_5.0.0_1750697572249_0.0838909682236868","host":"s3://npm-registry-packages-npm-production"}},"5.1.0":{"name":"@clevercloud/warp10-cubism","version":"5.1.0","author":{"name":"Arnaud Lefebvre","email":"arnaud.lefebvre@clever-cloud.com"},"license":"MIT","_id":"@clevercloud/warp10-cubism@5.1.0","maintainers":[{"name":"judu","email":"julien.durillon@clever-cloud.com"},{"name":"blackyoup","email":"a.lefebvre@outlook.fr"},{"name":"galimede","email":"mat.degand@outlook.fr"},{"name":"clevercloud-ci","email":"ci@clever-cloud.com"},{"name":"hsablonniere","email":"hubert.sablonniere@gmail.com"},{"name":"kannarfr","email":"alexanduval@wanadoo.fr"},{"name":"heleneamouzou","email":"helene.amouzou@clever-cloud.com"},{"name":"roberttran-cc","email":"robert.tran@clever-cloud.com"},{"name":"pdesoyres-cc","email":"pierre.de-soyres@clever-cloud.com"},{"name":"flsan","email":"florian.sanders@clever-cloud.com"},{"name":"miton18","email":"remi+npm@collignon-ducret.fr"}],"dist":{"shasum":"5a19143c13e53b998c20f4620b09a5ff109c47f3","tarball":"https://registry.npmjs.org/@clevercloud/warp10-cubism/-/warp10-cubism-5.1.0.tgz","fileCount":48,"integrity":"sha512-bgv3EW7qb0nnJjNcJwOOXwEqGb8WsYgqhzOdVlGSiyOE09Qm4zF/s3v4bm4AG3zL+E0XQivvP/rtGD59OtQiBQ==","signatures":[{"sig":"MEUCIQCnyY5y4JdRghMgrk5Gj/zesh2jLM/IzuTKdiwovr8BTgIgHrGz6Nj1bfryqau1l+3QrSqK8yVyhumCjeYrp/sEOCo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":89015},"main":"src/metrics.js","gitHead":"8878504529b9d3c1848f640e902f03bd06094281","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"hsablonniere","actor":{"name":"hsablonniere","type":"user","email":"hubert.sablonniere@gmail.com"},"email":"hubert.sablonniere@gmail.com"},"_npmVersion":"10.9.2","description":"Warp10 Cubism =============","directories":{},"_nodeVersion":"22.14.0","dependencies":{"d3":"^3.5.17","jquery":"^3.3.1","lodash":"^4.17.4","baconjs":"0.7.94","@clevercloud/cubism":"^2.1.0"},"_hasShrinkwrap":false,"devDependencies":{"grunt":"^1.0.1","grunt-cli":"^1.2.0","grunt-contrib-jst":"^1.0.0","grunt-contrib-less":"^1.4.1"},"_npmOperationalInternal":{"tmp":"tmp/warp10-cubism_5.1.0_1750766652314_0.7055700613008071","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2025-06-18T13:51:19.209Z","modified":"2026-07-03T15:07:51.836Z","4.1.0":"2025-06-18T13:51:19.541Z","5.0.0":"2025-06-23T16:52:52.491Z","5.1.0":"2025-06-24T12:04:12.497Z"},"author":{"name":"Arnaud Lefebvre","email":"arnaud.lefebvre@clever-cloud.com"},"license":"MIT","description":"Warp10 Cubism =============","maintainers":[{"email":"julien.durillon@clever-cloud.com","name":"judu"},{"email":"a.lefebvre@outlook.fr","name":"blackyoup"},{"email":"mat.degand@outlook.fr","name":"galimede"},{"email":"ci@clever-cloud.com","name":"clevercloud-ci"},{"email":"hubert.sablonniere@gmail.com","name":"hsablonniere"},{"email":"alexanduval@wanadoo.fr","name":"kannarfr"},{"email":"helene.amouzou@clever-cloud.com","name":"heleneamouzou"},{"email":"robert.tran@clever-cloud.com","name":"roberttran-cc"},{"email":"pierre.de-soyres@clever-cloud.com","name":"pdesoyres-cc"},{"email":"florian.sanders@clever-cloud.com","name":"flsan"},{"email":"remi+npm@collignon-ducret.fr","name":"miton18"},{"email":"quentin.adam@waxzce.org","name":"waxzce"}],"readme":"Warp10 Cubism\n=============\n\nWarp10 Cubism is a [Warp10](www.warp10.io) graphical plugin to display data using [Cubism](https://square.github.io/cubism/)\n\nWhile it's not yet quite ready and mostly [Clever Cloud](https://www.clever-cloud.com/) oriented for now,\nit should be usuable if you want to display some Geo time series coming from Warp10.\n\nThis plugin uses the `Mobius` interface of Warp10 through `Websocket` to live stream the points.\n\nThis module relies heavly on [Bacon.js](https://baconjs.github.io/) to receive from / send data to the module.\n\n## Build and use\n\nYou can build this module (LESS and JST) by using grunt.\n\nYou can then require this module using webpack or any other tool.\n\n## API\n\nThe module is a function accepting an object:\n\n- `$container`: A `JQuery` object where the module will live with a `<div class=\"metrics-overview\"></div>` in it\n- `s_token`: A Bacon.js property with a `read` token for Warp10\n- `s_instances`: A Bacon.js property with an array of Clever Cloud instances\n- `s_requestUnload`: A Bacon.js stream which is used to stop actions when an event is received (used with `.takeUntil()`)\n- `app`: A Clever Cloud application object\n- `owner`: A Clever Cloud owner object (user or organization) which own the application\n- `b_inputEvents`: A Bacon.js bus used to send events to the module\n- `b_outputEvents`: A Bacon.js bus used to receive events from the module\n- `Translations`: A function `(key: string) -> string` that returns the translation corresponding to the given key\n\n\n## Events\n\nIt's an object of the form: `Object<T>{type: string, data: T}` where `T` can be anything (only used in `CHANGE_VIEW` for now)\n\n### Events to send to the module\n\n- `PAGE_READY`: To send when the page is ready, no data (mandatory)\n- `PAGE_RESIZE_START`: To send when the page is resizing. It will show a loader (optional)\n- `PAGE_RESIZE_END`: To send when the page resizing is done. It will redraw cubism and fetch missing points (optional)\n\n### Events received from the module\n\n- `CHANGE_VIEW`: This event is most likely not used unless you add other views (like it's done in the Clever Cloud console).\nYou will receive the new view to show, which may be `GLOBAL` (string) here. When received, you need to re-instanciate the $Metrics module.\n\n## Example\n\n```javascript\nconst state = $Metrics({...});\n$Metrics.start(state);\n```\n","readmeFilename":"README.md"}