1.0.3 • Published 2 years ago
bl-lightning-sdk-beta v1.0.3
BrightLine Lightning JS SDK
Import
import BLAd from 'bl-lightning-sdk'
Example
const BLdataUrl =
'//....../lightning.json'
export default class App extends Lightning.Component {
static _template() {
return {
w: 1920,
h: 1080,
rect: true,
Text: {
x: w => w / 2,
y: h => h / 2,
mount: 0.5,
text: {
text: 'Template example',
textColor: 0xffffffff,
},
},
BLAd: {
type: BLAd,
alpha: 0,
},
}
}
_init() {
this.tag('BLAd').BL_client(advertiserInfo)
this.tag('BLAd').BL_init(BLdataUrl)
}
}