index.js 547 B

1234567891011121314151617181920212223
  1. var sceneReadyBehavior = require('../../behavior-scene/scene-ready');
  2. var handleDecodedXML = require('../../behavior-scene/util').handleDecodedXML;
  3. var xmlCode = ``;
  4. Page({
  5. behaviors:[sceneReadyBehavior],
  6. data: {
  7. xmlCode: '',
  8. visibleIndex: 1,
  9. cullMask: 0b011
  10. },
  11. handleChangeVisible() {
  12. this.setData({
  13. visibleIndex: 3 - this.data.visibleIndex
  14. });
  15. },
  16. handleChangeCullMask() {
  17. this.setData({
  18. cullMask: ((this.data.cullMask ^ (((this.data.cullMask & 0b100) >> 2) * 0b111)) << 1) | 0b1
  19. });
  20. }
  21. });