Hello All,
I am currently evaluating Polymer as an option to use Custom Elements and so far I am impressed with the capabilities.I work primarily on WebKit and C++ ,please do forgive me if my JavaScript coding skills appear a bit lacking.
I have some queries,I would really appreciate it if I could get some answers or pointer:
1) Is there any way a Custom Element could receive notifications or changes in the Div tag,style or CSS in which the Custom Element is embedded. In other words, is there a specific way I could know of changes of the parent node <div> in which <x-foo> objects are embedded, like the example below using simple JS like :
document.querySelector('#test').style[['top','left','right','width','height','bottom'][Math.floor(Math.random()*5)]]=Math.floor(Math.random()*100);
<div id="test" style="top: 400; left: 50; width: 200; height: 300;">
<x-foo></x-foo>
</div>
2) Is there a way I could use the HTMLCanvasElement for creating a transparent punch through on the screen, so that a video can be displayed using a custom media framework. Ideally this would be like how a CustomElement <camera> tag would work, just that I would be using a ffmpeg/gstreamer to show video from local content.
Any input/help appreciated.
Keep up the good job!Polymer is cool!
Thanks,
George.