Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
插件开发 Sketch Plugin Development + 高效制作设计果效果图 Per...
Search
James Tang
June 25, 2017
Technology
1
310
插件开发 Sketch Plugin Development + 高效制作设计果效果图 Perspective Mockup In Sketch
DEX Sketch Meetup #7 at ShenZhen
https://www.meetup.com/Sketch-Design-Shenzhen/events/240963733/
James Tang
June 25, 2017
Tweet
Share
More Decks by James Tang
See All by James Tang
Prototyping iPhone app with Xcode and Storyboard
jamztang
6
1k
I Quit My Full Time Job
jamztang
3
410
Ripple - the location based group chatting app
jamztang
1
930
Other Decks in Technology
See All in Technology
一休.comレストランにおけるRustの活用
kymmt90
3
580
Gradle: The Build System That Loves To Hate You
aurimas
2
150
オーティファイ会社紹介資料 / Autify Company Deck
autifyhq
9
120k
AWS CDKでデータリストアの運用、どのように設計する?~Aurora・EFSの実践事例を紹介~/aws-cdk-data-restore-aurora-efs
mhrtech
4
650
Commitment vs Harrisonism - Keynote for Scrum Niseko 2024
miholovesq
6
1.1k
わたしとトラックポイント / TrackPoint tips
masahirokawahara
1
240
30万人が利用するチャットをFirebase Realtime DatabaseからActionCableへ移行する方法
ryosk7
5
350
AWSコンテナ本出版から3年経った今、もし改めて執筆し直すなら / If I revise our container book
iselegant
15
4k
CAMERA-Suite: 広告文生成のための評価スイート / ai-camera-suite
cyberagentdevelopers
PRO
3
270
新卒1年目が挑む!生成AI × マルチエージェントで実現する次世代オンボーディング / operation-ai-onboarding
cyberagentdevelopers
PRO
1
170
新卒1年目が向き合う生成AI事業の開発を加速させる技術選定 / ai-web-launcher
cyberagentdevelopers
PRO
7
1.5k
GitHub Universe: Evaluating RAG apps in GitHub Actions
pamelafox
0
180
Featured
See All Featured
Building Flexible Design Systems
yeseniaperezcruz
327
38k
StorybookのUI Testing Handbookを読んだ
zakiyama
26
5.2k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
48k
Embracing the Ebb and Flow
colly
84
4.4k
Agile that works and the tools we love
rasmusluckow
327
21k
Docker and Python
trallard
40
3.1k
Product Roadmaps are Hard
iamctodd
PRO
48
10k
Practical Orchestrator
shlominoach
186
10k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
37
1.8k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
246
1.3M
Java REST API Framework Comparison - PWX 2021
mraible
PRO
28
7.9k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
664
120k
Transcript
Plugin Development Sketch 矠կݎ JAMES TANG @JAMZTANG
᧡አ鉑6NHWFK矠կ?
ӣय़随ڦ ܔེಗᤈ Data Generator, Rename It 碉ݳጱInvision Sync, Zeplin, Principle
ᳩ๗ಗᤈAutolayout, Magic Mirror
Sketch 矠կݢ犥狶کጱ 1. 盠蝧᯿ꛂ/ಗᤈӞ羬ڜ֢ۖ 2. ᩒᦔᐏ 3. 玲አ䜛斸獈 4. ᬰᤈᗑӤᩒාԻഘ
5. ࢶ猟॒ቘ 6. 肔ލአಁ֢ۖ 7. 괐ے/ٺ݄/ᛔਧԎSketchՕᶎ
Sketch 矠կฎՋ牫 VNHWFKSOXJLQ ٌ䋿疰ฎӞ㮆IROGHU牧ꗏᶎํӞԶMVRQSQJMDYDVFULSWƉOHV PUZDONHUVNHWFKSOXJLQ &RQWHQWV 6NHWFK PDQLIHVWMVRQ VKDUHGMV 6HOHFW&LUFOHVFRFRDVFULSW
6HOHFW5HFWDQJOHVFRFRDVFULSW 5HVRXUFHV 6FUHHQVKRWSQJ ,FRQSQJ
Sketch 矠կचܻቘ Sketch Mocha/CocoaScript Plugin 0RFKD&RFRDVFULSWฎӞӻᘉ᯽瑊牧-DYDVFULSW薹౮૪ᖫᦲঅጱ纷ଧ ORJ KHOORZRUOG, PVRPHMDYDVFULSWFRGH
ਥොSketch Plugin 薹᯽ http://developer.sketchapp.com/introduction/
चۑ 1. ORJ +HOOR:RUOG FRQWH[WREMHFW 3. ดᐏᩒᦔ 4. 蠣አಁᬌ獈
5.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LUFOHVFRFRDVFULSW ` ^ QDPH5HFWDQJOHV LGHQWLƉHUUHFWDQJOHV VFULSW6HOHFW5HFWDQJOHVFRFRDVFULSW ` @ PHQX^ LWHPV> DOO FLUFOHV UHFWDQJOHV @ ` `
Ꭺ瑊դݎದ 1. Mocha/Cocoascript ਂࣁ犋靦褖ګ ⁃ 2EMHFWLYH&ጱ獊ᶎඪൔ犋᪃牧ই犋ꖥಗᤈ EORFNVGHƉQH*&'ᒵ ⁃ 盄ᵙ֢ᗑ᪠ਂ玲 ⁃
ᛔਧԎՕᶎ ⁃ ꖤวᳩᳵಗᤈ纷ଧ 耬靦ದጱඪ೮ ૡٍ犋珿牧ԅݎꔷ纷ଃ犋 ᥝ统Ꮘ褖ګ牧౯ժ襑ᥝԧ薹ӷय़ሿդ矠կದᳪ窔
ሿդݎӣय़ᳪ窔 च犤ᤈ碉ݳ ڥአWebView (+JS 絑ह 犥 Objective-C/Swift樄咳
Objective-C/Swift च犤ᤈ WebView JS • Autolayout (Anima) • CSSketch •
Fluid • Magic Mirror • Magic Presenter • Prototype (Craft) • Sketch Runner • Sketch Focus • States • Zeroheight • Craft • Flow Mate • Sketch Flex Layout • Sketch Measure • Arrange Artboard • Artboard To PDF • Data Generator • Duplicator • Git Sketch Plugin • Place Linked Bitmap • RenameIt • Sketch Image Compresser • Symbol Organizer
꧉ᐶꔢಋ豽 1. ԧ薹ӣᐿݎದݱᛔ犭۠牧统ᏈᎪ瑊䦒դ褖ګ 䋊괡ڥአ sketchtools, FODVVGXPSԧ薹獉蟂ຝ䯤牧薹究 ದ蔩ᒍ犋᪃ጱ㺔氂 አૡٍ༄ᥤ6NHWFKՕᶎ牧괐ےݎ硳ሲ
ֵአౡՈݎ۱6NHWFK3OXJLQ;FRGH7HPSODWH
च犤ᤈ Easy Basic Good Hard 1x ᳩ๗ಗᤈ牧襑ᥝ ֢ᩒා蔭ᐏ Web +
JS Hard Good Excellent Mid 0.5x~1x ݎದ穉 Difficulty তᵙଶ Debugging ᴻᲙ Extensibility 皤ኩ Maintenance ᖌಷ Performance 蝧ଶ Best For ݳ蝒随୵ Toolsૡٍ Objective-C/Swift Hard Good Good~Excellent Mid 3x~10x ꛂ牧ᳩ๗ಗᤈ ꖤวಗᤈ ֵአ羬ᕹۑꖥ ᓌܔ, ܔེಗᤈ
አClass Dumpᛔ૩ګ֢Headers files $ class-dump -H /Applications/Sketch.app/Contents/MacOS/Sketch -o ~/Desktop/Sketch/ http://stevenygard.com/projects/class-dump/
አૡٍᔰ矟6NHWFKՕᶎ https://www.interface-inspector.com <RXPD\QHHGWRHLWKHUGLVDEOH6,3RUGRZQORDGP\6NHWFKSOXJLQLI\RX UHRQ26;6LHUUD KWWSVJLWKXEFRP0DJLF6NHWFK,QWHUIDFH,QVSHFWRU5HPRWHUHOHDVHV
睱Ո樄咳۱SketchPlugin-XcodeTemplate https://github.com/MagicSketch/XcodeTemplate-SketchPlugin
ᐏ舰Ӟӥ
ٌ犢ํአᩒრ Sketch Plugin Development - MagicSketch Blog https://blog.magicsketch.io/development/home Sketch Plugin
Snippets for Plugin Developers https://medium.com/sketch-app-sources/sketch-plugin-snippets-for-plugin-developers-e9e1d2ab6827 Sketch Plugin Directory https://github.com/sketchplugins/plugin-directory Undocumented Sketch Plugin API Reference https://blog.magicsketch.io/undocumented-sketch-plugin-api-reference-642775b6476d Sketch Plugin Resources http://developer.sketchapp.com/resources/ Sketch Plugin Developers http://developer.sketchapp.com/ Sketch Plugin Forum http://sketchplugins.com
Perspective Mockup in Sketch JAMES TANG @JAMZTANG ṛ硳ګ֢ 戔懯 硳ຎ霎
鹢ޞ䦒樌
None
3URGXFW'LVSOD\$SS6WRUH6FUHHQVKRW&RYHU3KRWRV'HVLJQ'LVSOD\HWF ݢአԭԾߝ疻ᐏ牏$SS6WRUH౼ࢶ牏ᶎࢶ猟牏ᦡᦇ疻ᐏᒵŏŏ 戔懯硳ຎ霎ጱአ괷
አSketch ጱݱ֖牧ሿࣁ᮷አՋԍො ဩᦡᦇᬰࢶᇆꗏޫ牫
placeit.net 覍ྋୗ牧䷱妞懯牧ݝ傶鹢ޞጱ℄ፓ硳ຎ Photoshop Others mockuuups.com ???
MIRRO R Sketch 矠կӞᲫګ֢ᦡᦇ硳ຎࢶ
KWWSPDJLFVNHWFKLRPLUURU ӥ斉0DJLF0LUURU
ḵᦤ૪ᕪᤰঅԧ
ᐏ舰Ӟӥ
ই౯૪妿向অԧ皃㮆$SS'HVLJQ &UHGLWKWWSGHVLJQFRGHLRDQJOH
4.7 inches iPhone 6 5.5 inches iPhone 6 Plus http://magicsketch.io/mirror/templates
http://designcode.io/angle
ತๅग़ᶼਧᦇᦡ硳ຎࢶ KWWSVPDJLFVNHWFKLRPLUURUWHPSODWH KWWSVNHWFKPRFNXSVFRP
ํ蚕ֵአොဩ'DWH3LFNHU KWWSVVNHWFKWDONLRGLVFXVVLRQLRVSLFNHU
ํ蚕ֵአොဩ8,)ORZ.LW KWWSPDJLFVNHWFKLRPLUURUWHPSODWHLSKRQHVƊRZNLW
՞ᩇꕗ 5RXQGHG &RUQHU 8SWR[TXDOLW\ 6OLFH KWWSVPDJLFVNHWFKLRPLUURUSUR
ํአᩒᦔ Magic Mirror Templates http://magicsketch.io/mirror/template Magic Mirror 3 Facebook Group
http://facebook.com/magicmirrorsketch SketchMockups.com | Sketch Perspective Mockups http://sketchmockups.com Magic Mirror 3 | Sketch Plugin replaces Photoshop http://magicsketch.io/mirror Magic Presenter 2 | Sketch Plugin replaces Keynote https://github.com/MagicSketch/MagicPresenter2/releases
ᨀᨀय़疑牦 ݢ犥ے獈౯ڟ蚏ጱ0DJLF0LUURU盏מአಁᗭࡂ牦 JAMES TANG @JAMZTANG