Code Monkey home page Code Monkey logo

Comments (5)

maoqxxmm avatar maoqxxmm commented on August 19, 2024

主要是不知道 macOS 上不同分辨率对应的小组件尺寸是多少……如果有规范的话我可以加上,没有的话目前你也可以参考 device-data.ts 这里的做法,注册一个自定义的数据上去。

import { WidgetSizeCenter } from 'scriptable-jsx';

WidgetSizeCenter.register("1920x1080", [xx, xx], [xx, xx], [xx, xx]);

from scriptable-jsx.

maoqxxmm avatar maoqxxmm commented on August 19, 2024

在不知道精确尺寸数据的情况下 FlexibleSize 是无法达到预期效果的……我抽空再搜搜有没有相关的数据

from scriptable-jsx.

zooPanda avatar zooPanda commented on August 19, 2024

from scriptable-jsx.

maoqxxmm avatar maoqxxmm commented on August 19, 2024

确实,我可以提供一个缺省值然后 log 一下警告

from scriptable-jsx.

maoqxxmm avatar maoqxxmm commented on August 19, 2024

see fix

from scriptable-jsx.

Related Issues (3)

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.