|
|
@@ -1,7 +1,7 @@
|
|
|
import React, { useState } from 'react';
|
|
|
import { Container, Badge, FormGroup, Label, Input, Button, Collapse } from 'reactstrap';
|
|
|
import Paper, { Path, PaperScope, Group, Color } from 'paper';
|
|
|
-import { equals, without, append, isNil, identity, Filter, includes } from 'ramda';
|
|
|
+import { equals, without, append, isNil, identity, includes } from 'ramda';
|
|
|
import Axios from 'axios';
|
|
|
import VALUES, { AgeVal, GenderVal, EthnicityVal, NonNativeVal, Filters, FilterVal, FilterStatus } from './services';
|
|
|
|
|
|
@@ -112,6 +112,7 @@ class Admin extends React.Component<{}, AdminState> {
|
|
|
mkPathGroup = (data: OriginalCanvasData[], index: number) => {
|
|
|
const _data = data.reduce<(paper.Path|paper.Item)[]>((group, value) => {
|
|
|
const _path = mkPath(value.path, index);
|
|
|
+ // _path.scale((1/1076)*(905), (1/748)*(748));
|
|
|
const _text = mkPathLabel(value.form.name, _path);
|
|
|
return [
|
|
|
...group,
|
|
|
@@ -126,7 +127,7 @@ class Admin extends React.Component<{}, AdminState> {
|
|
|
componentDidMount = () => {
|
|
|
const canvas = new PaperScope();
|
|
|
canvas.setup('vom-admin-canvas');
|
|
|
-
|
|
|
+ canvas.view.viewSize.height = canvas.view.size.width * 1.25;
|
|
|
Axios.get<Result[]>('https://voicesofmerseyside.inama.dev/backend/').then(response => {
|
|
|
const _data = response.data.map((result, index) => {
|
|
|
return {
|