by PromptSpace
वर्चुअलाइज़ेशन, कैनवास और लेआउट-गहन अनुप्रयोगों के लिए उच्च-प्रदर्शन ब्राउज़र-आधारित टेक्स्ट लेआउट और मापन।
Free
One-time purchase
Prepared handle cached for "Hello World". Height: 48px at 200px width. Line 1: "Hello " (0-6) Line 2: "World" (6-11) Performance: <0.1ms layout time. Verified against document.fonts.ready status.
by PromptSpace
वर्चुअलाइज़ेशन, कैनवास और लेआउट-गहन अनुप्रयोगों के लिए उच्च-प्रदर्शन ब्राउज़र-आधारित टेक्स्ट लेआउट और मापन।
Free
One-time purchase
⚡ Skill ready to install in Claude Code, Gemini CLI, or any MCP-compatible client. Read the install guides →
Prepared handle cached for "Hello World". Height: 48px at 200px width. Line 1: "Hello " (0-6) Line 2: "World" (6-11) Performance: <0.1ms layout time. Verified against document.fonts.ready status.
Pretext Layout स्किल AI एजेंट्स को @chenglou/pretext लाइब्रेरी का उपयोग करके उच्च-प्रदर्शन मल्टीलाइन टेक्स्ट मापन को एकीकृत और डीबग करने में सक्षम बनाती है। यह धीमे DOM-आधारित हाइट प्रोब्स को एक तेज़, ब्राउज़र-नेटिव API दृष्टिकोण से प्रतिस्थापित करके "लेआउट थ्रैशिंग" की सामान्य फ्रंटएंड प्रदर्शन बाधा को हल करती है।
यह स्किल डेवलपर्स को बार-बार DOM रिफ्लो के बिना टेक्स्ट की चौड़ाई और ऊँचाई मापने की एक संरचित पद्धति प्रदान करती है। यह वर्चुअलाइज़ेशन के लिए उच्च-स्तरीय ब्लॉक हाइट कैलकुलेशन और कस्टम Canvas या SVG रेंडरिंग वर्कफ़्लो के लिए निम्न-स्तरीय लाइन-दर-लाइन ज्यामिति का समर्थन करती है। यह वेब फ़ॉन्ट, इमोजी और द्विदिशात्मक टेक्स्ट सहित जटिल एज केस को संभालती है।
जहाँ एक सामान्य AI बुनियादी JavaScript लिख सकता है, वहीं यह स्किल Pretext लाइब्रेरी के विशिष्ट जीवनचक्र को समझती है—जैसे कि महंगे "prepare" चरण को हल्के "layout" चरण से अलग करना। यह सुनिश्चित करती है कि आपका एजेंट ब्राउज़र-ओनली रनटाइम बाधाओं, फ़ॉन्ट लोडिंग प्रॉमिस और लोकेल-विशिष्ट व्हाइट-स्पेस व्यवहारों को सही ढंग से प्रबंधित करे, ताकि लेआउट शिफ्ट और फ्लिकरिंग से बचा जा सके।
• ब्राउज़र वातावरण या OffscreenCanvas की आवश्यकता है; नेटिव Node.js समर्थन उपलब्ध नहीं है। • 'float', 'flex', या 'letter-spacing' जैसी जटिल CSS प्रॉपर्टी का समर्थन नहीं करती।
mkdir -p ~/.claude/skills/pretext-layout && curl -s -X POST 'https://api.promptspace.in/api/skills/pretext-layout/install' | python3 -c "import sys,json; sys.stdout.write(json.load(sys.stdin).get('installInstructions') or '')" > ~/.claude/skills/pretext-layout/SKILL.mdFree skills install directly. Paid skills require purchase - use the download button above after buying.
Security Scanned
Passed automated security review
No special permissions declared or detected
OpenClaw, Cursor, Claude Code, Codex CLI
PromptSpace
We build AI agent skill packages for content creators. Specializing in Chinese social media automation.