Git Product home page Git Product logo

svidget's Introduction

  • 👋 Hi, I’m @joeax
  • 👀 I’m interested in stocks, crypto, algorithmic trading
  • 🌱 I’m currently learning Blockchain, Web3,
  • 💞️ I’m looking to collaborate on trading strategies
  • 📫 How to reach me ...

svidget's People

Contributors

joeax avatar netaisllc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

svidget's Issues

<object> tag in html the only way to embed a phidget?

I would like to embed a svidget into an SVG. I was thinking along the lines of using the SVG < svg > tag or maybe even the < use > tag. Anyone tried this?

The reason for this is that I want to use the inkscape sprite-sheet as a way to store a bunch of svidgets and then use Inkscape to put them on my screen. This way I can use them in a way that is similar to using a movieclip in Flash.
(5h later... I found that Issue #2 is basically the same question...)

use svidget inside svg

Is it possible to use svidget's inside a svg document instead of a html document?
If I import the spinningStar example as an object in a bigger svg document, I get an iframe "spinningStar_frame" if I inspect the result, but no stars to be seen...

Help need with embending the thermostat into openhab automation software

Hi, great work with the nest thermostat - thank you for this. I am wondering how to include this widget in my openhab / habpanel as an endpoint for receiving the data from the widget.
a small snippset showing how the habpanel code is handling the data - > example of simple 2 button arrows to increase and decrease the setpoint.

The question is:
1/ How to initiate the widget with values of target temp, and ambient from my system settings (data stored in items - to get the item value i need to point it in the html {{itemValue('RadiatorAC1_TargetTemperature')}}°C
2/ How to send the choosen target temperature to my item it's now done by 'ng-click="sendCmd('RadiatorAC1_TargetTemperature', itemValue('RadiatorAC1_TargetTemperature') ' directive

3/ is it possible to add a new funcionality which will allow me to choose the state of the thermostat off / on ? I don't know the nest thermostat behaviour but the widget seems to be imbossible to turn off. It should be possible to click somwhere to send it into away mode / off mode etc.


 
 <div class="temperature-control">
   <button class="arrow-button" ng-click="sendCmd('RadiatorAC1_TargetTemperature', itemValue('RadiatorAC1_TargetTemperature') * 1 - 0.5)">
       <i class="fas fa-chevron-down"></i>
   </button>
   <div class="temperature-display">
       {{itemValue('RadiatorAC1_TargetTemperature')}}°C
   </div>
   <button class="arrow-button" ng-click="sendCmd('RadiatorAC1_TargetTemperature', itemValue('RadiatorAC1_TargetTemperature') * 1 + 0.5)">
       <i class="fas fa-chevron-up"></i>
   </button>
</div>

Binding to style element

Hello! Help me please!
Is it possible to set binding to style property?
Example for Inkscape generated element:

<g
     id="layer1"
     inkscape:label="Layer 1"
     inkscape:groupmode="layer">
    <path
       sodipodi:type="arc"
       style="fill:#aaff00;fill-opacity:1;stroke:#d3d3d3;stroke-width:0.99844074000000005;stroke-linejoin:miter;stroke-miterlimit:2.61313008999999985;stroke-opacity:1;stroke-dasharray:none"
       id="led"
       sodipodi:cx="27.237488"
       sodipodi:cy="25.480864"
       sodipodi:rx="12.859667"
       sodipodi:ry="12.859667"
       d="m 40.097155,25.480864 a 12.859667,12.859667 0 1 1 -25.719334,0 12.859667,12.859667 0 1 1 25.719334,0 z"
       transform="matrix(1.1302449,0,0,1.1340118,-14.785032,-12.8956)" />
  </g>

I want binding like this:

    <svidget:param
       name="ledColor"
       shortname="color"
       type="string"
       subtype="color"
       binding="#[email protected]" />

Chrome broke svidget

If i apply "display: none" (as a result of jQuery hide() method) on the DOM element, that contains widget, than after if i will apply "display: inline-block" on it (show()), the widget will be fully reloaded by chrome and his js part will be running again. It looks like all works (properties and actions), but events (in svidget terms) firing not working. In that time properties work as expected. It's looks like chrome fully destroy object's js context in svg when i set display: none on it and after show it again (with display: inline-block), because all global variables in svg js part at this moment has undefined type.

It's simply repeatable on http://www.svidget.com/examples/clock page, on dom element id="clockWidget"

Firefox just hide widget and all works as expected.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.