1/** 2 * Copyright 2012 Google Inc. All Rights Reserved. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17/** 18 * @fileoverview Definitions of all options for CanvasLayer. 19 * @author Brendan Kenny 20 */ 21 22/** 23 * Options for a CanvasLayer. 24 * 25 * @interface 26 */ 27function CanvasLayerOptions() {} 28 29/** 30 * If true, updateHandler will be called repeatedly, once per frame. If false, 31 * updateHandler will only be called when a map property changes that could 32 * require the canvas content to be redrawn. 33 * @type {boolean} 34 */ 35CanvasLayerOptions.prototype.animate; 36 37/** 38 * Map on which to overlay the canvas. 39 * @type {google.maps.Map} 40 */ 41CanvasLayerOptions.prototype.map; 42 43/** 44 * The name of the MapPane in which this layer will be displayed. See 45 * {@code google.maps.MapPanes} for the panes available. Default is 46 * "overlayLayer". 47 * @type {string} 48 */ 49CanvasLayerOptions.prototype.paneName; 50 51/** 52 * A function that is called whenever the canvas has been resized to fit the 53 * map. 54 * @type {function} 55 */ 56CanvasLayerOptions.prototype.resizeHandler; 57 58/** 59 * A value for scaling the CanvasLayer resolution relative to the CanvasLayer 60 * display size. This can be used to save computation by scaling the backing 61 * buffer down, or to support high DPI devices by scaling it up (by e.g. 62 * window.devicePixelRatio). 63 * @type {number} 64 */ 65CanvasLayerOptions.prototype.resolutionScale; 66 67/** 68 * A function that is called when a repaint of the canvas is required. 69 * @type {function} 70 */ 71CanvasLayerOptions.prototype.updateHandler;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.