debian/0000755000000000000000000000000011640005356007166 5ustar debian/source/0000755000000000000000000000000011410314577010471 5ustar debian/source/format0000644000000000000000000000001411410314577011677 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000054311640004704011036 0ustar flotr (0.2.1~r301-1) unstable; urgency=low * Pull from upstream SVN repository * Upgrade to Standards-Version 3.9.2 (no changes) -- Carlo Segre Sun, 25 Sep 2011 23:52:15 -0500 flotr (0.2.1~r163-1) unstable; urgency=low * Initial release (Closes: #586938) -- Carlo Segre Wed, 23 Jun 2010 00:19:46 -0500 debian/compat0000644000000000000000000000000211410314577010367 0ustar 7 debian/canvastext.txt0000644000000000000000000000332011410432037012100 0ustar Primitive Text Functions for the HTML5 Element The element provides the browser's javascript with a two dimensional drawing area. It is a simple path/stroke-fill model but provides the primitives necessary for making sophisticated graphical presentations. And you will need to be sophisticated with your grpahical presentation because you won't be using any printed words or numbers. What could have been the holy grail of javascript to user communication was turned into a mime by the omission of text. Fortunately the 1960s has come to the rescue. A. V. Hershey created a set of simple vector fonts for pen plotters which were released by the US National Institute of Standards (NIST). The code presented here encodes the printable 7-bit ASCII characters in a javascript file with a handful of functions to add text operations to the canvas element. Documentation In a nutshell the following methods are added to your canvas context: ctx.drawText = function(font,size,x,y,text) Draw text in the specified font and size at the position (baseline). Font is ignored for now, there is only one. The width of the line is set automatically from the font size. The ctx.strokeStyle is used. ctx.measureText = function(font,size,text) Return the width of the text if it were drawn with the current settings. ctx.fontAscent = function(font,size) This is the ascent from the baseline. It is taller than the capital letters. It sort of encompasses the ascent and half the leading. ctx.fontDescent = function(font,size) Similar. ctx.drawTextRight = function(font,size,x,y,text) Just for lazy programmers. ctx.drawTextCenter = function(font,size,x,y,text) Also for lazy programmers. debian/libjs-flotr.examples0000644000000000000000000000001311410431145013141 0ustar examples/* debian/libjs-flotr.docs0000644000000000000000000000007111410432703012260 0ustar readme.txt debian/canvastext.txt debian/canvas2image.txt debian/libjs-flotr.install0000644000000000000000000000004111410774132013000 0ustar *.js /usr/share/javascript/flotr debian/canvas2image.txt0000644000000000000000000000344511410432603012267 0ustar Documentation on canvas2image may be found at http://www.nihilogic.dk/labs/canvas2image/ This is a small library that lets you easily save a HTML5 canvas element as an imagefile. Files needed: canvas2image.js, base64.js Using the HTML5 canvas element, you can create all sorts of cool graphics client-side on the fly using Javascript. However, the canvas image cannot (in all browsers) simply be saved to disk as any other image. Luckily there is a neat function on the the canvas object called toDataURL(). This functions encodes the image data as a base64 encoded PNG file and returns it as a data: URI. The following functions are provided: /* * Canvas2Image.saveAsXXXX = function(oCanvasElement, bReturnImgElement, iWidth, iHeight) { ... } */ var oCanvas = document.getElementById("thecanvas"); Canvas2Image.saveAsPNG(oCanvas); // will prompt the user to save the image as PNG. Canvas2Image.saveAsJPEG(oCanvas); // will prompt the user to save the image as JPEG. // Only supported by Firefox. Canvas2Image.saveAsBMP(oCanvas); // will prompt the user to save the image as BMP. // returns an element containing the converted PNG image var oImgPNG = Canvas2Image.saveAsPNG(oCanvas, true); // returns an element containing the converted JPEG image (Only spported by Firefox) var oImgJPEG = Canvas2Image.saveAsJPEG(oCanvas, true); // returns an element containing the converted BMP image var oImgBMP = Canvas2Image.saveAsBMP(oCanvas, true); // all the functions also takes width and height arguments. // These can be used to scale the resulting image: // saves a PNG image scaled to 100x100 Canvas2Image.saveAsPNG(oCanvas, false, 100, 100); debian/watch0000644000000000000000000000037111410436366010224 0ustar version=3 opts=\ uversionmangle=s/^/0./,\ downloadurlmangle=s|.*[?]name=(.*?)&.*|http://flotr.googlecode.com/files/$1|,\ filenamemangle=s|[^/]+[?]name=(.*?)&.*|$1| \ http://code.google.com/p/flotr/downloads/detail[?]name=prototype.flotr-(.*).zip&.* debian/README.Debian0000644000000000000000000000222311411001443011213 0ustar flotr for Debian ---------------- This package contains the flotr libraries and three additional libraries which are required for flotr to function: canvas2image.js, canvastext.js, and base64.js. These last have been modified from the original by the flotr authors. In addition, flotr requires that the libjs-prototype and libjs-excanvas packages be installed. In order to make use of flotr in your html, include the following lines in the html header: . . . . . . You may use the compressed library, flotr-min.js in place of flotr.js. -- Carlo Segre Wed, 23 Jun 2010 00:19:46 -0500 debian/copyright0000644000000000000000000000657511410423335011132 0ustar This work was packaged for Debian by: Carlo Segre on Wed, 23 Jun 2010 00:19:46 -0500 It was downloaded from: http://code.google.com/p/flotr/ Files: flotr.js, examples/* Upstream Authors: Bas Wenneker Fabien Ménager Copyright (c) 2008 Bas Wenneker License: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Files: canvas2image.js Upstream Authors: Jacob Seidelin Fabien Ménager(modifications) Copyright (c) 2008 Jacob Seidelin License: MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Files: canvastext.js Upstream Authors: Jim Studt Fabien Ménager(modifications) Copyright: None License: Public Domain This code is released to the public domain. Do with it as you will. Jim Studt, 2007. Files: base64.js Upstream Authors: Masanao Izumo Fabien Ménager(modifications) Copyright (c) 1999 Masanao Izumo License: Public Domain This library is free. You can redistribute it and/or modify it. The Debian packaging is: Copyright (C) 2010 Carlo Segre and is licensed under the GPL version 2, see "/usr/share/common-licenses/GPL-2". debian/control0000644000000000000000000000216711640002370010570 0ustar Source: flotr Section: web Priority: extra Maintainer: Carlo Segre Build-Depends: debhelper (>= 7.0.50~) Standards-Version: 3.9.2 Homepage: http://code.google.com/p/flotr/ Package: libjs-flotr Architecture: all Depends: ${misc:Depends}, libjs-prototype (>= 1.6.0.2), libjs-excanvas Description: plotting library for the Prototype Framework Flotr is a plotting library which enables you to draw appealing graphs in most modern browsers with an easy to learn syntax. . The currently supported chart types are : . * Histograms (vertical, horizontal, stacked bars) * Lines (filled or not) * Points (scatter plots) * Pie chart * Candle sticks (and barcharts) * Radar chart * Markers (positioned text) . It comes with great features like legend support, negative value support, mouse tracking, selection support, zoom support, event hooks, css styling support, text included into the canvas, rotated labels, color gradients, graph title and subtitle, spreadsheet, CSV data download and much more. . The flotr library is distributed with the canvas2image, canvastext, and base64 JavaScript libraries. debian/rules0000755000000000000000000000013711410314651010243 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@