123456789101112131415161718192021222324252627282930 |
- !function() {
- let point, dire
- window.cad = {
- setSign: function(p, d) {
- point = p
- dire = d
- }
- }
- $.ajax({
- method: 'GET',
- url: '/SuperCad/data/' + window.number + '/results/floor.json',
- success(data) {
- var $layer = document.querySelector('#cad')
- window.cad = structureCAD({
- data: data,
- layer: $layer,
- edit: false
- });
- if (point && dire) {
- window.cad.setSign(point, dire)
- }
- },
- error(e) {
- console.error(JSON.parse(e.responseText))
- }
- })
- }()
|