4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5 <title>The source code</title>
6 <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
7 <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
8 <style type="text/css">
9 .highlight { display: block; background-color: #ddd; }
11 <script type="text/javascript">
12 function highlight() {
13 document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
17 <body onload="prettyPrint(); highlight();">
18 <pre class="prettyprint lang-js"><span id='Ext-chart-TipSurface'>/**
19 </span> * @class Ext.chart.TipSurface
22 Ext.define('Ext.chart.TipSurface', {
24 /* Begin Definitions */
26 extend: 'Ext.draw.Component',
33 constructor: function(config) {
34 this.callParent([config]);
36 this.spriteArray = [].concat(config.sprites);
37 delete config.sprites;
41 onRender: function() {
47 this.callParent(arguments);
48 sprites = me.spriteArray;
49 if (me.renderFirst && sprites) {
50 me.renderFirst = false;
51 for (l = sprites.length; i < l; i++) {
52 sp = me.surface.add(sprites[i]);