1.0.3 • Published 2 years ago

bl-lightning-sdk-beta v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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)
  }
}
1.0.3

2 years ago

1.0.2

2 years ago