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
320
插件开发 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
SSMRunbook作成の勘所_20241120
koichiotomo
3
160
インフラとバックエンドとフロントエンドをくまなく調べて遅いアプリを早くした件
tubone24
1
430
VideoMamba: State Space Model for Efficient Video Understanding
chou500
0
190
ISUCONに強くなるかもしれない日々の過ごしかた/Findy ISUCON 2024-11-14
fujiwara3
8
870
Adopting Jetpack Compose in Your Existing Project - GDG DevFest Bangkok 2024
akexorcist
0
110
Terraform Stacks入門 #HashiTalks
msato
0
360
データプロダクトの定義からはじめる、データコントラクト駆動なデータ基盤
chanyou0311
2
330
Terraform未経験の御様に対してどの ように導⼊を進めていったか
tkikuchi
2
450
マルチプロダクトな開発組織で 「開発生産性」に向き合うために試みたこと / Improving Multi-Product Dev Productivity
sugamasao
1
310
CysharpのOSS群から見るModern C#の現在地
neuecc
2
3.4k
The Rise of LLMOps
asei
7
1.7k
Python(PYNQ)がテーマのAMD主催のFPGAコンテストに参加してきた
iotengineer22
0
500
Featured
See All Featured
We Have a Design System, Now What?
morganepeng
50
7.2k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
10
720
Into the Great Unknown - MozCon
thekraken
32
1.5k
A designer walks into a library…
pauljervisheath
204
24k
Reflections from 52 weeks, 52 projects
jeffersonlam
346
20k
Unsuck your backbone
ammeep
668
57k
Measuring & Analyzing Core Web Vitals
bluesmoon
4
130
Build your cross-platform service in a week with App Engine
jlugia
229
18k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
38
1.8k
It's Worth the Effort
3n
183
27k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
16
2.1k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
42
9.2k
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. ۱౮VNHWFKSOXJLQ PDQLIHVWMVRQ
Ḓضᥝ樄&XVWRP3OXJLQ 犖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W6HOHFW5HFWDQJOHVFRFRDVFULSW ` @ 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