Antetype vs sketch1/15/2023 ![]() ![]() I sorted them in a couple of categories, but most tools here could easily fit in multiple categories. Here’s a list of the design tools that I came across and that I think will be useful for any designer that wants to improve their craft. As someone who has a foot in both the design and development side of things, this is incredibly exciting. With these new concepts, we are slowly bridging the gap between design and development. ![]() These new design tools use constraint based components, or even entire lay-outing systems, they use machine learning to suggest you colors and fonts, they let you version your designs or let you design component systems instead of static pages. The old model of static pixel-based comps of screens is slowly being replaced with more modern ideas of designing. Return the value of one of your rule’s options by name.In the past few years tons of new web design tools came out. If you’re seeing performance problems, especially while doing expensive work then call this function to determine whether your rule should break out of any loops and exit early Generally this is handled for you, but if you’re seeing rule errors saying you’re trying to report an ignored object then you may need to use this function to make a manual check before calling report Identical to objects, except it only iterates objects imported into the Sketch document from librariesĭetermine whether an object has been ignored in the Sketch UI. Objects imported from libraries are excluded Enables efficient traversal of specific object types in rule functions - for example, looping all Artboards. Optionally include one or more references to document objects where the issue residesĪn object containing iterators for each type of object found in a Sketch document. Report a problem to Sketch from the current rule. The RuleUtils object contains helper functions that are scoped to the current rule. Same object passed into the top-level AssistantPackage function Representation of the current Sketch document It contains a representation of the Sketch document currently being processed as well as helper functions. The RuleContext object is passed as an argument to every RuleFunction. □ You should be able to implement your rule by using the objects and helpers coming in on the context argument, but it’s worth remembering that you can use npm modules in your rule functions too - as long as they don’t use Node or browser APIs that aren’t available in Sketch’s JavaScriptCore environment. Indicate whether your rule isn’t cross platform, and only works in Sketch or NodeĪ RuleFunction is an async function that performs the rule’s logic using a RuleContext argument. See the Core Assistant rules for examples By providing schema you enhance error messages for incorrectly configured options, and ready your Assistant for possible future work around Assistant creation GUIs. Optionally describe your rule’s configuration options with JSON Schema. Human readable description for the rule, or alternatively a description as a function of the rule’s configuration (allows for option values to be interpolated into the string) Human readable title for the rule, or alternatively a title as a function of the rule’s configuration (allows for option values to be interpolated into the string) Unique identifier for your rule, by convention prefixed with the AssistantDefinition name, e.g. RuleDefinitionĪ RuleDefinition is a plain object that fully defines a rule. Check our Sketch Assistant Template for an example package.json file or follow our publishing guide for more information. This is to avoid having to execute JavaScript in order to discover this sort of Assistant metadata. □ Additional Assistant metadata, like a human readable title and description are defined in package.json not in source code. Your Assistant package name, this should precisely match the name property in your package.jsonĪn object where you can turn rules on and off, as well as configure them with option values if required AssistantDefinitionĪssistantDefinition is a plain object collecting the rules and configuration together. □ Note that it is also valid for AssistantPackage to be an array of functions, this is to support extending Assistants. The AssistantEnv argument contains information about the outer environment, including the current language locale which could be used to internationalize your Assistant. The function is async to give you an opportunity to perform asynchronous setup work before your Assistant rules are run, if necessary. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |