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
事業貢献を考えるための技術改善の目標設計と改善実績 / Targeted design of technical improvements to consider business contribution and improvement performance
oomatomo
0
100
Wantedly での Datadog 活用事例
bgpat
1
530
統計データで2024年の クラウド・インフラ動向を眺める
ysknsid25
2
850
20241214_WACATE2024冬_テスト設計技法をチョット俯瞰してみよう
kzsuzuki
3
590
PHPerのための計算量入門/Complexity101 for PHPer
hanhan1978
5
210
生成AIをより賢く エンジニアのための RAG入門 - Oracle AI Jam Session #20
kutsushitaneko
4
260
株式会社ログラス − エンジニア向け会社説明資料 / Loglass Comapany Deck for Engineer
loglass2019
3
32k
Qiita埋め込み用スライド
naoki_0531
0
5.1k
Fanstaの1年を大解剖! 一人SREはどこまでできるのか!?
syossan27
2
170
5分でわかるDuckDB
chanyou0311
10
3.2k
LINEヤフーのフロントエンド組織・体制の紹介【24年12月】
lycorp_recruit_jp
0
530
NilAway による静的解析で「10 億ドル」を節約する #kyotogo / Kyoto Go 56th
ytaka23
3
380
Featured
See All Featured
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Testing 201, or: Great Expectations
jmmastey
40
7.1k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
The Pragmatic Product Professional
lauravandoore
32
6.3k
Thoughts on Productivity
jonyablonski
67
4.4k
Raft: Consensus for Rubyists
vanstee
137
6.7k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
365
25k
Intergalactic Javascript Robots from Outer Space
tanoku
270
27k
Fashionably flexible responsive web design (full day workshop)
malarkey
405
66k
For a Future-Friendly Web
brad_frost
175
9.4k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
2
290
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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FULSW6HOHFW5HFWDQJOHVFRFRDVFULSW ` @ 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