rave-library-tiledmap.min.js 227 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818
  1. ;(function(root, factory) {
  2. if (typeof define === 'function' && define.amd) {
  3. define(['rave', 'rave-library', 'rave-utilities', 'rave-legends', 'mapboxgl', 'turf'], factory);
  4. } else if (typeof exports === 'object') {
  5. module.exports = factory(require('rave'), require('rave-library'), require('rave-utilities'), require('rave-legends'), require('mapboxgl'), require('turf'));
  6. } else {
  7. root.raveLibraryTiledmapMin = factory(root.rave, root.raveLibrary, root.raveUtilities, root.raveLegends, root.mapboxgl, root.turf);
  8. }
  9. }(this, function(rave, raveLibrary, raveUtilities, raveLegends, mapboxgl, turf) {
  10. (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
  11. module.exports=[{"previews":{"image":[{"file":"resources\/preview_map_small.png","tags":["small","notext"]}],"svg":[{"file":"resources\/preview_map_small.svg","tags":["small","notext"]}]},"genericMeta":{"copyright":"IBM 2016","author":"IBM","description":"tiledmap.description","id":"rave-library-tiledmap","label":"tiledmap.label","version":"1.0.0","tags":["map"]}},{"datamodels":[{"description":"datamodel.tabular.map.new.description","id":"tabular","label":"datamodel.tabular.map.new.label","datasets":[{"dataslots":[{"icon":{"image":"..\/rave-library\/resources\/map_32.png","svg":"..\/rave-library\/resources\/map_32.svg"},"description":"dataslot.map.featureIdentifier.description","id":"featureId","label":"dataslot.map.featureIdentifier.label","cardinality":"0..1","datatypes":["numeric","string"],"tags":["subtype:location","useMapbox","refinement:featureIdRefinement"]},{"icon":{"image":"..\/rave-library\/resources\/map_32.png","svg":"..\/rave-library\/resources\/map_32.svg"},"description":"dataslot.map.featureIdentifierRefinement.description","id":"featureIdRefinement","label":"dataslot.map.featureIdentifierRefinement.label","cardinality":"0..1","datatypes":["numeric","string"],"tags":["subtype:location","useMapbox"]},{"icon":{"image":"..\/rave-library\/resources\/map_32.png","svg":"..\/rave-library\/resources\/region_color_by_32.svg"},"description":"dataslot.map.value.description","id":"value","label":"dataslot.map.value.label","cardinality":"0..1","datatypes":["numeric"]},{"icon":{"image":"..\/rave-library\/resources\/map_32.png","svg":"..\/rave-library\/resources\/size_32.svg"},"description":"dataslot.map.bubbleSize.description","id":"pointSize","label":"dataslot.map.bubbleSize.label","cardinality":"0..1","datatypes":["numeric"]},{"icon":{"image":"..\/rave-library\/resources\/map_32.png","svg":"..\/rave-library\/resources\/point_color_by_32.svg"},"description":"dataslot.map.bubbleColor.description","id":"pointColor","label":"dataslot.map.bubbleColor.label","cardinality":"0..1","datatypes":["numeric"]}],"description":"dataset.tabular.map.new.description","id":"data","label":"dataset.tabular.label","type":"tabular","cardinality":"0..1"}],"tags":["tiled","map","tabular"]}]},{"properties":{"color":{"type":"object","properties":{"null":{"default":"silver","resetView":"layout","name":"color.null.name","description":"color.null.description","type":"color"},"palette":{"default":"rave2.colorpalette.blueContinuousSequential","resetView":"layout","name":"color.palette.name","options":["continuous"],"description":"color.palette.description","type":"palette"},"pointTransparency":{"default":20,"resetView":"layout","name":"color.pointTransparency.name","description":"color.pointTransparency.description","type":"numeric"}}},"tiledmap":{"type":"object","properties":{"geoJson":{"resetView":"data","name":"tiledmap.geoJson.name","description":"tiledmap.geoJson.description","type":"jsonobject"},"style":{"default":"mapbox:\/\/style\/mapbox\/streets-v9","resetView":"layout","name":"tiledmap.style.name","options":[{"id":"tiledmap.style.options.streets","value":"mapbox:\/\/style\/mapbox\/streets-v9"},{"id":"tiledmap.style.options.basic","value":"mapbox:\/\/style\/mapbox\/basic-v9"},{"id":"tiledmap.style.options.bright","value":"mapbox:\/\/style\/mapbox\/bright-v9"},{"id":"tiledmap.style.options.light","value":"mapbox:\/\/style\/mapbox\/light-v9"},{"id":"tiledmap.style.options.dark","value":"mapbox:\/\/style\/mapbox\/dark-v9"},{"id":"tiledmap.style.options.satellite","value":"mapbox:\/\/style\/mapbox\/satellite-v9"}],"description":"tiledmap.style.description","type":"string"},"token":{"default":"","name":"tiledmap.token.name","description":"tiledmap.token.description","type":"string"}}},"legend":{"type":"object","properties":{"display":{"trueLabel":"legend.display.trueLabel","default":true,"falseLabel":"legend.display.falseLabel","resetView":"layout","name":"legend.display.name","description":"legend.display.description","type":"boolean"},"entrystyle":{"type":"object","properties":{"font":{"name":"legend.entrystyle.font.name","description":"legend.entrystyle.font.description","type":"font"}}},"regioncolor":{"type":"object","properties":{"title":{"default":"","resetView":"layout","name":"legend.regioncolor.title.name","description":"legend.regioncolor.title.description","type":"string"}}},"position":{"default":"right","resetView":"layout","name":"legend.position.name","options":[{"id":"legend.position.options.top","value":"top"},{"id":"legend.position.options.bottom","value":"bottom"},{"id":"legend.position.options.right","value":"right"},{"id":"legend.position.options.left","value":"left"}],"description":"legend.position.description","type":"string"},"pointcolor":{"type":"object","properties":{"title":{"default":"","resetView":"layout","name":"legend.pointcolor.title.name","description":"legend.pointcolor.title.description","type":"string"}}},"titlestyle":{"type":"object","properties":{"fontfamily":{"default":null,"name":"legend.titlestyle.fontfamily.name","description":"legend.titlestyle.fontfamily.description","type":"string"},"fontsize":{"default":null,"resetView":"layout","name":"legend.titlestyle.fontsize.name","description":"legend.titlestyle.fontsize.description","type":"string"},"fill":{"default":null,"name":"legend.titlestyle.fill.name","description":"legend.titlestyle.fill.description","type":"color"},"font":{"resetView":"layout","name":"legend.titlestyle.font.name","description":"legend.titlestyle.font.description","type":"font"}}},"pointsize":{"type":"object","properties":{"title":{"default":"","resetView":"layout","name":"legend.pointsize.title.name","description":"legend.pointsize.title.description","type":"string"}}}}},"maxPointSize":{"default":"20","resetView":"layout","name":"max.point.size.name","description":"max.point.size.description","type":"length"},"minPointSize":{"default":"5","resetView":"layout","name":"min.point.size.name","description":"min.point.size.description","type":"length"}}},{"actions":[{"description":"actions.applyHighlight.description","id":"highlight","label":"actions.applyHighlight.label"},{"description":"actions.removeHighlight.description","id":"unhighlight","label":"actions.removeHighlight.label","tags":[]},{"description":"actions.applySelection.description","id":"select","label":"actions.applySelection.label","tags":[]},{"description":"actions.removeSelection.description","id":"deselect","label":"actions.removeSelection.label","tags":[]},{"description":"actions.removeAllSelect.description","id":"deselectAll","label":"actions.removeAllSelect.label","tags":[]},{"description":"actions.toggleSelect.description","id":"toggleSelect","label":"actions.toggleSelect.label","tags":[]},{"description":"actions.zoom.description","id":"zoom","label":"actions.zoom.label","tags":[]}]},{"properties":{"layout":{"type":"object","properties":{"padding":{"default":"10","resetView":"layout","name":"layout.padding.name","description":"layout.padding.description","type":"padding"},"legendsize":{"type":"object","properties":{"min":{"default":"0","resetView":"layout","name":"layout.legendsize.min.name","description":"layout.legendsize.min.description","type":"length"},"max":{"default":"20%","resetView":"layout","name":"layout.legendsize.max.name","description":"layout.legendsize.max.description","type":"length"},"preferred":{"default":"20%","resetView":"layout","name":"layout.legendsize.preferred.name","description":"layout.legendsize.preferred.description","type":"length"}}},"legendchart":{"type":"object","properties":{"gap":{"default":"10","resetView":"layout","name":"layout.legendchart.gap.name","description":"layout.legendchart.gap.description","type":"length"},"align":{"default":false,"resetView":"layout","name":"layout.legendchart.align.name","description":"layout.legendchart.align.description","type":"boolean"}}},"chart":{"type":"object","properties":{"padding":{"type":"object","properties":{"top":{"default":"0","resetView":"layout","name":"layout.chart.padding.top.name","description":"layout.chart.padding.top.description","type":"length"},"left":{"default":"0","resetView":"layout","name":"layout.chart.padding.left.name","description":"layout.chart.padding.left.description","type":"length"},"bottom":{"default":"0","resetView":"layout","name":"layout.chart.padding.bottom.name","description":"layout.chart.padding.bottom.description","type":"length"},"right":{"default":"0","resetView":"layout","name":"layout.chart.padding.right.name","description":"layout.chart.padding.right.description","type":"length"}}}}}}}}},{"propertyPresentations":[{"presentationItems":[{"propertyID":"tiledmap.token"},{"propertyID":"tiledmap.style"},{"propertyID":"color.palette"},{"propertyID":"legend.display"},{"propertyID":"legend.position"}],"icon":"","description":"propertyPresentation.simple.description","id":"simple","label":"propertyPresentation.simple.label","tags":["Tiledmap","Tiledmap Properties Presentation","Simple","ca.dashboard"]},{"presentationItems":[{"propertyGroup":{"presentationItems":[],"icon":"","description":"propertyPresentation.advanced.commonProperties.description","id":"commonProperties","label":"propertyPresentation.advanced.commonProperties.label","tags":[]}},{"propertyGroup":{"presentationItems":[{"propertyID":"tiledmap.token"}],"icon":"","description":"map.propertyPresentation.advanced.mapSpecificProperties.description","id":"mapSpecificProperties","label":"map.propertyPresentation.advanced.mapSpecificProperties.label","tags":[]}},{"propertyGroup":{"presentationItems":[],"icon":"","description":"propertyPresentation.advanced.legendProperties.description","id":"legendProperties","label":"propertyPresentation.advanced.legendProperties.label","tags":[]}}],"icon":"","description":"propertyPresentation.advanced.description","id":"advanced","label":"propertyPresentation.advanced.label","tags":["Tiledmap","Tiledmap Properties Presentation","advanced","ca.reporting"]}]},{"configurations":[{"previews":{"image":[{"file":"resources\/preview_map_small.png","tags":["small","notext"]}],"svg":[{"file":"resources\/preview_map_small.svg","tags":["small","notext"]}]},"genericMeta":{"description":"tiledmap.config.tiledmap.description","id":"tiledmap","label":"tiledmap.config.tiledmap.label","tags":["ca.dashboard"]}}]},{"build":"development","name":"rave-library-tiledmap","description":"This is the IBM Rave map bundle.","ignore":["bower.json"],"main":"bundle.js","version":"0.0.0","dependencies":{"rave-legends":"<2.0.0","mapboxgl":"<0.32.0","turf":"0.1.0","rave-library":"<2.0.0","rave":"<3.0.0","rave-utilities":"<2.0.0"}}]
  12. },{}],2:[function(require,module,exports){
  13. module.exports={
  14. "actions.applyHighlight.description": "Highlights a node.",
  15. "actions.applyHighlight.label": "Apply highlight action",
  16. "actions.applySelection.description": "Selects a node.",
  17. "actions.applySelection.label": "Apply selection action",
  18. "actions.args.attributes.description": "Optional map of attribute to value that is applied during the action.",
  19. "actions.args.attributes.label": "Optional attributes function argument",
  20. "actions.args.primaryAttributes.description": "Optional map of primary attributes that are applied during the action.",
  21. "actions.args.primaryAttributes.label": "Optional primary attributes function argument",
  22. "actions.args.primarySelector.description": "Primary selector for the nodes that the action is to apply to.",
  23. "actions.args.primarySelector.label": "Primary selector function argument",
  24. "actions.args.secondaryAttributes.description": "Optional map of secondary attributes that are applied during the action.",
  25. "actions.args.secondaryAttributes.label": "Optional secondary attributes function argument",
  26. "actions.args.secondarySelector.description": "Secondary selector for the nodes that the action is to apply to.",
  27. "actions.args.secondarySelector.label": "Secondary selector function argument",
  28. "actions.args.selector.description": "Selector of the node that the action will apply to.",
  29. "actions.args.selector.label": "Selector function argument",
  30. "actions.breadCrumb.description": "Navigates up and down in detail through a bread crumb.",
  31. "actions.breadCrumb.label": "Bread crumb navigation action",
  32. "actions.chord.selector.description": "Selector for the chords that the action will apply to.",
  33. "actions.chord.selector.label": "Selector function argument for chords",
  34. "actions.chord.toggleSelect.description": "Toggles selection on a chord.",
  35. "actions.chord.toggleSelect.label": "Toggle select on chord action",
  36. "actions.chordGroup.highlight.description": "Highlights a chord group and everything that is connected to it.",
  37. "actions.chordGroup.highlight.label": "Chord group highlight action",
  38. "actions.chordGroup.removeHighlight.description": "Removes highlights from a chord group and everything connected to it.",
  39. "actions.chordGroup.removeHighlight.label": "Chord group remove highlight action",
  40. "actions.chordGroup.selector.description": "Selector for the chord groups that the action will apply to.",
  41. "actions.chordGroup.selector.label": "Selector function argument for chord groups",
  42. "actions.drillDown.description": "Drills down to the next level of detail.",
  43. "actions.drillDown.label": "Drill down action",
  44. "actions.removeAllSelect.description": "Removes all selections from all nodes.",
  45. "actions.removeAllSelect.label": "Remove all selections action",
  46. "actions.removeHighlight.description": "Removes a highlight from a node.",
  47. "actions.removeHighlight.label": "Remove highlight action",
  48. "actions.removeSelection.description": "Removes a selection from a node.",
  49. "actions.removeSelection.label": "Remove selection action",
  50. "actions.toggleSelect.description": "Toggles the selection on a node.",
  51. "actions.toggleSelect.label": "Toggle selection action",
  52. "actions.zoom.args.panX.description": "The amount to pan in the x direction.",
  53. "actions.zoom.args.panX.label": "Zoom x pan amount function argument",
  54. "actions.zoom.args.panY.description": "The amount to pan in the y direction.",
  55. "actions.zoom.args.panY.label": "Zoom y pan amount function argument",
  56. "actions.zoom.args.scale.description": "The scale amount for the zoom action.",
  57. "actions.zoom.args.scale.label": "Zoom scale function argument",
  58. "actions.zoom.description": "Zoom action",
  59. "actions.zoom.label": "Zoom action",
  60. "actions.zoomPackedBubble.description": "Zoom for a packed bubble.",
  61. "actions.zoomPackedBubble.label": "Zoom packed bubble action",
  62. "background.chart.color.description": "The background color of the chart.",
  63. "background.chart.color.name": "Background color",
  64. "background.color.description": "The background color behind the elements of the chart.",
  65. "background.elements.color.description": "The background color behind the elements of the chart.",
  66. "background.elements.color.name": "Elements background color",
  67. "border.color.description": "The color of the borders between features.",
  68. "border.color.name": "Border color",
  69. "border.width.description": "The width of the border.",
  70. "border.width.name": "Border width",
  71. "bubble.animation.description": "The effect that is used to animate the initial bubble.",
  72. "bubble.animation.duration.description": "The duration of the initial bubble animation in ms.",
  73. "bubble.animation.duration.name": "Bubble animation duration",
  74. "bubble.animation.name": "Bubble animation",
  75. "bubble.animation.options.none": "None",
  76. "bubble.animation.options.transition": "Transition",
  77. "bubble.size.description": "The radius of bubbles, in pixels, when bubbles are not sized by data.",
  78. "bubble.size.name": "Bubble size",
  79. "bubbleBorder.color.description": "The color of the bubble borders.",
  80. "bubbleBorder.color.name": "Bubble border color",
  81. "bubbleBorder.width.description": "The width of the bubble borders.",
  82. "bubbleBorder.width.name": "Bubble border width",
  83. "color.feature.palette.description": "The color palette that is used to color features in the map.",
  84. "color.feature.palette.name": "Feature color palette",
  85. "color.featureDynamicPalette.max.description": "The color that is used for the maximum value of a feature dynamic palette.",
  86. "color.featureDynamicPalette.max.name": "Feature maximum value color",
  87. "color.featureDynamicPalette.mid.description": "The color that is used for the middle value of a feature dynamic palette.",
  88. "color.featureDynamicPalette.mid.name": "Feature middle value color",
  89. "color.featureDynamicPalette.min.description": "The color that is used for the minimum value of a feature dynamic palette.",
  90. "color.featureDynamicPalette.min.name": "Feature minimum value color",
  91. "color.null.description": "The color that is applied to null values.",
  92. "color.null.name": "Null value color",
  93. "color.palette.description": "Color palette to use with the tiled map.",
  94. "color.palette.name": "Color palette",
  95. "color.point.palette.description": "The color palette that is used to color points in the map.",
  96. "color.point.palette.name": "Point color palette",
  97. "color.pointDynamicPalette.max.description": "The color that is used for the maximum value of a point dynamic palette.",
  98. "color.pointDynamicPalette.max.name": "Point maximum value color",
  99. "color.pointDynamicPalette.mid.description": "The color that is used for the middle value of a point dynamic palette.",
  100. "color.pointDynamicPalette.mid.name": "Point middle value color",
  101. "color.pointDynamicPalette.min.description": "The color that is used for the minimum value of a point dynamic palette.",
  102. "color.pointDynamicPalette.min.name": "Point minimum value color",
  103. "color.pointTransparency.description": "Transparency, in percentage, that is added to the palette entry for the point fill color.",
  104. "color.pointTransparency.name": "Point fill transparency percentage",
  105. "color.regionTransparency.description": "Transparency, in percentage, that is added to the palette entry for the region fill color.",
  106. "color.regionTransparency.name": "Region fill transparency percentage",
  107. "data.handling.description": "The configuration that is used to plot the data.",
  108. "data.handling.name": "Configuration",
  109. "datamodel.hierarchial.label": "Hierarchical data model",
  110. "datamodel.tabular.label": "Tabular data model",
  111. "datamodel.tabular.map.description": "The simple map model, providing feature name, color, label, and point data with x and y, size, and label.",
  112. "datamodel.tabular.map.new.description": "The data model that uses feature matching to color each region and overlay a bubble.",
  113. "datamodel.tabular.map.new.label": "Tabular regions and bubbles",
  114. "dataset.hierarchial.label": "Hierarchical data set",
  115. "dataset.tabular.description": "The tabular data set of rows and columns.",
  116. "dataset.tabular.label": "Tabular data set",
  117. "dataset.tabular.link.description": "Determines the links between the nodes.",
  118. "dataset.tabular.link.label": "Tabular links data set",
  119. "dataset.tabular.map.description": "The tabular map data that is used with the GeoJSON features (feature ID data to GeoJSON ID lookup property).",
  120. "dataset.tabular.map.new.description": "The data set that uses feature matching to color each region and overlay a bubble.",
  121. "dataset.tabular.map.point.description": "The tabular data for points plotted on top of the map data.",
  122. "dataset.tabular.node.description": "The tabular data set that defines the nodes.",
  123. "dataset.tabular.node.label": "Tabular node data set",
  124. "dataslot.categories.label": "Categories",
  125. "dataslot.category.label": "Category",
  126. "dataslot.children.description": "When applied to a tree node, returns the children of that node as an array-list.",
  127. "dataslot.children.label": "Children",
  128. "dataslot.color.description": "Determines the color of the shape.",
  129. "dataslot.color.label": "Color",
  130. "dataslot.key.description": "Called for each row to match elements. Primarily used for transitions.",
  131. "dataslot.key.label": "Key",
  132. "dataslot.label.description": "Determines the label of the shape.",
  133. "dataslot.label.label": "Label",
  134. "dataslot.label.map.description": "The label of the map feature. This value is optional. If the value is not provided, the feature name is used.",
  135. "dataslot.map.bubbleColor.description": "If set, bubbles will be drawn for each feature. Numeric values are used to determine the color of each bubble.",
  136. "dataslot.map.bubbleColor.label": "Point color",
  137. "dataslot.map.bubbleSize.description": "If set, bubbles will be drawn for each feature. Numeric values are used to determine the size of each bubble.",
  138. "dataslot.map.bubbleSize.label": "Point size",
  139. "dataslot.map.featureColor.description": "The color of the map feature.",
  140. "dataslot.map.featureColor.label": "Feature value",
  141. "dataslot.map.featureIdentifier.description": "The identifier that is matched to the GeoJSON using the ID lookup property.",
  142. "dataslot.map.featureIdentifier.label": "Regions",
  143. "dataslot.map.featureIdentifierRefinement.description": "The identifier that is matched to the GeoJSON using the ID lookup property, it should be geographical parent of the id used in Regions",
  144. "dataslot.map.featureIdentifierRefinement.label": "Refine Regions",
  145. "dataslot.map.featureLabel.description": "The label to associate with each feature. If not specified, the feature ID is used.",
  146. "dataslot.map.featureLabel.label": "Feature label",
  147. "dataslot.map.pointIdentifier.description": "pointIdentifier.description",
  148. "dataslot.map.pointIdentifier.label": "pointIdentifier.label",
  149. "dataslot.map.pointIdentifierRefinement.description": "pointIdentifierRefinement.description",
  150. "dataslot.map.pointIdentifierRefinement.label": "pointIdentifierRefinement.label",
  151. "dataslot.map.value.description": "This is the value to be attached as a property per feature id.",
  152. "dataslot.map.value.label": "Region color",
  153. "dataslot.maximumValue.label": "Maximum value",
  154. "dataslot.source.label": "Source",
  155. "dataslot.sourceValue.label": "Source value",
  156. "dataslot.tabular.id.description": "The identifier for the nodes.",
  157. "dataslot.tabular.id.label": "Identifier",
  158. "dataslot.tabular.size.description": "Determines the size of the shape.",
  159. "dataslot.tabular.size.label": "Size",
  160. "dataslot.target.label": "Target",
  161. "dataslot.targetValue.label": "Target value",
  162. "dataslot.value.label": "Value",
  163. "dataslot.x.label": "X axis",
  164. "dataslot.x.map.point.description": "The numeric x (longitude) position, in the same coordinates as the GeoJSON.",
  165. "dataslot.y.label": "Y axis",
  166. "dataslot.y.map.point.description": "The numeric y (latitude) position, in the same coordinates as the GeoJSON.",
  167. "default.pan.zoom.description": "When set to Yes, the visualization uses the built-in pan-zoom behavior. Set to No to allow for custom pan and zoom actions.",
  168. "default.pan.zoom.name": "Default pan-zoom behavior",
  169. "defaultPalette.description": "Rave2 default description",
  170. "defaultPalette.label": "Rave2 default",
  171. "display.graticule.description": "Shows or hides the graticule.",
  172. "display.graticule.name": "Show graticule",
  173. "drop.labels.description": "Keeps or drops overlapping labels.",
  174. "drop.labels.name": "Drop overlapping labels",
  175. "effect.duration.description": "The animation duration, in ms.",
  176. "effect.duration.name": "Animation duration (ms)",
  177. "effect.name.description": "The effect that is used when the chart is drawn.",
  178. "effect.name.name": "Animation",
  179. "feature.label.color.description": "The color of the feature labels.",
  180. "feature.label.color.name": "Feature label color",
  181. "feature.label.font.description": "The font of the feature labels.",
  182. "feature.label.font.name": "Feature label font",
  183. "feature.label.size.description": "The size of the feature labels.",
  184. "feature.label.size.name": "Feature label size",
  185. "flash.description": "Specifies whether to flash regions.",
  186. "flash.duration.description": "The duration of flashing regions and bubbles in ms.",
  187. "flash.duration.name": "Flash duration",
  188. "flash.name": "Flash",
  189. "geodata.index.description": "The index of the GeoJSON that the data corresponds to.",
  190. "geodata.index.name": "GeoJSON data index",
  191. "geojson.object.description": "The JSONObject that is loaded for the GeoJSON.",
  192. "geojson.object.name": "GeoJSON JSONObject",
  193. "geojson.url.description": "The URL of the GeoJSON file.",
  194. "geojson.url.name": "GeoJSON URL",
  195. "graticule.color.description": "The color of the graticule.",
  196. "graticule.color.name": "Graticule color",
  197. "graticule.stroke.thickness.description": "The stroke thickness for the graticule.",
  198. "graticule.stroke.thickness.name": "Graticule stroke thickness",
  199. "grid.color.description": "The color of the grid lines.",
  200. "grid.color.name": "Grid lines color",
  201. "grid.display.description": "Show or hide the grid lines.",
  202. "grid.display.name": "Show grid lines",
  203. "id.lookup.description": "The dot separated field names for feature ids.",
  204. "id.lookup.name": "ID lookup",
  205. "labelResolution.description": "The method that is used to resolve labels.",
  206. "labelResolution.name": "Label resolution",
  207. "labelResolution.options.DropLabels": "Drop labels",
  208. "labelResolution.options.MoveLabels": "Move labels",
  209. "labelResolution.options.none": "None",
  210. "layout.axissize.bottom.max.description": "The maximum size of the bottom axis, as a CSS size or percentage.",
  211. "layout.axissize.bottom.max.name": "Bottom axis maximum size",
  212. "layout.axissize.bottom.min.description": "The minimum size of the bottom axis, as a CSS size or percentage.",
  213. "layout.axissize.bottom.min.name": "Bottom axis minimum size",
  214. "layout.axissize.bottom.preferred.description": "The preferred size of the bottom axis, as a CSS size or percentage.",
  215. "layout.axissize.bottom.preferred.name": "Bottom axis preferred size",
  216. "layout.axissize.left.max.description": "The maximum size of the left axis, as a CSS size or percentage.",
  217. "layout.axissize.left.max.name": "Left axis maximum size",
  218. "layout.axissize.left.min.description": "The minimum size of the left axis, as a CSS size or percentage.",
  219. "layout.axissize.left.min.name": "Left axis minimum size",
  220. "layout.axissize.left.preferred.description": "The preferred size of the left axis, as a CSS size or percentage.",
  221. "layout.axissize.left.preferred.name": "Left axis preferred size",
  222. "layout.axissize.right.max.description": "The maximum size of the right axis, as a CSS size or percentage.",
  223. "layout.axissize.right.max.name": "Right axis maximum size",
  224. "layout.axissize.right.min.description": "The minimum size of the right axis, as a CSS size or percentage.",
  225. "layout.axissize.right.min.name": "Right axis minimum size",
  226. "layout.axissize.right.preferred.description": "The preferred size of the right axis, as a CSS size or percentage.",
  227. "layout.axissize.right.preferred.name": "Right axis preferred size",
  228. "layout.axissize.top.max.description": "The maximum size of the top axis, as a CSS size or percentage.",
  229. "layout.axissize.top.max.name": "Top axis maximum size",
  230. "layout.axissize.top.min.description": "The minimum size of the top axis, as a CSS size or percentage.",
  231. "layout.axissize.top.min.name": "Top axis minimum size",
  232. "layout.axissize.top.preferred.description": "The preferred size of the top axis, as a CSS size or percentage.",
  233. "layout.axissize.top.preferred.name": "Top axis preferred size",
  234. "layout.chart.padding.bottom.description": "The bottom padding for the chart.",
  235. "layout.chart.padding.bottom.name": "Bottom padding",
  236. "layout.chart.padding.left.description": "The left padding for the chart.",
  237. "layout.chart.padding.left.name": "Left padding",
  238. "layout.chart.padding.right.description": "Right padding for the chart.",
  239. "layout.chart.padding.right.name": "Right padding",
  240. "layout.chart.padding.top.description": "The top padding for the chart.",
  241. "layout.chart.padding.top.name": "Top padding",
  242. "layout.legendchart.align.description": "Whether to align the legend to the interior of the chart.",
  243. "layout.legendchart.align.name": "Align legend to chart",
  244. "layout.legendchart.gap.description": "Space between the chart and the legend, as a CSS size or percentage.",
  245. "layout.legendchart.gap.name": "Space between legend and chart",
  246. "layout.legendsize.max.description": "The maximum size of the legend, as a CSS size or percentage.",
  247. "layout.legendsize.max.name": "Maximum size",
  248. "layout.legendsize.min.description": "The minimum size of the legend, as a CSS size or percentage.",
  249. "layout.legendsize.min.name": "Minimum size",
  250. "layout.legendsize.preferred.description": "The preferred size of the legend, as a CSS size or percentage.",
  251. "layout.legendsize.preferred.name": "Preferred size",
  252. "layout.padding.description": "The padding around the chart and legend.",
  253. "layout.padding.name": "Padding",
  254. "legend.animation.description": "The effect that is used to animate the legend.",
  255. "legend.animation.duration.description": "The duration of the legend animation in ms.",
  256. "legend.animation.duration.name": "Legend animation duration",
  257. "legend.animation.name": "Legend animation",
  258. "legend.animation.options.none": "None",
  259. "legend.animation.options.transition": "Transition",
  260. "legend.display.description": "Shows or hides the legend.",
  261. "legend.display.falseLabel": "Hide",
  262. "legend.display.name": "Show legend",
  263. "legend.display.trueLabel": "Show",
  264. "legend.entrystyle.font.description": "The font properties of the legend entry.",
  265. "legend.entrystyle.font.name": "Entry font",
  266. "legend.map.display.description": "Shows or hides the map legend.",
  267. "legend.map.display.name": "Show map legend",
  268. "legend.map.title.description": "The title of the map legend.",
  269. "legend.map.title.name": "Map legend title",
  270. "legend.map.titlestyle.fill.description": "The color of the map legend title.",
  271. "legend.map.titlestyle.fill.name": "Map legend title color",
  272. "legend.map.titlestyle.fontfamily.description": "The font family of the map legend title.",
  273. "legend.map.titlestyle.fontfamily.name": "Map legend title font family",
  274. "legend.map.titlestyle.fontsize.description": "The font size of the map legend title.",
  275. "legend.map.titlestyle.fontsize.name": "Map legend title font size",
  276. "legend.pointcolor.title.description": "Point color legend title",
  277. "legend.pointcolor.title.name": "Point Color Legend Title",
  278. "legend.pointsize.title.description": "Point size legend title",
  279. "legend.pointsize.title.name": "Point Size Legend Title",
  280. "legend.position.description": "The position of the legend in the chart.",
  281. "legend.position.name": "Legend position",
  282. "legend.position.options.bottom": "Bottom",
  283. "legend.position.options.left": "Left",
  284. "legend.position.options.right": "Right",
  285. "legend.position.options.top": "Top",
  286. "legend.regioncolor.title.description": "Region color legend title",
  287. "legend.regioncolor.title.name": "Region Color Legend Title",
  288. "legend.size.display.description": "Shows or hides the bubble size legend.",
  289. "legend.size.display.name": "Show bubble size legend",
  290. "legend.size.title.description": "The title of the bubble size legend.",
  291. "legend.size.title.name": "Bubble size legend title",
  292. "legend.size.titlestyle.fill.description": "The color of the bubble size legend title.",
  293. "legend.size.titlestyle.fill.name": "Bubble size legend title color",
  294. "legend.size.titlestyle.fontfamily.description": "The font family of the bubble size legend title.",
  295. "legend.size.titlestyle.fontfamily.name": "Bubble size legend title font family",
  296. "legend.size.titlestyle.fontsize.description": "The font size of the bubble size legend title.",
  297. "legend.size.titlestyle.fontsize.name": "Bubble size legend title font size",
  298. "legend.title.description": "The title of the legend.",
  299. "legend.title.name": "Title",
  300. "legend.titlestyle.fill.description": "The color of the legend title.",
  301. "legend.titlestyle.fill.name": "Title color",
  302. "legend.titlestyle.font.description": "The font properties of the legend title.",
  303. "legend.titlestyle.font.name": "Title font",
  304. "legend.titlestyle.fontfamily.description": "The font family of the legend title.",
  305. "legend.titlestyle.fontfamily.name": "Title font family",
  306. "legend.titlestyle.fontsize.description": "The font size of the legend title.",
  307. "legend.titlestyle.fontsize.name": "Title font size",
  308. "map.description": "Map charts use a map to show data.",
  309. "map.falseLabe.dropLabels": "Keep",
  310. "map.falseLabel.bubbleLegend": "Hide",
  311. "map.falseLabel.display": "Hide",
  312. "map.falseLabel.flash": "No flash",
  313. "map.falseLabel.labels": "Hide",
  314. "map.falseLabel.sizeLegend": "Hide",
  315. "map.label": "Map",
  316. "map.projection.description": "The Map projection type.",
  317. "map.projection.name": "Map projection",
  318. "map.projection.options.albers": "Albers",
  319. "map.projection.options.albersUsa": "Albers Usa",
  320. "map.projection.options.equirectangular": "Equirectangular",
  321. "map.projection.options.mercator": "Mercator",
  322. "map.projection.options.stereoGraphic": "stereoGraphic",
  323. "map.projection.options.winkelTriple": "winkelTriple",
  324. "map.propertyPresentation.advanced.mapSpecificProperties.description": "Map-specific properties",
  325. "map.propertyPresentation.advanced.mapSpecificProperties.label": "Map",
  326. "map.trueLabel.bubbleLegend": "Show",
  327. "map.trueLabel.display": "Show",
  328. "map.trueLabel.dropLabels": "Drop",
  329. "map.trueLabel.flash": "Flash",
  330. "map.trueLabel.labels": "Show",
  331. "map.trueLabel.sizeLegend": "Show",
  332. "max.bubble.size.descirption": "The maximum radius of a bubble, in pixels.",
  333. "max.bubble.size.description": "The maximum size of the bubble.",
  334. "max.bubble.size.name": "Maximum bubble size",
  335. "max.point.size.description": "Maximum radius for points drawn on the tiled map. CSS length. Percentages based on the chart width.",
  336. "max.point.size.name": "Maximum point size",
  337. "max.zoom.description": "The maximum level of zoom that is allowed.",
  338. "max.zoom.name": "Maximum zoom level",
  339. "min.bubble.size.descirption": "The minimum radius of a bubble, in pixels.",
  340. "min.bubble.size.description": "The minimum size of the bubble.",
  341. "min.bubble.size.name": "Minimum bubble size",
  342. "min.point.size.description": "Minimum radius for points drawn on the tiled map. CSS length. Percentages based on the chart width.",
  343. "min.point.size.name": "Minimum point size",
  344. "pan.x.description": "When set to Yes, pans along the X-axis. When set to No, a Euler rotation is performed along the X-axis.",
  345. "pan.x.name": "Pan along the X-axis",
  346. "pan.y.description": "When set to Yes, pans along the Y-axis. When set to No, a Euler rotation is performed along the Y-axis.",
  347. "pan.y.name": "Pan along the Y-axis",
  348. "point.label.color.description": "The color of the point labels.",
  349. "point.label.color.name": "Point label color",
  350. "point.label.font.description": "The font of the point labels.",
  351. "point.label.font.name": "Point label font",
  352. "point.label.size.description": "The size of the point labels.",
  353. "point.label.size.name": "Point label size",
  354. "propertyPresentation.advanced.axisSizeProperties.description": "Axis size properties.",
  355. "propertyPresentation.advanced.axisSizeProperties.label": "Axis size",
  356. "propertyPresentation.advanced.clientBehaviorProperties.description": "Client side properties.",
  357. "propertyPresentation.advanced.clientBehaviorProperties.label": "Client behavior",
  358. "propertyPresentation.advanced.commonProperties.description": "Common properties.",
  359. "propertyPresentation.advanced.commonProperties.label": "Common",
  360. "propertyPresentation.advanced.description": "Advanced list of all properties in a grouped structure.",
  361. "propertyPresentation.advanced.label": "Advanced",
  362. "propertyPresentation.advanced.labelProperties.description": "Label properties",
  363. "propertyPresentation.advanced.labelProperties.label": "Label",
  364. "propertyPresentation.advanced.legendProperties.description": "Legend properties.",
  365. "propertyPresentation.advanced.legendProperties.label": "Legend",
  366. "propertyPresentation.advanced.xAxisProperties.description": "X-axis properties.",
  367. "propertyPresentation.advanced.xAxisProperties.label": "X-axis",
  368. "propertyPresentation.advanced.yAxisProperties.description": "Y-axis properties.",
  369. "propertyPresentation.advanced.yAxisProperties.label": "Y-axis",
  370. "propertyPresentation.simple.description": "Simple list of the most common properties.",
  371. "propertyPresentation.simple.label": "Simple",
  372. "rave2.colorpalette.blueContinuousSequential.description": "Blue continuous sequential description",
  373. "rave2.colorpalette.blueContinuousSequential.label": "Blue continuous sequential",
  374. "rave2.colorpalette.blueDiscreteSequential.description": "Blue discrete sequential description",
  375. "rave2.colorpalette.blueDiscreteSequential.label": "Blue discrete sequential",
  376. "rave2.colorpalette.blueGreenContinuousDivergent.description": "Blue green continuous divergent description",
  377. "rave2.colorpalette.blueGreenContinuousDivergent.label": "Blue green continuous divergent",
  378. "rave2.colorpalette.blueGreenDiscreteDivergent.description": "Blue green discrete divergent description",
  379. "rave2.colorpalette.blueGreenDiscreteDivergent.label": "Blue green discrete divergent",
  380. "rave2.colorpalette.dark.description": "Dark description",
  381. "rave2.colorpalette.dark.label": "Dark",
  382. "rave2.colorpalette.financial.description": "Financial description",
  383. "rave2.colorpalette.financial.label": "Financial",
  384. "rave2.colorpalette.greenContinuousSequential.description": "Green continuous sequential description",
  385. "rave2.colorpalette.greenContinuousSequential.label": "Green continuous sequential",
  386. "rave2.colorpalette.greenDiscreteSequential.description": "Green discrete sequential description",
  387. "rave2.colorpalette.greenDiscreteSequential.label": "Green discrete sequential",
  388. "rave2.colorpalette.light.description": "Light description",
  389. "rave2.colorpalette.light.label": "Light",
  390. "rave2.colorpalette.medical.description": "Medical description",
  391. "rave2.colorpalette.medical.label": "Medical",
  392. "rave2.colorpalette.orangeContinuousSequential.description": "Orange continuous sequential description",
  393. "rave2.colorpalette.orangeContinuousSequential.label": "Orange continuous sequential",
  394. "rave2.colorpalette.orangeDiscreteSequential.description": "Orange discrete sequential description",
  395. "rave2.colorpalette.orangeDiscreteSequential.label": " Orange discrete sequential",
  396. "rave2.colorpalette.purpleContinuousSequential.description": "Purple continuous sequential description",
  397. "rave2.colorpalette.purpleContinuousSequential.label": "Purple continuous sequential",
  398. "rave2.colorpalette.purpleDiscreteSequential.description": "Purple discrete sequential description",
  399. "rave2.colorpalette.purpleDiscreteSequential.label": "Purple discrete sequential",
  400. "rave2.colorpalette.redBlueContinuousDivergent.description": "Red blue continuous divergent description",
  401. "rave2.colorpalette.redBlueContinuousDivergent.label": "Red blue continuous divergent",
  402. "rave2.colorpalette.redBlueDiscreteDivergent.description": "Red blue discrete divergent description",
  403. "rave2.colorpalette.redBlueDiscreteDivergent.label": "Red blue discrete divergent",
  404. "rave2.colorpalette.redBlueInverseContinuousDivergent.description": "Red blue inverse continuous divergent description",
  405. "rave2.colorpalette.redBlueInverseContinuousDivergent.label": "Red blue inverse continuous divergent",
  406. "rave2.colorpalette.redBlueInverseDiscreteDivergent.description": "Red blue inverse discrete divergent description",
  407. "rave2.colorpalette.redBlueInverseDiscreteDivergent.label": "Red blue inverse discrete divergent",
  408. "rave2.colorpalette.redContinuousSequential.description": "Red continuous sequential description",
  409. "rave2.colorpalette.redContinuousSequential.label": "Red continuous sequential",
  410. "rave2.colorpalette.redDiscreteSequential.description": "Red discrete sequential description",
  411. "rave2.colorpalette.redDiscreteSequential.label": " Red discrete sequential",
  412. "rave2.colorpalette.redGreenContinuousDivergent.description": "Red green continuous divergent description",
  413. "rave2.colorpalette.redGreenContinuousDivergent.label": "Red green continuous divergent",
  414. "rave2.colorpalette.redGreenDiscreteDivergent.description": "Red green discrete divergent description",
  415. "rave2.colorpalette.redGreenDiscreteDivergent.label": "Red green discrete divergent",
  416. "rave2.colorpalette.redGreenInverseContinuousDivergent.description": "Red green inverse continuous divergent description",
  417. "rave2.colorpalette.redGreenInverseContinuousDivergent.label": "Red green inverse continuous divergent",
  418. "rave2.colorpalette.redGreenInverseDiscreteDivergent.description": "Red green inverse discrete divergent description",
  419. "rave2.colorpalette.redGreenInverseDiscreteDivergent.label": "Red green inverse discrete divergent",
  420. "rave2.colorpalette.tealContinuousSequential.description": "Teal continuous sequential description",
  421. "rave2.colorpalette.tealContinuousSequential.label": "Teal continuous sequential",
  422. "rave2.colorpalette.tealDiscreteSequential.description": "Teal discrete sequential description",
  423. "rave2.colorpalette.tealDiscreteSequential.label": "Teal discrete sequential",
  424. "rave2.colorpalette.tealPurpleContinuousDivergent.description": "Teal purple continuous divergent description",
  425. "rave2.colorpalette.tealPurpleContinuousDivergent.label": "Teal purple continuous divergent",
  426. "rave2.colorpalette.tealPurpleDiscreteDivergent.description": "Teal purple discrete divergent description",
  427. "rave2.colorpalette.tealPurpleDiscreteDivergent.label": "Teal purple discrete divergent",
  428. "rave2.colorpalette.violetContinuousSequential.description": "Violet continuous sequential description",
  429. "rave2.colorpalette.violetContinuousSequential.label": "Violet continuous sequential",
  430. "rave2.colorpalette.violetDiscreteSequential.description": "Violet discrete sequential description",
  431. "rave2.colorpalette.violetDiscreteSequential.label": "Violet discrete sequential",
  432. "rave2.colorpalette.yellowContinuousSequential.description": "Yellow continuous sequential description",
  433. "rave2.colorpalette.yellowContinuousSequential.label": "Yellow continuous sequential",
  434. "rave2.colorpalette.yellowDiscreteSequential.description": "Yellow discrete sequential description",
  435. "rave2.colorpalette.yellowDiscreteSequential.label": "Yellow discrete sequential",
  436. "region.animation.description": "The effect that is used to animate the initial region.",
  437. "region.animation.duration.description": "The duration of the initial region animation in ms.",
  438. "region.animation.duration.name": "Region animation duration",
  439. "region.animation.name": "Region animation",
  440. "region.animation.options.none": "None",
  441. "region.animation.options.transition": "Transition",
  442. "scale.description": "The default scale that is applied to the projection. The scale can have a null value. If null, the map automatically scales.",
  443. "scale.name": "Map base scale",
  444. "show.labels.description": "Shows or hides labels.",
  445. "show.labels.name": "Show labels",
  446. "tiledmap.config.tiledmap.description": "Interactive map for geospatial analytics. Use this visualization to perform geospatial analysis with fill and point maps.",
  447. "tiledmap.config.tiledmap.label": "Map",
  448. "tiledmap.description": "Interactive map for geospatial analytics. Use this visualization to perform geospatial analysis with fill and point maps.",
  449. "tiledmap.geoJson.description": "This geo json object will be used as the layer to be matched with any incoming location data.",
  450. "tiledmap.geoJson.name": "Geo Json Layer",
  451. "tiledmap.label": "Map",
  452. "tiledmap.style.description": "Path to map style",
  453. "tiledmap.style.name": "Style",
  454. "tiledmap.style.options.basic": "Basic",
  455. "tiledmap.style.options.bright": "Bright",
  456. "tiledmap.style.options.ca_default": "Default",
  457. "tiledmap.style.options.ca_northern": "Northern",
  458. "tiledmap.style.options.ca_old_world": "Old World",
  459. "tiledmap.style.options.dark": "Dark",
  460. "tiledmap.style.options.light": "Light",
  461. "tiledmap.style.options.satellite": "Satellite",
  462. "tiledmap.style.options.streets": "Streets",
  463. "tiledmap.token.description": "Access token to use any of Mapbox’s tools, APIs, or SDKs",
  464. "tiledmap.token.name": "Access token",
  465. "transpose.description": "When set to Yes, the Y-axis shows the independent scale and the X-axis shows the dependent scale.",
  466. "transpose.name": "Switch X and Y axes"
  467. }
  468. },{}],3:[function(require,module,exports){
  469. var css = ".mapboxgl-map {\n font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif;\n overflow: hidden;\n position: relative;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n}\n.mapboxgl-canvas-container.mapboxgl-interactive,\n.mapboxgl-ctrl-nav-compass {\n cursor: -webkit-grab;\n cursor: -moz-grab;\n cursor: grab;\n}\n.mapboxgl-canvas-container.mapboxgl-interactive:active,\n.mapboxgl-ctrl-nav-compass:active {\n cursor: -webkit-grabbing;\n cursor: -moz-grabbing;\n cursor: grabbing;\n}\n.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate {\n -ms-touch-action: pan-x pan-y;\n touch-action: pan-x pan-y;\n}\n.mapboxgl-canvas-container.mapboxgl-touch-drag-pan {\n -ms-touch-action: pinch-zoom;\n}\n.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan {\n -ms-touch-action: none;\n touch-action: none;\n}\n.mapboxgl-ctrl-top-left,\n.mapboxgl-ctrl-top-right,\n.mapboxgl-ctrl-bottom-left,\n.mapboxgl-ctrl-bottom-right {\n position: absolute;\n pointer-events: none;\n z-index: 2;\n}\n.mapboxgl-ctrl-top-left {\n top: 0;\n left: 0;\n}\n.mapboxgl-ctrl-top-right {\n top: 0;\n right: 0;\n}\n.mapboxgl-ctrl-bottom-left {\n bottom: 0;\n left: 0;\n}\n.mapboxgl-ctrl-bottom-right {\n right: 0;\n bottom: 0;\n}\n.mapboxgl-ctrl {\n clear: both;\n pointer-events: auto;\n}\n.mapboxgl-ctrl-top-left .mapboxgl-ctrl {\n margin: 10px 0 0 10px;\n float: left;\n}\n.mapboxgl-ctrl-top-right .mapboxgl-ctrl {\n margin: 10px 10px 0 0;\n float: right;\n}\n.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl {\n margin: 0 0 10px 10px;\n float: left;\n}\n.mapboxgl-ctrl-bottom-right .mapboxgl-ctrl {\n margin: 0 10px 10px 0;\n float: right;\n}\n.mapboxgl-ctrl-group {\n border-radius: 4px;\n -moz-box-shadow: 0px 0px 2px rgba(0,0,0,0.1);\n -webkit-box-shadow: 0px 0px 2px rgba(0,0,0,0.1);\n box-shadow: 0px 0px 0px 2px rgba(0,0,0,0.1);\n overflow: hidden;\n background: #fff;\n}\n.mapboxgl-ctrl-group > button {\n width: 30px;\n height: 30px;\n display: block;\n padding: 0;\n outline: none;\n border: none;\n border-bottom: 1px solid #ddd;\n box-sizing: border-box;\n background-color: rgba(0,0,0,0);\n cursor: pointer;\n}\n/* https://bugzilla.mozilla.org/show_bug.cgi?id=140562 */\n.mapboxgl-ctrl > button::-moz-focus-inner {\n border: 0;\n padding: 0;\n}\n.mapboxgl-ctrl > button:last-child {\n border-bottom: 0;\n}\n.mapboxgl-ctrl > button:hover {\n background-color: rgba(0,0,0,0.05);\n}\n.mapboxgl-ctrl-icon,\n.mapboxgl-ctrl-icon > .mapboxgl-ctrl-compass-arrow {\n speak: none;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n.mapboxgl-ctrl-icon {\n padding: 5px;\n}\n.mapboxgl-ctrl-icon.mapboxgl-ctrl-zoom-out {\n background-image: url(\"data:image/svg+xml;charset=utf8,%3Csvg%20viewBox%3D%270%200%2020%2020%27%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%3E%0A%20%20%3Cpath%20style%3D%27fill%3A%23333333%3B%27%20d%3D%27m%207%2C9%20c%20-0.554%2C0%20-1%2C0.446%20-1%2C1%200%2C0.554%200.446%2C1%201%2C1%20l%206%2C0%20c%200.554%2C0%201%2C-0.446%201%2C-1%200%2C-0.554%20-0.446%2C-1%20-1%2C-1%20z%27%20%2F%3E%0A%3C%2Fsvg%3E%0A\");\n}\n.mapboxgl-ctrl-icon.mapboxgl-ctrl-zoom-in {\n background-image: url(\"data:image/svg+xml;charset=utf8,%3Csvg%20viewBox%3D%270%200%2020%2020%27%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%3E%0A%20%20%3Cpath%20style%3D%27fill%3A%23333333%3B%27%20d%3D%27M%2010%206%20C%209.446%206%209%206.4459904%209%207%20L%209%209%20L%207%209%20C%206.446%209%206%209.446%206%2010%20C%206%2010.554%206.446%2011%207%2011%20L%209%2011%20L%209%2013%20C%209%2013.55401%209.446%2014%2010%2014%20C%2010.554%2014%2011%2013.55401%2011%2013%20L%2011%2011%20L%2013%2011%20C%2013.554%2011%2014%2010.554%2014%2010%20C%2014%209.446%2013.554%209%2013%209%20L%2011%209%20L%2011%207%20C%2011%206.4459904%2010.554%206%2010%206%20z%27%20%2F%3E%0A%3C%2Fsvg%3E%0A\");\n}\n.mapboxgl-ctrl-icon.mapboxgl-ctrl-geolocate {\n background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D%270%200%2020%2020%27%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%3E%0D%0A%20%20%3Cpath%20style%3D%27fill%3A%23333%3B%27%20d%3D%27M10%204C9%204%209%205%209%205L9%205.1A5%205%200%200%200%205.1%209L5%209C5%209%204%209%204%2010%204%2011%205%2011%205%2011L5.1%2011A5%205%200%200%200%209%2014.9L9%2015C9%2015%209%2016%2010%2016%2011%2016%2011%2015%2011%2015L11%2014.9A5%205%200%200%200%2014.9%2011L15%2011C15%2011%2016%2011%2016%2010%2016%209%2015%209%2015%209L14.9%209A5%205%200%200%200%2011%205.1L11%205C11%205%2011%204%2010%204zM10%206.5A3.5%203.5%200%200%201%2013.5%2010%203.5%203.5%200%200%201%2010%2013.5%203.5%203.5%200%200%201%206.5%2010%203.5%203.5%200%200%201%2010%206.5zM10%208.3A1.8%201.8%200%200%200%208.3%2010%201.8%201.8%200%200%200%2010%2011.8%201.8%201.8%200%200%200%2011.8%2010%201.8%201.8%200%200%200%2010%208.3z%27%20%2F%3E%0D%0A%3C%2Fsvg%3E\");\n}\n.mapboxgl-ctrl-icon.mapboxgl-ctrl-geolocate.mapboxgl-watching {\n background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D%270%200%2020%2020%27%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%3E%0D%0A%20%20%3Cpath%20style%3D%27fill%3A%2300f%3B%27%20d%3D%27M10%204C9%204%209%205%209%205L9%205.1A5%205%200%200%200%205.1%209L5%209C5%209%204%209%204%2010%204%2011%205%2011%205%2011L5.1%2011A5%205%200%200%200%209%2014.9L9%2015C9%2015%209%2016%2010%2016%2011%2016%2011%2015%2011%2015L11%2014.9A5%205%200%200%200%2014.9%2011L15%2011C15%2011%2016%2011%2016%2010%2016%209%2015%209%2015%209L14.9%209A5%205%200%200%200%2011%205.1L11%205C11%205%2011%204%2010%204zM10%206.5A3.5%203.5%200%200%201%2013.5%2010%203.5%203.5%200%200%201%2010%2013.5%203.5%203.5%200%200%201%206.5%2010%203.5%203.5%200%200%201%2010%206.5zM10%208.3A1.8%201.8%200%200%200%208.3%2010%201.8%201.8%200%200%200%2010%2011.8%201.8%201.8%200%200%200%2011.8%2010%201.8%201.8%200%200%200%2010%208.3z%27%20%2F%3E%0D%0A%3C%2Fsvg%3E\");\n}\n.mapboxgl-ctrl-icon.mapboxgl-ctrl-fullscreen {\n background-image: url(\"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxOS4wLjEsIFNWRyBFeHBvcnQgUGx1Zy1JbiAu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1MDA3NSAwIDAgMCAxNS4yMTg3NSAzLjcxODc1IEwgMTIuOTg0Mzc1IDUuOTUzMTI1IEwgMTEuNSA0IEwgMTEgNCBMIDExIDggQyAxMSA4LjQ5OTk5OTIgMTEuNDk5OTk5IDguOTk5OTk4OCAxMiA5IEwgMTYgOSBMIDE2IDguNSBMIDE0LjAzNTE1NiA3LjAyNzM0MzggTCAxNi4yODEyNSA0Ljc4MTI1IEEgMC43NTAwNzUgMC43NTAwNzUgMCAwIDAgMTUuNzM0Mzc1IDMuNDkyMTg3NSB6IE0gNCAxMSBMIDQgMTEuNSBMIDUuOTY0ODQzOCAxMi45NzI2NTYgTCAzLjcxODc1IDE1LjIxODc1IEEgMC43NTEzMDA5NiAwLjc1MTMwMDk2IDAgMSAwIDQuNzgxMjUgMTYuMjgxMjUgTCA3LjAyNzM0MzggMTQuMDM1MTU2IEwgOC41IDE2IEwgOSAxNiBMIDkgMTIgQyA5IDExLjUwMDAwMSA4LjUwMDAwMSAxMS4wMDAwMDEgOCAxMSBMIDQgMTEgeiBNIDEyIDExIEMgMTEuNDk5OTk5IDExLjAwMDAwMSAxMSAxMS41MDAwMDEgMTEgMTIgTCAxMSAxNiBMIDExLjUgMTYgTCAxMi45NzI2NTYgMTQuMDM1MTU2IEwgMTUuMjE4NzUgMTYuMjgxMjUgQSAwLjc1MTMwMDk2IDAuNzUxMzAwOTYgMCAxIDAgMTYuMjgxMjUgMTUuMjE4NzUgTCAxNC4wMzUxNTYgMTIuOTcyNjU2IEwgMTYgMTEuNSBMIDE2IDExIEwgMTIgMTEgeiAiCiAgICAgaWQ9InBhdGg3IiAvPjwvc3ZnPg==\");\n}\n.mapboxgl-ctrl-icon.mapboxgl-ctrl-compass > .mapboxgl-ctrl-compass-arrow {\n width: 20px;\n height: 20px;\n margin: 5px;\n background-image: url(\"data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%0A%09%3Cpolygon%20fill%3D%27%23333333%27%20points%3D%276%2C9%2010%2C1%2014%2C9%27%2F%3E%0A%09%3Cpolygon%20fill%3D%27%23CCCCCC%27%20points%3D%276%2C11%2010%2C19%2014%2C11%20%27%2F%3E%0A%3C%2Fsvg%3E\");\n background-repeat: no-repeat;\n display: inline-block;\n}\na.mapboxgl-ctrl-logo {\n width: 85px;\n height: 21px;\n margin: 0 0 -3px -3px;\n display: block;\n background-repeat: no-repeat;\n cursor: pointer;\n background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiAgIHZpZXdCb3g9IjAgMCA4NC40OSAyMSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgODQuNDkgMjE7IiB4bWw6c3BhY2U9InByZXNlcnZlIj48c3R5bGUgdHlwZT0idGV4dC9jc3MiPiAgLnN0MHtvcGFjaXR5OjAuOTtmaWxsOiNGRkZGRkY7ZW5hYmxlLWJhY2tncm91bmQ6bmV3ICAgIDt9ICAuc3Qxe29wYWNpdHk6MC4zNTtlbmFibGUtYmFja2dyb3VuZDpuZXcgICAgO308L3N0eWxlPjxnPiAgPHBhdGggY2xhc3M9InN0MCIgZD0iTTgzLjI1LDE0LjI2YzAsMC4xMi0wLjA5LDAuMjEtMC4yMSwwLjIxaC0xLjYxYy0wLjEzLDAtMC4yNC0wLjA2LTAuMy0wLjE3bC0xLjQ0LTIuMzlsLTEuNDQsMi4zOSAgICBjLTAuMDYsMC4xMS0wLjE4LDAuMTctMC4zLDAuMTdoLTEuNjFjLTAuMDQsMC0wLjA4LTAuMDEtMC4xMi0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-color: rgba(255, 255, 255, .5);\n margin: 0;\n}\n.mapboxgl-ctrl-attrib.mapboxgl-compact {\n padding-top: 2px;\n padding-bottom: 2px;\n margin: 0 10px 10px 10px;\n position: relative;\n padding-right: 24px;\n background-color: #fff;\n border-radius: 3px 12px 12px 3px;\n visibility: hidden;\n}\n.mapboxgl-ctrl-attrib.mapboxgl-compact:hover {\n visibility: visible;\n}\n.mapboxgl-ctrl-attrib.mapboxgl-compact:after {\n content: '';\n cursor: pointer;\n position: absolute;\n bottom: 0;\n right: 0;\n background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D%270%200%2020%2020%27%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%3E%0D%0A%09%3Cpath%20fill%3D%27%23333333%27%20fill-rule%3D%27evenodd%27%20d%3D%27M4%2C10a6%2C6%200%201%2C0%2012%2C0a6%2C6%200%201%2C0%20-12%2C0%20M9%2C7a1%2C1%200%201%2C0%202%2C0a1%2C1%200%201%2C0%20-2%2C0%20M9%2C10a1%2C1%200%201%2C1%202%2C0l0%2C3a1%2C1%200%201%2C1%20-2%2C0%27%20%2F%3E%0D%0A%3C%2Fsvg%3E\");\n background-color: rgba(255, 255, 255, .5);\n width: 24px;\n height: 24px;\n box-sizing: border-box;\n visibility: visible;\n border-radius: 12px;\n}\n.mapboxgl-ctrl-attrib a {\n color: rgba(0,0,0,0.75);\n text-decoration: none;\n}\n.mapboxgl-ctrl-attrib a:hover {\n color: inherit;\n text-decoration: underline;\n}\n.mapboxgl-ctrl-attrib .mapboxgl-improve-map {\n font-weight: bold;\n margin-left: 2px;\n}\n.mapboxgl-ctrl-scale {\n background-color: rgba(255,255,255,0.75);\n font-size: 10px;\n border-width: medium 2px 2px;\n border-style: none solid solid;\n border-color: #333;\n padding: 0 5px;\n color: #333;\n}\n.mapboxgl-popup {\n position: absolute;\n top: 0;\n left: 0;\n display: -webkit-flex;\n display: flex;\n will-change: transform;\n pointer-events: none;\n}\n.mapboxgl-popup-anchor-top,\n.mapboxgl-popup-anchor-top-left,\n.mapboxgl-popup-anchor-top-right {\n -webkit-flex-direction: column;\n flex-direction: column;\n}\n.mapboxgl-popup-anchor-bottom,\n.mapboxgl-popup-anchor-bottom-left,\n.mapboxgl-popup-anchor-bottom-right {\n -webkit-flex-direction: column-reverse;\n flex-direction: column-reverse;\n}\n.mapboxgl-popup-anchor-left {\n -webkit-flex-direction: row;\n flex-direction: row;\n}\n.mapboxgl-popup-anchor-right {\n -webkit-flex-direction: row-reverse;\n flex-direction: row-reverse;\n}\n.mapboxgl-popup-tip {\n width: 0;\n height: 0;\n border: 10px solid transparent;\n z-index: 1;\n}\n.mapboxgl-popup-anchor-top .mapboxgl-popup-tip {\n -webkit-align-self: center;\n align-self: center;\n border-top: none;\n border-bottom-color: #fff;\n}\n.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip {\n -webkit-align-self: flex-start;\n align-self: flex-start;\n border-top: none;\n border-left: none;\n border-bottom-color: #fff;\n}\n.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip {\n -webkit-align-self: flex-end;\n align-self: flex-end;\n border-top: none;\n border-right: none;\n border-bottom-color: #fff;\n}\n.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip {\n -webkit-align-self: center;\n align-self: center;\n border-bottom: none;\n border-top-color: #fff;\n}\n.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip {\n -webkit-align-self: flex-start;\n align-self: flex-start;\n border-bottom: none;\n border-left: none;\n border-top-color: #fff;\n}\n.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip {\n -webkit-align-self: flex-end;\n align-self: flex-end;\n border-bottom: none;\n border-right: none;\n border-top-color: #fff;\n}\n.mapboxgl-popup-anchor-left .mapboxgl-popup-tip {\n -webkit-align-self: center;\n align-self: center;\n border-left: none;\n border-right-color: #fff;\n}\n.mapboxgl-popup-anchor-right .mapboxgl-popup-tip {\n -webkit-align-self: center;\n align-self: center;\n border-right: none;\n border-left-color: #fff;\n}\n.mapboxgl-popup-close-button {\n position: absolute;\n right: 0;\n top: 0;\n border: none;\n border-radius: 0 3px 0 0;\n cursor: pointer;\n background-color: rgba(0,0,0,0);\n}\n.mapboxgl-popup-close-button:hover {\n background-color: rgba(0,0,0,0.05);\n}\n.mapboxgl-popup-content {\n position: relative;\n background: #fff;\n border-radius: 3px;\n box-shadow: 0 1px 2px rgba(0,0,0,0.10);\n padding: 10px 10px 15px;\n pointer-events: auto;\n}\n.mapboxgl-popup-anchor-top-left .mapboxgl-popup-content {\n border-top-left-radius: 0;\n}\n.mapboxgl-popup-anchor-top-right .mapboxgl-popup-content {\n border-top-right-radius: 0;\n}\n.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-content {\n border-bottom-left-radius: 0;\n}\n.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-content {\n border-bottom-right-radius: 0;\n}\n.mapboxgl-marker {\n position: absolute;\n top: 0;\n left: 0;\n will-change: transform;\n}\n.mapboxgl-crosshair,\n.mapboxgl-crosshair .mapboxgl-interactive,\n.mapboxgl-crosshair .mapboxgl-interactive:active {\n cursor: crosshair;\n}\n.mapboxgl-boxzoom {\n position: absolute;\n top: 0;\n left: 0;\n width: 0;\n height: 0;\n background: #fff;\n border: 2px dotted #202020;\n opacity: 0.5;\n}\n@media print {\n .mapboxgl-improve-map {\n display: none;\n }\n}\n"; (require("browserify-css").createStyle(css, { "href": "dist/bundles/rave-library-tiledmap/node/rave-library-tiledmap/mapbox-glv0.37.css"})); module.exports = css;
  470. },{"browserify-css":7}],4:[function(require,module,exports){
  471. (function(){var $={};var com_ibm_rave_library_Library=rave["library"];rave["internal"]["Declare"]=rave["_"]["com_ibm_rave_core_nativeImpl_Declare"];rave["internal"]["CSSUtil"]=rave["_"]["com_ibm_rave_core_internal_css_CSSUtil"];var com_ibm_rave_bundles_RaveBundle=rave["internal"]["Declare"](rave["library"]["internal"]["Bundle"],{"loader":null,"constructor":function(){this["loader"]=new com_ibm_rave_bundles_internal_nativeImpl_RaveBundleResourceLoader("/com/ibm/rave/bundles/"+this["getName"]())},"loadResources":function(){this.setMessageCatalog(rave["library"]["internal"]["Bundle"].DEFAULT_LOCALE,
  472. require("./i18n/messages_en.json"));var array=require("./configuration/configuration.json");if(array){var __i_enFor0=0;var __exp_enFor0=array;for(var __len_enFor0=__exp_enFor0.length;__i_enFor0<__len_enFor0;++__i_enFor0){var artifact=__exp_enFor0[__i_enFor0];this.initialize(artifact)}}require("./vizlibrary.css")}});var com_ibm_rave_bundles_internal_nativeImpl_RaveBundleResourceLoader=function(){};var com_ibm_rave_bundles_views_BundleView=rave["internal"]["Declare"](rave["library"]["internal"]["AbstractView"],
  473. {"_backgroundComponent":null,"_layoutComponent":null,"_clip":null,"_axes":null,"_legends":null,"_chart":null,"dataModel":null,"_zoomP":null,"_zoomS":null,"constructor":function(context){},"getGroupStructure":function(){},"setup":function(){rave["library"]["internal"]["AbstractView"].prototype["setup"].call(this);this["_backgroundComponent"]=new com_ibm_rave_bundles_components_BackgroundComponentImpl;this["_layoutComponent"]=new com_ibm_rave_bundles_components_ChartLayoutComponentImpl;this["_clip"]=
  474. new com_ibm_rave_bundles_components_ClipPathComponentImpl(this.context.instanceId()+"clipViewport");if(this["isZoomSupported"]())this["resetZoom"]();this["_legends"]=new com_ibm_rave_bundles_components_LegendsManager(this.context,this["getLegendCount"]());if(this["isAxesManagerRequired"]())this["_axes"]=new com_ibm_rave_bundles_components_AxesManager(this.context);this._groupStructure=this["getGroupStructure"]()},"preDraw":function(chartId){this.cancelTransitions();rave["library"]["internal"]["AbstractView"].createGroupStructure(this.context.node,
  475. this._groupStructure);this["_chart"]=this.context.node.selectAll(chartId)},"resetZoom":function(){this["_zoomP"]=[0,0,0,0];this["_zoomS"]=[1,1,1,1]},"validateDataModel":function(elementsToRemove){if(elementsToRemove!==null||arguments.length>1)elementsToRemove=Array.prototype.slice.call(arguments);this["dataModel"]=this.context["dataModel"]();if(!this["dataValid"]()){var __i_enFor0=0;for(var __len_enFor0=elementsToRemove.length;__i_enFor0<__len_enFor0;++__i_enFor0){var e=elementsToRemove[__i_enFor0];
  476. this["_chart"].selectAll(e).selectAll("*").remove()}this["_legends"]["visible"](false)["draw"]();return false}return true},"dataValid":function(){return this["dataModel"].validate()},"getLegendCount":function(){return 1},"isAxesManagerRequired":function(){return false},"isZoomSupported":function(){return true},"getProperty":function(s){return this.context.getPropertyValue(s)},"getPropertyDefault":function(s){return this.context["getPropertyDefault"](s)},"getBooleanProperty":function(s){var obj=this["getProperty"](s);
  477. return obj},"getDoubleProperty":function(s){var obj=this["getProperty"](s);return+obj},"getIntProperty":function(s){var obj=this["getProperty"](s);return~~obj},"getStringProperty":function(id){var obj=this["getProperty"](id);return obj==null?null:""+obj},"getStringPropertyEmptyAsNull":function(id){var s=this["getStringProperty"](id);return s==null||s.length==0?null:s},"getCSSSizeToPixelNumber":function(id){var cssSize=rave["library"]["internal"]["CSSConverter"].convertCSSSizeToPixelNumber(this.context.getPropertyValue(id),
  478. 100,10);return cssSize==null?0:cssSize},"getEffectDuration":function(effect){var duration=this["getIntProperty"]("effect.duration");if(duration<0||effect==null||"none"==effect)duration=0;return duration},"getTopPadding":function(){return this["getProperty"]("layout.chart.padding.top")},"getLeftPadding":function(){return this["getProperty"]("layout.chart.padding.left")},"getBottomPadding":function(){return this["getProperty"]("layout.chart.padding.bottom")},"getRightPadding":function(){return this["getProperty"]("layout.chart.padding.right")},
  479. "getLayoutPadding":function(){return this["getProperty"]("layout.padding")},"getLegendChartGap":function(){return this["getProperty"]("layout.legendchart.gap")},"getLegendChartAlign":function(){return this["getBooleanProperty"]("layout.legendchart.align")},"getLegendPosition":function(){return this["getStringProperty"]("legend.position")},getPalette$0:function(){return this.getPalette$1("color.palette")},getPalette$1:function(paletteID){var id=this["getStringProperty"](paletteID);var colorPalette=
  480. com_ibm_rave_library_Library.palettes["getPalette"](id);return!colorPalette?com_ibm_rave_library_Library.palettes.getDefaultPalette():colorPalette},getDynamicPalette$0:function(){return this.getDynamicPalette$1("color.palette","color.dynamicPalette.min","color.dynamicPalette.mid","color.dynamicPalette.max")},getDynamicPalette$1:function(paletteID,minId,midId,maxId){var colorPalette;var min=this["getStringProperty"](minId);if(min!=null){var mid=this["getStringProperty"](midId);if(mid!=null){var max=
  481. this["getStringProperty"](maxId);if(max!=null){var fills=[min,mid,max];colorPalette=rave["library"]["internal"]["AbstractView"].getFillPalette(fills)}}}return!colorPalette?this["getPalette"](paletteID):colorPalette},"prepareLayoutComponent":function(){this["_layoutComponent"]["setPreExecute"](this.context.getPreExecute())["overall"](new rave["internal"]["RectStruct"](0,0,this.context["size"].w,this.context["size"].h))["legendPosition"](this["getLegendPosition"]())["padding"](this["getLayoutPadding"]())["chartPadding"](this["getTopPadding"](),
  482. this["getLeftPadding"](),this["getBottomPadding"](),this["getRightPadding"]())["legendChartGap"](this["getLegendChartGap"]())["legendChartAlign"](this["getLegendChartAlign"]())},"prepareLayoutSizables":function(layoutComponent,useX2,useY1,useX1,useY2,useLegend){layoutComponent["removeAxisSizables"]();if(useX1)layoutComponent["addAxisSizable"](this["_axes"]["axisComponent"](0));if(useY1)layoutComponent["addAxisSizable"](this["_axes"]["axisComponent"](2));if(useX2)layoutComponent["addAxisSizable"](this["_axes"]["axisComponent"](1));
  483. if(useY2)layoutComponent["addAxisSizable"](this["_axes"]["axisComponent"](3));layoutComponent["legendSize"](useLegend?this["_legends"]:null)},"resetUpdate":function(){this.updateType=4},"isUpdateNothing":function(){return this.updateType==4},"isShowLegend":function(){return this["getBooleanProperty"]("legend.display")},cancelTransitions:function(){this.context.node.selectAll("*").interrupt()},"setBackgroundProperties":function(elementRect,duration){this["_backgroundComponent"]["setPreExecute"](this.context.getPreExecute())["size"](this.context["size"])["backgroundColor"](this["getStringProperty"]("background.chart.color"));
  484. this.context.node.selectAll("rect.background.chart")["transition"]()["duration"](duration).call(this["_backgroundComponent"]);this["_backgroundComponent"]["setPreExecute"](this.context.getPreExecute())["rect"](elementRect)["backgroundColor"](this["getStringProperty"]("background.elements.color"));this.context.node.selectAll("rect.background.elements")["transition"]()["duration"](duration).call(this["_backgroundComponent"])},"isShowDataLabels":function(){return this["getBooleanProperty"]("data.label.display")},
  485. "isShowDataLabelsAsPercentageOfColor":function(){var dataLabel=this["getStringProperty"]("data.label.type");return"PercentOfColor"==dataLabel},"isShowDataLabelsAsPercentageOfCategory":function(){var dataLabel=this["getStringProperty"]("data.label.type");return"PercentOfCategory"==dataLabel},"getlDataLabelAccessor":function(dataSet,slot,isInterval){var labelAccessor;var labelEntry=dataSet.slot(slot).entry();if(!labelEntry)if(this["isShowDataLabelsAsPercentageOfCategory"]())labelAccessor=isInterval?
  486. com_ibm_rave_bundles_components_IntervalDataUtilities["PERCENT_OF_CATEGORY_ACCESSOR"]:com_ibm_rave_bundles_data_PointDataUtilities["PERCENT_OF_CATEGORY_ACCESSOR"];else if(this["isShowDataLabelsAsPercentageOfColor"]())labelAccessor=isInterval?com_ibm_rave_bundles_components_IntervalDataUtilities["PERCENT_OF_COLOR_ACCESSOR"]:com_ibm_rave_bundles_data_PointDataUtilities["PERCENT_OF_COLOR_ACCESSOR"];else labelAccessor=isInterval?com_ibm_rave_bundles_components_IntervalDataUtilities["VALUE_ACCESSOR"]:
  487. com_ibm_rave_bundles_data_PointDataUtilities["Y_ACCESSOR"];else labelAccessor=rave["library"]["internal"]["AbstractView"].originalDatumAccessor(rave["library"]["internal"]["AbstractView"].accessorOf(labelEntry));return labelAccessor},"getEntryForDataLabelFormatter":function(dataSet,labelSlot,defaultSlot){var labelEntry=dataSet.slot(labelSlot).entry();return labelEntry?labelEntry:dataSet.slot(defaultSlot).entry()},"getBackgroundConstrastLabelStyle":function(){var labelFontStyle=com_ibm_rave_bundles_utilities_FontPropertyParser["parseCSSFont"](this["getStringProperty"]("labelstyle.font"));
  488. if(this["getBooleanProperty"]("contrast.label.color")==false)return labelFontStyle;var defaultFillColor;if(labelFontStyle){defaultFillColor=labelFontStyle["fill"];if(defaultFillColor==null)defaultFillColor=labelFontStyle["color"]}else labelFontStyle={};if(defaultFillColor==null)defaultFillColor="#000000";labelFontStyle["fill"]=com_ibm_rave_bundles_utilities_ColorUtil["getContrastColor"](this["getStringProperty"]("background.elements.color"),defaultFillColor);return labelFontStyle},"getPalette":function(a0){var args=
  489. arguments;if(args.length==0)return this.getPalette$0();if(args.length==1&&(a0==null||typeof a0==="string"))return this.getPalette$1(a0);return rave["library"]["internal"]["AbstractView"].prototype["getPalette"].apply(this,args)},"getDynamicPalette":function(a0,a1,a2,a3){var args=arguments;if(args.length==0)return this.getDynamicPalette$0();return this.getDynamicPalette$1(a0,a1,a2,a3)}});var com_ibm_rave_bundles_components_BundleComponentImpl=rave["internal"]["Declare"]({"_renderCallback":null,_$functionClassMethod:function(){var _$self=
  490. function(args){if(args!==null||arguments.length>1)args=Array.prototype.slice.call(arguments,0);var self=_$self;this.each(function(data,index,groupIndex){self["execute"](rave.select(this))});return null};return _$self},"execute":function(g){},"setPreExecute":function(callback){this._preExecuteCallback=callback;return this},"preExecute":function(){if(this._preExecuteCallback)this._preExecuteCallback(this)},"setRenderCallback":function(callback){this["_renderCallback"]=callback;return this},"type":function(){},
  491. "updateBorder":function(s,borderWidth,borderColor){if(borderWidth!=null)s.each(function(data,index,groupIndex){if(!this.rave_getProperty("selected")&&!this.rave_getProperty("highlighted"))this.rave_setStyle("stroke-width",borderWidth,"")});if(borderColor!=null)s.each(function(data,index,groupIndex){if(!this.rave_getProperty("selected")&&!this.rave_getProperty("highlighted"))this.rave_setStyle("stroke",borderColor,"")})},"getDefaultLabelColor":function(_labelStyle){if(!_labelStyle)return"#000000";
  492. var defaultFillColor;if(_labelStyle){defaultFillColor=_labelStyle["fill"];if(defaultFillColor==null)defaultFillColor=_labelStyle["color"]}if(defaultFillColor==null)defaultFillColor="#000000";return defaultFillColor.toString()}});var com_ibm_rave_bundles_component_BackgroundComponent=rave["internal"]["Declare"].implement();com_ibm_rave_bundles_component_BackgroundComponent["COMPONENT_TYPE"]="BackgroundComponent";var com_ibm_rave_bundles_component_ChartLayoutComponent=rave["internal"]["Declare"].implement();
  493. com_ibm_rave_bundles_component_ChartLayoutComponent["COMPONENT_TYPE"]="ChartLayoutComponent";var com_ibm_rave_bundles_components_LegendsManager=rave["internal"]["Declare"]({_numLegends:0,_doTransition:false,_duration:0,_spaceUsed:0,"constructor":function(context,numLegends){this._context=context;this._numLegends=numLegends;this._comp=new com_ibm_rave_bundles_components_LegendComponentImpl;this._rectangle=new rave["internal"]["RectStruct"](0,0,0,0);this._orient="vertical";this._preExecute=null;this._selectors=
  494. [];this._palettes=[];this._scale=[];this._swatchSizes=[];this._shapes=[];this._titles=[];this._titleFonts=[];this._titleFills=[];this._titleFontSizes=[];this._titleFontFamilies=[];this._entryFonts=[];this._formatters=[];this._lastVisible=[];this._visible=[];this._dataSlotEntries=[];for(var i=0;i<this._numLegends;++i){this._selectors[i]=null;this._palettes[i]=null;this._swatchSizes[i]=null;this._shapes[i]=null;this._titles[i]=null;this._formatters[i]=null;this._lastVisible[i]=false;this._visible[i]=
  495. true}},getLegendComponent:function(){return this._comp},visible$0:function(legendIndex,visible){if(legendIndex<this._visible.length)this._visible[legendIndex]=visible;return this},visible$1:function(visible){for(var i=0;i<this._visible.length;++i)this._visible[i]=visible;return this},"rectangle":function(rect){if(rect)this._rectangle=new rave["internal"]["RectStruct"](rect.x,rect.y,rect.width,rect.height);return this},"orient":function(orient){if("horizontal"==orient||"vertical"==orient)this._orient=
  496. orient;return this},"position":function(position){return this["orient"](com_ibm_rave_bundles_components_LegendComponentImpl["orientationOf"](position))},"transition":function(doTransition,duration){this._doTransition=doTransition;this._duration=duration>=0?duration:0;return this},"setPreExecute":function(callback){this._preExecute=callback;return this},"selector":function(index,selector){if(index>=0&&index<this._numLegends)this._selectors[index]=selector;return this},"palette":function(index,palette){if(index>=
  497. 0&&index<this._numLegends)this._palettes[index]=palette;return this},"shape":function(index,shape){if(index>=0&&index<this._numLegends)this._shapes[index]=shape;return this},"title":function(index,title){if(index>=0&&index<this._numLegends)this._titles[index]=title;return this},"titleFont":function(index,titleFont){if(index>=0&&index<this._numLegends)this._titleFonts[index]=titleFont;return this},"entryFont":function(index,entryFont){if(index>=0&&index<this._numLegends)this._entryFonts[index]=entryFont;
  498. return this},"titleFill":function(index,titleFill){if(index>=0&&index<this._numLegends)this._titleFills[index]=titleFill;return this},"titleFontSize":function(index,titleFontSize){if(index>=0&&index<this._numLegends)this._titleFontSizes[index]=titleFontSize;return this},"titleFontFamily":function(index,titleFontFamily){if(index>=0&&index<this._numLegends)this._titleFontFamilies[index]=titleFontFamily;return this},"scale":function(index,scale){if(index>=0&&index<this._numLegends)this._scale[index]=
  499. scale;return this},"swatchSize":function(index,swatchSize){if(index>=0&&index<this._numLegends)this._swatchSizes[index]=swatchSize;return this},"formatterList":function(index,entries,format,defaultFunction){if(index>=0&&index<this._numLegends)this._formatters[index]=this._context.getCustomFormatterWithFlag(["legend","all"],rave["library"]["internal"]["BundleContext"].makeCustomFormatInfo("legend-label","ROLE_NONE",format,entries),defaultFunction,false);return this},"formatter":function(index,entry){var entries=
  500. [];if(entry)entries.push(entry);return this["formatterList"](index,entries,"none",null)},"anyVisible":function(){for(var i=0;i<this._numLegends;++i)if(this._visible[i]==true&&(this._palettes[i]||this._swatchSizes[i]))return true;return false},"setDataSlot":function(index,entry){if(index>=0&&index<this._numLegends)this._dataSlotEntries[index]=entry;return this["formatter"](index,entry)},preLayout$0:function(layoutComponent){this.preLayout$1(layoutComponent,true);return this},preLayout$1:function(layoutComponent,
  501. axesBeforeLegend){var layoutTransition=this._doTransition;var layoutDuration=this._duration;this._doTransition=false;this._duration=0;var children=[];for(var i=0;i<this._numLegends;++i)children[i]="g.layoutLegend-"+i;rave["library"]["internal"]["AbstractView"].createGroupStructure(this._context.node.select("g.legends-layout"),children);var layoutSelectors=[];var layoutLastVisible=[];for(i=0;i<this._numLegends;++i){layoutSelectors[i]=this._selectors[i];layoutLastVisible[i]=this._lastVisible[i];this._lastVisible[i]=
  502. false;if(this._selectors[i])this._selectors[i]=this._context.node.select("g.layoutLegend-"+i)}layoutComponent["preLayout"](true,!axesBeforeLegend);this["rectangle"](layoutComponent["legendRect"]());this["draw"]();this._doTransition=layoutTransition;this._duration=layoutDuration;this._context.node.select("g.legends-layout").selectAll("*").remove();for(i=0;i<this._numLegends;++i){this._lastVisible[i]=layoutLastVisible[i];this._selectors[i]=layoutSelectors[i]}return this},"draw":function(){var nVisible=
  503. 0;for(var i=0;i<this._numLegends;++i)if((this._swatchSizes[i]||this._palettes[i])&&this._visible[i])nVisible++;var x=this._rectangle.x;var y=this._rectangle.y;var dx;var dy;var size;if(nVisible==0){dx=0;dy=0;size=[this._rectangle.width,this._rectangle.height]}else if("horizontal"==this._orient){dx=this._rectangle.width/nVisible;dy=0;size=[dx,this._rectangle.height]}else{dx=0;dy=this._rectangle.height/nVisible;size=[this._rectangle.width,dy]}this._comp["orient"](this._orient)["size"](size);this._spaceUsed=
  504. 0;for(i=0;i<this._numLegends;++i)if(this._selectors[i]){var visible=this._visible[i]&&(this._palettes[i]||this._swatchSizes[i]);this._comp["visible"](visible)["colorPalette"](this._palettes[i])["orient"](this._orient)["setPreExecute"](this._preExecute)["shape"](this._shapes[i]!=null?this._shapes[i]:"square")["title"](this._titles[i])["titleFill"](this._titleFills[i])["titleFontSize"](this._titleFontSizes[i])["titleFontFamily"](this._titleFontFamilies[i])["labelFormat"](this._formatters[i])["swatchSize"](this._swatchSizes[i])["scale"](this._scale[i]);
  505. var fontStyle=this._context.getPropertyValue("legend.titlestyle.font");if(this._titleFonts[i]!=null&&!(this._titleFonts[i]==""))this._comp["titleFont"](this._titleFonts[i]);else if(fontStyle!=null&&!(fontStyle==""))this._comp["titleFont"](this._context.getPropertyValue("legend.titlestyle.font"));fontStyle=this._context.getPropertyValue("legend.entrystyle.font");if(this._entryFonts[i]!=null)this._comp["entryFont"](this._entryFonts[i]);else if(fontStyle!=null&&!(fontStyle==""))this._comp["entryFont"](this._context.getPropertyValue("legend.entrystyle.font"));
  506. var s=this._doTransition&&this._lastVisible[i]?this._selectors[i]["transition"]("transition")["duration"](this._duration):this._selectors[i];s.attr("transform","translate("+x+","+y+")").call(this._comp);var dataSlotEntries=[];if(this._dataSlotEntries[i])dataSlotEntries.push(this._dataSlotEntries[i]);this._selectors[i].selectAll(".legendTitle").property("dataSlots",dataSlotEntries);if(visible){x+=dx;y+=dy;if(this._comp["getSpaceUsed"]()>this._spaceUsed)this._spaceUsed=this._comp["getSpaceUsed"]()}this._lastVisible[i]=
  507. visible}else this._lastVisible[i]=false;return this},"getSizableType":function(){return 2},"getSizableOrientation":function(){return this._orient},"getPreferredSize":function(){return this._spaceUsed},"getSpillOverSize":function(){return 0},"visible":function(a0,a1){var args=arguments;if(args.length==1)return this.visible$1(a0);return this.visible$0(a0,a1)},"preLayout":function(a0,a1){var args=arguments;if(args.length==1)return this.preLayout$0(a0);return this.preLayout$1(a0,a1)}});var com_ibm_rave_bundles_utilities_FontPropertyParser=
  508. rave["internal"]["Declare"]({});com_ibm_rave_bundles_utilities_FontPropertyParser["parseCSSFont"]=function(fontStyle){if(fontStyle!=null&&fontStyle.length>0){var properties=fontStyle.split(new RegExp(";"));var fontStyles={};var __i_enFor0=0;for(var __len_enFor0=properties.length;__i_enFor0<__len_enFor0;++__i_enFor0){var property=properties[__i_enFor0];var fontMap=property.split(new RegExp(":"));if(fontMap.length==2){var key=fontMap[0].trim();fontStyles[key=="color"?"fill":key]=fontMap[1].trim()}}return fontStyles}return null};
  509. var com_ibm_rave_bundles_components_AxesManager=rave["internal"]["Declare"]({_firstDraw:false,_visible:true,_duration:0,_transpose:false,_swapX:false,_swapY:false,_layoutInProgress:false,_layoutMaxWidth:0,_layoutMaxHeight:0,_xPadding:0,_xOuterPadding:0,_yPadding:0,_yOuterPadding:0,_xPixelPad:0,_yPixelPad:0,_preventStaggerRotate45:false,"constructor":function(context){this._scales=[];this._suppressPanLabels=[];this._drawAxisLabels=[];this._axisComponents=[];this._lastAxisDrawSelectors=[];this._gridComponents=
  510. [];this._lastGridDrawSelectors=[];this._clearAxis=new com_ibm_rave_bundles_components_AxisComponentImpl;this._clearGrid=new com_ibm_rave_bundles_components_GridComponentImpl;this._axisSelectors=[];this._gridSelectors=[];this._axisRects=[];this._elementRect=new rave["internal"]["RectStruct"](0,0,0,0);this._lastAxisDrew=[];this._lastGridDrew=[];this._dataSlotEntries=[];this._layoutAxisOrder=[];this._context=context;for(var i=0;i<4;++i){this._scales[i]=null;this._suppressPanLabels[i]=false;this._axisComponents[i]=
  511. null;this._lastAxisDrawSelectors[i]=null;this._gridComponents[i]=null;this._lastGridDrawSelectors[i]=null;this._axisSelectors[i]=null;this._gridSelectors[i]=null;this._axisRects[i]=new rave["internal"]["RectStruct"](0,0,0,0);this._lastAxisDrew[i]=false;this._lastGridDrew[i]=false;this._dataSlotEntries[i]=[]}},"preLayout":function(layoutComponent,axesBeforeLegend,xPadding,xOuterPadding,xPixelPad,yPadding,yOuterPadding,yPixelPad){this._xPadding=xPadding;this._xOuterPadding=xOuterPadding;this._xPixelPad=
  512. xPixelPad;this._yPadding=yPadding;this._yOuterPadding=yOuterPadding;this._yPixelPad=yPixelPad;this._layoutInProgress=true;var layoutDuration=this._duration;this._duration=0;var children=["g.layoutAxis-bottom","g.layoutAxis-top","g.layoutAxis-left","g.layoutAxis-right","g.layoutGrid-bottom","g.layoutGrid-top","g.layoutGrid-left","g.layoutGrid-right"];rave["library"]["internal"]["AbstractView"].createGroupStructure(this._context.node.select("g.axes-layout"),children);var layoutAxisSelectors=[];var layoutGridSelectors=
  513. [];var layoutLastAxisDrew=[];for(var position=0;position<4;++position){if(this._axisComponents[position])this._axisComponents[position]["preLayout"]();layoutAxisSelectors[position]=this._axisSelectors[position];layoutGridSelectors[position]=this._gridSelectors[position];layoutLastAxisDrew[position]=this._lastAxisDrew[position];if(this._axisSelectors[position])this["axisSelector"](position,this._context.node.select("g.layoutAxis-"+com_ibm_rave_bundles_components_AxesManager.ORIENTATIONS[position]));
  514. if(this._gridSelectors[position])this["gridSelector"](position,this._context.node.select("g.layoutGrid-"+com_ibm_rave_bundles_components_AxesManager.ORIENTATIONS[position]))}layoutComponent["preLayout"](axesBeforeLegend,true);com_ibm_rave_bundles_components_AxesManager.setRect(this._elementRect,layoutComponent["elementRect"]());var countHorz=0;var countVert=0;var axes=[];for(position=0;position<4;++position){var role=this.positionToRole(position);var isHorz=position==1||position==0;if(this._axisSelectors[position]&&
  515. this._scales[role]){if(isHorz)countHorz++;else countVert++;if(this._scales[role].isOrdinal()||this._scales[role].isClustered()){var score=isHorz?4:2;axes.push(new com_ibm_rave_bundles_components_AxesManager.AxisLayout(position,score))}else{score=isHorz?3:1;axes.push(new com_ibm_rave_bundles_components_AxesManager.AxisLayout(position,score))}}else axes.push(new com_ibm_rave_bundles_components_AxesManager.AxisLayout(position,5))}axes.sort(function(a1,a2){var a1value=a1["score"];var a2value=a2["score"];
  516. return a1value<a2value?-1:a1value>a2value?1:0});this._layoutAxisOrder=[];for(var i=0;i<4;++i)this._layoutAxisOrder[i]=axes[i]["position"];this._layoutMaxWidth=this._elementRect.width*(countVert>1?0.5:0.4);this._layoutMaxHeight=this._elementRect.height*(countHorz>1?0.5:0.4);for(var index=0;index<4;++index){position=this._layoutAxisOrder[index];com_ibm_rave_bundles_components_AxesManager.setRect(this._axisRects[position],this._elementRect)}this["draw"]();this._duration=layoutDuration;this._context.node.select("g.axes-layout").selectAll("*").remove();
  517. for(position=0;position<4;++position){this._lastAxisDrew[position]=layoutLastAxisDrew[position];this._axisSelectors[position]=layoutAxisSelectors[position];this._gridSelectors[position]=layoutGridSelectors[position]}this._layoutInProgress=false;return this},getPositionToDraw:function(index){return this._layoutInProgress?this._layoutAxisOrder[index]:index},preDrawAxis:function(index){if(this._layoutInProgress){var position=this._layoutAxisOrder[index];var role=this.positionToRole(position);if(role==
  518. 0||role==1)this.setScaleRangePadded(this._scales[role],false,this._xPadding,this._xOuterPadding,this._xPixelPad);else this.setScaleRangePadded(this._scales[role],true,this._yPadding,this._yOuterPadding,this._yPixelPad);this._axisComponents[role]["allowAutomaticAxisLayoutToChangeOrientation"](true)}},postDrawAxis:function(index){if(this._layoutInProgress){var position=this._layoutAxisOrder[index];var role=this.positionToRole(position);var axis=this._axisComponents[role];var size=axis["getPreferredSize"]();
  519. if(position==1||position==0){if(size>this._layoutMaxHeight)size=this._layoutMaxHeight;this._elementRect.height-=size;if(position==1)this._elementRect.y+=size}else{if(size>this._layoutMaxWidth)size=this._layoutMaxWidth;this._elementRect.width-=size;if(position==2)this._elementRect.x+=size}this._axisComponents[role]["allowAutomaticAxisLayoutToChangeOrientation"](false)}},"draw":function(){for(var role=0;role<4;++role){this._lastAxisDrawSelectors[role]=null;this._lastGridDrawSelectors[role]=null}for(var index=
  520. 0;index<4;++index){var position=this.getPositionToDraw(index);role=this.positionToRole(position);if(!this._visible||!this._axisSelectors[position]||!this._scales[role]){this.clearAxis(position);this.clearGrid(position)}else{this.preDrawAxis(index);this.drawAxis(position,role);this.postDrawAxis(index);if(this._gridSelectors[position])this.drawGrid(position,role)}}this._firstDraw=false},"hideAnyPanZoom":function(){return this._suppressPanLabels[0]||this._suppressPanLabels[1]||this._suppressPanLabels[2]||
  521. this._suppressPanLabels[3]},"redraw":function(panning){for(var role=0;role<4;++role){if(this._axisComponents[role]&&this._lastAxisDrawSelectors[role]){this._axisComponents[role]["displayTickLabels"](this._drawAxisLabels[role]);this._axisComponents[role]["showPanZoomTickLabels"](!panning||!this._suppressPanLabels[role]);var isAllow=this._axisComponents[role]["isAllowAutomaticAxisLayoutToChangeOrientation"]();this._axisComponents[role]["allowAutomaticAxisLayoutToChangeOrientation"](false);this._lastAxisDrawSelectors[role].call(this._axisComponents[role]);
  522. this._axisComponents[role]["allowAutomaticAxisLayoutToChangeOrientation"](isAllow)}if(this._gridComponents[role]&&this._lastGridDrawSelectors[role])this._lastGridDrawSelectors[role].call(this._gridComponents[role])}},"preventStaggerRotate45":function(preventStaggerRotate45){this._preventStaggerRotate45=preventStaggerRotate45},drawAxis:function(position,role){var axisGroup=this._axisSelectors[position];this._lastAxisDrawSelectors[role]=axisGroup;var comp=this["axisComponent"](role);var layoutModeID=
  523. role==2?"axis.y.labels.layoutMode":role==3?"axis.y2.labels.layoutMode":"axis.x.labels.layoutMode";var allowStaggerID=role==2?"axis.y.labels.allowStagger":role==3?"axis.y2.labels.allowStagger":"axis.x.labels.allowStagger";var allowRotate45ID=role==2?"axis.y.labels.allowRotate45":role==3?"axis.y2.labels.allowRotate45":"axis.x.labels.allowRotate45";var allowRotate90ID=role==2?"axis.y.labels.allowRotate90":role==3?"axis.y2.labels.allowRotate90":"axis.x.labels.allowRotate90";var layoutMode=""+this._context.getPropertyValue(layoutModeID);
  524. var allowStagger=!this._preventStaggerRotate45&&this._context.getPropertyValue(allowStaggerID);var allowRotate45=!this._preventStaggerRotate45&&this._context.getPropertyValue(allowRotate45ID);var allowRotate90=this._context.getPropertyValue(allowRotate90ID);var textTruncateIndicator=this._context.getPropertyValue("axis.labels.truncationText");var axisBounds=this._axisRects[position];var orient=com_ibm_rave_bundles_components_AxesManager.ORIENTATIONS[position];var transform=com_ibm_rave_bundles_components_AxisComponentImpl["getTranslation"](axisBounds,
  525. orient);var axisTransform="translate("+transform[0]+","+transform[1]+")";comp["scale"](this._scales[role])["setRole"](com_ibm_rave_bundles_components_AxesManager.ROLES[role])["bounds"](axisBounds)["elementRect"](this._elementRect)["orient"](orient)["layoutMode"](layoutMode)["allowStagger"](allowStagger)["allowRotate45"](allowRotate45)["allowRotate90"](allowRotate90)["setPreExecute"](this._context.getPreExecute())["textTruncateIndicator"](textTruncateIndicator);this._drawAxisLabels[role]=comp["_displayTickLabels"];
  526. var axisGroupUpdate=axisGroup;if(this._duration>0&&!this._firstDraw&&this._lastAxisDrew[position])axisGroupUpdate=axisGroup["transition"]()["duration"](this._duration);axisGroupUpdate.attr("transform",axisTransform);axisGroupUpdate.call(comp);var dataSlotEntryList=this._dataSlotEntries[role];axisGroup.selectAll(".axis-title").property("dataSlots",dataSlotEntryList);this._lastAxisDrew[position]=comp.renderedShapes();if(this._defs){var clipAxis=new com_ibm_rave_bundles_components_ClipPathComponentImpl(this._context.instanceId()+
  527. "clip"+orient);var text=axisGroup.append("text").text("000,000");var bbox=text.node().getBBox();var w=bbox.width;var h=bbox.height;text.remove();var clipRect;if(position==0||position==1){var leftEdge=axisBounds.x+transform[0]*-1;var rightEdge=leftEdge+axisBounds.width;if(!this._scales[role].isOrdinal()&&!this._scales[role].isClustered()){var numericLeftEdge=this._elementRect.x-w+transform[0]*-1;var numericRightEdge=numericLeftEdge+this._elementRect.width+w*2;if(numericLeftEdge<leftEdge)leftEdge=numericLeftEdge;
  528. if(numericRightEdge>rightEdge)rightEdge=numericRightEdge}clipRect=new rave["internal"]["RectStruct"](leftEdge,axisBounds.y+transform[1]*-1,rightEdge-leftEdge,axisBounds.height)}else clipRect=new rave["internal"]["RectStruct"](axisBounds.x+transform[0]*-1,this._elementRect.y-h/2+transform[1]*-1,axisBounds.width,this._elementRect.height+h);clipAxis["clipRect"](clipRect)["applyTo"](axisGroup.select(".axis."+orient)).call(this._defs)}},clearAxis:function(position){if(this._axisSelectors[position]){this._clearAxis["scale"](null);
  529. this._axisSelectors[position].call(this._clearAxis)}this._lastAxisDrew[position]=false},drawGrid:function(position,role){var gridGroup=this._gridSelectors[position];this._lastGridDrawSelectors[role]=gridGroup;var comp=this["gridComponent"](role);var axisBounds=this._axisRects[position];var orient=com_ibm_rave_bundles_components_AxesManager.ORIENTATIONS[position];var transform=com_ibm_rave_bundles_components_AxisComponentImpl["getTranslation"](axisBounds,orient);var axisTransform="translate("+transform[0]+
  530. ","+transform[1]+")";comp["setRole"](com_ibm_rave_bundles_components_AxesManager.ROLES[role])["orient"](orient)["setPreExecute"](this._context.getPreExecute())["bounds"](this._elementRect)["axis"](this._axisComponents[role]["axis"]());if(this._duration<=0||this._firstDraw||!this._lastAxisDrew[position])gridGroup.attr("transform",axisTransform).call(comp);else gridGroup["transition"]()["duration"](this._duration).attr("transform",axisTransform).call(comp);this._lastGridDrew[position]=comp.renderedShapes()},
  531. clearGrid:function(position){if(this._gridSelectors[position]){this._clearGrid["axis"](null);this._gridSelectors[position].call(this._clearGrid)}this._lastGridDrew[position]=false},"visible":function(visible){this._visible=visible;return this},"duration":function(duration){this._duration=duration;return this},"transpose":function(transpose){this._transpose=transpose;return this},"swapX":function(swapX){this._swapX=swapX;return this},"swapY":function(swapY){this._swapY=swapY;return this},"scale":function(role,
  532. scale){this._scales[role]=scale;return this},"suppressPanLabels":function(role,suppressLabels){this._suppressPanLabels[role]=suppressLabels;return this},"axisComponent":function(role){if(!this._axisComponents[role])this._axisComponents[role]=new com_ibm_rave_bundles_components_AxisComponentImpl;return this._axisComponents[role]},"gridComponent":function(role){if(!this._gridComponents[role])this._gridComponents[role]=new com_ibm_rave_bundles_components_GridComponentImpl;return this._gridComponents[role]},
  533. "defsSelector":function(defs){this._defs=com_ibm_rave_bundles_components_AxesManager.checkSelector(defs);return this},"axisSelector":function(position,axisGroup){this._axisSelectors[position]=com_ibm_rave_bundles_components_AxesManager.checkSelector(axisGroup);return this},"gridSelector":function(position,gridGroup){this._gridSelectors[position]=com_ibm_rave_bundles_components_AxesManager.checkSelector(gridGroup);return this},"elementRect":function(elementRect){com_ibm_rave_bundles_components_AxesManager.setRect(this._elementRect,
  534. elementRect);return this},"axisRect":function(position,axisRect){com_ibm_rave_bundles_components_AxesManager.setRect(this._axisRects[position],axisRect);return this},"useDefaultSelectors":function(){this["defsSelector"](this._context.node.select("defs"));this["axisSelector"](0,this._context.node.select("g.axisTransform.bottom"));this["axisSelector"](1,this._context.node.select("g.axisTransform.top"));this["axisSelector"](2,this._context.node.select("g.axisTransform.left"));this["axisSelector"](3,
  535. this._context.node.select("g.axisTransform.right"));this["gridSelector"](0,this._context.node.select("g.grid.bottom"));this["gridSelector"](1,this._context.node.select("g.grid.top"));this["gridSelector"](2,this._context.node.select("g.grid.left"));this["gridSelector"](3,this._context.node.select("g.grid.right"));return this},"useBoundsFromLayout":function(layoutInfo){com_ibm_rave_bundles_components_AxesManager.setRect(this._elementRect,layoutInfo["elementRect"]());com_ibm_rave_bundles_components_AxesManager.setRect(this._axisRects[0],
  536. layoutInfo["bottomRect"]());com_ibm_rave_bundles_components_AxesManager.setRect(this._axisRects[1],layoutInfo["topRect"]());com_ibm_rave_bundles_components_AxesManager.setRect(this._axisRects[2],layoutInfo["leftRect"]());com_ibm_rave_bundles_components_AxesManager.setRect(this._axisRects[3],layoutInfo["rightRect"]());return this},"useDefaultX1Properties":function(setGridParameters){this["axisComponent"](0)["padding"](16)["displayAxisTitle"](this._context.getPropertyValue("axis.x.title.display"))["axisTitle"](this._context.getDataSlotLabel("axis.x.title.text",
  537. this._dataSlotEntries[0]))["displayAxisLine"](this._context.getPropertyValue("axis.x.line.display"))["lineColor"](this._context.getPropertyValue("axis.x.line.style.stroke"))["displayTicks"](this._context.getPropertyValue("axis.x.ticks.display"))["tickColor"](this._context.getPropertyValue("axis.x.ticks.style.stroke"))["displayTickLabels"](this._context.getPropertyValue("axis.x.labels.display"));var titleFontStyle=this._context.getPropertyValue("axis.x.title.style.font");var labelFontStyle=this._context.getPropertyValue("axis.x.labels.style.font");
  538. if(labelFontStyle!=null&&labelFontStyle.length>0)this["axisComponent"](0)["labelStyle"](labelFontStyle);else this["axisComponent"](0)["labelStyle"](this._context.getPropertyValue("axis.x.labels.style.fill"),this._context.getPropertyValue("axis.x.labels.style.font-size"),this._context.getPropertyValue("axis.x.labels.style.font-family"));if(titleFontStyle!=null&&titleFontStyle.length>0)this["axisComponent"](0)["titleStyle"](titleFontStyle);else this["axisComponent"](0)["titleStyle"](this._context.getPropertyValue("axis.x.title.style.fill"),
  539. this._context.getPropertyValue("axis.x.title.style.font-size"),this._context.getPropertyValue("axis.x.title.style.font-family"));if(setGridParameters)this["gridComponent"](0)["displayGridlines"](this._context.getPropertyValue("axis.x.gridlines.display"))["gridlineStyle"](this._context.getPropertyValue("axis.x.gridlines.style.stroke"),this._context.getPropertyValue("axis.x.gridlines.style.stroke-dasharray"));this["suppressPanLabels"](0,this._context.getPropertyValue("axis.x.labels.zoomPan"));return this},
  540. "useDefaultY1Properties":function(setGridParameters){this["axisComponent"](2)["padding"](16)["displayAxisTitle"](this._context.getPropertyValue("axis.y.title.display"))["axisTitle"](this._context.getDataSlotLabel("axis.y.title.text",this._dataSlotEntries[2]))["displayAxisLine"](this._context.getPropertyValue("axis.y.line.display"))["lineColor"](this._context.getPropertyValue("axis.y.line.style.stroke"))["displayTicks"](this._context.getPropertyValue("axis.y.ticks.display"))["tickColor"](this._context.getPropertyValue("axis.y.ticks.style.stroke"))["displayTickLabels"](this._context.getPropertyValue("axis.y.labels.display"));
  541. var titleFontStyle=this._context.getPropertyValue("axis.y.title.style.font");var labelFontStyle=this._context.getPropertyValue("axis.y.labels.style.font");if(labelFontStyle!=null&&labelFontStyle.length>0)this["axisComponent"](2)["labelStyle"](labelFontStyle);else this["axisComponent"](2)["labelStyle"](this._context.getPropertyValue("axis.y.labels.style.fill"),this._context.getPropertyValue("axis.y.labels.style.font-size"),this._context.getPropertyValue("axis.y.labels.style.font-family"));if(titleFontStyle!=
  542. null&&titleFontStyle.length>0)this["axisComponent"](2)["titleStyle"](titleFontStyle);else this["axisComponent"](2)["titleStyle"](this._context.getPropertyValue("axis.y.title.style.fill"),this._context.getPropertyValue("axis.y.title.style.font-size"),this._context.getPropertyValue("axis.y.title.style.font-family"));if(setGridParameters)this["gridComponent"](2)["displayGridlines"](this._context.getPropertyValue("axis.y.gridlines.display"))["gridlineStyle"](this._context.getPropertyValue("axis.y.gridlines.style.stroke"),
  543. this._context.getPropertyValue("axis.y.gridlines.style.stroke-dasharray"));this["suppressPanLabels"](2,this._context.getPropertyValue("axis.y.labels.zoomPan"));return this},"useDefaultY2Properties":function(setGridParameters){this["axisComponent"](3)["padding"](16)["displayAxisTitle"](this._context.getPropertyValue("axis.y2.title.display"))["axisTitle"](this._context.getDataSlotLabel("axis.y2.title.text",this._dataSlotEntries[3]))["displayAxisLine"](this._context.getPropertyValue("axis.y2.line.display"))["lineColor"](this._context.getPropertyValue("axis.y2.line.style.stroke"))["displayTicks"](this._context.getPropertyValue("axis.y2.ticks.display"))["tickColor"](this._context.getPropertyValue("axis.y2.ticks.style.stroke"))["displayTickLabels"](this._context.getPropertyValue("axis.y2.labels.display"));
  544. var titleFontStyle=this._context.getPropertyValue("axis.y2.title.style.font");var labelFontStyle=this._context.getPropertyValue("axis.y2.labels.style.font");if(labelFontStyle!=null&&labelFontStyle.length>0)this["axisComponent"](3)["labelStyle"](labelFontStyle);else this["axisComponent"](3)["labelStyle"](this._context.getPropertyValue("axis.y2.labels.style.fill"),this._context.getPropertyValue("axis.y2.labels.style.font-size"),this._context.getPropertyValue("axis.y2.labels.style.font-family"));if(titleFontStyle!=
  545. null&&titleFontStyle.length>0)this["axisComponent"](3)["titleStyle"](titleFontStyle);else this["axisComponent"](3)["titleStyle"](this._context.getPropertyValue("axis.y2.title.style.fill"),this._context.getPropertyValue("axis.y2.title.style.font-size"),this._context.getPropertyValue("axis.y2.title.style.font-family"));if(setGridParameters)this["gridComponent"](3)["displayGridlines"](this._context.getPropertyValue("axis.y2.gridlines.display"))["gridlineStyle"](this._context.getPropertyValue("axis.y2.gridlines.style.stroke"),
  546. this._context.getPropertyValue("axis.y2.gridlines.style.stroke-dasharray"));this["suppressPanLabels"](3,this._context.getPropertyValue("axis.y2.labels.zoomPan"));return this},"setTickFormatterList":function(role,entries,format,defaultFunction){var fmtRole;switch(role){case 2:fmtRole="ROLE_Y1";break;case 1:fmtRole="ROLE_X2";break;case 3:fmtRole="ROLE_Y2";break;case 0:default:fmtRole="ROLE_X1";break}var fmt=this._context.getCustomFormatterWithFlag([com_ibm_rave_bundles_components_AxesManager.ROLE_FORMATTERS[role],
  547. com_ibm_rave_bundles_components_AxesManager.FORMATTERS[this.roleToPosition(role)],"axis","all"],rave["library"]["internal"]["BundleContext"].makeCustomFormatInfo("axis-label",fmtRole,format,entries),defaultFunction,false);this["axisComponent"](role)["tickFormat"](fmt);var simplefmt=this._context.getCustomFormatterWithFlag([com_ibm_rave_bundles_components_AxesManager.ROLE_FORMATTERS[role],com_ibm_rave_bundles_components_AxesManager.FORMATTERS[this.roleToPosition(role)],"axis","all"],rave["library"]["internal"]["BundleContext"].makeCustomFormatInfo("axis-label",
  548. fmtRole,format,entries),defaultFunction,true);this["axisComponent"](role)["simplifiedTickFormat"](simplefmt);return this},"setTickFormatter":function(role,entry){var entries=[];if(entry)entries.push(entry);return this["setTickFormatterList"](role,entries,"none",null)},"setScaleRanges":function(padding,outerPadding,pixelPad){this["setIndependentScaleRanges"](padding,outerPadding,pixelPad);this["setDependentScaleRanges"](padding,outerPadding,pixelPad);return this},"setIndependentScaleRanges":function(padding,
  549. outerPadding,pixelPad){this.setScaleRangePadded(this._scales[0],false,padding,outerPadding,pixelPad);this.setScaleRangePadded(this._scales[1],false,padding,outerPadding,pixelPad);return this},"setDependentScaleRanges":function(padding,outerPadding,pixelPad){this.setScaleRangePadded(this._scales[2],true,padding,outerPadding,pixelPad);this.setScaleRangePadded(this._scales[3],true,padding,outerPadding,pixelPad);return this},setDataSlot$0:function(role,slot){this.setDataSlot$1(role,[slot]);return this},
  550. setDataSlot$1:function(role,slots){if(role<4&&role>=0){this._dataSlotEntries[role].length=0;if(slots){var __i_enFor0=0;var __exp_enFor0=slots;for(var __len_enFor0=__exp_enFor0.length;__i_enFor0<__len_enFor0;++__i_enFor0){var slot=__exp_enFor0[__i_enFor0];this._dataSlotEntries[role].push(slot)}}}return this},setScaleRangePadded:function(scale,dependent,padding,outerPadding,pixelPad){if(scale){var min;var max;if(dependent==this._transpose){min=this._elementRect.x+pixelPad;max=this._elementRect.x+this._elementRect.width-
  551. pixelPad}else if(scale.isContinuous()){min=this._elementRect.y+this._elementRect.height-pixelPad;max=this._elementRect.y+pixelPad}else{min=this._elementRect.y+pixelPad;max=this._elementRect.y+this._elementRect.height-pixelPad}scale.range(min,max,padding,outerPadding)}},positionToRole:function(position){var r=position;if(this._transpose)r=(r+2)%4;if(this._swapX&&r<2)r=1-r;if(this._swapY&&r>1)r=5-r;return r},roleToPosition:function(role){var p=role;if(this._swapX&&role<2)p=1-p;if(this._swapY&&p>1)p=
  552. 5-p;if(this._transpose)p=(p+2)%4;return p},"scaleTickMagnitude":function(role,tickMagnitude){this["axisComponent"](role)["scaleTickMagnitude"](tickMagnitude);return this},"setDataSlot":function(a0,a1){var args=arguments;if(args.length==2&&typeof a1==="function")return this.setDataSlot$0(a0,a1);return this.setDataSlot$1(a0,a1)}});com_ibm_rave_bundles_components_AxesManager.checkSelector=function(s){return s&&!s.empty()?s:null};com_ibm_rave_bundles_components_AxesManager.setRect=function(target,source){if(source){target.x=
  553. source.x;target.y=source.y;target.width=source.width;target.height=source.height}else{target.x=0;target.y=0;target.width=0;target.height=0}};com_ibm_rave_bundles_components_AxesManager["percentFormat"]=function(n){var digits="."+n+"f";var format=rave.format(digits);return function(value,ix,gix){return format.call(null,value,0,0)+"%"}};com_ibm_rave_bundles_components_AxesManager.AxisLayout=rave["internal"]["Declare"]({"position":0,"score":0,"constructor":function(position,score){this["position"]=position;
  554. this["score"]=score}});com_ibm_rave_bundles_components_AxesManager["X1"]=0;com_ibm_rave_bundles_components_AxesManager["X2"]=1;com_ibm_rave_bundles_components_AxesManager["Y1"]=2;com_ibm_rave_bundles_components_AxesManager["Y2"]=3;com_ibm_rave_bundles_components_AxesManager["BOTTOM"]=0;com_ibm_rave_bundles_components_AxesManager["TOP"]=1;com_ibm_rave_bundles_components_AxesManager["LEFT"]=2;com_ibm_rave_bundles_components_AxesManager["RIGHT"]=3;com_ibm_rave_bundles_components_AxesManager.ROLES=["ROLE_X1",
  555. "ROLE_X2","ROLE_Y1","ROLE_Y2"];com_ibm_rave_bundles_components_AxesManager.ROLE_FORMATTERS=["ROLE_X1","ROLE_X2","ROLE_Y1","ROLE_Y2"];com_ibm_rave_bundles_components_AxesManager.ORIENTATIONS=["bottom","top","left","right"];com_ibm_rave_bundles_components_AxesManager.FORMATTERS=["bottom","top","left","right"];var com_ibm_rave_bundles_component_AxisComponent=rave["internal"]["Declare"].implement();com_ibm_rave_bundles_component_AxisComponent["COMPONENT_TYPE"]="AxisComponent";com_ibm_rave_bundles_component_AxisComponent["ROLE_X1"]=
  556. "ROLE_X1";com_ibm_rave_bundles_component_AxisComponent["ROLE_Y1"]="ROLE_Y1";com_ibm_rave_bundles_component_AxisComponent["ROLE_X2"]="ROLE_X2";com_ibm_rave_bundles_component_AxisComponent["ROLE_Y2"]="ROLE_Y2";var com_ibm_rave_bundles_utilities_TextCrossfader=rave["internal"]["Declare"]({});com_ibm_rave_bundles_utilities_TextCrossfader["textCrossFade"]=function(selection,oldText,newText,fillOpacity,delay){if(!selection.isTransition())return selection.text(newText);var _t=selection.tween("text",function(data,
  557. index,groupIndex){return function(t){this.rave_setText(t<0.5?oldText:newText)}});var t0=Math.max(0,Math.min(0.5,delay));if(t0==0.5||oldText==null&&newText==null||oldText!=null&&oldText==newText)return selection;var opacity=fillOpacity==null?1:+fillOpacity;var tf=1/(0.5-t0);return _t.tween("fill-opacity",function(data,index,groupIndex){return function(t){if(t<=t0||t>=1-t0)this.rave_setStyle("fill-opacity",fillOpacity);else this.rave_setStyle("fill-opacity",opacity*Math.abs(t-0.5)*tf)}})};var com_ibm_rave_bundles_utilities_BundleLabelDropper=
  558. rave["internal"]["Declare"]({labelCount:0,_$functionClassMethod:function(){var _$self=function(args){if(args!==null||arguments.length>1)args=Array.prototype.slice.call(arguments,0);_$self["drop"](args[0],args[1]);return null};return _$self},"constructor":function(){this._dropOverlap=rave.capabilities.extension("position")["drop"]().remove(false);this._dropOverlap.setOverlapGap(4)},"drop":function(labels,removeOverlap){if(!labels.isTransition())this.applyLabelDrop(labels,removeOverlap);else{var steps=
  559. [0,25,75];var self=this;labels.tween("__pointLabelDrop__",function(data,index,groupIndex){if(index==0)return function(t){var currentStep=Math.floor(t*100);if(steps.length>0&&currentStep<100&&currentStep>=steps[0]){steps.splice(0,1);self.applyLabelDrop(labels,removeOverlap)}};return null});this.labelCount=0;labels.each(function(data,index,groupIndex){++self.labelCount}).each("end",function(args){if(args!==null||arguments.length>1)args=Array.prototype.slice.call(arguments,0);if(--self.labelCount==0)self.applyLabelDrop(labels,
  560. removeOverlap);return null})}},applyLabelDrop:function(labels,removeOverlap){if(removeOverlap)labels.call(this._dropOverlap);else this._dropOverlap.reset(labels)},"configureForDataLabels":function(rect){if(rect){var ex=[[rect.x,rect.y],[rect.x+rect.width,rect.y+rect.height]];this._dropOverlap.extent(ex)}this._dropOverlap.noClipping()}});com_ibm_rave_bundles_utilities_BundleLabelDropper.OVERLAP_GAP=4;var com_ibm_rave_bundles_components_StyleStructs=rave["internal"]["Declare"]({});com_ibm_rave_bundles_components_StyleStructs.ShapeStyle=
  561. function(){this._fill=null;this._stroke=null;this._strokeWidth=null};com_ibm_rave_bundles_components_StyleStructs.LineStyle=function(){this._stroke=null;this._strokeWidth=null;this._dashArray=null};var com_ibm_rave_bundles_component_GridComponent=rave["internal"]["Declare"].implement();com_ibm_rave_bundles_component_GridComponent["COMPONENT_TYPE"]="GridComponent";var com_ibm_rave_bundles_components_IntervalDataUtilities=rave["internal"]["Declare"]({});com_ibm_rave_bundles_components_IntervalDataUtilities["simpleBars"]=
  562. function(data,x,xScale,y,yStart,color,label){var result=[];if(!data||data.length==0||!x||!y)return result;data.forEach(function(d,ix,list){var xv=x(d);if(xv!=null&&(!xScale||xScale(xv)!=null)){var yv=y(d);var yvStart=!yStart?0:yStart(d);if(yv!=null&&yvStart!=null){var r=new com_ibm_rave_bundles_components_IntervalDataUtilities.IntervalData;r["key"]=ix;r["ind1"]=xv;r["ind2"]=r["ind1"];r["cind"]=r["ind1"];r["dep1"]=yvStart;r["dep2"]=yv;r["cdep"]=r["dep2"];r["color"]=color?color(d):null;r["label"]=label?
  563. label(d):null;r["value"]=r["dep2"];r["_originalData"]=d;r["valueAsPercentOfCategory"]=100;result.push(r)}}return null});var sum=0;for(var i=0;i<result.length;++i){var iData=result[i];var value=+iData["value"];sum+=Math.abs(value)}if(sum!=0)for(i=0;i<result.length;++i){iData=result[i];value=+iData["value"];iData["valueAsPercentOfColor"]=value/sum*100}return result};com_ibm_rave_bundles_components_IntervalDataUtilities["clusteredBars"]=function(data,x,xScale,y,yStart,color,label){var result=[];if(!data||
  564. data.length==0||!x||x.length==0||!y)return result;var len=x.length;var categories={};var colors={};data.forEach(function(d,ix,list){var OK=true;var ind=[];for(var i=0;i<len;++i){var xv=x[i](d);if(xv==null||xScale[i]&&xScale[i](xv)==null){OK=false;break}ind.push(xv);if(i==0){if(!categories.hasOwnProperty(xv))categories[""+xv]=1}else if(!colors.hasOwnProperty(xv))colors[""+xv]=1}var dep=y(d);var depStart=!yStart?0:yStart(d);if(OK&&dep!=null&&depStart!=null){var r=new com_ibm_rave_bundles_components_IntervalDataUtilities.IntervalData;
  565. r["key"]=ix;r["ind1"]=ind;r["ind2"]=ind;r["cind"]=ind;r["dep1"]=depStart;r["dep2"]=dep;r["cdep"]=r["dep2"];r["color"]=color?color(d):null;r["label"]=label?label(d):null;r["value"]=r["dep2"];r["_originalData"]=d;result.push(r)}return null});var __i_enFor0=0;var __exp_enFor0=Object.keys(categories);for(var __len_enFor0=__exp_enFor0.length;__i_enFor0<__len_enFor0;++__i_enFor0){var o=__exp_enFor0[__i_enFor0];var s=""+o;var sum=0;for(var i$$0=0;i$$0<result.length;++i$$0){var iData=result[i$$0];if(s==iData["ind1"][0]){var value=
  566. +iData["value"];sum+=Math.abs(value)}}if(sum==0)continue;for(i$$0=0;i$$0<result.length;++i$$0){iData=result[i$$0];if(s==iData["ind1"][0]){value=+iData["value"];iData["valueAsPercentOfCategory"]=value/sum*100}}}var __i_enFor1=0;var __exp_enFor1=Object.keys(colors);for(var __len_enFor1=__exp_enFor1.length;__i_enFor1<__len_enFor1;++__i_enFor1){o=__exp_enFor1[__i_enFor1];s=""+o;sum=0;for(i$$0=0;i$$0<result.length;++i$$0){iData=result[i$$0];if(s==iData["color"]){value=+iData["value"];sum+=Math.abs(value)}}if(sum==
  567. 0)continue;for(i$$0=0;i$$0<result.length;++i$$0){iData=result[i$$0];if(s==iData["color"]){value=+iData["value"];iData["valueAsPercentOfColor"]=value/sum*100}}}return result};com_ibm_rave_bundles_components_IntervalDataUtilities["stackedBars"]=function(data,x,xScale,y,color,label,percent){var result=[];if(!data||data.length==0||!x||!y)return result;var stacks={};var categories={};var colors={};data.forEach(function(d,ix,list){var xv=x(d);if(xv!=null&&(!xScale||xScale(xv)!=null)){var yv=y(d);if(yv!=
  568. null){var stack=stacks[xv];if(!stack){stack=new com_ibm_rave_bundles_components_IntervalDataUtilities.Stack;stacks[xv]=stack}var dVal=+yv;if(!percent){var r=new com_ibm_rave_bundles_components_IntervalDataUtilities.IntervalData;r["key"]=ix;r["ind1"]=xv;r["ind2"]=xv;r["cind"]=xv;var sum=dVal<0?stack.negativeSum:stack.positiveSum;r["dep1"]=sum;r["dep2"]=sum+dVal;r["cdep"]=r["dep2"];r["color"]=color?color(d):null;r["label"]=label?label(d):null;r["value"]=dVal;r["_originalData"]=d;result.push(r)}if(dVal<
  569. 0)stack.negativeSum+=dVal;else{stack.positiveCount++;stack.positiveSum+=dVal}if(!categories.hasOwnProperty(xv))categories[""+xv]=1;if(color){var o=color(d);if(o!=null&&!colors.hasOwnProperty(o))colors[""+o]=1}}}return null});if(percent)data.forEach(function(d,ix,list){var xv=x(d);if(xv!=null&&(!xScale||xScale(xv)!=null)){var yv=y(d);if(yv!=null){var stack=stacks[xv];var dVal=+yv;var percent;if(dVal<0)percent=-100*dVal/stack.negativeSum;else if(stack.positiveSum>0)percent=100*dVal/stack.positiveSum;
  570. else percent=100/stack.positiveCount;var r=new com_ibm_rave_bundles_components_IntervalDataUtilities.IntervalData;r["key"]=ix;r["ind1"]=xv;r["ind2"]=xv;r["cind"]=xv;var sum=dVal<0?stack.negativePercent:stack.positivePercent;r["dep1"]=sum;r["dep2"]=sum+percent;r["cdep"]=r["dep2"];r["color"]=color?color(d):null;r["label"]=label?label(d):null;r["value"]=dVal;r["valueAsPercentOfCategory"]=percent;r["_originalData"]=d;result.push(r);if(dVal<0)stack.negativePercent+=percent;else stack.positivePercent+=
  571. percent}}return null});else{var __i_enFor0=0;var __exp_enFor0=Object.keys(categories);for(var __len_enFor0=__exp_enFor0.length;__i_enFor0<__len_enFor0;++__i_enFor0){var o$$0=__exp_enFor0[__i_enFor0];var s=""+o$$0;var sum$$0=0;for(var i=0;i<result.length;++i){var iData=result[i];if(s==iData["ind1"]){var value=+iData["value"];sum$$0+=Math.abs(value)}}if(sum$$0==0)continue;for(i=0;i<result.length;++i){iData=result[i];if(s==iData["ind1"]){value=+iData["value"];iData["valueAsPercentOfCategory"]=value/
  572. sum$$0*100}}}}var __i_enFor1=0;var __exp_enFor1=Object.keys(colors);for(var __len_enFor1=__exp_enFor1.length;__i_enFor1<__len_enFor1;++__i_enFor1){o$$0=__exp_enFor1[__i_enFor1];s=""+o$$0;sum$$0=0;for(i=0;i<result.length;++i){iData=result[i];if(s==iData["color"]){value=+iData["value"];sum$$0+=Math.abs(value)}}if(sum$$0==0)continue;for(i=0;i<result.length;++i){iData=result[i];if(s==iData["color"]){value=+iData["value"];iData["valueAsPercentOfColor"]=value/sum$$0*100}}}return result};com_ibm_rave_bundles_components_IntervalDataUtilities.IntervalData=
  573. rave["internal"]["Declare"]({"key":null,"ind1":null,"ind2":null,"dep1":null,"dep2":null,"value":null,"color":null,"label":null,"cind":null,"cdep":null,"_originalData":null,"valueAsPercentOfCategory":NaN,"valueAsPercentOfColor":NaN,"originalData":function(){return this["_originalData"]},"originalDataList":function(){var list=[];list.push(this["_originalData"]);return list}});com_ibm_rave_bundles_components_IntervalDataUtilities.Stack=function(){this.positiveCount=0;this.positiveSum=0;this.negativeSum=
  574. 0;this.positivePercent=0;this.negativePercent=0};com_ibm_rave_bundles_components_IntervalDataUtilities["CALLOUT_DEPENDENT_ACCESSOR"]=function(data){return data["cdep"]};com_ibm_rave_bundles_components_IntervalDataUtilities["CALLOUT_INDEPENDENT_ACCESSOR"]=function(data){return data["cind"]};com_ibm_rave_bundles_components_IntervalDataUtilities["VALUE_ACCESSOR"]=function(data){return data["value"]};com_ibm_rave_bundles_components_IntervalDataUtilities["PERCENT_OF_CATEGORY_ACCESSOR"]=function(data){var percent=
  575. data["valueAsPercentOfCategory"];return isNaN(percent)?"":percent.toFixed(1)+"%"};com_ibm_rave_bundles_components_IntervalDataUtilities["PERCENT_OF_COLOR_ACCESSOR"]=function(data){var percent=data["valueAsPercentOfColor"];return isNaN(percent)?"":percent.toFixed(1)+"%"};var com_ibm_rave_bundles_data_PointDataUtilities=rave["internal"]["Declare"]({});com_ibm_rave_bundles_data_PointDataUtilities["buildPoints"]=function(data,xAccessor,xScale,yAccessor,yScale){var result=[];if(data){var __i_enFor0=0;
  576. var __exp_enFor0=data;for(var __len_enFor0=__exp_enFor0.length;__i_enFor0<__len_enFor0;++__i_enFor0){var o=__exp_enFor0[__i_enFor0];if(o!=null){var xv=null;if(xAccessor){xv=xAccessor(o);if(xv==null||xScale&&xScale(xv)==null)continue}var yv=null;if(yAccessor){yv=yAccessor(o);if(yv==null||yScale&&yScale(yv)==null)continue}var datum=new com_ibm_rave_bundles_data_PointDataUtilities.PointDatum;datum["_x"]=xv;datum["_y"]=yv;datum["_originalData"]=o;result.push(datum)}}}return result};com_ibm_rave_bundles_data_PointDataUtilities.PointDatum=
  577. rave["internal"]["Declare"]({"_x":null,"_y":null,"_yAsPercentOfCategory":null,"_yAsPercentOfColor":null,"_originalData":null,"originalData":function(){return this["_originalData"]},"originalDataList":function(){var list=[];list.push(this["_originalData"]);return list}});com_ibm_rave_bundles_data_PointDataUtilities["X_ACCESSOR"]=function(d){return d["_x"]};com_ibm_rave_bundles_data_PointDataUtilities["Y_ACCESSOR"]=function(d){return d["_y"]};com_ibm_rave_bundles_data_PointDataUtilities["PERCENT_OF_CATEGORY_ACCESSOR"]=
  578. function(d){var percent=+d["_yAsPercentOfCategory"];return isNaN(percent)?"":percent.toFixed(1)+"%"};com_ibm_rave_bundles_data_PointDataUtilities["PERCENT_OF_COLOR_ACCESSOR"]=function(d){var percent=+d["_yAsPercentOfColor"];return isNaN(percent)?"":percent.toFixed(1)+"%"};var com_ibm_rave_bundles_utilities_ColorUtil=rave["internal"]["Declare"]({});com_ibm_rave_bundles_utilities_ColorUtil.getContrastColor$0=function(bg,fg){var contrastRatio=com_ibm_rave_bundles_utilities_ColorUtil["getContrastRatio"](bg,
  579. fg);if(contrastRatio<4.5){var bgHSL=rave.hsl(bg);var fgHSL=rave.hsl(fg);var brightness=0.33*(rave.rgb(bg).getR()/255)+0.5*(rave.rgb(bg).getG()/255)+0.16*(rave.rgb(bg).getB()/255);if(brightness>0.5)if(bgHSL.getL()>0.5)return rave.hsl(fgHSL.getH(),fgHSL.getS(),Math.min(fgHSL.getL(),bgHSL.getL()-0.4));else return rave.hsl(fgHSL.getH(),fgHSL.getS(),Math.min(fgHSL.getL(),0.1));else if(bgHSL.getL()<0.5)return rave.hsl(fgHSL.getH(),fgHSL.getS(),Math.max(fgHSL.getL(),bgHSL.getL()+0.4));else return rave.hsl(fgHSL.getH(),
  580. fgHSL.getS(),Math.max(fgHSL.getL(),0.9))}return fg};com_ibm_rave_bundles_utilities_ColorUtil.getContrastColor$1=function(labelColor){var labelRGB=rave.rgb(labelColor);return labelRGB.contrastShift(21)};com_ibm_rave_bundles_utilities_ColorUtil["getContrastRatio"]=function(colorA,colorB){var foregroundLuminance=rave.rgb(colorA).getLuminance();var backgroundLuminance=rave.rgb(colorB).getLuminance();var contrastRatio=foregroundLuminance>=backgroundLuminance?(foregroundLuminance+0.05)/(backgroundLuminance+
  581. 0.05):(backgroundLuminance+0.05)/(foregroundLuminance+0.05);return contrastRatio};com_ibm_rave_bundles_utilities_ColorUtil["getContrastColor"]=function(a0,a1){var args=arguments;if(args.length==1)return com_ibm_rave_bundles_utilities_ColorUtil.getContrastColor$1(a0);return com_ibm_rave_bundles_utilities_ColorUtil.getContrastColor$0(a0,a1)};var com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl=function(){function com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl(node){this.map=
  582. null;this["data"]=[];this.rawData=[];this.featureDataMap=rave.map();this.originalDataToPkMap=rave.map();this._featureMeta=null;this._mapboxToken="";this._mapboxStyle="mapbox://style/mapbox/streets-v9";this._containerRect={x:0,y:0,width:960,height:500};this._svg=null;this._svgOwner=null;this._mapContainerDiv=null;this._minimumValue=null;this._maximumValue=null;this.nullColor=null;this.regionTransparency=1;this.pointTransparency=1;this.vAccessor=null;this.fiAccessor=null;this.firAccessor=null;this.pcAccessor=
  583. null;this.pzAccessor=null;this.paletteDef=null;this._colorPalette=null;this._pointPalette=null;this["_pointSizeScale"]=null;this._defaultPointSize=10;this._selectedPks=rave.map();this._loadedTilesets=[]}com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype.minimumValue=function(value){this._minimumValue=value;return this};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype.maximumValue=function(value){this._maximumValue=value;return this};
  584. com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype.setNullColor=function(color){this.nullColor=color;return this};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype.setRegionTransparency=function(transparency){this.regionTransparency=transparency;return this};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype.setPointTransparency=function(transparency){this.pointTransparency=transparency;return this};
  585. com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype["draw"]=function(g){var self=this;mapboxgl.accessToken=this._mapboxToken;this._svg=rave.select(g[0][0].ownerSVGElement);this._svgOwner=rave.select(this._svg.node().parentNode);this._mapContainerDiv=this._svgOwner.insert("div","svg");this._mapContainerDiv.attr("id","map_"+g[0][0].nearestViewportElement["id"]).style("position","absolute").style("text-align","left").style("left",this._containerRect.x+"px").style("top",
  586. this._containerRect.y+"px").style("width",this._containerRect.width+"px").style("height",this._containerRect.height+"px");this._svg.style("position","absolute").style("top","0px").style("left","0px").style("pointer-events","none");this.map=new mapboxgl.Map({container:this._mapContainerDiv.attr("id"),attributionControl:false,style:this._mapboxStyle});this.map.dragRotate.disable();this.map.addControl(new mapboxgl.NavigationControl);this.map["on"]("style.load",function(){self.loadLayers()})};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype.fire=
  587. function(type){this.map.fire(type)};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype.valueAccessor=function(accessor){this.vAccessor=accessor;return this};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype.featureIdAccessor=function(accessor){this.fiAccessor=accessor;return this};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype.featureIdRefinementAccessor=function(accessor){this.firAccessor=accessor;
  588. return this};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype.pointIdAccessor=function(accessor){this.piAccessor=accessor;return this};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype.pointIdRefinementAccessor=function(accessor){this.pirAccessor=accessor;return this};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype.pointColorAccessor=function(accessor){this.pcAccessor=accessor};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype.pointSizeAccessor=
  589. function(accessor){this.pzAccessor=accessor};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype.setPaletteDef=function(palette){this.paletteDef=palette;return this};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype.setPointPalette=function(palette){this._pointPalette=palette;return this};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype.setPointSizeScale=function(palette){this["_pointSizeScale"]=palette;
  590. return this};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype.setPalette=function(palette){this._colorPalette=palette;return this};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype.loadLayers=function(){var self=this;var tilesets={};for(var f=0;this._featureMeta&&f<this._featureMeta.length;f++){var feature=this._featureMeta[f];tilesets[feature.mapid]={polyLayer:feature.polyLayer,pointLayer:feature.pointLayer}}this._loadedTilesets.forEach(function(t){if(self.map.getLayer(t)){self.map.setPaintProperty(t.polyLayer,
  591. "fill-color","rgba(0,0,0,0)");self.map.setPaintProperty(t.pointLayer,"fill-color","rgba(0,0,0,0)");self.map.setPaintProperty(t.polyLayer+"Hover","line-color","rgba(0,0,0,0)")}});this._loadedTilesets=[];var tilesetIDList=Object.keys(tilesets);tilesetIDList.forEach(function(tilesetId){var polyLayerId=tilesets[tilesetId].polyLayer;var pointLayerId=tilesets[tilesetId].pointLayer;var hoverLayerId=polyLayerId+"Hover";var focusLayerId=polyLayerId+"Focus";var selectLayerId=polyLayerId+"Select";self._loadedTilesets.push(tilesets[tilesetId]);
  592. if(!self.map.getSource(tilesetId))self.map.addSource(tilesetId,{"type":"vector","url":"mapbox://ibmrave."+tilesetId});if(!self.map.getSource(tilesetId+"Actions"))self.map.addSource(tilesetId+"Actions",{"type":"vector","url":"mapbox://ibmrave."+tilesetId});if(!self.map.getLayer(polyLayerId))self.map.addLayer({"id":polyLayerId,"type":"fill","source":tilesetId,"source-layer":polyLayerId,"paint":{"fill-opacity":1-self.regionTransparency/100}},"water");if(!self.map.getLayer(pointLayerId))self.map.addLayer({"id":pointLayerId,
  593. "type":"circle","source":tilesetId,"source-layer":pointLayerId,"paint":{"circle-opacity":1-self.pointTransparency/100,"circle-radius":10,"circle-stroke-width":2}},"waterway-label");if(!self.map.getLayer(focusLayerId))self.map.addLayer({"id":focusLayerId,"type":"fill","source":tilesetId+"Actions","source-layer":polyLayerId,"paint":{"fill-opacity":1},"filter":["\x3d\x3d","pk",0]},"water");if(!self.map.getLayer(selectLayerId))self.map.addLayer({"id":selectLayerId,"type":"line","source":tilesetId+"Actions",
  594. "source-layer":polyLayerId,"paint":{"line-width":2,"line-opacity":1},"filter":["\x3d\x3d","pk",0]},"waterway-label");if(!self.map.getLayer(hoverLayerId))self.map.addLayer({"id":hoverLayerId,"type":"line","source":tilesetId+"Actions","source-layer":polyLayerId,"paint":{"line-width":2,"line-opacity":1},"filter":["\x3d\x3d","pk",0]},"waterway-label")});self._setupLayerStops();self.setBbox()};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype.setBbox=function(){function afterChangeComplete(){if(!self.map.loaded())return;
  595. self.setBboxFeatures();self.map.off("render",afterChangeComplete)}var self=this;this.map.setZoom(0);this.map["on"]("render",afterChangeComplete)};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype.setBboxFeatures=function(){var self=this;var tilesets={};for(var f$$0=0;this._featureMeta&&f$$0<this._featureMeta.length;f$$0++){var feature=this._featureMeta[f$$0];tilesets[feature.mapid]={polyLayer:feature.polyLayer,pointLayer:feature.pointLayer}}var filter=["all",["in",
  596. "pk"]];filter[1]=filter[1].concat(self.featureDataMap.keys().map(function(s){return+s}));var featureSet=[];var tilesetIDList=Object.keys(tilesets);for(var t$$0=0;t$$0<tilesetIDList.length;t$$0++)featureSet=featureSet.concat(self.map.querySourceFeatures(tilesetIDList[t$$0],{sourceLayer:tilesets[tilesetIDList[t$$0]].polyLayer,filter:filter}));var allFeatures={"type":"FeatureCollection","features":[]};featureSet.forEach(function(f){allFeatures.features.push({"type":"feature","geometry":f.geometry})});
  597. var bbox=turf.bbox(allFeatures);var mapBbox=[[bbox[0],bbox[1]],[bbox[2],bbox[3]]];try{var easing=function(t){return t*(2-t)};this.map.fitBounds(mapBbox,{linear:true,"padding":5,easing:easing})}catch(e){}};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype._setupLayerStops=function(){var self=this;var tilesets={};for(var f=0;this._featureMeta&&f<this._featureMeta.length;f++){var feature=this._featureMeta[f];tilesets[feature.mapid]={polyLayer:feature.polyLayer,pointLayer:feature.pointLayer}}var stops=
  598. [[0,"rgba(0,0,0,0)"]];var circleColorStops=[[0,"rgba(0,0,0,0)"]];var circleSizeStops=[[0,0]];var darkStops=[stops[0]];var darkCircleStops=[stops[0]];var featureDataValues=self.featureDataMap.values();for(var d=0;d<featureDataValues.length;d++){var v=featureDataValues[d];var c=self._colorPalette(v["value"]);var originalDatum=v["originalData"];if(self.fiAccessor&&self.vAccessor){var color=self._colorPalette(self.vAccessor(v["originalData"]));if(color){stops.push([+v.pk,color]);darkStops.push([+v.pk,
  599. ""+rave.rgb(color).darker()])}else{stops.push([+v.pk,self.nullColor]);darkStops.push([+v.pk,""+rave.rgb(self.nullColor).darker()])}}else if(self.fiAccessor&&!self.vAccessor&&!self.pzAccessor&&!self.pcAccessor){stops.push([+v.pk,self.nullColor]);darkStops.push([+v.pk,""+rave.rgb(self.nullColor).darker()])}if(self.fiAccessor&&self.pcAccessor){var circleColor=self._pointPalette(self.pcAccessor(v["originalData"]));if(circleColor){circleColorStops.push([+v.pk,circleColor]);darkCircleStops.push([+v.pk,
  600. ""+rave.rgb(circleColor).darker()])}else{circleColorStops.push([+v.pk,self.nullColor]);darkCircleStops.push([+v.pk,""+rave.rgb(self.nullColor).darker()])}}else if(self.fiAccessor&&self.pzAccessor&&!self.pcAccessor){circleColorStops.push([+v.pk,self.nullColor]);darkCircleStops.push([+v.pk,""+rave.rgb(self.nullColor).darker()])}if(self.fiAccessor&&self.pzAccessor){var circleSize=self.pzAccessor(v["originalData"]);if(circleSize)circleSizeStops.push([+v.pk,self["_pointSizeScale"](circleSize)])}else if(self.fiAccessor&&
  601. self.pcAccessor&&!self.pzAccessor)circleSizeStops.push([+v.pk,self._defaultPointSize])}var tilesetIDList=Object.keys(tilesets);tilesetIDList.forEach(function(tilesetId){var polyLayerId=tilesets[tilesetId].polyLayer;var pointLayerId=tilesets[tilesetId].pointLayer;var hoverLayerId=polyLayerId+"Hover";var focusLayerId=polyLayerId+"Focus";var selectLayerId=polyLayerId+"Select";self.map.setPaintProperty(polyLayerId,"fill-color",{"property":"pk","type":"categorical","default":"transparent","stops":stops});
  602. self.map.setPaintProperty(pointLayerId,"circle-color",{"property":"pk","type":"categorical","default":"transparent","stops":circleColorStops});self.map.setPaintProperty(pointLayerId,"circle-stroke-color",{"property":"pk","type":"categorical","default":"transparent","stops":darkCircleStops});self.map.setPaintProperty(pointLayerId,"circle-radius",{"property":"pk","type":"categorical","stops":circleSizeStops});self.map.setPaintProperty(pointLayerId,"circle-opacity",1-self.pointTransparency/100);self.map.setPaintProperty(focusLayerId,
  603. "fill-color",{"property":"pk","type":"categorical","default":"transparent","stops":stops});self.map.setPaintProperty(selectLayerId,"line-color",{"property":"pk","type":"categorical","default":"transparent","stops":darkStops});self.map.setPaintProperty(hoverLayerId,"line-color",{"property":"pk","type":"categorical","default":"transparent","stops":darkStops})})};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype.clearMapsCache=function(){var self=this;if(this._loadedTilesets)this._loadedTilesets.forEach(function(layer){self.map.removeLayer(layer.polyLayer);
  604. self.map.removeLayer(layer.polyLayer+"Hover");self.map.removeLayer(layer.polyLayer+"Select");self.map.removeLayer(layer.polyLayer+"Focus");self.map.removeLayer(layer.pointLayer)});this._loadedTilesets=[];this._selectedPks=rave.map()};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype.accessToken=function(accessToken){if(accessToken!=this._mapboxToken)this._mapboxToken=accessToken};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype.mapStyle=
  605. function(style){if(style!=this._mapboxStyle){var self=this;this._mapboxStyle=style;this.map.setStyle(style);this.map["on"]("style.load",this._updateSelection.bind(this))}else this.updateMapLayout()};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype.updateMapLayout=function(){this.map.off("style.load",this.updateMapLayout);this._setupLayerStops()};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype._updateSelection=function(){this.map.off("style.load",
  606. this._updateSelection);this._updateSelectedPkFilters()};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype.deselectAllAction=function(){var filter=["in","pk",""];this._selectedPks=rave.map();var self=this;this._loadedTilesets.forEach(function(t){self.map.setPaintProperty(t.polyLayer,"fill-opacity",1-self.regionTransparency/100);self.map.setFilter(t.polyLayer+"Select",filter);self.map.setFilter(t.polyLayer+"Focus",filter)})};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype.deselectAction=
  607. function(featuresToDeSelect){this._toggleSelect(featuresToDeSelect,false)};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype._updateSelectedPkFilters=function(){var filter=["in","pk"];var self=this;if(self._selectedPks["size"]()!=0)self._selectedPks.forEach(function(value){filter.push(+value)});this._loadedTilesets.forEach(function(t){if(self._selectedPks["size"]()==0)self.map.setPaintProperty(t.polyLayer,"fill-opacity",1-self.regionTransparency/100);else self.map.setPaintProperty(t.polyLayer,
  608. "fill-opacity",0.5);self.map.setFilter(t.polyLayer+"Select",filter);self.map.setFilter(t.polyLayer+"Focus",filter)})};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype._toggleSelect=function(features,select){var self=this;if(!features)return;var pkList=features["id"]&&features["id"].length?features["id"]:features["data"]&&features["data"].length?features["data"].reduce(function(memo,feature){memo.push(+self.originalDataToPkMap.get(self.fiAccessor(feature)));return memo},
  609. []):null;if(!pkList)return;if(select)pkList.forEach(function(pk){if(!self._selectedPks.get(pk)&&self.featureDataMap.get(pk))self._selectedPks.set(pk,pk)});else pkList.forEach(function(pk){if(self._selectedPks.has(pk))self._selectedPks.remove(pk)});this._updateSelectedPkFilters()};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype.selectAction=function(featuresToSelect){this._toggleSelect(featuresToSelect,true)};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype.highlightAction=
  610. function(featuresToHighlight){var self=this;var pkList=featuresToHighlight["id"]&&featuresToHighlight["id"].length?featuresToHighlight["id"]:featuresToHighlight["data"]&&featuresToHighlight["data"].length?featuresToHighlight["data"].reduce(function(memo,feature){memo.push(+self.originalDataToPkMap.get(self.fiAccessor(feature)));return memo},[]):null;if(!pkList){this._loadedTilesets.forEach(function(t){self.map.setFilter(t.polyLayer+"Hover",["\x3d\x3d","pk","0"])});return}var filter=["in","pk"];filter=
  611. filter.concat(pkList);this._loadedTilesets.forEach(function(t){self.map.setFilter(t.polyLayer+"Hover",filter)})};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype.setMapData=function(data){if(!this._arrayEquals(this.rawData,data))this.clearMapsCache();this.rawData=data;this._mapFeaturesToData()};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype._arrayEquals=function(a,b){if(a===b)return true;if(a==null||b==null)return false;if(a.length!=
  612. b.length)return false;for(var i=0;i<a.length;++i)if(a[i]!==b[i])return false;return true};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype["setup"]=function(node){var self=this;if(this.map){this._mapContainerDiv.style("position","absolute").style("left",this._containerRect.x+"px").style("top",this._containerRect.y+"px").style("width",this._containerRect.width+"px").style("height",this._containerRect.height+"px").style("text-align","left");this._svg.style("position",
  613. "absolute").style("top","0px").style("left","0px").style("pointer-events","none");window.setTimeout(function(){self.map.resize()},10)}node[0][0].addEventListener("resizeVisContainer",function(){if(self.map)window.setTimeout(function(){self.map.resize()},10)})};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype.setGeoJson=function(json){this.customGeojson=json};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype.setFeatureMeta=function(json){this._featureMeta=
  614. json?json.mapboxData:null;this._mapFeaturesToData()};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype.off=function(eventName,callback){this.map.off(eventName,callback)};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype["on"]=function(eventName,callback){var self=this;this.map["on"](eventName,eventName==="load"||eventName==="style.load"?callback:function(e){var layersToQuery=[];self._loadedTilesets.forEach(function(t){layersToQuery.push(t.polyLayer);
  615. layersToQuery.push(t.pointLayer)});var features=e.point?self.map.queryRenderedFeatures(e.point,{layers:layersToQuery}):[];var idList=[];var dataList=features.map(function(f){var id=f.properties.pk;idList.push(id);return self.featureDataMap.get(id)}).filter(function(d){return!!d}).map(function(d){return d["originalData"]});callback({"data":dataList,"id":idList,_mapboxEvent:e,originalEvent:e.originalEvent})})};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype.getProjection=
  616. function(){var container=rave.select(this.map.getContainer());var center=this.map.getCenter();var zoom=this.map.getZoom();var scale=512*0.5/Math.PI*Math.pow(2,zoom);return rave.geo.mercator().center([0,center.lat]).rotate([-center.lng,0,0]).translate([this._containerRect.width/2,this._containerRect.height/2])["scale"](scale)};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype.getCenter=function(){var c=this.map.getCenter();return[c.lng,c.lat]};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype.getBounds=
  617. function(){return this.map.getBounds()};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype.setMaxBounds=function(lnglat){return};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype.setContainerRect=function(rect){this._containerRect=rect};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype.setDefaultPointSize=function(size){this._defaultPointSize=size};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype.bindHandlers=
  618. function(context){function eventName(name){return name+".mapboxRebind"}function dispatchMouseEvent(name){var e;if(typeof MouseEvent==="object"){e=document.createEvent("MouseEvent");e.initMouseEvent(name,false,false,null,0,0,0,rave.event.clientX,rave.event.clientY,rave.event.ctrlKey,rave.event.altKey,rave.event.shiftKey,rave.event.metaKey,0,null)}else e=new MouseEvent(name,{"clientX":rave.event.clientX,"clientY":rave.event.clientY,"ctrlKey":rave.event.ctrlKey,"shiftKey":rave.event.shiftKey,"altKey":rave.event.altKey,
  619. "metaKey":rave.event.metaKey});self.map.getCanvasContainer().dispatchEvent(e)}function dispatchTouchEvent(name){if(typeof MouseEvent!=="object"){var e=new TouchEvent(name,{"touches":rave.event.touches,"targetTouches":rave.event.targetTouches,"changedTouches":rave.event.changedTouches,"ctrlKey":rave.event.ctrlKey,"shiftKey":rave.event.shiftKey,"altKey":rave.event.altKey,"metaKey":rave.event.metaKey});self.map.getCanvasContainer().dispatchEvent(e)}}function dispatchWheelEvent(name){var e;if(typeof MouseEvent===
  620. "object"){e=document.createEvent("WheelEvent");var modifiers="";e.initWheelEvent(name,false,false,null,0,0,0,rave.event.clientX,rave.event.clientY,0,null,modifiers,rave.event.deltaX,rave.event.deltaY,rave.event.deltaZ,rave.event.deltaMode)}else e=new WheelEvent(name,{"clientX":rave.event.clientX,"clientY":rave.event.clientY,"deltaX":rave.event.deltaX,"deltaY":rave.event.deltaY,"deltaZ":rave.event.deltaZ,"deltaMode":rave.event.deltaMode,"ctrlKey":rave.event.ctrlKey,"shiftKey":rave.event.shiftKey,"altKey":rave.event.altKey,
  621. "metaKey":rave.event.metaKey});self.map.getCanvasContainer().dispatchEvent(e)}var self=this;var mouseEvents=["click","contextmenu","dblclick","mousedown","mousemove","mouseout","mouseup"];var touchEvents=["touchcancel","touchend","touchmove","touchstart"];var wheelEvents=["mousewheel","wheel"];for(var e$$0=0;e$$0<mouseEvents.length;e$$0++)context["on"](eventName(mouseEvents[e$$0]),function(){var e=dispatchMouseEvent(rave.event["type"])});for(e$$0=0;e$$0<touchEvents.length;e$$0++)context["on"](eventName(touchEvents[e$$0]),
  622. function(){dispatchTouchEvent(rave.event["type"])});for(e$$0=0;e$$0<wheelEvents.length;e$$0++)context["on"](eventName(wheelEvents[e$$0]),function(){rave.event.preventDefault();dispatchWheelEvent(rave.event["type"])})};com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl.prototype._mapFeaturesToData=function(){var self=this;this.featureDataMap=rave.map();this.originalDataToPkMap=rave.map();if(!(this._featureMeta&&this.rawData&&this.rawData.length&&this.fiAccessor))return;this.rawData.forEach(function(d){var features=
  623. self._featureMeta.filter(function(f){var feature=self.fiAccessor(d)==f.name;if(feature&&self.firAccessor&&f.refine&&f.refine.length){var refine=false;for(var r=0;r<f.refine.length;r++){refine=self.firAccessor(d)==f.refine[r];if(refine)break}return refine}return feature});if(features.length){var feature$$0=features[0];self.featureDataMap.set(feature$$0.pk,{pk:feature$$0.pk,"originalData":d,status:{selected:false,highlighted:false,deemphasized:false},featureName:self.fiAccessor(d),"value":self.vAccessor?
  624. self.vAccessor(d):null});self.originalDataToPkMap.set(self.fiAccessor(d),feature$$0.pk)}})};return com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl}();var com_ibm_rave_bundles_tiledmapBundle_TiledmapBundle=rave["internal"]["Declare"](com_ibm_rave_bundles_RaveBundle,{mapboxtoken:"","getName":function(){return com_ibm_rave_bundles_tiledmapBundle_TiledmapBundle.BUNDLE_NAME},"createView":function(ctx){ctx.properties.property("tiledmap.token")["value"](this.mapboxtoken);return new com_ibm_rave_bundles_tiledmapBundle_TiledmapView(ctx)},
  625. "_doConfigure":function(configurations,userCallback,bundle){if(configurations){this.mapboxSecretToken=configurations["Mapbox.secretToken"];this.mapboxAccoutName=configurations["Mapbox.accountName"];this.mapboxtoken=configurations["Mapbox.token"]}if(this.mapboxSecretToken!=null&&this.mapboxAccoutName!=null){var requestURL="https://api.mapbox.com/styles/v1/"+this.mapboxAccoutName+"?access_token\x3d"+this.mapboxSecretToken;var self=this;rave.json(requestURL,function(error,response){if(response){var properties=
  626. bundle.info().properties();properties.forEach(function(currentValue,index,array){if(currentValue.simpleId()=="style"){var responseArray=response;var __i_enFor0=0;var __exp_enFor0=responseArray;for(var __len_enFor0=__exp_enFor0.length;__i_enFor0<__len_enFor0;++__i_enFor0){var obj=__exp_enFor0[__i_enFor0];var style=obj;var styleID=""+style["id"];var styleName=""+style["name"];var value="mapbox://style/"+self.mapboxAccoutName+"/"+styleID;var catalogEntry={};var messages=new rave["library"]["internal"]["MessagesRegistry"];
  627. var catalog=null;var newOption=null;catalogEntry[styleID]=styleName;catalog=rave["library"]["internal"]["Messages"].createFromCatalog(catalogEntry,bundle.locale());messages.add(bundle.locale(),catalog);newOption=new rave["library"]["internal"]["StringPropertyOption"](value,""+style["id"],messages);currentValue.options().push(newOption);if(styleName=="Default")currentValue.setDefaultValue(value)}}return currentValue})}if(userCallback)userCallback()})}else if(userCallback)userCallback()}});com_ibm_rave_bundles_tiledmapBundle_TiledmapBundle["init"]=
  628. function(){if(!com_ibm_rave_library_Library.bundle.isRegistered(com_ibm_rave_bundles_tiledmapBundle_TiledmapBundle.BUNDLE_NAME)){var bundle;com_ibm_rave_library_Library.bundle.extension(com_ibm_rave_bundles_tiledmapBundle_TiledmapBundle.BUNDLE_NAME,function(){if(!bundle){bundle=new com_ibm_rave_bundles_tiledmapBundle_TiledmapBundle;bundle["loadResources"]();require("./mapbox-glv0.37.css");require("./vizlibrary-tiledmap.css")}return bundle})}return com_ibm_rave_bundles_tiledmapBundle_TiledmapBundle.BUNDLE_NAME};
  629. com_ibm_rave_bundles_tiledmapBundle_TiledmapBundle.BUNDLE_NAME="tiledmapBundle";com_ibm_rave_bundles_tiledmapBundle_TiledmapBundle["init"]();if(!com_ibm_rave_library_Library.bundle[com_ibm_rave_bundles_tiledmapBundle_TiledmapBundle.BUNDLE_NAME])com_ibm_rave_library_Library.bundle[com_ibm_rave_bundles_tiledmapBundle_TiledmapBundle.BUNDLE_NAME]=function(){if(!bundle){bundle=new com_ibm_rave_bundles_tiledmapBundle_TiledmapBundle;bundle["loadResources"]();require("./mapbox-glv0.37.css");require("./vizlibrary-tiledmap.css")}return bundle};
  630. else;var com_ibm_rave_bundles_tiledmapBundle_TiledmapView=rave["internal"]["Declare"](com_ibm_rave_bundles_views_BundleView,{"_pointSizeScale":null,_mapInitialized:false,_min:0,_max:0,"constructor":function(context){this._selectionManager=new rave["library"]["internal"]["SelectionManager"]},"setup":function(){com_ibm_rave_bundles_views_BundleView.prototype["setup"].call(this);var self=this;this._selectionManager.onStateChange(function(args){if(args!==null||arguments.length>1)args=Array.prototype.slice.call(arguments,
  631. 0);this.filter(rave["library"]["internal"]["BundleUtils"].notExit).style("stroke-opacity",0).style("fill-opacity",0);this.filter(".highlighted").style("stroke-opacity",1);this.filter(".selected").style("stroke-opacity",1);this.filter(".deemphasized").style("fill-opacity",0.3);return null});var action=this.context.actions.action("highlight");action.setOperation(new (rave["internal"]["Declare"]([rave["library"]["internal"]["ActionOperation"]],{_$functionClassMethod:function(){var _$self=function(args){if(args!==
  632. null||arguments.length>1)args=Array.prototype.slice.call(arguments);if(self._mapComponent)self._mapComponent.highlightAction(args[0])};return _$self}})));action=this.context.actions.action("select");action.setOperation(new (rave["internal"]["Declare"]([rave["library"]["internal"]["ActionOperation"]],{_$functionClassMethod:function(){var _$self=function(args){if(args!==null||arguments.length>1)args=Array.prototype.slice.call(arguments);if(self._mapComponent)self._mapComponent.selectAction(args[0])};
  633. return _$self}})));action=this.context.actions.action("deselect");action.setOperation(new (rave["internal"]["Declare"]([rave["library"]["internal"]["ActionOperation"]],{_$functionClassMethod:function(){var _$self=function(args){if(args!==null||arguments.length>1)args=Array.prototype.slice.call(arguments);if(self._mapComponent)self._mapComponent.deselectAction(args[0])};return _$self}})));action=this.context.actions.action("deselectAll");action.setOperation(new (rave["internal"]["Declare"]([rave["library"]["internal"]["ActionOperation"]],
  634. {_$functionClassMethod:function(){var _$self=function(args){if(args!==null||arguments.length>1)args=Array.prototype.slice.call(arguments);if(self._mapComponent)self._mapComponent.deselectAllAction()};return _$self}})))},"on":function(eventName,callback){rave["library"]["internal"]["AbstractView"].prototype["on"].call(this,eventName,callback);this._mapComponent["on"](eventName,function(e){callback(e)})},"draw":function(){var accessToken=this["getStringProperty"]("tiledmap.token");if(accessToken==null||
  635. accessToken=="")return;var self=this;this["preDraw"]("g.vizlibrary-tiledmap");this.context.node.selectAll("g.legends").style("pointer-events","all");if(!this["validateDataModel"]("*"))return;var geo=this.context.getPropertyValue("tiledmap.geoJson");var featureMeta=this.context.getPropertyValue("tiledmap.geoJson");var dataSet=this["dataModel"].dataset("data");var featureIDDataSlotEntry=dataSet.slot("featureId").entry();var featureIdRefinementSlotEntry=dataSet.slot("featureIdRefinement").entry();var pointColorSlotEntry=
  636. dataSet.slot("featureId").entry();var pointSizeSlotEntry=dataSet.slot("featureIdRefinement").entry();var valueDataSlotEntry=dataSet.slot("value").entry();var pointSizeDataSlotEntry=dataSet.slot("pointSize").entry();var pointColorDataSlotEntry=dataSet.slot("pointColor").entry();var data$$0=dataSet["data"]();var dataMap=rave["internal"]["ES6Map"].create();if(featureIDDataSlotEntry)for(var i=0;i<data$$0.length;++i){var d=data$$0[i];var id=""+featureIDDataSlotEntry(d);dataMap.set(id,d)}this._featureIDAccessor=
  637. rave["library"]["internal"]["AbstractView"].accessorOf(featureIDDataSlotEntry);this._featureIdRefinementAccessor=rave["library"]["internal"]["AbstractView"].accessorOf(featureIdRefinementSlotEntry);this._pointColorAccessor=rave["library"]["internal"]["AbstractView"].accessorOf(pointColorDataSlotEntry);this._pointSizeAccessor=rave["library"]["internal"]["AbstractView"].accessorOf(pointSizeDataSlotEntry);var g=this.context.node.select("g.chart");var gMap=g.select("g.map");var gOverlay=g.select("g.mapOverlay");
  638. var gPoints=g.select("g.points");var valueExtent=valueDataSlotEntry?valueDataSlotEntry.domain()?valueDataSlotEntry.domain():rave.extent(data$$0,function(data,index,groupIndex){return valueDataSlotEntry(data)}):[0,0];var pointSizeDomain=[0,0];if(pointSizeDataSlotEntry)if(pointSizeDataSlotEntry.domain())pointSizeDomain=pointSizeDataSlotEntry.domain();else pointSizeDomain=rave.extent(data$$0,function(data,index,groupIndex){return pointSizeDataSlotEntry(data)});var currentPaletteId=this["getStringProperty"]("color.palette");
  639. this._paletteID=currentPaletteId;this._featurePalette=com_ibm_rave_library_Library.palettes["getPalette"](currentPaletteId);this._featurePalette.setData(dataSet,"value");this._pointPalette=com_ibm_rave_library_Library.palettes.getAdjustedColorPalette(this._paletteID,0);this._pointPalette.setData(dataSet,"pointColor");var bb=this["_chart"].node().rave_getParentNode().rave_getParentNode().getBoundingClientRect();this._min=this.evaluateSize(this["getStringProperty"]("minPointSize"),bb.width,10);this._max=
  640. this.evaluateSize(this["getStringProperty"]("maxPointSize"),bb.width,10);var pointSizeScale=rave["scale"].linear().domain(pointSizeDomain).range([this._min,this._max]);this["_pointSizeScale"]=pointSizeScale;var pointSize=function(data,index,groupIndex){return pointSizeScale.call(this,data["pointSize"],index,groupIndex)};var nullColorPalette;if(pointSizeScale){var minValue=pointSizeScale.domain()[0];var maxValue=pointSizeScale.domain()[1];var nullColor=this.context.getPropertyValue("color.null");nullColorPalette=
  641. rave["scale"].ordinal().domain([minValue,maxValue]).range([nullColor])}var showLegend=this["isShowLegend"]();var legendPosition=this["getLegendPosition"]();this["_legends"]["visible"](showLegend)["position"](legendPosition)["transition"](false,0)["setPreExecute"](this.context.getPreExecute());this["_legends"]["visible"](0,showLegend&&!!pointSizeDataSlotEntry)["selector"](0,this.context.node.selectAll("g.legend.size"))["scale"](0,nullColorPalette)["shape"](0,"circle")["swatchSize"](0,function(_data,
  642. index,groupIndex){return Math.PI*Math.pow(+ +pointSizeScale.call(null,_data,index,groupIndex),2)})["title"](0,this.context.getDataSlotLabel("legend.pointsize.title",pointSizeDataSlotEntry))["titleFill"](0,this.context.getPropertyValue("legend.titlestyle.fill"))["titleFontSize"](0,this.context.getPropertyValue("legend.titlestyle.fontsize"))["titleFontFamily"](0,this.context.getPropertyValue("legend.titlestyle.fontfamily"))["setDataSlot"](0,pointSizeDataSlotEntry);this["_legends"]["visible"](1,showLegend&&
  643. !!pointColorDataSlotEntry)["selector"](1,this.context.node.selectAll("g.legend.point"))["palette"](1,this._pointPalette)["shape"](1,"square")["title"](1,this.context.getDataSlotLabel("legend.pointcolor.title",pointColorDataSlotEntry))["titleFill"](1,this.context.getPropertyValue("legend.titlestyle.fill"))["titleFontSize"](1,this.context.getPropertyValue("legend.titlestyle.fontsize"))["titleFontFamily"](1,this.context.getPropertyValue("legend.titlestyle.fontfamily"))["setDataSlot"](1,pointColorDataSlotEntry);
  644. this["_legends"]["visible"](2,showLegend&&!!valueDataSlotEntry)["selector"](2,this.context.node.selectAll("g.legend.region"))["palette"](2,this._featurePalette)["shape"](2,"square")["title"](2,this.context.getDataSlotLabel("legend.regioncolor.title",valueDataSlotEntry))["titleFill"](2,this.context.getPropertyValue("legend.titlestyle.fill"))["titleFontSize"](2,this.context.getPropertyValue("legend.titlestyle.fontsize"))["titleFontFamily"](2,this.context.getPropertyValue("legend.titlestyle.fontfamily"))["setDataSlot"](2,
  645. valueDataSlotEntry);if(this.updateType<=1){this["prepareLayoutComponent"]();this["prepareLayoutSizables"](this["_layoutComponent"],false,false,false,false,this["_legends"]["anyVisible"]());this["_legends"]["preLayout"](this["_layoutComponent"]);this["_layoutComponent"]["layout"]()}var chartRect=this["_layoutComponent"]["elementRect"]();this["_legends"]["rectangle"](this["_layoutComponent"]["legendRect"]());this["_legends"]["draw"]();g.attr("transform","translate("+chartRect.x+","+chartRect.y+")");
  646. this["_clip"]["clipRect"](new rave["internal"]["RectStruct"](1,1,chartRect.width-2,chartRect.height-2))["applyTo"](g).call(this.context.node.select("defs"));var jsonPalette=com_ibm_rave_library_Library.palettes.getJSONPalette(this["getStringProperty"]("color.palette"));var updateMapComponent=function(){self._mapComponent.setContainerRect(chartRect);self._mapComponent["setup"](self.context.node);self._mapComponent.valueAccessor(valueDataSlotEntry);self._mapComponent.featureIdAccessor(self._featureIDAccessor);
  647. self._mapComponent.featureIdRefinementAccessor(self._featureIdRefinementAccessor);self._mapComponent.pointColorAccessor(self._pointColorAccessor);self._mapComponent.pointSizeAccessor(self._pointSizeAccessor);self._mapComponent.setPaletteDef(jsonPalette);self._mapComponent.setPalette(self._featurePalette);self._mapComponent.setPointPalette(self._pointPalette);self._mapComponent.setPointSizeScale(self["_pointSizeScale"]);var nullColor=self["getStringProperty"]("color.null");var nullColorDefault=""+
  648. self["getPropertyDefault"]("color.null");self._mapComponent.setNullColor(nullColor==""?nullColorDefault:nullColor);self._mapComponent.setDefaultPointSize(self._min+self._max/2);self._mapComponent.setGeoJson(geo);self._mapComponent.setFeatureMeta(featureMeta);self._mapComponent.setRegionTransparency(20);self._mapComponent.setPointTransparency(self["getIntProperty"]("color.pointTransparency"));if(self.updateType==0){self._mapComponent.setMapData(data$$0);self._mapComponent.minimumValue(+valueExtent[0]);
  649. self._mapComponent.maximumValue(+valueExtent[1]);self._mapComponent.fire("style.load")}if(self.updateType<=1)self._mapComponent.mapStyle(self["getStringProperty"]("tiledmap.style"))};if(!this._mapComponent){gMap.selectAll("*").remove();this._mapComponent=new com_ibm_rave_bundles_nativeImpl_components_TiledmapNativeSubComponentImpl;this._mapComponent.accessToken(accessToken);this._mapComponent.setContainerRect(chartRect);this._mapComponent["setup"](this.context.node);this._mapComponent.valueAccessor(valueDataSlotEntry);
  650. this._mapComponent.featureIdAccessor(this._featureIDAccessor);this._mapComponent.featureIdRefinementAccessor(this._featureIdRefinementAccessor);this._mapComponent.pointColorAccessor(self._pointColorAccessor);this._mapComponent.pointSizeAccessor(self._pointSizeAccessor);this._mapComponent.setMapData(data$$0);this._mapComponent.minimumValue(+valueExtent[0]);this._mapComponent.maximumValue(+valueExtent[1]);this._mapComponent.setGeoJson(geo);this._mapComponent.setFeatureMeta(featureMeta);this._mapComponent.setPaletteDef(jsonPalette);
  651. this._mapComponent.setPalette(self._featurePalette);this._mapComponent.setPointPalette(self._pointPalette);this._mapComponent.setPointSizeScale(self["_pointSizeScale"]);nullColor=this["getStringProperty"]("color.null");var nullColorDefault=""+this["getPropertyDefault"]("color.null");this._mapComponent.setNullColor(nullColor==""?nullColorDefault:nullColor);this._mapComponent.setDefaultPointSize((this._min+this._max)/2);this._mapComponent.setRegionTransparency(20);this._mapComponent.setPointTransparency(this["getIntProperty"]("color.pointTransparency"));
  652. this._mapComponent["draw"](gMap);this._mapComponent.mapStyle(this["getStringProperty"]("tiledmap.style"));this._mapComponent.setMaxBounds(com_ibm_rave_bundles_tiledmapBundle_TiledmapView.BASE_BOUNDS);this._mapInitializedCallback=function(e){self._mapInitialized=true;self._mapComponent.off("style.load",self._mapInitializedCallback);updateMapComponent()};this._mapComponent["on"]("style.load",this._mapInitializedCallback)}else if(this._mapInitialized)updateMapComponent();var features=[];var filteredFeatures=
  653. [];for(i=0;i<features.length;++i){var feature=features[i];var featureProperties=feature["properties"];var name=featureProperties["name"];if(name==null)name=featureProperties["NAME"];id=name;var datum=dataMap.get(id);if(datum!=null)filteredFeatures.push(new com_ibm_rave_bundles_tiledmapBundle_TiledmapView.TiledMapDatum(feature,datum,id,valueDataSlotEntry?+valueDataSlotEntry(datum):0,pointColorDataSlotEntry?+pointColorDataSlotEntry(datum):0,pointSizeDataSlotEntry?+pointSizeDataSlotEntry(datum):0))}this["resetUpdate"]()},
  654. evaluateSize:function(value,extent,defValue){var v=rave["library"]["internal"]["CSSConverter"].convertCSSSizeToPixelNumber(value,extent,10);var d=v!=null?v:defValue;return Math.max(0,Math.min(d,extent))},"getLegendCount":function(){return 3},"getGroupStructure":function(){return["defs","g.vizlibrary vizlibrary-tiledmap","(","rect.background chart","g.chart","(","g.mapOverlay","g.points","g.map",")","g.legends","(","g.legends-layout","g.legend size","g.legend point","g.legend region",")",")"]}});com_ibm_rave_bundles_tiledmapBundle_TiledmapView.TiledMapDatum=
  655. rave["internal"]["Declare"]({"data":null,"feature":null,"id":null,"value":null,"pointColor":null,"pointSize":null,"centroid":null,"constructor":function(feature,data,id,value,pointColor,pointSize){this["data"]=data;this["feature"]=feature;this["id"]=id;this["value"]=value;this["pointColor"]=pointColor;this["pointSize"]=pointSize;this["centroid"]=rave.geo["centroid"](feature)},"originalData":function(){return this["data"]},"originalDataList":function(){return[this["data"]]}});com_ibm_rave_bundles_tiledmapBundle_TiledmapView.BASE_BOUNDS=
  656. [[-180,-85.05112],[180,85.05112]];var com_ibm_rave_bundles_components_BackgroundComponentImpl=rave["internal"]["Declare"](com_ibm_rave_bundles_components_BundleComponentImpl,{"constructor":function(){this._rect=new rave["internal"]["RectStruct"](0,0,0,0)},"execute":function(g){this["preExecute"]();g.style("fill",this._backgroundColor!=null?this._backgroundColor:"#FFFFFF").style("fill-opacity",1);g.attr("x",this._rect.x).attr("y",this._rect.y).attr("width",this._rect.width).attr("height",this._rect.height)},
  657. "type":function(){return com_ibm_rave_bundles_component_BackgroundComponent["COMPONENT_TYPE"]},backgroundColor$0:function(){return this._backgroundColor},backgroundColor$1:function(backgroundColor){this._backgroundColor=backgroundColor;return this},"size":function(size){this._rect.x=0;this._rect.y=0;this._rect.width=size.w;this._rect.height=size.h;return this},"rect":function(rect){var r=new rave["internal"]["RectStruct"](rect.x,rect.y,rect.width,rect.height);this._rect=r;return this},"backgroundColor":function(a0){var args=
  658. arguments;if(args.length==0)return this.backgroundColor$0();return this.backgroundColor$1(a0)}});var com_ibm_rave_bundles_components_ChartLayoutComponentImpl=rave["internal"]["Declare"](com_ibm_rave_bundles_components_BundleComponentImpl,{_leftPadding:0,_topPadding:0,_rightPadding:0,_bottomPadding:0,_legendChartAlign:false,_preLegendAtMax:false,_preAxesAtZero:false,"constructor":function(){this._axisSizables=[];this._padding=0;this._topPadding=0;this._leftPadding=0;this._bottomPadding=0;this._rightPadding=
  659. 0;this._topChartPadding=0;this._leftChartPadding=0;this._bottomChartPadding=0;this._rightChartPadding=0;this._legendChartGap=0;this._legendPosition="right";this._overallRect=new rave["internal"]["RectStruct"](0,0,0,0);this._legendRect=new rave["internal"]["RectStruct"](0,0,0,0);this._chartRect=new rave["internal"]["RectStruct"](0,0,0,0);this._topRect=new rave["internal"]["RectStruct"](0,0,0,0);this._leftRect=new rave["internal"]["RectStruct"](0,0,0,0);this._bottomRect=new rave["internal"]["RectStruct"](0,
  660. 0,0,0);this._rightRect=new rave["internal"]["RectStruct"](0,0,0,0);this._elementRect=new rave["internal"]["RectStruct"](0,0,0,0);this._legendChartAlign=true},"execute":function(g){this["layout"]()},"preLayout":function(legendAtMax,axesAtZero){this._preLegendAtMax=legendAtMax;this._preAxesAtZero=axesAtZero;this["layout"]();this._preLegendAtMax=false;this._preAxesAtZero=false},"layout":function(){this["preExecute"]();com_ibm_rave_bundles_components_ChartLayoutComponentImpl.copyRect(this._chartRect,
  661. this._overallRect);com_ibm_rave_bundles_components_ChartLayoutComponentImpl.copyRect(this._legendRect,this._overallRect);var x=this._overallRect.x;var y=this._overallRect.y;var w=this._overallRect.width;var h=this._overallRect.height;var maxWH=Math.max(w,h);var tbLegend="top"==this._legendPosition||"bottom"==this._legendPosition;var legendPercent=this._axisSizables.length==0?0.5:0.3;var legendMaxSize=(tbLegend?this._legendRect.height:this._legendRect.width)*legendPercent;var legendDynamicSize=this._legendSizable?
  662. this._preLegendAtMax?maxWH:this._legendSizable["getPreferredSize"]():0;if(legendDynamicSize>legendMaxSize)legendDynamicSize=legendMaxSize;var isLegendTop=false;var isLegendBottom=false;var isLegendLeft=false;var isLegendRight=false;if("top"==this._legendPosition){this._legendRect.height=legendDynamicSize;this._chartRect.height-=this._legendRect.height;this._chartRect.y+=this._legendRect.height;isLegendTop=true}else if("bottom"==this._legendPosition){this._legendRect.height=legendDynamicSize;this._chartRect.height-=
  663. this._legendRect.height;this._legendRect.y=y+h-this._legendRect.height;isLegendBottom=true}else if("left"==this._legendPosition){this._legendRect.width=legendDynamicSize;this._chartRect.width-=this._legendRect.width;this._chartRect.x+=this._legendRect.width;isLegendLeft=true}else{this._legendRect.width=legendDynamicSize;this._chartRect.width-=this._legendRect.width;this._legendRect.x=x+w-this._legendRect.width;isLegendRight=true}if(this.evaluatePadding(this._padding,w,h)){var lrgap=com_ibm_rave_bundles_components_ChartLayoutComponentImpl.evaluateSize(this._legendChartGap,
  664. w);var tbgap=com_ibm_rave_bundles_components_ChartLayoutComponentImpl.evaluateSize(this._legendChartGap,h);var chartTop=isLegendTop&&this._legendSizable?tbgap:this._topPadding;var chartLeft=isLegendLeft&&this._legendSizable?lrgap:this._leftPadding;var chartBottom=isLegendBottom&&this._legendSizable?tbgap:this._bottomPadding;var chartRight=isLegendRight&&this._legendSizable?lrgap:this._rightPadding;com_ibm_rave_bundles_components_ChartLayoutComponentImpl.inset(this._chartRect,chartTop,chartLeft,chartBottom,
  665. chartRight)}else{var lrpadding=com_ibm_rave_bundles_components_ChartLayoutComponentImpl.evaluateSize(this._padding,w);var tbpadding=com_ibm_rave_bundles_components_ChartLayoutComponentImpl.evaluateSize(this._padding,h);chartTop=tbpadding+com_ibm_rave_bundles_components_ChartLayoutComponentImpl.evaluateSize(this._topChartPadding,h);chartLeft=lrpadding+com_ibm_rave_bundles_components_ChartLayoutComponentImpl.evaluateSize(this._leftChartPadding,w);chartBottom=tbpadding+com_ibm_rave_bundles_components_ChartLayoutComponentImpl.evaluateSize(this._bottomChartPadding,
  666. h);chartRight=lrpadding+com_ibm_rave_bundles_components_ChartLayoutComponentImpl.evaluateSize(this._rightChartPadding,w);com_ibm_rave_bundles_components_ChartLayoutComponentImpl.inset(this._chartRect,chartTop,chartLeft,chartBottom,chartRight);this._topPadding=tbpadding;this._leftPadding=lrpadding;this._bottomPadding=tbpadding;this._rightPadding=lrpadding}if(this._legendSizable)if(isLegendRight){this._legendRect.x-=this._rightPadding;this._chartRect.width-=this._rightPadding;this._legendRect.y+=this._topPadding;
  667. this._legendRect.height-=this._topPadding+this._bottomPadding}else if(isLegendLeft){this._legendRect.x+=this._leftPadding;this._chartRect.x+=this._leftPadding;this._chartRect.width-=this._leftPadding;this._legendRect.y+=this._topPadding;this._legendRect.height-=this._topPadding+this._bottomPadding}else if(isLegendTop){this._legendRect.y+=this._topPadding;this._chartRect.y+=this._topPadding;this._chartRect.height-=this._topPadding;this._legendRect.x+=this._leftPadding;this._legendRect.width-=this._leftPadding+
  668. this._rightPadding}else{this._legendRect.y-=this._bottomPadding;this._chartRect.height-=this._bottomPadding;this._legendRect.x+=this._leftPadding;this._legendRect.width-=this._leftPadding+this._rightPadding}x=this._chartRect.x;y=this._chartRect.y;w=this._chartRect.width;h=this._chartRect.height;var bottomH=0;var topH=0;var leftW=0;var rightW=0;var tbSO=0;var lrSO=0;if(!this._preAxesAtZero){var countHorz=0;var countVert=0;for(var i=0;i<this._axisSizables.length;++i){var sizable=this._axisSizables[i];
  669. if(sizable){var orientation=sizable["getSizableOrientation"]();if("top"==orientation||"bottom"==orientation)countHorz++;else countVert++}}for(i=0;i<this._axisSizables.length;++i){sizable=this._axisSizables[i];if(sizable){orientation=sizable["getSizableOrientation"]();var tbAxis="top"==orientation||"bottom"==orientation;var axisDynamicSize=sizable["getPreferredSize"]();var spillOver=sizable["getSpillOverSize"]();if(tbAxis){var axisPercent=countHorz>1?0.4:0.5;if(axisDynamicSize>this._chartRect.height*
  670. axisPercent)axisDynamicSize=this._chartRect.height*axisPercent;if("top"==orientation)topH=axisDynamicSize;else bottomH=axisDynamicSize;if(spillOver>lrSO)lrSO=spillOver}else{axisPercent=countVert>1?0.4:0.5;if(axisDynamicSize>this._chartRect.width*axisPercent)axisDynamicSize=this._chartRect.width*axisPercent;if("left"==orientation)leftW=axisDynamicSize;else rightW=axisDynamicSize;if(spillOver>tbSO)tbSO=spillOver}}}}if(lrSO>leftW)leftW=lrSO;if(lrSO>rightW)rightW=lrSO;if(tbSO>topH)topH=tbSO;if(tbSO>bottomH)bottomH=
  671. tbSO;this._leftRect.x=x;this._leftRect.width=leftW;this._leftRect.y=y;this._leftRect.height=h;this._rightRect.x=x+w-rightW;this._rightRect.width=rightW;this._rightRect.y=y;this._rightRect.height=h;this._topRect.y=y;this._topRect.height=topH;this._topRect.x=x;this._topRect.width=w;this._bottomRect.y=y+h-bottomH;this._bottomRect.height=bottomH;this._bottomRect.x=x;this._bottomRect.width=w;this._elementRect.x=x+leftW;this._elementRect.y=y+topH;this._elementRect.width=w-(leftW+rightW);this._elementRect.height=
  672. h-(topH+bottomH);if(this._legendSizable&&this._legendChartAlign)if(tbLegend){this._legendRect.x=this._elementRect.x;this._legendRect.width=this._elementRect.width}else{this._legendRect.y=this._elementRect.y;this._legendRect.height=this._elementRect.height}},evaluatePadding:function(padding,horizontalExtent,verticalExtent){if(padding==null)return false;var paddingString=padding+"";if(paddingString.length==0)return false;this._topPadding=0;this._leftPadding=0;this._bottomPadding=0;this._rightPadding=
  673. 0;var items=paddingString.split(new RegExp(";"));var __i_enFor0=0;for(var __len_enFor0=items.length;__i_enFor0<__len_enFor0;++__i_enFor0){var item=items[__i_enFor0];var parts=item.split(new RegExp(":"));if(items.length==1&&parts.length!=2)return false;if(parts.length==2)if(0<=parts[0].indexOf("top"))this._topPadding=com_ibm_rave_bundles_components_ChartLayoutComponentImpl.evaluateSize(parts[1],verticalExtent);else if(0<=parts[0].indexOf("left"))this._leftPadding=com_ibm_rave_bundles_components_ChartLayoutComponentImpl.evaluateSize(parts[1],
  674. horizontalExtent);else if(0<=parts[0].indexOf("bottom"))this._bottomPadding=com_ibm_rave_bundles_components_ChartLayoutComponentImpl.evaluateSize(parts[1],verticalExtent);else if(0<=parts[0].indexOf("right"))this._rightPadding=com_ibm_rave_bundles_components_ChartLayoutComponentImpl.evaluateSize(parts[1],horizontalExtent)}return true},"legendRect":function(){return this._legendRect},"chartRect":function(){return this._chartRect},"topRect":function(){return this._topRect},"leftRect":function(){return this._leftRect},
  675. "bottomRect":function(){return this._bottomRect},"rightRect":function(){return this._rightRect},"elementRect":function(){return this._elementRect},"overall":function(overall){com_ibm_rave_bundles_components_ChartLayoutComponentImpl.copyRect(this._overallRect,overall);return this},padding$0:function(){return this._padding},legendChartAlign$0:function(){return this._legendChartAlign},legendChartGap$0:function(){return this._legendChartGap},topPadding$0:function(){return this._topChartPadding},leftPadding$0:function(){return this._leftChartPadding},
  676. bottomPadding$0:function(){return this._bottomChartPadding},rightPadding$0:function(){return this._rightChartPadding},legendPosition$0:function(){return this._legendPosition},topPadding$1:function(padding){this._topChartPadding=padding;return this},leftPadding$1:function(padding){this._leftChartPadding=padding;return this},bottomPadding$1:function(padding){this._bottomChartPadding=padding;return this},rightPadding$1:function(padding){this._rightChartPadding=padding;return this},"type":function(){return com_ibm_rave_bundles_component_ChartLayoutComponent["COMPONENT_TYPE"]},
  677. padding$1:function(value){this._padding=value;return this},"chartPadding":function(top,left,bottom,right){this._topChartPadding=top;this._leftChartPadding=left;this._bottomChartPadding=bottom;this._rightChartPadding=right;return this},legendChartAlign$1:function(legendChartAlign){this._legendChartAlign=legendChartAlign;return this},legendChartGap$1:function(value){this._legendChartGap=value;return this},legendPosition$1:function(position){if("top"==position||"bottom"==position||"left"==position||
  678. "right"==position)this._legendPosition=position;return this},"legendSize":function(sizable){this._legendSizable=sizable;return this},"removeAxisSizables":function(){this._axisSizables.length=0;return this},"addAxisSizable":function(sizable){this._axisSizables.push(sizable);return this},"padding":function(a0){var args=arguments;if(args.length==0)return this.padding$0();return this.padding$1(a0)},"legendChartAlign":function(a0){var args=arguments;if(args.length==0)return this.legendChartAlign$0();return this.legendChartAlign$1(a0)},
  679. "legendChartGap":function(a0){var args=arguments;if(args.length==0)return this.legendChartGap$0();return this.legendChartGap$1(a0)},"topPadding":function(a0){var args=arguments;if(args.length==0)return this.topPadding$0();return this.topPadding$1(a0)},"leftPadding":function(a0){var args=arguments;if(args.length==0)return this.leftPadding$0();return this.leftPadding$1(a0)},"bottomPadding":function(a0){var args=arguments;if(args.length==0)return this.bottomPadding$0();return this.bottomPadding$1(a0)},
  680. "rightPadding":function(a0){var args=arguments;if(args.length==0)return this.rightPadding$0();return this.rightPadding$1(a0)},"legendPosition":function(a0){var args=arguments;if(args.length==0)return this.legendPosition$0();return this.legendPosition$1(a0)}});com_ibm_rave_bundles_components_ChartLayoutComponentImpl.copyRect=function(t,s){t.x=s.x;t.y=s.y;t.width=s.width;t.height=s.height;return t};com_ibm_rave_bundles_components_ChartLayoutComponentImpl.inset=function(r,top,left,bottom,right){var ileft=
  681. Math.max(0,left);var iright=Math.max(0,right);if(ileft+iright<=r.width){r.x+=ileft;r.width-=ileft+iright}var itop=Math.max(0,top);var ibottom=Math.max(0,bottom);if(itop+ibottom<=r.height){r.y+=itop;r.height-=itop+ibottom}return r};com_ibm_rave_bundles_components_ChartLayoutComponentImpl.evaluateSize=function(value,extent){var v=rave["library"]["internal"]["CSSConverter"].convertCSSSizeToPixelNumber(value,extent,10);var d=v!=null?v:0;return Math.max(0,Math.min(d,extent))};com_ibm_rave_bundles_components_ChartLayoutComponentImpl["MAX_AXIS_PERCENT"]=
  682. 0.4;com_ibm_rave_bundles_components_ChartLayoutComponentImpl["MAX_AXIS_PERCENT_SINGLE_PER_ORIENTATION"]=0.5;com_ibm_rave_bundles_components_ChartLayoutComponentImpl["MAX_LEGEND_PERCENT"]=0.3;com_ibm_rave_bundles_components_ChartLayoutComponentImpl["MAX_LEGEND_PERCENT_NO_AXIS"]=0.5;var com_ibm_rave_bundles_components_ClipPathComponentImpl=rave["internal"]["Declare"](com_ibm_rave_bundles_components_BundleComponentImpl,{"constructor":function(id){this._clipRect=new rave["internal"]["RectStruct"](0,0,
  683. 100,100);this._id=id},"type":function(){return"ClipPathComponent"},"clipRect":function(rect){this._clipRect=new rave["internal"]["RectStruct"](rect.x-1,rect.y-1,rect.width+2,rect.height+2);return this},"applyTo":function(s){s.attr("clip-path","url("+this["url"]()+")");return this},"id":function(){return this._id},"url":function(){return"#"+this._id},"execute":function(g){var clipPath=g.selectAll("#"+this._id)["data"]([0]);clipPath.enter().append("clipPath").attr("id",this._id).append("rect");rave["transition"](clipPath.select("rect")).attr("x",
  684. this._clipRect.x).attr("y",this._clipRect.y).attr("width",this._clipRect.width).attr("height",this._clipRect.height)}});var com_ibm_rave_bundles_components_LegendComponentImpl=rave["internal"]["Declare"](com_ibm_rave_bundles_components_BundleComponentImpl,{_visible:false,_swatchSize:0,"constructor":function(){this._visible=true;this._size=null;this._colorPalette=null;this._orient="horizontal";this._swatchSize=16*16;this._swatchSizeFunc=null;this._scale=null;this._shape="square";this._title=null;this["_titleStyle"]=
  685. {};this._entryStyle={};this._labelFormat=null;this._swatchLegend=null;this._continuousLegend=null;this._legendType=null},"type":function(){return"LegendComponent"},"execute":function(g){if(this._colorPalette)if("continuous"==this._colorPalette.getType()){if(!this._continuousLegend)this._continuousLegend=rave.capabilities.extension("legend").continuous();this._legendType="ContinuousLegend"}else{if(!this._swatchLegend)this._swatchLegend=rave.capabilities.extension("legend").swatch();this._legendType=
  686. "SwatchLegend"}else if(this._swatchSizeFunc){if(!this._swatchLegend)this._swatchLegend=rave.capabilities.extension("legend").swatch();this._legendType="SwatchLegend"}else this._legendType=null;this["preExecute"]();if(!this._visible||!this._colorPalette&&!this._swatchSizeFunc||!this._size||this._size[0]<=0||this._size[1]<=0){g.selectAll("*").remove();return}var fontChecker=rave.capabilities.extension("fontchecker");if(this._colorPalette&&"continuous"==this._colorPalette.getType()){this._continuousLegend.shapeRectSize("horizontal"==
  687. this._orient?[-1,16]:[16,-1])["size"](this._size)["scale"](this._colorPalette.getScale())["orient"](this._orient)["title"](this._title)["titleFill"](this["_titleStyle"]["fill"])["titleFontSize"](this["_titleStyle"]["font-size"])["titleFontFamily"](this["_titleStyle"]["font-Family"]).titleAlignment("start")["labelFormat"](this._labelFormat);var legend=g.call(this._continuousLegend);if(this._entryStyle)legend.selectAll(".legendLabel").style(this._entryStyle);if(this["_titleStyle"])legend.selectAll(".legendTitle").style(this["_titleStyle"]);
  688. if(fontChecker){legend.selectAll(".legendLabel").call(fontChecker);legend.selectAll(".legendTitle").call(fontChecker)}}else{var insets={};insets["bottom"]=5;var swatchSize=this._swatchSize;var scale=null;var labelFormatter=this._labelFormat;if(this._swatchSizeFunc&&this._scale){swatchSize=this._swatchSizeFunc;scale=this._scale}if(this._colorPalette){scale=this._colorPalette.getScale();var originalDomain=this._colorPalette.originalDomain();if(originalDomain){scale.domain(originalDomain);var f=this._colorPalette.originalDomainLabelAccessor();
  689. if(this._labelFormat){var self=this;labelFormatter=function(data,index,groupIndex){return self._labelFormat.call(this,f.call(this,data,index,groupIndex),index,groupIndex)}}else labelFormatter=f}}this._swatchLegend.labelPadding(8)["size"](this._size)["scale"](scale)["orient"](this._orient)["swatchSize"](swatchSize)["shape"](this._shape)["title"](this._title)["titleFill"](this["_titleStyle"]["fill"])["titleFontSize"](this["_titleStyle"]["font-size"])["titleFontFamily"](this["_titleStyle"]["font-family"]).titleAlignment("start")["labelFormat"](labelFormatter).titleInsets(insets);
  690. legend=g.call(this._swatchLegend);if(this._entryStyle)legend.selectAll(".legendLabel").style(this._entryStyle);if(this["_titleStyle"])legend.selectAll(".legendTitle").style(this["_titleStyle"]);if(fontChecker){legend.selectAll(".legendLabel").call(fontChecker);legend.selectAll(".legendTitle").call(fontChecker)}}},"legend":function(){if("ContinuousLegend"==this._legendType)return this._continuousLegend;if("SwatchLegend"==this._legendType)return this._swatchLegend;return null},"legendType":function(){return this._legendType},
  691. "visible":function(visible){this._visible=visible;return this},"isVisible":function(){return this._visible},"size":function(size){this._size=size;return this},"colorPalette":function(colorPalette){this._colorPalette=colorPalette;return this},"orient":function(orient){if("horizontal"==orient||"vertical"==orient)this._orient=orient;return this},"position":function(position){return this["orient"](com_ibm_rave_bundles_components_LegendComponentImpl["orientationOf"](position))},swatchSize$0:function(swatchSize){if(swatchSize>=
  692. 0&&swatchSize!=null)this._swatchSize=swatchSize;return this},"scale":function(scale){this._scale=scale;return this},swatchSize$1:function(swatchSize){if(swatchSize)this._swatchSizeFunc=swatchSize;return this},"shape":function(shape){this._shape=shape;return this},"title":function(title){this._title=title!=null&&title.length>0?title:null;return this},"titleFill":function(titleFill){this["_titleStyle"]["fill"]=titleFill;return this},"titleFontSize":function(titleFontSize){this["_titleStyle"]["font-size"]=
  693. titleFontSize;return this},"titleFontFamily":function(titleFontFamily){this["_titleStyle"]["font-family"]=titleFontFamily;return this},"labelFormat":function(labelFormat){this._labelFormat=labelFormat;return this},"titleFont":function(titleFontStyle){this["_titleStyle"]=com_ibm_rave_bundles_utilities_FontPropertyParser["parseCSSFont"](titleFontStyle);return this},"entryFont":function(entryFontStyle){this._entryStyle=com_ibm_rave_bundles_utilities_FontPropertyParser["parseCSSFont"](entryFontStyle);
  694. return this},"getSpaceUsed":function(){if(this._colorPalette&&"continuous"==this._colorPalette.getType())return this._continuousLegend.getUsedSize()+2;else return this._swatchLegend.getUsedSize()+2},"swatchSize":function(a0){var args=arguments;if(args.length==1&&typeof a0==="function")return this.swatchSize$1(a0);return this.swatchSize$0(a0)}});com_ibm_rave_bundles_components_LegendComponentImpl["orientationOf"]=function(position){if("top"==position||"bottom"==position)return"horizontal";return"vertical"};
  695. com_ibm_rave_bundles_components_LegendComponentImpl.BAR_THINKNESS=16;com_ibm_rave_bundles_components_LegendComponentImpl.SWATCH_SIZE=16;com_ibm_rave_bundles_components_LegendComponentImpl["TOP"]="top";com_ibm_rave_bundles_components_LegendComponentImpl["BOTTOM"]="bottom";com_ibm_rave_bundles_components_LegendComponentImpl["LEFT"]="left";com_ibm_rave_bundles_components_LegendComponentImpl["RIGHT"]="right";com_ibm_rave_bundles_components_LegendComponentImpl["ADJUSTABLE"]=-1;var com_ibm_rave_bundles_components_AxisComponentImpl=
  696. rave["internal"]["Declare"](com_ibm_rave_bundles_components_BundleComponentImpl,{"_axisTitle":null,"_titleStyle":null,"_lineColor":null,"_tickColor":null,"_labelStyle":null,"_displayAxisTitle":false,"_displayAxisLine":false,"_displayTicks":false,"_displayTickLabels":false,"_showPanZoomTickLabels":false,_rotateLabels:false,_staggerCellWidth:0,_staggerAlignFirstAtStart:false,_staggerAlignLastAtEnd:false,_layoutTimerId:0,_layoutTitleSize:0,_layoutLabelSize:0,_layoutLabelHeight:0,_layoutAverageDigitWidth:0,
  697. _layoutSpillOver:0,"_hideOverlappingLabels":false,_pendingLabelTimer:false,_padding:0,_renderedShapes:false,_layoutMode:-1,_allowAutoAxisLayoutToChangeOrientaiton:true,_lastAutomaticAxisLayoutOrientation:-1,_allowStagger:false,_allowRotate45:false,_allowRotate90:false,"constructor":function(){var self=this;this._axisLineProperties=function(args){if(args!==null||arguments.length>1)args=Array.prototype.slice.call(arguments,0);var line=this.selectAll("path.domain");if(self["_lineColor"]!=null)line.style("stroke",
  698. self["_lineColor"]);if(self["_displayAxisLine"])line.attr("visibility",null);else line.attr("visibility","hidden");return null};this._axisTickProperties=function(args){if(args!==null||arguments.length>1)args=Array.prototype.slice.call(arguments,0);var tickLines=this.selectAll("line");if(self["_displayTicks"])tickLines.attr("visibility",null);else tickLines.attr("visibility","hidden");if(self["_lineColor"]!=null)tickLines.style("stroke",self["_tickColor"]);return null};this._axisTickLabelProperties=
  699. function(args){if(args!==null||arguments.length>1)args=Array.prototype.slice.call(arguments,0);var labels=this.selectAll("text");labels.each(self._displayHideLabels);labels.each(self._panZoomLabels);labels.style(self["_labelStyle"]);self._axis.ticksHandler(null);return null};this._displayHideLabels=function(obj,group,index){if(self["_displayTickLabels"]){if(this.rave_hasProperty("__tickLabelHidden__")){this.rave_removeProperty("__tickLabelHidden__");var count=~~this.rave_getProperty("__hiddenCount__");
  700. if(count<=1){this.rave_removeProperty("__hiddenCount__");this.removeAttribute("visibility")}else this.rave_setProperty("__hiddenCount__",count-1)}}else if(!this.rave_hasProperty("__tickLabelHidden__")){this.setAttribute("visibility","hidden");this.rave_setProperty("__tickLabelHidden__","hidden");count=~~this.rave_getProperty("__hiddenCount__");this.rave_setProperty("__hiddenCount__",count+1)}};this._panZoomLabels=function(obj,group,index){if(self["_showPanZoomTickLabels"]){if(this.rave_hasProperty("__panZoomHidden__")){this.rave_removeProperty("__panZoomHidden__");
  701. var count=~~this.rave_getProperty("__hiddenCount__");if(count<=1){this.rave_removeProperty("__hiddenCount__");this.removeAttribute("visibility")}else this.rave_setProperty("__hiddenCount__",count-1)}}else if(!this.rave_hasProperty("__panZoomHidden__")){this.setAttribute("visibility","hidden");this.rave_setProperty("__panZoomHidden__","hidden");count=~~this.rave_getProperty("__hiddenCount__");this.rave_setProperty("__hiddenCount__",count+1)}};this._tickHandler=new com_ibm_rave_bundles_components_AxisComponentImpl.AxisTickHandler(this._axisTickLabelProperties,
  702. this._axisTickProperties);this._axis=null;this._role=null;this._scale=null;this._orient="bottom";this._bounds=null;this["_displayAxisTitle"]=true;this["_axisTitle"]=null;this["_titleStyle"]={};this["_displayAxisLine"]=true;this["_lineColor"]=null;this["_displayTicks"]=true;this["_tickColor"]=null;this["_displayTickLabels"]=true;this["_labelStyle"]={};this._rotateLabels=false;this["_hideOverlappingLabels"]=true;this._dropOverlap=new com_ibm_rave_bundles_utilities_BundleLabelDropper;this._tickFormat=
  703. null;this["_showPanZoomTickLabels"]=true;this._pendingLabelTimer=false;this._padding=16;this._textFlow=rave.capabilities.extension("textflow");this._fontChecker=rave.capabilities.extension("fontchecker");this._renderedShapes=false},"type":function(){return com_ibm_rave_bundles_component_AxisComponent["COMPONENT_TYPE"]},"role":function(){return this._role},"execute":function(g){this["preExecute"]();if(!this._scale){g.selectAll("*").remove();this._renderedShapes=false;return}this._renderedShapes=true;
  704. if(this._scale.isOrdinal()||this._scale.isClustered()){this["_hideOverlappingLabels"]=false;this._rotateLabels=true}else{this["_hideOverlappingLabels"]=true;this._rotateLabels=true}this.drawTitle(g);this.drawAxis(g);this.handleAxisText(g);this.drawTitle(g)},handleAxisText:function(g){this.stopLabelDroppingUpdate();var duration=0;var delay=0;var g2=rave["transition"](g);if(g2.isTransition()){var t2=g2;duration=t2["duration"]();delay=t2.delay()}var axisSelector=g.selectAll("g.axis");var labels=axisSelector.selectAll("g.tick").filter(rave["library"]["internal"]["BundleUtils"].notExit).selectAll("text");
  705. var fontChecker=rave.capabilities.extension("fontchecker");labels.style(this["_labelStyle"]);if(fontChecker)labels.call(fontChecker);var mode=this._allowAutoAxisLayoutToChangeOrientaiton?this.determineWhichAutoMode(g):this._lastAutomaticAxisLayoutOrientation;this.configureStaggerData(g,mode);this.handleLabelsRotationAndPosition(g,labels,mode);this.hashingNumericScales(labels,this["labelExtent"](g),mode);if(duration==0){this.doLabelWrapping(g,mode);this.handleLabelsRotationAndPosition(g,labels,mode)}this._lastAutomaticAxisLayoutOrientation=
  706. mode;if(!this._scale.isOrdinal()&&!this._scale.isClustered()){var isHorizontal=this._orient=="bottom"||this._orient=="top";var tick=axisSelector.append("g").classed("tick",true);var tickText=tick.append("text");if(labels["size"]()==0){var singleValue=this._scale["scale"]().domain()[0];var formatter=this._tickFormat;if(!formatter){var tickFunc=this._scale["scale"]()["tickFormat"];if(tickFunc)formatter=tickFunc.apply(tickFunc,[singleValue])}var node=tickText[0][0];var stringValue=formatter?formatter.call(node,
  707. singleValue,0,0):""+singleValue;tickText.text(stringValue);var dim=node.getBBox();this._layoutLabelSize=isHorizontal?dim.height:dim.width;if(!isHorizontal||mode!=0){tickText.text(".0");this._layoutLabelSize+=node.getBBox().width}}if(!isHorizontal||mode!=0){tickText.text(".0");node=tickText[0][0];dim=node.getBBox();this._layoutAverageDigitWidth=dim.width}tick.remove()}if(this["_hideOverlappingLabels"]&&duration>0)this.updateLabelDropping(labels,duration,delay);if(duration>0)this.doLabelWrappingAfterAnimation(g,
  708. labels,mode,duration,delay);if(!this["_displayTickLabels"]){this._layoutLabelSize=0;this._layoutAverageDigitWidth=0}},handleLabelsRotationAndPosition:function(g,labels,mode){if(mode==2||mode==1)if(this._orient=="bottom")this.rotateLabels(g,labels,"end",mode);else if(this._orient=="top")this.rotateLabels(g,labels,"start",mode);else this.rotateLabels(g,labels,"middle",mode);else if(this._orient=="bottom"||this._orient=="top")this.rotateLabels(g,labels,"middle",mode);else if(this._orient=="right")this.rotateLabels(g,
  709. labels,"start",mode);else this.rotateLabels(g,labels,"end",mode)},hashingNumericScales:function(labels,extent,mode){if(!labels||!extent)return;if(!this._scale.isOrdinal()&&!this._scale.isClustered()){var isHorizontal=this._orient=="bottom"||this._orient=="top";var tickSpace=mode==1?extent[1]:extent[0];this._textTruncationIndicator="";this._layoutLabelSize=0;for(var i=0;i<labels["size"]();++i){var node=labels[i][0];var dim=node.getBBox();var width=dim.width;var height=dim.height;var size=!isHorizontal||
  710. mode==1?width:height;if(size>this._layoutLabelSize)this._layoutLabelSize=size;if(width>=tickSpace)if(this._simplifiedTickFormat){var newText=this._simplifiedTickFormat.call(null,node.rave_getData(),0,0);if(newText!=null)node.rave_setText(newText);if(node.getBBox().width>=tickSpace)node.rave_setText(this.stringOfSize(node.rave_getText().length,"#"))}else node.rave_setText(this.stringOfSize(node.rave_getText().length,"#"))}}},stringOfSize:function(size,ch){var returnString="";for(var i=0;i<size;++i)returnString+=
  711. ch;return returnString},configureStaggerData:function(g,mode){if(mode==3||mode==2){var horizontalDimensions=this["labelExtent"](g);var cellWidth=horizontalDimensions[0];var axisSelector=g.selectAll("g.axis");var labels=axisSelector.selectAll("text");var domain=this._scale["scale"]().domain();var originalDataLabelAccessor=this._scale.originalDomainLabelAccessor();this._staggerRotate45Nodes=[];this._staggerFirstNode=null;this._staggerLastNode=null;for(var i=0;i<labels["size"]();++i){var node=labels[0][i];
  712. if(this.isValid(node.rave_getData())){var domainIndex=-1;if(mode==3){var domainLabel=!this._tickFormat?node.rave_getText():originalDataLabelAccessor.call(node,node.rave_getData(),0,0);for(var index=0;index<domain.length;++index)if(domain[index].toString()==domainLabel){domainIndex=index;break}}this._staggerRotate45Nodes.push(new com_ibm_rave_bundles_components_AxisComponentImpl.NodeIndex(node,domainIndex));if(domainIndex==0)this._staggerFirstNode=node;if(domainIndex==domain.length-1)this._staggerLastNode=
  713. node}}this._staggerCellWidth=cellWidth*2;this._staggerAlignFirstAtStart=this._staggerFirstNode?this._staggerFirstNode.getBBox().width>cellWidth:false;this._staggerAlignLastAtEnd=this._staggerLastNode?this._staggerLastNode.getBBox().width>cellWidth:false}},getStaggerIndex:function(node){for(var index=0;index<this._staggerRotate45Nodes.length;++index)if(this._staggerRotate45Nodes[index]["contains"](node)){var domainIndex=this._staggerRotate45Nodes[index]["getIndex"]();return domainIndex==-1?0:domainIndex}return-1},
  714. getStaggerCount:function(){var domain=this._scale["scale"]().domain();return domain.length},determineWhichAutoMode:function(g){var isHorizontal=this._orient=="bottom"||this._orient=="top";var axisSelector=g.selectAll("g.axis");var labels=axisSelector.selectAll("text");var dim=this["labelExtent"](g);var cellWidth=dim[0];var cellWidth90=dim[1];var layoutLabelHeight=0;var layoutLabelWidth=0;var horizontalScore=0;var staggerScore=0;var rotate45Score=0;var rotate90Score=0;var validNodes=[];for(var i=0;i<
  715. labels["size"]();++i){var node=labels[0][i];if(this.isValid(node.rave_getData()))validNodes.push(node)}var labelCount=validNodes.length;if(!this._scale.isOrdinal()&&!this._scale.isClustered()){var mode=0;if(isHorizontal){mode=this._layoutMode==1?1:0;var tick=axisSelector.append("g").classed("tick",true);var tickText=tick.append("text");tickText.style(this["_labelStyle"]);tickText.text(",0");node=tickText[0][0];var zeroWidth=node.getBBox().width;tick.remove();var widestLabel=0;for(i=0;i<labelCount;++i){node=
  716. validNodes[i];var nodeRect=node.getBBox();if(nodeRect.width>widestLabel)widestLabel=nodeRect.width;if(nodeRect.height>this._layoutLabelHeight)this._layoutLabelHeight=nodeRect.height}widestLabel+=zeroWidth;this._layoutSpillOver=mode==1?this._layoutLabelHeight/2:widestLabel/2+2}else{for(i=0;i<labelCount;++i){node=validNodes[i];nodeRect=node.getBBox();if(nodeRect.height>this._layoutLabelHeight)this._layoutLabelHeight=nodeRect.height}this._layoutSpillOver=this._layoutLabelHeight/2}return mode}var originalDataLabelAccessor=
  717. this._scale.originalDomainLabelAccessor();var staggerStringsWontMatch=this._tickFormat&&!originalDataLabelAccessor;var calcStagger=(this._allowStagger&&this._layoutMode==-1||this._layoutMode==3)&&!staggerStringsWontMatch;var calcRotate45=this._allowRotate45&&this._layoutMode==-1||this._layoutMode==2;var calcRotate90=this._allowRotate90&&this._layoutMode==-1||this._layoutMode==1;var spaceFor45Label=0;for(i=0;i<labelCount;++i){node=validNodes[i];nodeRect=node.getBBox();layoutLabelHeight=nodeRect.height;
  718. var labelWidth=nodeRect.width;if(labelWidth>layoutLabelWidth)layoutLabelWidth=labelWidth;horizontalScore+=labelWidth<=cellWidth?1:cellWidth/labelWidth;if(isHorizontal){if(calcStagger){var spaceForLabel=cellWidth*2;if(i==0&&i==labelCount-1)spaceForLabel*=0.5;else if(i==0||i==labelCount-1)spaceForLabel*=0.75;staggerScore+=labelWidth<=spaceForLabel?1:spaceForLabel/labelWidth}if(calcRotate45){if(spaceFor45Label==0)spaceFor45Label=cellWidth90/0.7071-layoutLabelHeight;var space=this.calculate45DegreeSpace(node,
  719. spaceFor45Label);rotate45Score+=labelWidth<=space?1:space/labelWidth}if(calcRotate90)rotate90Score+=labelWidth<=cellWidth90?1:cellWidth90/labelWidth}}mode=0;if(this._layoutMode==-1){if(isHorizontal&&this._allowStagger){horizontalScore*=1.1;staggerScore*=1.1}if(staggerScore>horizontalScore&&staggerScore>=rotate45Score&&staggerScore>=rotate90Score)mode=3;else if(rotate45Score>horizontalScore&&rotate45Score>=rotate90Score)mode=2;else if(rotate90Score>horizontalScore)mode=1}else if(this._layoutMode==
  720. 3&&staggerStringsWontMatch||!isHorizontal)mode=0;else mode=this._layoutMode;if(isHorizontal)switch(mode){case 3:this._layoutLabelSize=layoutLabelHeight*2;break;case 2:this._layoutLabelSize=(layoutLabelWidth+layoutLabelHeight)*0.7071;break;case 1:this._layoutLabelSize=layoutLabelWidth;break;case 0:default:this._layoutLabelSize=layoutLabelHeight;break}else this._layoutLabelSize=layoutLabelWidth;this._layoutLabelHeight=layoutLabelHeight;return mode},calculate45DegreeSpace:function(node,maxWidth){var width=
  721. maxWidth;var tfm=node.rave_getParentNode().getAttribute("transform");if(tfm!=null){var tfmString=tfm.toString();var indexOfTrans=tfmString.indexOf("translate(");if(indexOfTrans!=-1){indexOfTrans+=10;var indexOfComma=tfmString.indexOf(",",indexOfTrans);if(indexOfComma!=-1){var xAmount=tfmString.substring(indexOfTrans,indexOfComma);var xLabelPos=+xAmount;var width45Degrees=node.getBBox().width;var xLabelWidth=width45Degrees*0.7071;var isBottom=this._orient=="bottom";if(isBottom){xLabelPos-=node.getBBox().height/
  722. 4;if(xLabelPos-xLabelWidth<this._bounds.x){xLabelWidth=xLabelPos-this._bounds.x;width=xLabelWidth/0.7071}}else if(xLabelPos+xLabelWidth>this._bounds.x+this._bounds.width){xLabelWidth=this._bounds.x+this._bounds.width-xLabelPos;width=xLabelWidth/0.7071}if(width>maxWidth)width=maxWidth}}}return width},rotateLabels:function(g,labels,textAnchor,mode){if(this._rotateLabels){var self=this;var positioning=function(data,index,groupIndex){var x=0;var y=0;var rotation_cy=0;var isBottom=self._orient=="bottom";
  723. if(mode==3){var cellIndex=self.getStaggerIndex(this);if(cellIndex!=-1){if(cellIndex%2==1){var staggerDirection=isBottom?1:-1;y+=self._layoutLabelHeight*staggerDirection}if(cellIndex==0&&self._staggerAlignFirstAtStart)x-=self._staggerCellWidth/4;else if(cellIndex==self.getStaggerCount()-1&&self._staggerAlignLastAtEnd)x+=self._staggerCellWidth/4}}else if(mode==2)if(isBottom)x-=self._layoutLabelHeight;else x+=self._layoutLabelHeight/2;else if(mode==1)if(isBottom){x-=this.getBBox().height/2+self._layoutLabelHeight/
  724. 4;rotation_cy=~~(self._padding/4+self._axis.tickSize())}else{x-=this.getBBox().height/2-self._layoutLabelHeight;rotation_cy=~~-(self._padding/4+self._axis.tickSize())}var rotationDegrees=mode==1?-90:mode==2?-45:0;return"translate("+x+","+y+") rotate("+rotationDegrees+",0,"+rotation_cy+")"};labels.attr("transform",positioning).style("text-anchor",textAnchor);if(mode==3){if(this._staggerAlignFirstAtStart)this._staggerFirstNode.rave_setStyle("text-anchor","start");if(this._staggerAlignLastAtEnd)this._staggerLastNode.rave_setStyle("text-anchor",
  725. "end")}}},"axis":function(){return this._axis},drawAxis:function(g){var axisSelector=g.selectAll("g.axis")["data"]([0]);axisSelector.enter().append("g").classed("axis",true).classed(this._orient,true);if(!this._axis)this._axis=new rave["internal"]["Axis"];if(this["_hideOverlappingLabels"])this._textFlow.valignment("top").dropTextOnFail(false);this._axis.ticksHandler(this._tickHandler);this._axis["orient"](this._orient);this._axis["tickFormat"](this._tickFormat);this._axis.tickPadding(10);if(this._scale.isOrdinal()||
  726. this._scale.isClustered()){var labelHeight=20;var isHorizontal=this._orient=="bottom"||this._orient=="top";if(isHorizontal)labelHeight/=0.7071;var range=this._scale["scale"]().rangeExtent();var extent=+range[1]-+range[0];this._axis.ticks(extent/labelHeight)}else if(this._tickMagnitude==null)this._axis.ticks(10);else this._axis.ticks.apply(this._axis,[10,this._scale["scale"]().getTickFormat(),this._tickMagnitude]);var s=this._scale["scale"]();if(this._scale.originalDomain()){var sOrdinal=s.copy();
  727. sOrdinal.domain(this._scale.originalDomain());s=sOrdinal;var self=this;var originalDataLabelAccessor=self._scale.originalDomainLabelAccessor();var tickFormatter;if(originalDataLabelAccessor)if(this._tickFormat)tickFormatter=function(data,index,groupIndex){return self._tickFormat.call(this,originalDataLabelAccessor.call(this,data,index,groupIndex),index,groupIndex)};else tickFormatter=originalDataLabelAccessor;else tickFormatter=this._tickFormat;this._axis["tickFormat"](tickFormatter)}this._axis["scale"](s);
  728. axisSelector.call(this._axis);var g2=rave["transition"](axisSelector);if(!g2.isTransition())axisSelector.selectAll("text").call(this._dropOverlap,this["_hideOverlappingLabels"]);axisSelector.selectAll("path.domain").classed("axis-line",true);axisSelector.selectAll("g.tick line").classed("axis-tick",true);if(this._fontChecker)axisSelector.selectAll("g.tick text").classed("axis-label",true).call(this._fontChecker);else axisSelector.selectAll("g.tick text").classed("axis-label",true);axisSelector.call(this._axisLineProperties)},
  729. drawTitle:function(g){if(!this["_displayAxisTitle"]||this["_axisTitle"]==null||this["_axisTitle"].trim().length==0||!this._bounds){g.selectAll("text.axis-title."+this._orient).remove();return}var x=0;var y=0;var dy="";var transform;if("top"==this._orient){x=this._elementRect.x+this._elementRect.width/2;y=-this._bounds.height+this._padding/4;dy="0.75em"}else if("bottom"==this._orient){x=this._elementRect.x+this._elementRect.width/2;y=this._bounds.height-this._padding/4;dy="-0.25em"}else if("left"==
  730. this._orient){x=-this._elementRect.y-this._elementRect.height/2;y=-this._bounds.width+this._padding/4;dy="0.75em";transform="rotate(-90)"}else{x=this._elementRect.y+this._elementRect.height/2;y=-this._bounds.width+this._padding/4;dy="0.75em";transform="rotate(90)"}var fillOpacity;var tmp=g.append("text").attr("class","axis-title "+this._orient);fillOpacity=tmp.style("fill-opacity");tmp.remove();var label=g.selectAll("text.axis-title."+this._orient);if(label["size"]()==0){label["data"]([0]).enter().append("text").attr("class",
  731. "axis-title "+this._orient).style("text-anchor","middle").attr("x",x).attr("y",y).attr("transform",transform).attr("dy",dy).style(this["_titleStyle"]).text(this["_axisTitle"]);if(this._fontChecker)g.selectAll("text.axis-title."+this._orient).call(this._fontChecker)}com_ibm_rave_bundles_utilities_TextCrossfader["textCrossFade"](rave["transition"](label),label.text(),this["_axisTitle"],fillOpacity,0.25).style("text-anchor","middle").attr("x",x).attr("y",y).attr("transform",transform).attr("dy",dy).style(this["_titleStyle"])},
  732. getUnZoomedScale:function(scale){var s=scale.copy();if(s.getZoomTransform())s.getZoomTransform()(1,0);return s},isValid:function(data){var s=this.getUnZoomedScale(this._axis["scale"]());var v=+s.call(null,data,0,0);var range=this._axis["scale"]().range();if(this._axis["scale"]().range().indexOf(v)>-1)return true;if(range[0]<v&&v<range[1])return true;if(range[0]>v&&v>range[1])return true;return false},doLabelWrapping:function(g,mode){if(this["_displayTickLabels"]){this._textFlow.valignment("top");
  733. if(!this["_hideOverlappingLabels"])this._textFlow.dropTextOnFail(true);var d=this["labelExtent"](g);if(!d||d[0]<0||d[1]<0)return;var w=~~d[0];var h=~~d[1];if(mode==2){w=~~(d[1]/0.7071-this._layoutLabelHeight);h=~~(this._layoutLabelHeight/0.7071)}else if(mode==1){var tmp=w;w=h;h=tmp}var allowWrap=mode==1;if(this._scale.isOrdinal()||this._scale.isClustered()){var hActual=~~(this._layoutLabelHeight*1.2);if(hActual>h)h=hActual;var isHorizontal=this._orient=="bottom"||this._orient=="top";if(mode==0&&!isHorizontal)allowWrap=
  734. true}var self=this;var cellWidth=w;var cellHeight=h;this._textFlow.wrap(allowWrap).truncate(true)["textTruncateIndicator"](this._textTruncationIndicator!=null?this._textTruncationIndicator:"...").spacing(1.2).extent(function(data,index,groupIndex){var width=cellWidth;var height=cellHeight;if(mode==2){var cellIndex=self.getStaggerIndex(this);if(cellIndex!=-1)width=~~self.calculate45DegreeSpace(this,cellWidth)}else if(mode==3){cellIndex=self.getStaggerIndex(this);if(cellIndex!=-1){if(cellIndex==0&&
  735. cellIndex==self.getStaggerCount()-1)width=cellWidth;else if(cellIndex==0||cellIndex==self.getStaggerCount()-1)width=cellWidth*3/2;else width=cellWidth*2;height=cellHeight/2}}return[width,height]});g.selectAll("g.tick \x3e text").call(this._textFlow)}},"labelExtent":function(g){var isHorizontal=this._orient=="bottom"||this._orient=="top";var w=this._bounds.width;var h=this._bounds.height;if(this._scale["scale"]().rangeBand){var rangeBandValue=+this._scale["scale"]().rangeBand();if(isHorizontal)w=rangeBandValue;
  736. else h=rangeBandValue}this.calcTitleExtent(g);if(isHorizontal){h-=this._axis.tickSize();h-=this._padding/2;if(this._layoutTitleSize!=0){h-=this._layoutTitleSize;h-=this._padding/2}}else{w-=this._axis.tickSize();w-=this._padding/2;if(this._layoutTitleSize!=0){w-=this._layoutTitleSize;w-=this._padding/2}}return[w,h]},calcTitleExtent:function(g){this._layoutTitleSize=0;var title=g.selectAll("text.axis-title");if(title["size"]()>0){var textHeight=title[0][0].getBBox().height;this._layoutTitleSize=textHeight}},
  737. "setRole":function(role){this._role=role;return this},"scaleTickMagnitude":function(tickMagnitude){this._tickMagnitude=tickMagnitude;return this},"scale":function(scale){this._scale=scale?scale:null;return this},orient$0:function(orient){if("left"==orient||"bottom"==orient||"right"==orient||"top"==orient){this._orient=orient;if(this._role==null)if("left"==orient)this._role="ROLE_Y1";else if("bottom"==orient)this._role="ROLE_X1";else if("right"==orient)this._role="ROLE_Y2";else this._role="ROLE_X2"}return this},
  738. orient$1:function(){return this._orient},"bounds":function(bounds){this._bounds=bounds;return this},"elementRect":function(elementRect){this._elementRect=elementRect;return this},tickFormat$0:function(tickFormat){this._tickFormat=tickFormat;return this},tickFormat$1:function(){return this._tickFormat},simplifiedTickFormat$0:function(tickFormat){this._simplifiedTickFormat=tickFormat;return this},simplifiedTickFormat$1:function(){return this._simplifiedTickFormat},"displayAxisTitle":function(displayAxisTitle){this["_displayAxisTitle"]=
  739. displayAxisTitle;return this},"displayAxisLine":function(displayAxisLine){this["_displayAxisLine"]=displayAxisLine;return this},"displayTicks":function(displayTicks){this["_displayTicks"]=displayTicks;return this},"displayTickLabels":function(displayTickLabels){this["_displayTickLabels"]=displayTickLabels;return this},"allowAutomaticAxisLayoutToChangeOrientation":function(state){this._allowAutoAxisLayoutToChangeOrientaiton=state;return this},"isAllowAutomaticAxisLayoutToChangeOrientation":function(){return this._allowAutoAxisLayoutToChangeOrientaiton},
  740. "showPanZoomTickLabels":function(showPanZoomTickLabels){this["_showPanZoomTickLabels"]=showPanZoomTickLabels;return this},"axisTitle":function(axisTitle){this["_axisTitle"]=axisTitle;return this},"axisColor":function(axisColor){this["_lineColor"]=axisColor;this["_tickColor"]=axisColor;return this},"lineColor":function(lineColor){this["_lineColor"]=lineColor;return this},"tickColor":function(tickColor){this["_tickColor"]=tickColor;return this},"labelColor":function(labelColor){this["_labelStyle"]["fill"]=
  741. labelColor;return this},labelStyle$0:function(fill,fontSize,fontFamily){this["_labelStyle"]["fill"]=fill;this["_labelStyle"]["font-size"]=fontSize;this["_labelStyle"]["font-family"]=fontFamily;return this},"titleColor":function(titleColor){this["_titleStyle"]["fill"]=titleColor;return this},titleStyle$0:function(fill,fontSize,fontFamily){this["_titleStyle"]["fill"]=fill;this["_titleStyle"]["font-size"]=fontSize;this["_titleStyle"]["font-family"]=fontFamily;return this},"padding":function(padding){this._padding=
  742. padding;return this},"layoutMode":function(layoutMode){this._layoutMode=-1;if(layoutMode!=null)if(layoutMode=="horizontal")this._layoutMode=0;else if(layoutMode=="stagger")this._layoutMode=3;else if(layoutMode=="rotate45")this._layoutMode=2;else if(layoutMode=="rotate90")this._layoutMode=1;return this},"allowStagger":function(allow){this._allowStagger=allow;return this},"allowRotate45":function(allow){this._allowRotate45=allow;return this},"allowRotate90":function(allow){this._allowRotate90=allow;
  743. return this},renderedShapes:function(){return this._renderedShapes},labelStyle$1:function(fontStyle){this["_labelStyle"]=com_ibm_rave_bundles_utilities_FontPropertyParser["parseCSSFont"](fontStyle);return this},titleStyle$1:function(fontStyle){this["_titleStyle"]=com_ibm_rave_bundles_utilities_FontPropertyParser["parseCSSFont"](fontStyle);return this},isAxisSwapped:function(){return(this._role=="ROLE_Y1"||this._role=="ROLE_Y2")&&(this._orient=="top"||this._orient=="bottom")||(this._role=="ROLE_X1"||
  744. this._role=="ROLE_X2")&&(this._orient=="right"||this._orient=="left")},"textTruncateIndicator":function(indicator){this._textTruncationIndicator=indicator;return this},stopLabelDroppingUpdate:function(){this._pendingLabelTimer=false},updateLabelDropping:function(labels,duration,delay){var self=this;var start=delay+duration;var labelCollideCallback=function(elapsed){if(!self._pendingLabelTimer)return true;labels.call(self._dropOverlap,self["_hideOverlappingLabels"]);if(elapsed>=start){self._pendingLabelTimer=
  745. false;return true}return false};if(duration>0){this._pendingLabelTimer=true;rave.timer(labelCollideCallback,start)}},doLabelWrappingAfterAnimation:function(g,labels,mode,duration,delay){this._layoutTimerId++;var timerId=this._layoutTimerId;var self=this;var wrapCallback=function(elapsed){if(self._layoutTimerId==timerId){self.doLabelWrapping(g,mode);self.handleLabelsRotationAndPosition(g,labels,mode)}return true};rave.timer(wrapCallback,delay+duration)},"preLayout":function(){this._layoutTitleSize=
  746. 0;this._layoutLabelSize=0;this._layoutLabelHeight=0;this._layoutAverageDigitWidth=0;this._layoutSpillOver=0},"getSizableType":function(){return this._scale.isOrdinal()||this._scale.isClustered()?1:0},"getSizableOrientation":function(){return this._orient},"getPreferredSize":function(){var layoutPaddingSize=0;if(this._axis){layoutPaddingSize=this._axis.tickSize();if(this._layoutLabelSize!=0)layoutPaddingSize+=this._padding/2;if(this._layoutTitleSize!=0)layoutPaddingSize+=this._padding/2}return this._layoutLabelSize+
  747. this._layoutAverageDigitWidth+this._layoutTitleSize+layoutPaddingSize+2},"getSpillOverSize":function(){return this._layoutSpillOver},"orient":function(a0){var args=arguments;if(args.length==0)return this.orient$1();return this.orient$0(a0)},"tickFormat":function(a0){var args=arguments;if(args.length==0)return this.tickFormat$1();return this.tickFormat$0(a0)},"simplifiedTickFormat":function(a0){var args=arguments;if(args.length==0)return this.simplifiedTickFormat$1();return this.simplifiedTickFormat$0(a0)},
  748. "labelStyle":function(a0,a1,a2){var args=arguments;if(args.length==1)return this.labelStyle$1(a0);return this.labelStyle$0(a0,a1,a2)},"titleStyle":function(a0,a1,a2){var args=arguments;if(args.length==1)return this.titleStyle$1(a0);return this.titleStyle$0(a0,a1,a2)}});com_ibm_rave_bundles_components_AxisComponentImpl["getTranslation"]=function(bounds,orient){if("left"==orient)return[bounds.x+bounds.width,0];if("right"==orient)return[bounds.x,0];if("top"==orient)return[0,bounds.y+bounds.height];return[0,
  749. bounds.y]};com_ibm_rave_bundles_components_AxisComponentImpl.NodeIndex=rave["internal"]["Declare"]({_domainIndex:0,"constructor":function(node,domainIndex){this._node=node;this._domainIndex=domainIndex},"contains":function(node){return node==this._node},"getIndex":function(){return this._domainIndex}});com_ibm_rave_bundles_components_AxisComponentImpl.AxisTickHandler=rave["internal"]["Declare"](rave["internal"]["AbstractTickHandler"],{_$functionClassMethod:function(){var _$self=function(args){if(args!==
  750. null||arguments.length>1)args=Array.prototype.slice.call(arguments,0);_$self["handle"](args[0]);return null};return _$self},"constructor":function(label,tick){this._label=label;this._tick=tick},"handle":function(ticks){ticks.call(this._tick);ticks.call(this._label)}});com_ibm_rave_bundles_components_AxisComponentImpl["LABEL_HIDDEN_FLAG"]="__tickLabelHidden__";com_ibm_rave_bundles_components_AxisComponentImpl["PANZOOM_HIDDEN_FLAG"]="__panZoomHidden__";com_ibm_rave_bundles_components_AxisComponentImpl["HIDDEN_COUNT"]=
  751. "__hiddenCount__";com_ibm_rave_bundles_components_AxisComponentImpl["PREFERRED_SPACE_PER_TICK"]=20;com_ibm_rave_bundles_components_AxisComponentImpl["PREFERRED_TICK_COUNT"]=10;com_ibm_rave_bundles_components_AxisComponentImpl["TICK_PADDING"]=10;com_ibm_rave_bundles_components_AxisComponentImpl.HORIZONTAL=0;com_ibm_rave_bundles_components_AxisComponentImpl.ROTATE90=1;com_ibm_rave_bundles_components_AxisComponentImpl.ROTATE45=2;com_ibm_rave_bundles_components_AxisComponentImpl.STAGGER=3;com_ibm_rave_bundles_components_AxisComponentImpl.TEXTFLOW_SPACING=
  752. 1.2;com_ibm_rave_bundles_components_AxisComponentImpl["BOTTOM_ORIENTATION"]="bottom";com_ibm_rave_bundles_components_AxisComponentImpl["TOP_ORIENTATION"]="top";com_ibm_rave_bundles_components_AxisComponentImpl["LEFT_ORIENTATION"]="left";com_ibm_rave_bundles_components_AxisComponentImpl["RIGHT_ORIENTATION"]="right";com_ibm_rave_bundles_components_AxisComponentImpl.AUTOMODE=-1;var com_ibm_rave_bundles_components_GridComponentImpl=rave["internal"]["Declare"](com_ibm_rave_bundles_components_BundleComponentImpl,
  753. {_displayGridlines:false,_renderedShapes:false,"constructor":function(){this._axis=null;this._role=null;this._orient="bottom";this._bounds=null;this._displayGridlines=true;this._gridlineStyle=new com_ibm_rave_bundles_components_StyleStructs.LineStyle;this._renderedShapes=false},"type":function(){return com_ibm_rave_bundles_component_GridComponent["COMPONENT_TYPE"]},"role":function(){return this._role},"execute":function(g){this["preExecute"]();if(!this._displayGridlines||!this._axis||!this._bounds){g.selectAll("*").remove();
  754. this._renderedShapes=false;return}this._renderedShapes=true;var size="bottom"==this._orient||"top"==this._orient?this._bounds.height:this._bounds.width;var ticksHandler=this._axis.ticksHandler();var tickSize=this._axis.tickSize();var outerTickSize=this._axis.outerTickSize();var tickFormat=this._axis["tickFormat"]();var ax=this._axis.tickSize(-size,0)["tickFormat"]("").ticksHandler(null);g.call(ax);this._axis.tickSize(tickSize,outerTickSize)["tickFormat"](tickFormat).ticksHandler(ticksHandler);g.selectAll("g.tick line").classed("grid-tick",
  755. true);g.selectAll(".grid-tick").style("stroke",this._gridlineStyle._stroke).style("stroke-dasharray",this._gridlineStyle._dashArray);g.selectAll("path.domain").remove()},"axis":function(axis){this._axis=axis;return this},"setRole":function(role){this._role=role;return this},orient$0:function(orient){if("left"==orient||"right"==orient||"bottom"==orient||"top"==orient)this._orient=orient;return this},"bounds":function(bounds){this._bounds=bounds;return this},displayGridlines$0:function(displayGridlines){this._displayGridlines=
  756. displayGridlines;return this},"gridlineStyle":function(gridlineColor,dashArray){this["gridlineColor"](gridlineColor);this["dashArray"](dashArray);return this},gridlineColor$0:function(gridlineColor){this._gridlineStyle._stroke=gridlineColor!=null&&gridlineColor.length>0?gridlineColor:null;return this},dashArray$0:function(dashArray){this._gridlineStyle._dashArray=dashArray!=null&&dashArray.length>0?dashArray:null;return this},orient$1:function(){return this._orient},displayGridlines$1:function(){return this._displayGridlines},
  757. gridlineColor$1:function(){return this._gridlineStyle._stroke},dashArray$1:function(){return this._gridlineStyle._dashArray},renderedShapes:function(){return this._renderedShapes},"orient":function(a0){var args=arguments;if(args.length==0)return this.orient$1();return this.orient$0(a0)},"displayGridlines":function(a0){var args=arguments;if(args.length==0)return this.displayGridlines$1();return this.displayGridlines$0(a0)},"gridlineColor":function(a0){var args=arguments;if(args.length==0)return this.gridlineColor$1();
  758. return this.gridlineColor$0(a0)},"dashArray":function(a0){var args=arguments;if(args.length==0)return this.dashArray$1();return this.dashArray$0(a0)}})})();
  759. },{"./configuration/configuration.json":1,"./i18n/messages_en.json":2,"./mapbox-glv0.37.css":3,"./vizlibrary-tiledmap.css":5,"./vizlibrary.css":6}],5:[function(require,module,exports){
  760. var css = ".vizlibrary-tiledmap .element-shape {\n stroke: white;\n stroke-width: 1;\n stroke-linejoin: round;\n fill-opacity: 1.0;\n}\n.vizlibrary-tiledmap .bubble {\n fill-opacity: 0.5;\n stroke: white;\n stroke-width: 1;\n pointer-events: none;\n}\n.vizlibrary-tiledmap .dark-label {\n fill: black;\n text-shadow: 1px 1px white;\n}\n.vizlibrary-tiledmap .light-label {\n fill: white;\n text-shadow: 1px 1px black;\n}\n.vizlibrary-tiledmap .label {\n font-size: 10pt;\n font-family: roboto, serif;\n pointer-events: none;\n}\n.vizlibrary-tiledmap path.flash {\n stroke: orange;\n}\n.vizlibrary-tiledmap .bubble.flash {\n stroke: orange;\n}\n.vizlibrary-tiledmap .mapboxgl-canvas-container .mapboxgl-canvas {\n left: 0px;\n top: 0px;\n}\n"; (require("browserify-css").createStyle(css, { "href": "dist/bundles/rave-library-tiledmap/node/rave-library-tiledmap/vizlibrary-tiledmap.css"})); module.exports = css;
  761. },{"browserify-css":7}],6:[function(require,module,exports){
  762. var css = ".vizlibrary {\n font-family: Arial, Tahoma, 'Arial Unicode MS', 'Andale WT', 'MS UI Gothic', Gulim, SimSun, PMingLiU, Raghu8, sans-serif;\n font-style: normal;\n}\n/*\n * Chart background rectangle, transparent\n */\n.vizlibrary rect.background.elements {\n fill-opacity: 0.0;\n}\n/*\n * Axes.\n */\n.vizlibrary .axis .tick text {\n font-weight: 300;\n font-size: 14px;\n fill: #3c4646;\n}\n.vizlibrary .axis .tick line {\n fill: none;\n stroke: #eee;\n}\n.vizlibrary .axis path {\n fill: none;\n stroke: #eee;\n}\n/*Axis title\n*/\n.vizlibrary .axis .axislabel {\n font-weight: 500;\n font-size: 14px;\n fill: #323c3c;\n}\n/*\n * Axis callout.\n */\n.vizlibrary .axis-callout {\n pointer-events: none;\n /* Prevent the callout lines from intercepting mouseover events on the element shapes */\n}\n.vizlibrary .callout line {\n stroke: #3c4646;\n stroke-dasharray: 5,5;\n}\n.vizlibrary .callout .label path {\n fill: #3c4646;\n stroke-width: 0px;\n}\n.vizlibrary .callout .label text {\n font-weight: 300;\n font-size: 14px;\n fill: white;\n}\n/*Grid lines*/\n.vizlibrary g.grid g.tick {\n stroke: #dfe9e9;\n stroke-width: 1px;\n}\n/*Legend title*/\n.vizlibrary .legendTitle {\n font-weight: 500;\n font-size: 18px;\n fill: #323c3c;\n}\n/*Legend label*/\n.vizlibrary .legendLabel {\n font-weight: 300;\n font-size: 14px;\n fill: #3c4646;\n}\n.vizlibrary .legendBBox {\n pointer-events: none;\n}\n"; (require("browserify-css").createStyle(css, { "href": "dist/bundles/rave-library-tiledmap/node/rave-library-tiledmap/vizlibrary.css"})); module.exports = css;
  763. },{"browserify-css":7}],7:[function(require,module,exports){
  764. 'use strict';
  765. // For more information about browser field, check out the browser field at https://github.com/substack/browserify-handbook#browser-field.
  766. module.exports = {
  767. // Create a <link> tag with optional data attributes
  768. createLink: function(href, attributes) {
  769. var head = document.head || document.getElementsByTagName('head')[0];
  770. var link = document.createElement('link');
  771. link.href = href;
  772. link.rel = 'stylesheet';
  773. for (var key in attributes) {
  774. if ( ! attributes.hasOwnProperty(key)) {
  775. continue;
  776. }
  777. var value = attributes[key];
  778. link.setAttribute('data-' + key, value);
  779. }
  780. head.appendChild(link);
  781. },
  782. // Create a <style> tag with optional data attributes
  783. createStyle: function(cssText, attributes) {
  784. var head = document.head || document.getElementsByTagName('head')[0],
  785. style = document.createElement('style');
  786. style.type = 'text/css';
  787. for (var key in attributes) {
  788. if ( ! attributes.hasOwnProperty(key)) {
  789. continue;
  790. }
  791. var value = attributes[key];
  792. style.setAttribute('data-' + key, value);
  793. }
  794. if (style.sheet) { // for jsdom and IE9+
  795. style.innerHTML = cssText;
  796. style.sheet.cssText = cssText;
  797. head.appendChild(style);
  798. } else if (style.styleSheet) { // for IE8 and below
  799. head.appendChild(style);
  800. style.styleSheet.cssText = cssText;
  801. } else { // for Chrome, Firefox, and Safari
  802. style.appendChild(document.createTextNode(cssText));
  803. head.appendChild(style);
  804. }
  805. }
  806. };
  807. },{}]},{},[4]);
  808. return rave.library.bundle.extension('tiledmapBundle');
  809. }));