Coder Social home page Coder Social logo

textlayer-for-framer's People

Contributors

awt2542 avatar bryant1410 avatar ryanvarick avatar tehfailsafe 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

textlayer-for-framer's Issues

.convertToTextLayer() not working

I think the Sketch importer has changed again, because I get the following error: TypeError: undefined is not an object (evaluating 'layer._info.metadata.css').

autoSize not working in Chrome

Hi there!

First of all, thanks a ton for your Framer module, I use it quite a lot. I stumbled upon a bug in Chrome though, I know it might not be great to test Framer prototypes in Chrome but I figured I'd report it :)

screen shot 2016-04-07 at 16 06 37

Text field doesn't work on browser

Hi.

I'm using your module for Framer and when I mirror my application to the browser, the text layer just doesn't work. However, it works fine on Framer Studio. It is supposed to work like that?

Thank you!

Fixed: I had to click on "Share".

Framer Lumping All Text Together

screenshot

Framer keeps lumping all my text together.

Here's my code:

{TextLayer} = require 'TextLayer'

book_summary = $.Book_Summary.convertToTextLayer()
verses = $.Verses.convertToTextLayer()

I'm pretty sure I'm doing it right, but maybe note. This is my first time using this.

Doens't Work

Framer v67 doesn't seem to acknowledge it at a constructor.

error
TypeError: Object is not a constructor (evaluating 'new TextLayer')

Using autoSize and autoSizeHight together

I'm using textLayer to create a convo UI. I'm wanting to use autoSize and autoSizeHight together, but there seems to be a default width being applied? is there a way to have the textLayer set both width and height based on the content?

Layer size problem with coping TextLayer

I set a TextLayer with width, height,or any size come with autosize.
But when I copy the layer it didn't copy all those size as well,
all of them reset their size.

Adjust height of text box

Great plugin. I was wondering if you'd ever looked at being able to fix the width of a text layer and make the adjustment in the height of the layer?

Cursor doesn't show up if the textLayer's text is "" and focused

When focusing on a contentEditable TextLayer, the blinking cursor doesn't show up, although it behaves correctly otherwise.

Interestingly, if setup is set to true, it does show up.

Example that will reproduce:

# The layer
text = new TextLayer
  width: 200 # nonessential to reproduce
  height: 200 # nonessential to reproduce
  contentEditable: true
  text: ""

# Focus and behold.... no blinking cursor :'(
text._element.focus()

Question

Hi!

Thanks a lot for making this extension!
I'm using this snippet:

t = new TextLayer text: "Friend's email" color: "#515254" fontSize: 12 width: 220 height: 40 y: 150 x: 40 contentEditable: true fontFamily: "HelveticaNeue"

Now I'm wanting to execute an action when I start typing, so when I start typing in the textfield another layer will show up, is this possible?

Thanks!

Copying converted text layers via copy() resets text color to 'red'

First off, great module, I use it extensively! I've noticed that if I convert a Sketch layer with convertToTextLayer(), I have to do layer.color = layer.style.color in order to prevent the text from being set to 'red' if I copy it via layer.copy(). Not sure if this also applies to other CSS styles, but I also noticed that a converted text layer does not keep the original layer's index in the layer list.

AutoSize is not respecting textAlign

it would be great if the layer would auto-resize while respecting text alignment, i.e. growing from the right side if textAlign is set to right.

Currently, the textLayer always grows from the left side

useful method: replace layer

it would be great to have a method that allows to replace an existing layer from sketch with a text layer:

  • point method to existing layer
  • create TextLayer with same superlayer and frame as existing layer
  • hide (destroy?) existing layer

the only thing that still has to be set manually are the font attributes.

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.