GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing maxgraph.github.io — Shape | @maxgraph/core
Class ShapeBase class for all shapes. A shape in maxGraph is a separate implementation for SVG, VML and HTML. Which implementation to use is controlled by the dialect property which is assigned from within the CellRenderer when the shape is created. The dialect must be assigned for a shape, and it does normally depend on the browser and the configuration of the graph (see maxGraph rendering hint). For each supported shape in SVG and VML, a corresponding shape exists in maxGraph, namely for text, image, rectangle, rhombus, ellipse and polyline. The other shapes are a combination of these shapes (e.g. label and swimlane) or they consist of one or more (filled) path objects (e.g. actor and cylinder). The HTML implementation is optional but may be required for a HTML-only view of the graph. Custom ShapesA custom shape is a class extending one of the exported shape classes, registered in ShapeRegistry under a
name, then referenced by that name as the Choose the base class according to what is painted:
The constructor must take no argument. CellRenderer.createShape instantiates the registered class with
Consequently, the cell style is only available at paint time, through Shape.style, which is
See the Extend maxGraph page of the documentation for a complete walkthrough. Hierarchy (View Summary)
|
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |