Skip to main content

Fanstatic packaging of D3 Word Cloud Layout

Project description

js.d3_cloud

Introduction

This library packages the D3 Word Cloud Layout for fanstatic.

This requires integration between your web framework and fanstatic, and making sure that the original resources (shipped in the resources directory in js.d3_cloud) are published to some URL. As a bonus, this library also packages up a minified version of the original JavaScript.

Packaging

The packaging is stored on GitHub at https://github.com/davidjb/js.d3_cloud. If you happen to come across a bug that corresponds to packaging, then please report it here. Pull requests are more than welcome if you’re fixing something yourself – the more help the better!

Any other bugs that relate to the library itself should be directed to the original developers.

Updating this package

This process requires installation of the package for development - the suggested method to do this is via the Buildout within this package:

cd js.d3_cloud
python boostrap.py
./bin/buildout

For minification of resources to succeed, you require a Java installation as this process uses the YUI Compressor library (via the minify and``yuicompressor`` Python packages).

In order to obtain a newer version of this library, do the following:

pushd js/d3_cloud/resources
wget https://github.com/iLanguage/d3-cloud/raw/master/src/d3.layout.cloud.js -O d3.layout.cloud.js
wget https://github.com/iLanguage/d3-cloud/raw/master/LICENSE -O LICENSE
popd
#Edit changelog, setup.py for versions, etc
python setup.py minify_d3_cloud
git commit -a -m "Updated for release 1.0.1"
git push

If you’re doing this out in your own fork of the GitHub repository, then send through a pull request so everyone can benefit.

Usage

You can import d3_cloud from js.d3_cloud and need it where you want these resources to be included on a page:

>>> from js.d3_cloud import d3_cloud
>>> d3_cloud.need()

CHANGES

1.1.2 (2015-07-13)

1.0.1 (2012-12-21)

  • Initial release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

js.d3_cloud-1.1.2.zip (20.6 kB view details)

Uploaded Source

File details

Details for the file js.d3_cloud-1.1.2.zip.

File metadata

  • Download URL: js.d3_cloud-1.1.2.zip
  • Upload date:
  • Size: 20.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for js.d3_cloud-1.1.2.zip
Algorithm Hash digest
SHA256 68cdb327cf68bed7b7315f0fdd8872be8cee9b711850f682caa4357d09a49d33
MD5 6126cfd32a0aa287b269c119b826a3c9
BLAKE2b-256 7e9e09d74f152ec2cae24dd431702316478af0f0c9289251026431cb035f0253

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page