In Polymer.js 0.5 I was writing:
Now, I want to go to new version - 0.8 but I can't find core-ajax in 0.8 version.
Is there way to use core-ajax in 0.8?
There is a 0.8 preview element for core-Ajax on github. https://github.com/Polymer/core-ajax/tree/0.8-preview?files=1
Related
Having a bit of trouble with google-map controls then I noticed, same issue exist here as well. https://www.webcomponents.org/element/GoogleWebComponents/google-map
After doing some further analysis it seems loading google map inside polymer component (polymer 2.x & 3.x) having this problem. Maybe some styles are not passed down correctly?
This is how mine google map looks like inside a polymer 3 component. Something seems wrong with zoom controls and full screen control. Note: I am not using google-map component here. I have a <div> inside my component and attaching the map to it like this this.map = new google.maps.Map(this.$.mapDiv, mapOptions)
Appreciate any help, thanks
You are using Polymer 3. And the component is done in Polymer 2...
Maybe, only maybe, they are not compatible and have some issues.
Did you try the older versions? The preview for v1.2.0 looks okay to me.
I know google-maps component is a polymer 3 component, but it seems to depend on all the Polymer 3 stuff, Polymer project says start with lit-element (polymer 3+), so I want to use lit-element, but want a map on my component. How do I do this?
Background:
If you read the roadmap here - https://www.polymer-project.org/blog/2018-05-02-roadmap-update it says don't start a new project with Polymer 3, instead start with Lit-Element.
It also talks about the future of elements - https://www.polymer-project.org/blog/2017-11-27-future-of-elements.html where they are not doing much with them right now until they rewrite them.
So given this, right now if we are trying to build a component using Lit-Element, how do we incorporate google maps, I cant find a single example anywhere. I tried to use the Polymer Google Map component and it is not compatible and has a bunch of errors.
Take a look at this:
https://github.com/jakelheknight/google-maps-limited
Not much out there but this is probably what you are looking for.
Some time ago I rewrited Polymer Google Map component to use Lit instead. You may take a look: lit-google-map
I need to use paper-range-slider element with displayFunction callback to customize the display content in slider.
In paper-range-selector v1.3 version support this feature, but it requires at least polymer v2.x, where as my polymer version is v1.3(paper-range-selector v0.2.7 is supported for this polymer version but displayFunction feature is not supported in it).
So i am trying to create custom-slider-element where it uses the paper-range-selector(v0.2.7) elements and add displayFunction feature and custom-slider-element can be used in my application.
Could any one tell me how to import behaviour of paper-range-slider to custom-slider-element? So that all the properties and methods added to custom-slider-element should directly pass to paper-range-selector.
How can I upgrade code for "CCLabelBMFont::purgeCachedData" in cocos2d v3.7 ?
Now in 3.7 it don't have "CCLabelBMFont" or "LabelBMFont"
All font display use Label class. But Label don't contain like "purgeCachedData" function.
cocos2dx 3.7
FontAtlasCache::purgeCachedData();
I am using gnuplot 4.7 patch 0.
My data file "test.txt" looks like the following:
0 0 net0
1 1 net1
2 2 net2
3 3 net3
4 5 net4_outlier
5 5 net5
My gnuplot code "script.gp" looks like this:
set term canvas
set termoption enhanced
set label at 0,0 "Origin"
set title 'mouse over points'
plot 'test.txt' using 1:2:3 with labels hypertext point pt 7 ps var lc rgb "black"
Testing:
I tested that canvas is an available terminal by typing terminal and canvas is available in the list. The version of firefox I am using is "Mozilla Firefox 5.0". I have checked that this version is compatible with html 5 canvas element.
I am running the script as:
gnuplot script.gp > canvas.html
I am loading the output html file as:
firefox canvas.html&
Result:
I get a plot, with the 10 points, but the hover label is not working. If I remove hypertext and use normal label, then that is working - labels are printed.
Could someone point out what is the mistake I am making here - I have read that hypertext is supported in gnuplot 4.7 patch 0.
Any help is appreciated.
The hypertext feature is connected to the mousing terminal option, i.e. use
set terminal canvas enhanced mousing
to see the labels on mouse over.
If you don't want the additional coordinate box, then you must just replace the line
<script type="text/javascript">gnuplot.init = function() {};</script>
in the html <header> with
<script src="/absolute/path/to/js/gnuplot_mouse.js"></script>
of course with the correct path to the javascript file (see the path to gnuplot_common.js).
As note: 4.7 is a development version with no patchlevel. Soon, the new stable version 5.0 will appear.