PHP Classes

File: demos/001.php

Recommend this page to a friend!
  Classes of Tom Schaefer   d3Raphael   demos/001.php   Download  
File: demos/001.php
Role: Example script
Content type: text/plain
Description: first steps
Class: d3Raphael
Generate JavaScript to access RaphaelJS library
Author: By
Last change:
Date: 11 years ago
Size: 380 bytes
 

Contents

Class file image Download
<?php

include_once("../d3.classes.inc.php"); // download the required d3 package
include_once("../raphael.class.inc.php");


$r = raphael("holder")->createVar("r");
stack()->add($r)->line();

$f = f3("x","y","r","a1","a2")
      ->
createVar($r->get()->customAttributes(raphael::property)->segment(raphael::property));
stack()->add($f);

echo
stack()->getInstance();