GithubHelp home page GithubHelp logo

Comments (4)

abchatra avatar abchatra commented on May 30, 2024 1

@OffByOne37 feel free to do a PR if you want. @kimprice take a peek?

from pxt.

kimprice avatar kimprice commented on May 30, 2024 1

@OffByOne37 I checked your suggestion and unfortunately it does not solve the problem. We'll need to look into this further.

from pxt.

OffByOne37 avatar OffByOne37 commented on May 30, 2024

Yeah made a PR for the typo.

Looked a bit more on the second error but do not have enough time to thouroughly check it. But it seems like there is the need to add this

export interface FieldTurnRatioOptions extends Blockly.FieldCustomOptions { min?: number; max?: number; }

and
/** * Class for a color wheel field. * @param {number|string} value The initial content of the field. * @param {Function=} opt_validator An optional function that is called * to validate any constraints on what the user entered. Takes the new * text as an argument and returns either the accepted text, a replacement * text, or null to abort the change. * @extends {Blockly.FieldNumber} * @constructor */ constructor( value_: any, params: FieldTurnRatioOptions, opt_validator?: Function ) { super( String(value_), params.min, params.max, "1", "10", "TurnRatio", opt_validator ); this.params = params; (this as any).sliderColor_ = "#a8aaa8"; }

But as I said, this is only an assumption from my side, and I would need to look further.

from pxt.

OffByOne37 avatar OffByOne37 commented on May 30, 2024

Too bad, as I said it was only a guess, did not have enough time.

If I have time I will try again to find a solution.

from pxt.

Related Issues (20)

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.