Giter VIP home page Giter VIP logo

cumulus's Introduction

Cumulus

Main

About

This is a Delphi port of the infamous "WP-Cumulus" WordPress plugin, originally an ActionScript flash project written by Roy Tanck.

It allows you to load your data from an XML document, displaying contained tags and/or categories by placing them on a rotating sphere, and allowing these tags to be clicked.

API

Methods

Names Description
Create() Creates and initializes a TTagCloud instance
Initialize() Initializes the TTagCloud instance with XML data

Properties

Names Description
Width Width of the Flash tag cloud
Height Height of the Flash tag cloud
TagColor Color of the tags
TagColor2
HighColor
BackgroundColor Background color
TransparentMode Use transparent mode
RotationSpeed Rotation speed
EvenlyDistributedTags Distribute tags evenly on sphere
DisplayMode Whether to display tags, categories, or both

Events

Names Description
OnNavigateToURL Occurs when the user clicks a tag that has a URL

Usage

procedure TfrmCumulus.FormShow(Sender: TObject);
var
  MyXML : IXMLDocument;
begin
  TagCloud := TTagCloud.Create(Self);
  TagCloud.Parent := Self;
  TagCloud.OnNavigateToURL := NavigateToURLHandler;

  TagCloud.Align := alClient;

  TagCloud.TagsColor := $ffffff;
  TagCloud.BackgroundColor := $333333;
  TagCloud.TransparentMode := False;
  TagCloud.RotationSpeed := 100;
  TagCloud.EvenlyDistributedTags := True;
  TagCloud.DisplayMode := dmTags;

  try
    MyXML := LoadXMLDocument('tagcloud.xml');
    TagCloud.Initialize(MyXML);
  except
    ShowMessage('Failed while attempting to load XML file.');
  end;
end;

Caveat

Having entities defined in XML files should be avoided. Since while they are being loaded, they will cause an exception to be raised of class type EDOMParseError, with the message Reference to undefined entity xyz.

License

Cumulus is licensed under the MIT License - see the LICENSE-DELPHI file for details.

cumulus's People

Stargazers

 avatar

Watchers

 avatar

Forkers

khongten001 rezox

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.