caelumf / figmatocompose Goto Github PK
View Code? Open in Web Editor NEWPlugin and backend to convert Figma designs to Jetpack Compose code
Plugin and backend to convert Figma designs to Jetpack Compose code
I used background alpha for this - not sure if that is good solution
please create help video
java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7
Hi Caelum,
I am a Compose developer, who is also using Figma. Your plugin seems a game change for me.
But when I tried, it couldn't run for me. I cloned the latest version and run with ./gradlew run --args="-config=application.conf"
on my Mac. But it failed either with Could not initialize class org.codehaus.groovy.reflection.ReflectionCache
, or Could not initialize class org.codehaus.groovy.runtime.InvokerHelper
, until I updatd the gradle distribution from gradle-6.2.2-bin
to gradle-6.4.1-all
.
But I got stuck again at 80% and it never went through as shown in the screenshot. I moved to the latest distribution, gradle-7.0.2-all
and tried to rebuild, but still the same, running frozen at 80%.
Regards,
Matt
Hello, is project alive? The last commit was 8 month ago. What is the overall export quality?
Exception in thread "main" java.lang.IllegalArgumentException: Neither port nor sslPort specified. Use command line options -port/-sslPort or configure connectors in application.conf
Hello, I am getting the follwing when I try to run the server:
MBP FigmaToCompose-master % ./gradlew run --args="-config=application.conf"
Task :compileKotlin FAILED
FAILURE: Build failed with an exception.
Error while evaluating property 'filteredArgumentsMap' of task ':compileKotlin'
Could not resolve all files for configuration ':compileClasspath'.
> Could not resolve com.beust:klaxon:5.6.
Required by:
project :
> No matching variant of com.beust:klaxon:5.6 was found. The consumer was configured to find an API of a library compatible with Java 8, preferably in the form of class files, preferably optimized for standard JVMs, and its dependencies declared externally, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm' but:
- Variant 'apiElements' capability com.beust:klaxon:5.6 declares an API of a library, packaged as a jar, preferably optimized for standard JVMs, and its dependencies declared externally, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm':
- Incompatible because this component declares a component compatible with Java 11 and the consumer needed a component compatible with Java 8
- Variant 'runtimeElements' capability com.beust:klaxon:5.6 declares a runtime of a library, packaged as a jar, preferably optimized for standard JVMs, and its dependencies declared externally, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm':
- Incompatible because this component declares a component compatible with Java 11 and the consumer needed a component compatible with Java 8
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
BUILD FAILED in 1s
1 actionable task: 1 executed
Please advise?
I'm not sure exactly why yet, but the measurement of a Column or Row does not take into consideration the spacing added from vSpacingArrangement, which does not affect the raw output of the converter, but can be problematic when it is adapted to have dynamic content.
Consider replacing vSpacingArrangemnt with something built in to Compose, or fix how it works out for the measurement of a Column or Row
For gradient export it uses HorizontalGradient
which doesn't exits in latest version.
Can be replaced with brush = Brush.horizontalGradient
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.