Code Library

Frame Decoration

· By Media La Vista

Apply visual enhancements to any layer via the frame attribute.

Attributes

AttributeDescriptionDefault
backColorBackground colornone
backOpacityBackground opacity (e.g. '80%')'100%'
frameColorBorder colornone
frameSizeBorder width (px or % of the smaller side)'6%'
shape'square', 'round' or 'snip' corners'square'
rx, ryCorner size when the shape is not square (px or %); ry defaults to rx'20%'
cornersArray of corners to modifyall four
clip'none', 'auto' or 'force': clip content at the corners'auto'
paddingContent padding (px or %)0
shadowEnable shadowfalse
shadowColorShadow color'#A0A0A0'
shadowSizeShadow size (px or %)'3%'

Text with Background

$.textArea({
  fontSize: 40,
  frame: {
    backColor: 'white', backOpacity: '80%',
    frameColor: 'black', frameSize: 2,
    shape: 'round', rx: 8, padding: 10
  }
}).text("Breaking News").addTo('svg');

Image with Shadow

$.image({
  href: 'logo.png', width: 300, height: 300,
  frame: {
    shadow: true, shadowColor: '#808080',
    shadowSize: 8
  }
}).addTo('svg');

Related Pages

SpinetiX Wiki Reference
Frame borders, backgrounds, rounded corners, shadows, padding, soft edges, reflections.

Need Help With Your Project?

Media La Vista provides Tier 1–3 local support across the Middle East. 10-minute response for Partner Club members.

This page is available in English only
هذه الصفحة متوفرة باللغة الإنجليزية فقط
NS
Media La Vista support
Typically replies natively
مرحباً بكم في دعم SpinetiX عبر واتساب

كيف يمكنني مساعدتكم في حلول اللوحات الرقمية، أو البنية التحتية AV/IT، أو منتجات SpinetiX؟
Hello and welcome to SpinetiX Support on WhatsApp.

How can I help you with digital signage solutions, AV/IT infrastructure, or SpinetiX products?